2 # $OpenLDAP: pkg/ldap/configure,v 1.437.2.41 2003/06/21 17:18:19 kurt Exp $
3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.33 2003/03/05 23:48:30 kurt Exp
5 # Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-dynamic enable linking built binaries with dynamic libs [no]"
37 --enable-proctitle enable proctitle support [yes]"
39 --enable-ipv6 enable IPv6 support [auto]"
41 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
43 --enable-x-compile enable cross compiling [no]"
45 --with-cyrus-sasl with Cyrus SASL support [auto]"
47 --with-fetch with fetch(3) URL support [auto]"
49 --with-kerberos with Kerberos support [auto]"
51 --with-readline with readline support [auto]"
53 --with-threads with threads [auto]"
55 --with-tls with TLS/SSL support [auto]"
57 --with-yielding-select with implicitly yielding select [auto]"
60 SLAPD (Standalone LDAP Daemon) Options:"
62 --enable-slapd enable building slapd [yes]"
64 --enable-aci enable per-object ACIs (experimental) [no]"
66 --enable-cleartext enable cleartext passwords [yes]"
68 --enable-crypt enable crypt(3) passwords [no]"
70 --enable-kpasswd enable Kerberos password verification [no]"
72 --enable-lmpasswd enable LAN Manager passwords [no]"
74 --enable-spasswd enable (Cyrus) SASL password verification [no]"
76 --enable-modules enable dynamic module support [no]"
78 --enable-phonetic enable phonetic/soundex [no]"
80 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
82 --enable-rlookups enable reverse lookups of client hostnames [no]"
84 --enable-slp enable SLPv2 support [no]"
86 --enable-wrappers enable tcp wrapper support [no]"
88 --enable-bdb enable Berkeley DB backend [yes]"
90 --with-bdb-module module type static|dynamic [static]"
92 --enable-dnssrv enable dnssrv backend [no]"
94 --with-dnssrv-module module type static|dynamic [static]"
96 --enable-ldap enable ldap backend [no]"
98 --with-ldap-module module type static|dynamic [static]"
100 --enable-ldbm enable ldbm backend [no]"
102 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
104 --with-ldbm-module module type static|dynamic [static]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend [no]"
110 --with-meta-module module type static|dynamic [static]"
112 --enable-monitor enable monitor backend [no]"
114 --with-monitor-module module type static|dynamic [static]"
116 --enable-null enable null backend [no]"
118 --with-null-module module type static|dynamic [static]"
120 --enable-passwd enable passwd backend [no]"
122 --with-passwd-module module type static|dynamic [static]"
124 --enable-perl enable perl backend [no]"
126 --with-perl-module module type static|dynamic [static]"
128 --enable-shell enable shell backend [no]"
130 --with-shell-module module type static|dynamic [static]"
132 --enable-sql enable sql backend [no]"
134 --with-sql-module module type static|dynamic [static]"
137 SLURPD (Replication Daemon) Options:"
139 --enable-slurpd enable building slurpd [auto]"
142 Library Generation & Linking Options"
144 --enable-static[=PKGS] build static libraries [default=yes]"
146 --enable-shared[=PKGS] build shared libraries [default=yes]"
148 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
150 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
152 # Find the correct PATH separator. Usually this is `:', but
153 # DJGPP uses `;' like DOS.
154 if test "X${PATH_SEPARATOR+set}" != Xset; then
155 UNAME=${UNAME-`uname 2>/dev/null`}
157 *-DOS) lt_cv_sys_path_separator=';' ;;
158 *) lt_cv_sys_path_separator=':' ;;
160 PATH_SEPARATOR=$lt_cv_sys_path_separator
164 # Check that we are running under the correct shell.
165 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Remove one level of quotation (which was required for Make).
170 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
175 if test "X$1" = X--no-reexec; then
176 # Discard the --no-reexec flag, and continue.
178 elif test "X$1" = X--fallback-echo; then
179 # Avoid inline document here, it may be left over
181 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
182 # Yippee, $echo works!
185 # Restart under the correct shell.
186 exec $SHELL "$0" --no-reexec ${1+"$@"}
189 if test "X$1" = X--fallback-echo; then
190 # used as fallback echo
198 # The HP-UX ksh and POSIX shell print the target directory to stdout
200 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
202 if test -z "$ECHO"; then
203 if test "X${echo_test_string+set}" != Xset; then
204 # find a string as large as possible, as long as the shell can cope with it
205 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
206 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
207 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
208 echo_test_string="`eval $cmd`" &&
209 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
216 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
217 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
218 test "X$echo_testing_string" = "X$echo_test_string"; then
221 # The Solaris, AIX, and Digital Unix default echo programs unquote
222 # backslashes. This makes it impossible to quote backslashes using
223 # echo "$something" | sed 's/\\/\\\\/g'
225 # So, first we look for a working echo in the user's PATH.
227 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
228 for dir in $PATH /usr/ucb; do
229 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
230 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
231 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
232 test "X$echo_testing_string" = "X$echo_test_string"; then
239 if test "X$echo" = Xecho; then
240 # We didn't find a better echo, so look for alternatives.
241 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
242 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
243 test "X$echo_testing_string" = "X$echo_test_string"; then
244 # This shell has a builtin print -r that does the trick.
246 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
247 test "X$CONFIG_SHELL" != X/bin/ksh; then
248 # If we have ksh, try running configure again with it.
249 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
250 export ORIGINAL_CONFIG_SHELL
251 CONFIG_SHELL=/bin/ksh
253 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
257 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
258 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
259 test "X$echo_testing_string" = "X$echo_test_string"; then
262 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
263 test "X$echo_testing_string" = 'X\t' &&
264 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
266 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
268 SHELL="$CONFIG_SHELL"
270 echo="$CONFIG_SHELL $0 --fallback-echo"
271 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
272 test "X$echo_testing_string" = 'X\t' &&
273 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
274 test "X$echo_testing_string" = "X$echo_test_string"; then
275 echo="$CONFIG_SHELL $0 --fallback-echo"
277 # maybe with a smaller string...
280 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
281 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
288 if test "$prev" != 'sed 50q "$0"'; then
289 echo_test_string=`eval $prev`
290 export echo_test_string
291 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
293 # Oops. We lost completely, so just stick with echo.
302 # Copy echo and quote the copy suitably for passing to libtool from
303 # the Makefile, instead of quoting the original, which is used later.
305 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
306 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
311 --disable-libtool-lock avoid locking (might break parallel builds)"
313 --with-pic try to use only PIC/non-PIC objects [default=use both]"
316 See INSTALL file for further details."
318 # Initialize some variables set by options.
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
322 cache_file=./config.cache
331 program_transform_name=s,x,x,
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 # Initialize some other variables.
355 SHELL=${CONFIG_SHELL-/bin/sh}
356 # Maximum number of lines to put in a shell here document.
363 # If the previous option needs an argument, assign it.
364 if test -n "$ac_prev"; then
365 eval "$ac_prev=\$ac_option"
371 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
375 # Accept the important Cygnus configure options, so we can diagnose typos.
379 -bindir | --bindir | --bindi | --bind | --bin | --bi)
381 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
382 bindir="$ac_optarg" ;;
384 -build | --build | --buil | --bui | --bu)
386 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
387 build="$ac_optarg" ;;
389 -cache-file | --cache-file | --cache-fil | --cache-fi \
390 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
391 ac_prev=cache_file ;;
392 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
393 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
394 cache_file="$ac_optarg" ;;
396 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
398 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
400 datadir="$ac_optarg" ;;
402 -disable-* | --disable-*)
403 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
409 eval "enable_${ac_feature}=no" ;;
411 -enable-* | --enable-*)
412 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
417 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
422 eval "enable_${ac_feature}='$ac_optarg'" ;;
424 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426 | --exec | --exe | --ex)
427 ac_prev=exec_prefix ;;
428 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430 | --exec=* | --exe=* | --ex=*)
431 exec_prefix="$ac_optarg" ;;
433 -gas | --gas | --ga | --g)
434 # Obsolete; use --with-gas.
437 -help | --help | --hel | --he)
438 # Omit some internal or obsolete options to make the list less imposing.
439 # This message is too long to be a string in the A/UX 3.1 sh.
441 Usage: configure [options] [host]
442 Options: [defaults in brackets after descriptions]
444 --cache-file=FILE cache test results in FILE
445 --help print this message
446 --no-create do not create output files
447 --quiet, --silent do not print \`checking...' messages
448 --version print the version of autoconf that created configure
449 Directory and file names:
450 --prefix=PREFIX install architecture-independent files in PREFIX
452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
454 --bindir=DIR user executables in DIR [EPREFIX/bin]
455 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
456 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
457 --datadir=DIR read-only architecture-independent data in DIR
459 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
460 --sharedstatedir=DIR modifiable architecture-independent data in DIR
462 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
463 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
464 --includedir=DIR C header files in DIR [PREFIX/include]
465 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
466 --infodir=DIR info documentation in DIR [PREFIX/info]
467 --mandir=DIR man documentation in DIR [PREFIX/man]
468 --srcdir=DIR find the sources in DIR [configure dir or ..]
469 --program-prefix=PREFIX prepend PREFIX to installed program names
470 --program-suffix=SUFFIX append SUFFIX to installed program names
471 --program-transform-name=PROGRAM
472 run sed PROGRAM on installed program names
476 --build=BUILD configure for building on BUILD [BUILD=HOST]
477 --host=HOST configure for HOST [guessed]
478 --target=TARGET configure for TARGET [TARGET=HOST]
479 Features and packages:
480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
484 --x-includes=DIR X include files are in DIR
485 --x-libraries=DIR X library files are in DIR
487 if test -n "$ac_help"; then
488 echo "--enable and --with options recognized:$ac_help"
492 -host | --host | --hos | --ho)
494 -host=* | --host=* | --hos=* | --ho=*)
497 -includedir | --includedir | --includedi | --included | --include \
498 | --includ | --inclu | --incl | --inc)
499 ac_prev=includedir ;;
500 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
501 | --includ=* | --inclu=* | --incl=* | --inc=*)
502 includedir="$ac_optarg" ;;
504 -infodir | --infodir | --infodi | --infod | --info | --inf)
506 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
507 infodir="$ac_optarg" ;;
509 -libdir | --libdir | --libdi | --libd)
511 -libdir=* | --libdir=* | --libdi=* | --libd=*)
512 libdir="$ac_optarg" ;;
514 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
515 | --libexe | --libex | --libe)
516 ac_prev=libexecdir ;;
517 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
518 | --libexe=* | --libex=* | --libe=*)
519 libexecdir="$ac_optarg" ;;
521 -localstatedir | --localstatedir | --localstatedi | --localstated \
522 | --localstate | --localstat | --localsta | --localst \
523 | --locals | --local | --loca | --loc | --lo)
524 ac_prev=localstatedir ;;
525 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
526 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
527 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
528 localstatedir="$ac_optarg" ;;
530 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
532 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
533 mandir="$ac_optarg" ;;
536 # Obsolete; use --without-fp.
539 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
544 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
547 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
548 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
549 | --oldin | --oldi | --old | --ol | --o)
550 ac_prev=oldincludedir ;;
551 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
552 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
553 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
554 oldincludedir="$ac_optarg" ;;
556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
559 prefix="$ac_optarg" ;;
561 -program-prefix | --program-prefix | --program-prefi | --program-pref \
562 | --program-pre | --program-pr | --program-p)
563 ac_prev=program_prefix ;;
564 -program-prefix=* | --program-prefix=* | --program-prefi=* \
565 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
566 program_prefix="$ac_optarg" ;;
568 -program-suffix | --program-suffix | --program-suffi | --program-suff \
569 | --program-suf | --program-su | --program-s)
570 ac_prev=program_suffix ;;
571 -program-suffix=* | --program-suffix=* | --program-suffi=* \
572 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
573 program_suffix="$ac_optarg" ;;
575 -program-transform-name | --program-transform-name \
576 | --program-transform-nam | --program-transform-na \
577 | --program-transform-n | --program-transform- \
578 | --program-transform | --program-transfor \
579 | --program-transfo | --program-transf \
580 | --program-trans | --program-tran \
581 | --progr-tra | --program-tr | --program-t)
582 ac_prev=program_transform_name ;;
583 -program-transform-name=* | --program-transform-name=* \
584 | --program-transform-nam=* | --program-transform-na=* \
585 | --program-transform-n=* | --program-transform-=* \
586 | --program-transform=* | --program-transfor=* \
587 | --program-transfo=* | --program-transf=* \
588 | --program-trans=* | --program-tran=* \
589 | --progr-tra=* | --program-tr=* | --program-t=*)
590 program_transform_name="$ac_optarg" ;;
592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
593 | -silent | --silent | --silen | --sile | --sil)
596 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
598 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
600 sbindir="$ac_optarg" ;;
602 -sharedstatedir | --sharedstatedir | --sharedstatedi \
603 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
604 | --sharedst | --shareds | --shared | --share | --shar \
606 ac_prev=sharedstatedir ;;
607 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
608 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
609 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
611 sharedstatedir="$ac_optarg" ;;
613 -site | --site | --sit)
615 -site=* | --site=* | --sit=*)
618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
621 srcdir="$ac_optarg" ;;
623 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
624 | --syscon | --sysco | --sysc | --sys | --sy)
625 ac_prev=sysconfdir ;;
626 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
627 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
628 sysconfdir="$ac_optarg" ;;
630 -target | --target | --targe | --targ | --tar | --ta | --t)
632 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
633 target="$ac_optarg" ;;
635 -v | -verbose | --verbose | --verbos | --verbo | --verb)
638 -version | --version | --versio | --versi | --vers)
639 echo "configure generated by autoconf version 2.13.1"
643 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
644 # Reject names that are not valid shell variable names.
645 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
646 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 ac_package=`echo $ac_package| sed 's/-/_/g'`
653 eval "with_${ac_package}='$ac_optarg'" ;;
655 -without-* | --without-*)
656 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
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'`
662 eval "with_${ac_package}=no" ;;
665 # Obsolete; use --with-x.
668 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
669 | --x-incl | --x-inc | --x-in | --x-i)
670 ac_prev=x_includes ;;
671 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
672 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
673 x_includes="$ac_optarg" ;;
675 -x-libraries | --x-libraries | --x-librarie | --x-librari \
676 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
677 ac_prev=x_libraries ;;
678 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
679 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
680 x_libraries="$ac_optarg" ;;
682 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
686 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
687 echo "configure: warning: $ac_option: invalid host type" 1>&2
689 if test "x$nonopt" != xNONE; then
690 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
698 if test -n "$ac_prev"; then
699 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
702 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
704 # File descriptor usage:
707 # 2 errors and warnings
708 # 3 some systems may open it to /dev/tty
709 # 4 used on the Kubota Titan
710 # 6 checking for... messages and results
711 # 5 compiler messages saved in config.log
712 if test "$silent" = yes; then
720 This file contains any messages produced by compilers while
721 running configure, to aid debugging if configure makes a mistake.
724 # Strip out --no-create and --no-recursion so they do not pile up.
725 # Also quote any args containing shell metacharacters.
730 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
731 | --no-cr | --no-c) ;;
732 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
733 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
734 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
735 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
736 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
741 # Only set these to C if already set. These must not be set unconditionally
742 # because not all systems understand e.g. LANG=C (notably SCO).
743 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
744 # Non-C LC_CTYPE values break the ctype check.
745 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
746 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
747 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
748 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
751 rm -rf conftest* confdefs.h
752 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
755 # A filename unique to this package, relative to the directory that
756 # configure is in, which we can look for to find out if srcdir is correct.
757 ac_unique_file=build/version.sh
759 # Find the source files, if location was not specified.
760 if test -z "$srcdir"; then
761 ac_srcdir_defaulted=yes
762 # Try the directory containing this script, then its parent.
764 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
765 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
767 if test ! -r $srcdir/$ac_unique_file; then
771 ac_srcdir_defaulted=no
773 if test ! -r $srcdir/$ac_unique_file; then
774 if test "$ac_srcdir_defaulted" = yes; then
775 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
777 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
780 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
782 # Prefer explicitly selected file to automatically selected ones.
783 if test -z "$CONFIG_SITE"; then
784 if test "x$prefix" != xNONE; then
785 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
787 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
790 for ac_site_file in $CONFIG_SITE; do
791 if test -r "$ac_site_file"; then
792 echo "loading site script $ac_site_file"
799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
800 ac_cpp='$CPP $CPPFLAGS'
801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803 cross_compiling=$ac_cv_prog_cc_cross
807 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
808 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
809 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
816 ac_n= ac_c='\c' ac_t=
820 # set unset (borrowed from autoconf 2.49c)
821 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
827 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
830 for ac_dir in build $srcdir/build; do
831 if test -f $ac_dir/install-sh; then
833 ac_install_sh="$ac_aux_dir/install-sh -c"
835 elif test -f $ac_dir/install.sh; then
837 ac_install_sh="$ac_aux_dir/install.sh -c"
839 elif test -f $ac_dir/shtool; then
841 ac_install_sh="$ac_aux_dir/shtool install -c"
845 if test -z "$ac_aux_dir"; then
846 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
848 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
849 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
850 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
852 eval `$ac_aux_dir/version.sh`
853 if test -z "$OL_STRING"; then
854 { echo "configure: error: could not determine version" 1>&2; exit 1; }
857 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
858 ac_cv_shtool="$ac_aux_dir/shtool"
860 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
863 SHTOOL="$ac_cv_shtool"
865 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
866 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
869 if test -d $ac_aux_dir/CVS; then
870 OPENLDAP_CVS="(from CVS sources) "
873 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
876 echo $ac_n "checking host system type""... $ac_c" 1>&6
877 echo "configure:878: checking host system type" >&5
878 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
880 # Make sure we can run config.sub.
881 if $ac_config_sub sun4 >/dev/null 2>&1; then :
882 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
885 ac_cv_host_alias=$host
886 case "$ac_cv_host_alias" in
890 if ac_cv_host_alias=`$ac_config_guess`; then :
891 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
893 *) ac_cv_host_alias=$nonopt ;;
897 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
898 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
899 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
900 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
902 echo $ac_n "(cached) $ac_c" 1>&6
905 echo "$ac_t""$ac_cv_host" 1>&6
908 host_alias=$ac_cv_host_alias
909 host_cpu=$ac_cv_host_cpu
910 host_vendor=$ac_cv_host_vendor
911 host_os=$ac_cv_host_os
917 echo $ac_n "checking target system type""... $ac_c" 1>&6
918 echo "configure:919: checking target system type" >&5
919 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
921 # Make sure we can run config.sub.
922 if $ac_config_sub sun4 >/dev/null 2>&1; then :
923 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
926 ac_cv_target_alias=$target
927 case "$ac_cv_target_alias" in
931 ac_cv_target_alias=$host_alias ;;
933 *) ac_cv_target_alias=$nonopt ;;
937 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
938 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
939 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
940 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo $ac_n "(cached) $ac_c" 1>&6
945 echo "$ac_t""$ac_cv_target" 1>&6
948 target_alias=$ac_cv_target_alias
949 target_cpu=$ac_cv_target_cpu
950 target_vendor=$ac_cv_target_vendor
951 target_os=$ac_cv_target_os
957 echo $ac_n "checking build system type""... $ac_c" 1>&6
958 echo "configure:959: checking build system type" >&5
959 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
961 # Make sure we can run config.sub.
962 if $ac_config_sub sun4 >/dev/null 2>&1; then :
963 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
966 ac_cv_build_alias=$build
967 case "$ac_cv_build_alias" in
971 ac_cv_build_alias=$host_alias ;;
973 *) ac_cv_build_alias=$nonopt ;;
977 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
978 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
979 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
980 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo $ac_n "(cached) $ac_c" 1>&6
985 echo "$ac_t""$ac_cv_build" 1>&6
988 build_alias=$ac_cv_build_alias
989 build_cpu=$ac_cv_build_cpu
990 build_vendor=$ac_cv_build_vendor
991 build_os=$ac_cv_build_os
997 # Do some error checking and defaulting for the host and target type.
999 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1002 # 1. You are not allowed to specify --host, --target, and nonopt at the
1004 # 2. Host defaults to nonopt.
1005 # 3. If nonopt is not specified, then host defaults to the current host,
1006 # as determined by config.guess.
1007 # 4. Target and build default to nonopt.
1008 # 5. If nonopt is not specified, then target and build default to host.
1010 # The aliases save the names the user supplied, while $host etc.
1011 # will get canonicalized.
1012 case $host---$target---$nonopt in
1013 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1014 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1017 test "$host_alias" != "$target_alias" &&
1018 test "$program_prefix$program_suffix$program_transform_name" = \
1020 program_prefix=${target_alias}-
1023 # Find a good install program. We prefer a C program (faster),
1024 # so one script is as good as another. But avoid the broken or
1025 # incompatible versions:
1026 # SysV /etc/install, /usr/sbin/install
1027 # SunOS /usr/etc/install
1028 # IRIX /sbin/install
1030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1033 # ./install, which can be erroneously created by make from ./install.sh.
1034 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1035 echo "configure:1036: checking for a BSD compatible install" >&5
1036 if test -z "$INSTALL"; then
1037 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1041 for ac_dir in $PATH; do
1042 # Account for people who put trailing slashes in PATH elements.
1044 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1046 # OSF1 and SCO ODT 3.0 have their own names for install.
1047 # Don't use installbsd from OSF since it installs stuff as root
1049 for ac_prog in ginstall scoinst install; do
1050 if test -f $ac_dir/$ac_prog; then
1051 if test $ac_prog = install &&
1052 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1053 # AIX install. It has an incompatible calling convention.
1055 elif test $ac_prog = install &&
1056 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1057 # program-specific install script used by HP pwplus--don't use.
1060 ac_cv_path_install="$ac_dir/$ac_prog -c"
1071 if test "${ac_cv_path_install+set}" = set; then
1072 INSTALL="$ac_cv_path_install"
1074 # As a last resort, use the slow shell script. We don't cache a
1075 # path for INSTALL within a source directory, because that will
1076 # break other packages using the cache if that directory is
1077 # removed, or if the path is relative.
1078 INSTALL="$ac_install_sh"
1081 echo "$ac_t""$INSTALL" 1>&6
1083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1084 # It thinks the first close brace ends the variable substitution.
1085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1091 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether build environment is sane" >&5
1095 echo timestamp > conftestfile
1096 # Do `set' in a subshell so we don't clobber the current shell's
1097 # arguments. Must try -L first in case configure is actually a
1098 # symlink; some systems play weird games with the mod time of symlinks
1099 # (eg FreeBSD returns the mod time of the symlink's containing
1102 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1103 if test "$*" = "X"; then
1105 set X `ls -t $srcdir/configure conftestfile`
1107 if test "$*" != "X $srcdir/configure conftestfile" \
1108 && test "$*" != "X conftestfile $srcdir/configure"; then
1110 # If neither matched, then we have a broken ls. This can happen
1111 # if, for instance, CONFIG_SHELL is bash and it inherits a
1112 # broken ls alias from the environment. This has actually
1113 # happened. Such a system could not be considered "sane".
1114 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1115 alias in your environment" 1>&2; exit 1; }
1118 test "$2" = conftestfile
1124 { echo "configure: error: newly created file is older than distributed files!
1125 Check your system clock" 1>&2; exit 1; }
1128 echo "$ac_t""yes" 1>&6
1129 if test "$program_transform_name" = s,x,x,; then
1130 program_transform_name=
1132 # Double any \ or $. echo might interpret backslashes.
1133 cat <<\EOF_SED > conftestsed
1134 s,\\,\\\\,g; s,\$,$$,g
1136 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1139 test "$program_prefix" != NONE &&
1140 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1141 # Use a double $ so make ignores it.
1142 test "$program_suffix" != NONE &&
1143 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1145 # sed with no file args requires a program.
1146 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1148 for ac_prog in mawk gawk nawk awk
1150 # Extract the first word of "$ac_prog", so it can be a program name with args.
1151 set dummy $ac_prog; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$AWK"; then
1158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1162 for ac_dir in $ac_dummy; do
1163 test -z "$ac_dir" && ac_dir=.
1164 if test -f $ac_dir/$ac_word; then
1165 ac_cv_prog_AWK="$ac_prog"
1172 AWK="$ac_cv_prog_AWK"
1173 if test -n "$AWK"; then
1174 echo "$ac_t""$AWK" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 test -n "$AWK" && break
1182 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1183 echo "configure:1184: checking whether ${MAKE-make} sets \${MAKE}" >&5
1184 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1185 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 cat > conftestmake <<\EOF
1190 @echo 'ac_maketemp="${MAKE}"'
1192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1193 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1194 if test -n "$ac_maketemp"; then
1195 eval ac_cv_prog_make_${ac_make}_set=yes
1197 eval ac_cv_prog_make_${ac_make}_set=no
1201 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1202 echo "$ac_t""yes" 1>&6
1205 echo "$ac_t""no" 1>&6
1206 SET_MAKE="MAKE=${MAKE-make}"
1215 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1216 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1221 missing_dir=`cd $ac_aux_dir && pwd`
1222 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1223 echo "configure:1224: checking for working aclocal" >&5
1224 # Run test in a subshell; some versions of sh will print an error if
1225 # an executable is not found, even if stderr is redirected.
1226 # Redirect stdin to placate older versions of autoconf. Sigh.
1227 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1229 echo "$ac_t""found" 1>&6
1231 ACLOCAL="$missing_dir/missing aclocal"
1232 echo "$ac_t""missing" 1>&6
1235 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1242 echo "$ac_t""found" 1>&6
1244 AUTOCONF="$missing_dir/missing autoconf"
1245 echo "$ac_t""missing" 1>&6
1248 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1255 echo "$ac_t""found" 1>&6
1257 AUTOMAKE="$missing_dir/missing automake"
1258 echo "$ac_t""missing" 1>&6
1261 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1267 AUTOHEADER=autoheader
1268 echo "$ac_t""found" 1>&6
1270 AUTOHEADER="$missing_dir/missing autoheader"
1271 echo "$ac_t""missing" 1>&6
1274 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1275 echo "configure:1276: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1281 echo "$ac_t""found" 1>&6
1283 MAKEINFO="$missing_dir/missing makeinfo"
1284 echo "$ac_t""missing" 1>&6
1287 install_sh="$missing_dir/install-sh"
1288 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1290 for ac_prog in gnutar gtar tar
1292 # Extract the first word of "$ac_prog", so it can be a program name with args.
1293 set dummy $ac_prog; ac_word=$2
1294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1295 echo "configure:1296: checking for $ac_word" >&5
1296 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 if test -n "$AMTAR"; then
1300 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_AMTAR="$ac_prog"
1314 AMTAR="$ac_cv_prog_AMTAR"
1315 if test -n "$AMTAR"; then
1316 echo "$ac_t""$AMTAR" 1>&6
1318 echo "$ac_t""no" 1>&6
1321 test -n "$AMTAR" && break
1326 if test -n "$AMTAR"; then
1327 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1332 cat >> confdefs.h <<EOF
1333 #define OPENLDAP_PACKAGE "$PACKAGE"
1336 cat >> confdefs.h <<EOF
1337 #define OPENLDAP_VERSION "$VERSION"
1341 cat >> confdefs.h <<EOF
1342 #define LDAP_VENDOR_VERSION $OL_API_INC
1345 cat >> confdefs.h <<EOF
1346 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1349 cat >> confdefs.h <<EOF
1350 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1353 cat >> confdefs.h <<EOF
1354 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1358 OPENLDAP_LIBVERSION=$OL_API_LIB
1360 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1364 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1365 echo "configure:1366: checking configure arguments" >&5
1370 ldap_subdir="/openldap"
1372 # Check whether --with-subdir or --without-subdir was given.
1373 if test "${with_subdir+set}" = set; then
1374 withval="$with_subdir"
1381 ldap_subdir="$withval"
1384 ldap_subdir="/$withval"
1391 # OpenLDAP --enable-debug
1392 # Check whether --enable-debug or --disable-debug was given.
1393 if test "${enable_debug+set}" = set; then
1394 enableval="$enable_debug"
1397 for ol_val in auto yes no ; do
1398 if test "$enableval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1405 ol_enable_debug="$ol_arg"
1408 ol_enable_debug="yes"
1410 # end --enable-debug
1411 # OpenLDAP --enable-syslog
1412 # Check whether --enable-syslog or --disable-syslog was given.
1413 if test "${enable_syslog+set}" = set; then
1414 enableval="$enable_syslog"
1417 for ol_val in auto yes no ; do
1418 if test "$enableval" = "$ol_val" ; then
1422 if test "$ol_arg" = "invalid" ; then
1423 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1425 ol_enable_syslog="$ol_arg"
1428 ol_enable_syslog="auto"
1430 # end --enable-syslog
1431 # OpenLDAP --enable-dynamic
1432 # Check whether --enable-dynamic or --disable-dynamic was given.
1433 if test "${enable_dynamic+set}" = set; then
1434 enableval="$enable_dynamic"
1437 for ol_val in auto yes no ; do
1438 if test "$enableval" = "$ol_val" ; then
1442 if test "$ol_arg" = "invalid" ; then
1443 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1445 ol_enable_dynamic="$ol_arg"
1448 ol_enable_dynamic="no"
1450 # end --enable-dynamic
1451 # OpenLDAP --enable-proctitle
1452 # Check whether --enable-proctitle or --disable-proctitle was given.
1453 if test "${enable_proctitle+set}" = set; then
1454 enableval="$enable_proctitle"
1457 for ol_val in auto yes no ; do
1458 if test "$enableval" = "$ol_val" ; then
1462 if test "$ol_arg" = "invalid" ; then
1463 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1465 ol_enable_proctitle="$ol_arg"
1468 ol_enable_proctitle="yes"
1470 # end --enable-proctitle
1471 ol_enable_referrals=${ol_enable_referrals-no}
1472 ol_enable_kbind=${ol_enable_kbind-no}
1473 # OpenLDAP --enable-ipv6
1474 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1475 if test "${enable_ipv6+set}" = set; then
1476 enableval="$enable_ipv6"
1479 for ol_val in auto yes no ; do
1480 if test "$enableval" = "$ol_val" ; then
1484 if test "$ol_arg" = "invalid" ; then
1485 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1487 ol_enable_ipv6="$ol_arg"
1490 ol_enable_ipv6="auto"
1493 # OpenLDAP --enable-local
1494 # Check whether --enable-local or --disable-local was given.
1495 if test "${enable_local+set}" = set; then
1496 enableval="$enable_local"
1499 for ol_val in auto yes no ; do
1500 if test "$enableval" = "$ol_val" ; then
1504 if test "$ol_arg" = "invalid" ; then
1505 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1507 ol_enable_local="$ol_arg"
1510 ol_enable_local="auto"
1512 # end --enable-local
1513 # OpenLDAP --enable-x_compile
1514 # Check whether --enable-x_compile or --disable-x_compile was given.
1515 if test "${enable_x_compile+set}" = set; then
1516 enableval="$enable_x_compile"
1519 for ol_val in yes no ; do
1520 if test "$enableval" = "$ol_val" ; then
1524 if test "$ol_arg" = "invalid" ; then
1525 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1527 ol_enable_x_compile="$ol_arg"
1530 ol_enable_x_compile="no"
1532 # end --enable-x_compile
1535 # OpenLDAP --with-cyrus_sasl
1536 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1537 if test "${with_cyrus_sasl+set}" = set; then
1538 withval="$with_cyrus_sasl"
1541 for ol_val in auto yes no ; do
1542 if test "$withval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1549 ol_with_cyrus_sasl="$ol_arg"
1552 ol_with_cyrus_sasl="auto"
1554 # end --with-cyrus_sasl
1556 # OpenLDAP --with-fetch
1557 # Check whether --with-fetch or --without-fetch was given.
1558 if test "${with_fetch+set}" = set; then
1559 withval="$with_fetch"
1562 for ol_val in auto yes no ; do
1563 if test "$withval" = "$ol_val" ; then
1567 if test "$ol_arg" = "invalid" ; then
1568 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1570 ol_with_fetch="$ol_arg"
1573 ol_with_fetch="auto"
1577 # OpenLDAP --with-kerberos
1578 # Check whether --with-kerberos or --without-kerberos was given.
1579 if test "${with_kerberos+set}" = set; then
1580 withval="$with_kerberos"
1583 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1584 if test "$withval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1591 ol_with_kerberos="$ol_arg"
1594 ol_with_kerberos="auto"
1596 # end --with-kerberos
1598 # OpenLDAP --with-readline
1599 # Check whether --with-readline or --without-readline was given.
1600 if test "${with_readline+set}" = set; then
1601 withval="$with_readline"
1604 for ol_val in auto yes no ; do
1605 if test "$withval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1612 ol_with_readline="$ol_arg"
1615 ol_with_readline="auto"
1617 # end --with-readline
1619 # OpenLDAP --with-threads
1620 # Check whether --with-threads or --without-threads was given.
1621 if test "${with_threads+set}" = set; then
1622 withval="$with_threads"
1625 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1626 if test "$withval" = "$ol_val" ; then
1630 if test "$ol_arg" = "invalid" ; then
1631 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1633 ol_with_threads="$ol_arg"
1636 ol_with_threads="auto"
1638 # end --with-threads
1640 # OpenLDAP --with-tls
1641 # Check whether --with-tls or --without-tls was given.
1642 if test "${with_tls+set}" = set; then
1646 for ol_val in auto ssleay openssl yes no ; do
1647 if test "$withval" = "$ol_val" ; then
1651 if test "$ol_arg" = "invalid" ; then
1652 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1654 ol_with_tls="$ol_arg"
1661 # OpenLDAP --with-yielding_select
1662 # Check whether --with-yielding_select or --without-yielding_select was given.
1663 if test "${with_yielding_select+set}" = set; then
1664 withval="$with_yielding_select"
1667 for ol_val in auto yes no manual ; do
1668 if test "$withval" = "$ol_val" ; then
1672 if test "$ol_arg" = "invalid" ; then
1673 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1675 ol_with_yielding_select="$ol_arg"
1678 ol_with_yielding_select="auto"
1680 # end --with-yielding_select
1684 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1685 if test "${with_xxslapdoptions+set}" = set; then
1686 withval="$with_xxslapdoptions"
1690 # OpenLDAP --enable-slapd
1691 # Check whether --enable-slapd or --disable-slapd was given.
1692 if test "${enable_slapd+set}" = set; then
1693 enableval="$enable_slapd"
1696 for ol_val in auto yes no ; do
1697 if test "$enableval" = "$ol_val" ; then
1701 if test "$ol_arg" = "invalid" ; then
1702 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1704 ol_enable_slapd="$ol_arg"
1707 ol_enable_slapd="yes"
1709 # end --enable-slapd
1710 # OpenLDAP --enable-aci
1711 # Check whether --enable-aci or --disable-aci was given.
1712 if test "${enable_aci+set}" = set; then
1713 enableval="$enable_aci"
1716 for ol_val in auto yes no ; do
1717 if test "$enableval" = "$ol_val" ; then
1721 if test "$ol_arg" = "invalid" ; then
1722 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1724 ol_enable_aci="$ol_arg"
1730 # OpenLDAP --enable-cleartext
1731 # Check whether --enable-cleartext or --disable-cleartext was given.
1732 if test "${enable_cleartext+set}" = set; then
1733 enableval="$enable_cleartext"
1736 for ol_val in auto yes no ; do
1737 if test "$enableval" = "$ol_val" ; then
1741 if test "$ol_arg" = "invalid" ; then
1742 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1744 ol_enable_cleartext="$ol_arg"
1747 ol_enable_cleartext="yes"
1749 # end --enable-cleartext
1750 # OpenLDAP --enable-crypt
1751 # Check whether --enable-crypt or --disable-crypt was given.
1752 if test "${enable_crypt+set}" = set; then
1753 enableval="$enable_crypt"
1756 for ol_val in auto yes no ; do
1757 if test "$enableval" = "$ol_val" ; then
1761 if test "$ol_arg" = "invalid" ; then
1762 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1764 ol_enable_crypt="$ol_arg"
1767 ol_enable_crypt="no"
1769 # end --enable-crypt
1770 # OpenLDAP --enable-kpasswd
1771 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1772 if test "${enable_kpasswd+set}" = set; then
1773 enableval="$enable_kpasswd"
1776 for ol_val in auto yes no ; do
1777 if test "$enableval" = "$ol_val" ; then
1781 if test "$ol_arg" = "invalid" ; then
1782 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1784 ol_enable_kpasswd="$ol_arg"
1787 ol_enable_kpasswd="no"
1789 # end --enable-kpasswd
1790 # OpenLDAP --enable-lmpasswd
1791 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1792 if test "${enable_lmpasswd+set}" = set; then
1793 enableval="$enable_lmpasswd"
1796 for ol_val in auto yes no ; do
1797 if test "$enableval" = "$ol_val" ; then
1801 if test "$ol_arg" = "invalid" ; then
1802 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1804 ol_enable_lmpasswd="$ol_arg"
1807 ol_enable_lmpasswd="no"
1809 # end --enable-lmpasswd
1810 # OpenLDAP --enable-spasswd
1811 # Check whether --enable-spasswd or --disable-spasswd was given.
1812 if test "${enable_spasswd+set}" = set; then
1813 enableval="$enable_spasswd"
1816 for ol_val in auto yes no ; do
1817 if test "$enableval" = "$ol_val" ; then
1821 if test "$ol_arg" = "invalid" ; then
1822 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1824 ol_enable_spasswd="$ol_arg"
1827 ol_enable_spasswd="no"
1829 # end --enable-spasswd
1830 # OpenLDAP --enable-modules
1831 # Check whether --enable-modules or --disable-modules was given.
1832 if test "${enable_modules+set}" = set; then
1833 enableval="$enable_modules"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1844 ol_enable_modules="$ol_arg"
1847 ol_enable_modules="no"
1849 # end --enable-modules
1850 ol_enable_multimaster=${ol_enable_multimaster-no}
1851 # OpenLDAP --enable-phonetic
1852 # Check whether --enable-phonetic or --disable-phonetic was given.
1853 if test "${enable_phonetic+set}" = set; then
1854 enableval="$enable_phonetic"
1857 for ol_val in auto yes no ; do
1858 if test "$enableval" = "$ol_val" ; then
1862 if test "$ol_arg" = "invalid" ; then
1863 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1865 ol_enable_phonetic="$ol_arg"
1868 ol_enable_phonetic="no"
1870 # end --enable-phonetic
1871 # OpenLDAP --enable-rewrite
1872 # Check whether --enable-rewrite or --disable-rewrite was given.
1873 if test "${enable_rewrite+set}" = set; then
1874 enableval="$enable_rewrite"
1877 for ol_val in auto yes no ; do
1878 if test "$enableval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1885 ol_enable_rewrite="$ol_arg"
1888 ol_enable_rewrite="no"
1890 # end --enable-rewrite
1891 # OpenLDAP --enable-rlookups
1892 # Check whether --enable-rlookups or --disable-rlookups was given.
1893 if test "${enable_rlookups+set}" = set; then
1894 enableval="$enable_rlookups"
1897 for ol_val in auto yes no ; do
1898 if test "$enableval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1905 ol_enable_rlookups="$ol_arg"
1908 ol_enable_rlookups="no"
1910 # end --enable-rlookups
1911 # OpenLDAP --enable-slp
1912 # Check whether --enable-slp or --disable-slp was given.
1913 if test "${enable_slp+set}" = set; then
1914 enableval="$enable_slp"
1917 for ol_val in auto yes no ; do
1918 if test "$enableval" = "$ol_val" ; then
1922 if test "$ol_arg" = "invalid" ; then
1923 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1925 ol_enable_slp="$ol_arg"
1931 # OpenLDAP --enable-wrappers
1932 # Check whether --enable-wrappers or --disable-wrappers was given.
1933 if test "${enable_wrappers+set}" = set; then
1934 enableval="$enable_wrappers"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1945 ol_enable_wrappers="$ol_arg"
1948 ol_enable_wrappers="no"
1950 # end --enable-wrappers
1952 # OpenLDAP --enable-bdb
1953 # Check whether --enable-bdb or --disable-bdb was given.
1954 if test "${enable_bdb+set}" = set; then
1955 enableval="$enable_bdb"
1958 for ol_val in auto yes no ; do
1959 if test "$enableval" = "$ol_val" ; then
1963 if test "$ol_arg" = "invalid" ; then
1964 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1966 ol_enable_bdb="$ol_arg"
1972 # OpenLDAP --with-bdb_module
1973 # Check whether --with-bdb_module or --without-bdb_module was given.
1974 if test "${with_bdb_module+set}" = set; then
1975 withval="$with_bdb_module"
1978 for ol_val in static dynamic ; do
1979 if test "$withval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1986 ol_with_bdb_module="$ol_arg"
1989 ol_with_bdb_module="static"
1991 # end --with-bdb_module
1993 # OpenLDAP --enable-dnssrv
1994 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1995 if test "${enable_dnssrv+set}" = set; then
1996 enableval="$enable_dnssrv"
1999 for ol_val in auto yes no ; do
2000 if test "$enableval" = "$ol_val" ; then
2004 if test "$ol_arg" = "invalid" ; then
2005 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2007 ol_enable_dnssrv="$ol_arg"
2010 ol_enable_dnssrv="no"
2012 # end --enable-dnssrv
2013 # OpenLDAP --with-dnssrv_module
2014 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2015 if test "${with_dnssrv_module+set}" = set; then
2016 withval="$with_dnssrv_module"
2019 for ol_val in static dynamic ; do
2020 if test "$withval" = "$ol_val" ; then
2024 if test "$ol_arg" = "invalid" ; then
2025 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2027 ol_with_dnssrv_module="$ol_arg"
2030 ol_with_dnssrv_module="static"
2032 # end --with-dnssrv_module
2034 # OpenLDAP --enable-ldap
2035 # Check whether --enable-ldap or --disable-ldap was given.
2036 if test "${enable_ldap+set}" = set; then
2037 enableval="$enable_ldap"
2040 for ol_val in auto yes no ; do
2041 if test "$enableval" = "$ol_val" ; then
2045 if test "$ol_arg" = "invalid" ; then
2046 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2048 ol_enable_ldap="$ol_arg"
2054 # OpenLDAP --with-ldap_module
2055 # Check whether --with-ldap_module or --without-ldap_module was given.
2056 if test "${with_ldap_module+set}" = set; then
2057 withval="$with_ldap_module"
2060 for ol_val in static dynamic ; do
2061 if test "$withval" = "$ol_val" ; then
2065 if test "$ol_arg" = "invalid" ; then
2066 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2068 ol_with_ldap_module="$ol_arg"
2071 ol_with_ldap_module="static"
2073 # end --with-ldap_module
2075 # OpenLDAP --enable-ldbm
2076 # Check whether --enable-ldbm or --disable-ldbm was given.
2077 if test "${enable_ldbm+set}" = set; then
2078 enableval="$enable_ldbm"
2081 for ol_val in auto yes no ; do
2082 if test "$enableval" = "$ol_val" ; then
2086 if test "$ol_arg" = "invalid" ; then
2087 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2089 ol_enable_ldbm="$ol_arg"
2095 # OpenLDAP --with-ldbm_api
2096 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2097 if test "${with_ldbm_api+set}" = set; then
2098 withval="$with_ldbm_api"
2101 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2102 if test "$withval" = "$ol_val" ; then
2106 if test "$ol_arg" = "invalid" ; then
2107 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2109 ol_with_ldbm_api="$ol_arg"
2112 ol_with_ldbm_api="auto"
2114 # end --with-ldbm_api
2116 # OpenLDAP --with-ldbm_module
2117 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2118 if test "${with_ldbm_module+set}" = set; then
2119 withval="$with_ldbm_module"
2122 for ol_val in static dynamic ; do
2123 if test "$withval" = "$ol_val" ; then
2127 if test "$ol_arg" = "invalid" ; then
2128 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2130 ol_with_ldbm_module="$ol_arg"
2133 ol_with_ldbm_module="static"
2135 # end --with-ldbm_module
2137 # OpenLDAP --with-ldbm_type
2138 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2139 if test "${with_ldbm_type+set}" = set; then
2140 withval="$with_ldbm_type"
2143 for ol_val in auto btree hash ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2151 ol_with_ldbm_type="$ol_arg"
2154 ol_with_ldbm_type="auto"
2156 # end --with-ldbm_type
2158 # OpenLDAP --enable-meta
2159 # Check whether --enable-meta or --disable-meta was given.
2160 if test "${enable_meta+set}" = set; then
2161 enableval="$enable_meta"
2164 for ol_val in auto yes no ; do
2165 if test "$enableval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2172 ol_enable_meta="$ol_arg"
2178 # OpenLDAP --with-meta_module
2179 # Check whether --with-meta_module or --without-meta_module was given.
2180 if test "${with_meta_module+set}" = set; then
2181 withval="$with_meta_module"
2184 for ol_val in static dynamic ; do
2185 if test "$withval" = "$ol_val" ; then
2189 if test "$ol_arg" = "invalid" ; then
2190 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2192 ol_with_meta_module="$ol_arg"
2195 ol_with_meta_module="static"
2197 # end --with-meta_module
2199 # OpenLDAP --enable-monitor
2200 # Check whether --enable-monitor or --disable-monitor was given.
2201 if test "${enable_monitor+set}" = set; then
2202 enableval="$enable_monitor"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2213 ol_enable_monitor="$ol_arg"
2216 ol_enable_monitor="no"
2218 # end --enable-monitor
2219 # OpenLDAP --with-monitor_module
2220 # Check whether --with-monitor_module or --without-monitor_module was given.
2221 if test "${with_monitor_module+set}" = set; then
2222 withval="$with_monitor_module"
2225 for ol_val in static dynamic ; do
2226 if test "$withval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2233 ol_with_monitor_module="$ol_arg"
2236 ol_with_monitor_module="static"
2238 # end --with-monitor_module
2240 # OpenLDAP --enable-null
2241 # Check whether --enable-null or --disable-null was given.
2242 if test "${enable_null+set}" = set; then
2243 enableval="$enable_null"
2246 for ol_val in auto yes no ; do
2247 if test "$enableval" = "$ol_val" ; then
2251 if test "$ol_arg" = "invalid" ; then
2252 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2254 ol_enable_null="$ol_arg"
2260 # OpenLDAP --with-null_module
2261 # Check whether --with-null_module or --without-null_module was given.
2262 if test "${with_null_module+set}" = set; then
2263 withval="$with_null_module"
2266 for ol_val in static dynamic ; do
2267 if test "$withval" = "$ol_val" ; then
2271 if test "$ol_arg" = "invalid" ; then
2272 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2274 ol_with_null_module="$ol_arg"
2277 ol_with_null_module="static"
2279 # end --with-null_module
2281 # OpenLDAP --enable-passwd
2282 # Check whether --enable-passwd or --disable-passwd was given.
2283 if test "${enable_passwd+set}" = set; then
2284 enableval="$enable_passwd"
2287 for ol_val in auto yes no ; do
2288 if test "$enableval" = "$ol_val" ; then
2292 if test "$ol_arg" = "invalid" ; then
2293 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2295 ol_enable_passwd="$ol_arg"
2298 ol_enable_passwd="no"
2300 # end --enable-passwd
2301 # OpenLDAP --with-passwd_module
2302 # Check whether --with-passwd_module or --without-passwd_module was given.
2303 if test "${with_passwd_module+set}" = set; then
2304 withval="$with_passwd_module"
2307 for ol_val in static dynamic ; do
2308 if test "$withval" = "$ol_val" ; then
2312 if test "$ol_arg" = "invalid" ; then
2313 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2315 ol_with_passwd_module="$ol_arg"
2318 ol_with_passwd_module="static"
2320 # end --with-passwd_module
2322 # OpenLDAP --enable-perl
2323 # Check whether --enable-perl or --disable-perl was given.
2324 if test "${enable_perl+set}" = set; then
2325 enableval="$enable_perl"
2328 for ol_val in auto yes no ; do
2329 if test "$enableval" = "$ol_val" ; then
2333 if test "$ol_arg" = "invalid" ; then
2334 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2336 ol_enable_perl="$ol_arg"
2342 # OpenLDAP --with-perl_module
2343 # Check whether --with-perl_module or --without-perl_module was given.
2344 if test "${with_perl_module+set}" = set; then
2345 withval="$with_perl_module"
2348 for ol_val in static dynamic ; do
2349 if test "$withval" = "$ol_val" ; then
2353 if test "$ol_arg" = "invalid" ; then
2354 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2356 ol_with_perl_module="$ol_arg"
2359 ol_with_perl_module="static"
2361 # end --with-perl_module
2363 # OpenLDAP --enable-shell
2364 # Check whether --enable-shell or --disable-shell was given.
2365 if test "${enable_shell+set}" = set; then
2366 enableval="$enable_shell"
2369 for ol_val in auto yes no ; do
2370 if test "$enableval" = "$ol_val" ; then
2374 if test "$ol_arg" = "invalid" ; then
2375 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2377 ol_enable_shell="$ol_arg"
2380 ol_enable_shell="no"
2382 # end --enable-shell
2383 # OpenLDAP --with-shell_module
2384 # Check whether --with-shell_module or --without-shell_module was given.
2385 if test "${with_shell_module+set}" = set; then
2386 withval="$with_shell_module"
2389 for ol_val in static dynamic ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2397 ol_with_shell_module="$ol_arg"
2400 ol_with_shell_module="static"
2402 # end --with-shell_module
2404 # OpenLDAP --enable-sql
2405 # Check whether --enable-sql or --disable-sql was given.
2406 if test "${enable_sql+set}" = set; then
2407 enableval="$enable_sql"
2410 for ol_val in auto yes no ; do
2411 if test "$enableval" = "$ol_val" ; then
2415 if test "$ol_arg" = "invalid" ; then
2416 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2418 ol_enable_sql="$ol_arg"
2424 # OpenLDAP --with-sql_module
2425 # Check whether --with-sql_module or --without-sql_module was given.
2426 if test "${with_sql_module+set}" = set; then
2427 withval="$with_sql_module"
2430 for ol_val in static dynamic ; do
2431 if test "$withval" = "$ol_val" ; then
2435 if test "$ol_arg" = "invalid" ; then
2436 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2438 ol_with_sql_module="$ol_arg"
2441 ol_with_sql_module="static"
2443 # end --with-sql_module
2446 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2447 if test "${with_xxslurpdoptions+set}" = set; then
2448 withval="$with_xxslurpdoptions"
2452 # OpenLDAP --enable-slurpd
2453 # Check whether --enable-slurpd or --disable-slurpd was given.
2454 if test "${enable_slurpd+set}" = set; then
2455 enableval="$enable_slurpd"
2458 for ol_val in auto yes no ; do
2459 if test "$enableval" = "$ol_val" ; then
2463 if test "$ol_arg" = "invalid" ; then
2464 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2466 ol_enable_slurpd="$ol_arg"
2469 ol_enable_slurpd="auto"
2471 # end --enable-slurpd
2473 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2474 if test "${with_xxliboptions+set}" = set; then
2475 withval="$with_xxliboptions"
2479 # Check whether --enable-static or --disable-static was given.
2480 if test "${enable_static+set}" = set; then
2481 enableval="$enable_static"
2482 p=${PACKAGE-default}
2484 yes) enable_static=yes ;;
2485 no) enable_static=no ;;
2488 # Look at the argument we got. We use all the common list separators.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2490 for pkg in $enableval; do
2491 if test "X$pkg" = "X$p"; then
2502 # Check whether --enable-shared or --disable-shared was given.
2503 if test "${enable_shared+set}" = set; then
2504 enableval="$enable_shared"
2505 p=${PACKAGE-default}
2507 yes) enable_shared=yes ;;
2508 no) enable_shared=no ;;
2511 # Look at the argument we got. We use all the common list separators.
2512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2513 for pkg in $enableval; do
2514 if test "X$pkg" = "X$p"; then
2528 if test $ol_enable_slapd = no ; then
2529 if test $ol_enable_bdb = yes ; then
2530 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2532 if test $ol_enable_dnssrv = yes ; then
2533 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2535 if test $ol_enable_ldap = yes ; then
2536 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2538 if test $ol_enable_ldbm = yes ; then
2539 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2541 if test $ol_enable_meta = yes ; then
2542 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2544 if test $ol_enable_monitor = yes ; then
2545 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2547 if test $ol_enable_null = yes ; then
2548 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2550 if test $ol_enable_passwd = yes ; then
2551 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2553 if test $ol_enable_perl = yes ; then
2554 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2556 if test $ol_enable_shell = yes ; then
2557 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2559 if test $ol_enable_sql = yes ; then
2560 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2562 if test $ol_enable_modules = yes ; then
2563 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2565 if test $ol_enable_multimaster = yes ; then
2566 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2568 if test $ol_enable_wrappers = yes ; then
2569 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2571 if test $ol_enable_phonetic = yes ; then
2572 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2574 if test $ol_enable_rlookups = yes ; then
2575 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2577 if test $ol_enable_aci = yes ; then
2578 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2580 if test $ol_with_ldbm_api != auto ; then
2581 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2583 if test $ol_with_ldbm_type != auto ; then
2584 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2586 if test $ol_with_bdb_module != static ; then
2587 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2589 if test $ol_with_dnssrv_module != static ; then
2590 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2592 if test $ol_with_ldap_module != static ; then
2593 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2595 if test $ol_with_ldbm_module != static ; then
2596 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2598 if test $ol_with_meta_module != static ; then
2599 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2601 if test $ol_with_monitor_module != static ; then
2602 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2604 if test $ol_with_null_module != static ; then
2605 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2607 if test $ol_with_passwd_module != static ; then
2608 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2610 if test $ol_with_perl_module != static ; then
2611 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2613 if test $ol_with_shell_module != static ; then
2614 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2616 if test $ol_with_sql_module != static ; then
2617 echo "configure: warning: slapd disabled, ignoring --with-sql-module 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
2626 # force settings to no
2632 ol_enable_monitor=no
2639 ol_enable_modules=no
2640 ol_enable_multimaster=no
2641 ol_enable_phonetic=no
2642 ol_enable_rlookups=no
2644 ol_enable_wrappers=no
2645 ol_enable_dynamic=no
2648 ol_with_ldbm_type=no
2650 ol_with_bdb_module=static
2651 ol_with_dnssrv_module=static
2652 ol_with_ldap_module=static
2653 ol_with_ldbm_module=static
2654 ol_with_meta_module=static
2655 ol_with_monitor_module=static
2656 ol_with_null_module=static
2657 ol_with_passwd_module=static
2658 ol_with_perl_module=static
2659 ol_with_shell_module=static
2660 ol_with_sql_module=static
2664 ol_enable_rewrite=no
2666 elif test $ol_enable_ldbm = no ; then
2668 if test $ol_with_ldbm_api != auto ; then
2669 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2672 if test $ol_with_ldbm_type != auto ; then
2673 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2676 if test $ol_with_ldbm_module != static ; then
2677 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2680 if test $ol_enable_modules != yes -a \
2681 $ol_enable_bdb = no -a \
2682 $ol_enable_dnssrv = no -a \
2683 $ol_enable_ldap = no -a \
2684 $ol_enable_meta = no -a \
2685 $ol_enable_monitor = no -a \
2686 $ol_enable_null = no -a \
2687 $ol_enable_passwd = no -a \
2688 $ol_enable_perl = no -a \
2689 $ol_enable_shell = no -a \
2690 $ol_enable_sql = no ; then
2692 if test $ol_enable_slapd = yes ; then
2693 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2695 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2701 ol_with_ldbm_type=no
2702 ol_with_ldbm_module=static
2704 if test $ol_enable_bdb != no ; then
2705 ol_with_ldbm_api=berkeley
2709 if test $ol_with_ldbm_api = gdbm -a \
2710 $ol_with_ldbm_type = btree ; then
2711 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2713 if test $ol_with_ldbm_api = mdbm -a \
2714 $ol_with_ldbm_type = btree ; then
2715 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2717 if test $ol_with_ldbm_api = ndbm -a \
2718 $ol_with_ldbm_type = btree ; then
2719 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2722 if test $ol_enable_bdb = yes ; then
2723 if test $ol_with_ldbm_api = auto ; then
2724 ol_with_ldbm_api=berkeley
2725 elif test $ol_with_ldbm_api != berkeley ; then
2726 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2729 elif test $ol_enable_bdb = auto ; then
2730 if test $ol_with_ldbm_api != berkeley \
2731 -o $ol_with_ldbm_api != auto ; then
2732 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2738 if test $ol_enable_slurpd = yes ; then
2739 if test $ol_with_threads = no ; then
2740 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2744 if test $ol_enable_lmpasswd = yes ; then
2745 if test $ol_with_tls = no ; then
2746 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2750 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2751 if test $ol_with_kerberos = no ; then
2752 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2753 elif test $ol_with_kerberos = auto ; then
2754 ol_with_kerberos=yes
2757 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2758 if test $ol_with_kerberos = auto ; then
2760 elif test $ol_with_kerberos != no ; then
2761 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2766 if test $ol_enable_spasswd = yes ; then
2767 if test $ol_with_cyrus_sasl = no ; then
2768 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2770 ol_with_cyrus_sasl=yes
2773 echo "$ac_t""done" 1>&6
2801 BUILD_BDB_DYNAMIC=static
2802 BUILD_DNSSRV_DYNAMIC=static
2803 BUILD_LDAP_DYNAMIC=static
2804 BUILD_LDBM_DYNAMIC=static
2805 BUILD_META_DYNAMIC=static
2806 BUILD_MONITOR_DYNAMIC=static
2807 BUILD_NULL_DYNAMIC=static
2808 BUILD_PASSWD_DYNAMIC=static
2809 BUILD_PERL_DYNAMIC=static
2810 BUILD_SHELL_DYNAMIC=static
2811 BUILD_SQL_DYNAMIC=static
2813 SLAPD_MODULES_LDFLAGS=
2814 SLAPD_MODULES_CPPFLAGS=
2816 SLAPD_STATIC_BACKENDS=
2817 SLAPD_DYNAMIC_BACKENDS=
2839 # Find a good install program. We prefer a C program (faster),
2840 # so one script is as good as another. But avoid the broken or
2841 # incompatible versions:
2842 # SysV /etc/install, /usr/sbin/install
2843 # SunOS /usr/etc/install
2844 # IRIX /sbin/install
2846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2849 # ./install, which can be erroneously created by make from ./install.sh.
2850 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2851 echo "configure:2852: checking for a BSD compatible install" >&5
2852 if test -z "$INSTALL"; then
2853 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2857 for ac_dir in $PATH; do
2858 # Account for people who put trailing slashes in PATH elements.
2860 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2865 for ac_prog in ginstall scoinst install; do
2866 if test -f $ac_dir/$ac_prog; then
2867 if test $ac_prog = install &&
2868 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2869 # AIX install. It has an incompatible calling convention.
2871 elif test $ac_prog = install &&
2872 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2873 # program-specific install script used by HP pwplus--don't use.
2876 ac_cv_path_install="$ac_dir/$ac_prog -c"
2887 if test "${ac_cv_path_install+set}" = set; then
2888 INSTALL="$ac_cv_path_install"
2890 # As a last resort, use the slow shell script. We don't cache a
2891 # path for INSTALL within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the path is relative.
2894 INSTALL="$ac_install_sh"
2897 echo "$ac_t""$INSTALL" 1>&6
2899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2900 # It thinks the first close brace ends the variable substitution.
2901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2908 cat >> confdefs.h <<\EOF
2909 #define HAVE_MKVERSION 1
2917 *-*-aix*) if test -z "$CC" ; then
2918 case "$ol_with_threads" in
2919 auto | yes | posix) ol_aix_threads=yes ;;
2925 if test $ol_aix_threads = yes ; then
2926 if test -z "${CC}" ; then
2927 for ac_prog in cc_r xlc_r cc
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2932 echo "configure:2933: checking for $ac_word" >&5
2933 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2941 for ac_dir in $ac_dummy; do
2942 test -z "$ac_dir" && ac_dir=.
2943 if test -f $ac_dir/$ac_word; then
2944 ac_cv_prog_CC="$ac_prog"
2952 if test -n "$CC"; then
2953 echo "$ac_t""$CC" 1>&6
2955 echo "$ac_t""no" 1>&6
2958 test -n "$CC" && break
2962 if test "$CC" = cc ; then
2963 if test $ol_with_threads != auto ; then
2964 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2966 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2972 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2973 ol_with_threads=posix
2974 ol_cv_pthread_create=yes
2978 if test -z "${CC}"; then
2979 for ac_prog in cc gcc
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2984 echo "configure:2985: checking for $ac_word" >&5
2985 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2993 for ac_dir in $ac_dummy; do
2994 test -z "$ac_dir" && ac_dir=.
2995 if test -f $ac_dir/$ac_word; then
2996 ac_cv_prog_CC="$ac_prog"
3004 if test -n "$CC"; then
3005 echo "$ac_t""$CC" 1>&6
3007 echo "$ac_t""no" 1>&6
3010 test -n "$CC" && break
3012 test -n "$CC" || CC="missing"
3015 if test "${CC}" = "missing" ; then
3016 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3020 if test -z "${AR}"; then
3021 for ac_prog in ar gar
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3026 echo "configure:3027: checking for $ac_word" >&5
3027 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 if test -n "$AR"; then
3031 ac_cv_prog_AR="$AR" # Let the user override the test.
3033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3035 for ac_dir in $ac_dummy; do
3036 test -z "$ac_dir" && ac_dir=.
3037 if test -f $ac_dir/$ac_word; then
3038 ac_cv_prog_AR="$ac_prog"
3046 if test -n "$AR"; then
3047 echo "$ac_t""$AR" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 test -n "$AR" && break
3054 test -n "$AR" || AR="missing"
3057 if test "${AR}" = "missing" ; then
3058 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3064 # Find the correct PATH separator. Usually this is `:', but
3065 # DJGPP uses `;' like DOS.
3066 if test "X${PATH_SEPARATOR+set}" != Xset; then
3067 UNAME=${UNAME-`uname 2>/dev/null`}
3069 *-DOS) lt_cv_sys_path_separator=';' ;;
3070 *) lt_cv_sys_path_separator=':' ;;
3072 PATH_SEPARATOR=$lt_cv_sys_path_separator
3075 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3076 echo "configure:3077: checking for Cygwin environment" >&5
3077 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3087 #define __CYGWIN__ __CYGWIN32__
3092 if { (eval echo configure:3093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3104 echo "$ac_t""$ac_cv_cygwin" 1>&6
3106 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3107 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3108 echo "configure:3109: checking for mingw32 environment" >&5
3109 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3120 if { (eval echo configure:3121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3124 echo "configure: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3132 echo "$ac_t""$ac_cv_mingw32" 1>&6
3134 test "$ac_cv_mingw32" = yes && MINGW32=yes
3135 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3136 echo "configure:3137: checking for EMX OS/2 environment" >&5
3137 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3160 echo "$ac_t""$ac_cv_emxos2" 1>&6
3162 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3163 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3164 echo "configure:3165: checking how to run the C preprocessor" >&5
3165 # On Suns, sometimes $CPP names a directory.
3166 if test -n "$CPP" && test -d "$CPP"; then
3169 if test -z "$CPP"; then
3170 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3173 # This must be in double quotes, not single quotes, because CPP may get
3174 # substituted into the Makefile and "${CC-cc}" will confuse make.
3176 # On the NeXT, cc -E runs the code through the compiler's parser,
3177 # not just through cpp.
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3185 { (eval echo configure:3186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3187 if test -z "$ac_err"; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3194 CPP="${CC-cc} -E -traditional-cpp"
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 CPP="${CC-cc} -nologo -E"
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3219 { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3221 if test -z "$ac_err"; then
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3235 ac_cv_prog_CPP="$CPP"
3237 CPP="$ac_cv_prog_CPP"
3239 ac_cv_prog_CPP="$CPP"
3241 echo "$ac_t""$CPP" 1>&6
3243 # Check whether --enable-fast-install or --disable-fast-install was given.
3244 if test "${enable_fast_install+set}" = set; then
3245 enableval="$enable_fast_install"
3246 p=${PACKAGE-default}
3248 yes) enable_fast_install=yes ;;
3249 no) enable_fast_install=no ;;
3251 enable_fast_install=no
3252 # Look at the argument we got. We use all the common list separators.
3253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3254 for pkg in $enableval; do
3255 if test "X$pkg" = "X$p"; then
3256 enable_fast_install=yes
3263 enable_fast_install=yes
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3269 echo "configure:3270: checking for $ac_word" >&5
3270 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3278 for ac_dir in $ac_dummy; do
3279 test -z "$ac_dir" && ac_dir=.
3280 if test -f $ac_dir/$ac_word; then
3289 if test -n "$CC"; then
3290 echo "$ac_t""$CC" 1>&6
3292 echo "$ac_t""no" 1>&6
3295 if test -z "$CC"; then
3296 # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3299 echo "configure:3300: checking for $ac_word" >&5
3300 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3309 for ac_dir in $ac_dummy; do
3310 test -z "$ac_dir" && ac_dir=.
3311 if test -f $ac_dir/$ac_word; then
3312 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3313 ac_prog_rejected=yes
3321 if test $ac_prog_rejected = yes; then
3322 # We found a bogon in the path, so make sure we never use it.
3323 set dummy $ac_cv_prog_CC
3325 if test $# -gt 0; then
3326 # We chose a different compiler from the bogus one.
3327 # However, it has the same basename, so the bogon will be chosen
3328 # first if we set CC to just the basename; use the full file name.
3330 set dummy "$ac_dir/$ac_word" "$@"
3338 if test -n "$CC"; then
3339 echo "$ac_t""$CC" 1>&6
3341 echo "$ac_t""no" 1>&6
3344 if test -z "$CC"; then
3345 case "`uname -s`" in
3346 *win32* | *WIN32* | *CYGWIN*)
3347 # Extract the first word of "cl", so it can be a program name with args.
3348 set dummy cl; ac_word=$2
3349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_word" >&5
3351 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3359 for ac_dir in $ac_dummy; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f $ac_dir/$ac_word; then
3370 if test -n "$CC"; then
3371 echo "$ac_t""$CC" 1>&6
3373 echo "$ac_t""no" 1>&6
3378 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3381 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3385 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3388 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3389 cross_compiling=$ac_cv_prog_cc_cross
3391 cat > conftest.$ac_ext << EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3398 if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 ac_cv_prog_cc_works=yes
3400 # If we can't run a trivial program, we are probably using a cross compiler.
3401 if (./conftest; exit) 2>/dev/null; then
3402 ac_cv_prog_cc_cross=no
3404 ac_cv_prog_cc_cross=yes
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3409 ac_cv_prog_cc_works=no
3413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3416 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3417 cross_compiling=$ac_cv_prog_cc_cross
3419 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3420 if test $ac_cv_prog_cc_works = no; then
3421 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3423 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3424 echo "configure:3425: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3425 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3426 cross_compiling=$ac_cv_prog_cc_cross
3428 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3429 echo "configure:3430: checking whether we are using GNU C" >&5
3430 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.c <<EOF
3438 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3445 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3447 if test $ac_cv_prog_gcc = yes; then
3453 ac_test_CFLAGS="${CFLAGS+set}"
3454 ac_save_CFLAGS="$CFLAGS"
3456 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3457 echo "configure:3458: checking whether ${CC-cc} accepts -g" >&5
3458 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 echo 'void f(){}' > conftest.c
3462 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3471 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3472 if test "$ac_test_CFLAGS" = set; then
3473 CFLAGS="$ac_save_CFLAGS"
3474 elif test $ac_cv_prog_cc_g = yes; then
3475 if test "$GCC" = yes; then
3481 if test "$GCC" = yes; then
3488 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3489 if test "${with_gnu_ld+set}" = set; then
3490 withval="$with_gnu_ld"
3491 test "$withval" = no || with_gnu_ld=yes
3497 if test "$GCC" = yes; then
3498 # Check if gcc -print-prog-name=ld gives a path.
3499 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3500 echo "configure:3501: checking for ld used by GCC" >&5
3503 # gcc leaves a trailing carriage return which upsets mingw
3504 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3506 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3509 # Accept absolute paths.
3510 [\\/]* | [A-Za-z]:[\\/]*)
3511 re_direlt='/[^/][^/]*/\.\./'
3512 # Canonicalize the path of ld
3513 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3514 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3515 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3517 test -z "$LD" && LD="$ac_prog"
3520 # If it fails, then pretend we aren't using GCC.
3524 # If it is relative, then search for the first ld in PATH.
3528 elif test "$with_gnu_ld" = yes; then
3529 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3530 echo "configure:3531: checking for GNU ld" >&5
3532 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3533 echo "configure:3534: checking for non-GNU ld" >&5
3535 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 if test -z "$LD"; then
3539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3540 for ac_dir in $PATH; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3543 lt_cv_path_LD="$ac_dir/$ac_prog"
3544 # Check to see if the program is GNU ld. I'd rather use --version,
3545 # but apparently some GNU ld's only accept -v.
3546 # Break only if it was the GNU/non-GNU ld that we prefer.
3547 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3548 test "$with_gnu_ld" != no && break
3550 test "$with_gnu_ld" != yes && break
3556 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3561 if test -n "$LD"; then
3562 echo "$ac_t""$LD" 1>&6
3564 echo "$ac_t""no" 1>&6
3566 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3567 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3568 echo "configure:3569: checking if the linker ($LD) is GNU ld" >&5
3569 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3573 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3574 lt_cv_prog_gnu_ld=yes
3576 lt_cv_prog_gnu_ld=no
3580 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3581 with_gnu_ld=$lt_cv_prog_gnu_ld
3584 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $LD option to reload object files" >&5
3586 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 lt_cv_ld_reload_flag='-r'
3592 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3593 reload_flag=$lt_cv_ld_reload_flag
3594 test -n "$reload_flag" && reload_flag=" $reload_flag"
3596 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3597 echo "configure:3598: checking for BSD-compatible nm" >&5
3598 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 if test -n "$NM"; then
3602 # Let the user override the test.
3605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3606 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3607 test -z "$ac_dir" && ac_dir=.
3608 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3609 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3610 # Check to see if the nm accepts a BSD-compat flag.
3611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3612 # nm: unknown option "B" ignored
3613 # Tru64's nm complains that /dev/null is an invalid object file
3614 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3615 lt_cv_path_NM="$tmp_nm -B"
3617 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3618 lt_cv_path_NM="$tmp_nm -p"
3621 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3622 continue # so that we can try to find one that supports BSD flags
3627 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3632 echo "$ac_t""$NM" 1>&6
3634 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3635 echo "configure:3636: checking for a sed that does not truncate output" >&5
3636 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 # Loop through the user's path and test for sed and gsed.
3640 # Then use that list of sed's as ones to test for truncation.
3641 as_executable_p="test -f"
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_prog in sed gsed; do
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3650 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3656 # Create a temporary directory, and hook for its removal unless debugging.
3659 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3660 trap '{ (exit 1); exit 1; }' 1 2 13 15
3663 # Create a (secure) tmp directory for tmp files.
3666 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3667 test -n "$tmp" && test -d "$tmp"
3670 tmp=$TMPDIR/sed$$-$RANDOM
3671 (umask 077 && mkdir $tmp)
3674 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3675 { (exit 1); exit 1; }
3679 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3680 # along with /bin/sed that truncates output.
3681 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3682 test ! -f ${_sed} && break
3683 cat /dev/null > "$tmp/sed.in"
3685 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3686 # Check for GNU sed and select it if it is found.
3687 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3688 lt_cv_path_SED=${_sed}
3692 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3693 mv "$tmp/sed.tmp" "$tmp/sed.in"
3694 cp "$tmp/sed.in" "$tmp/sed.nl"
3695 echo >>"$tmp/sed.nl"
3696 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3697 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3698 # 40000 chars as input seems more than enough
3699 test $_count -gt 10 && break
3700 _count=`expr $_count + 1`
3701 if test $_count -gt $_max; then
3703 lt_cv_path_SED=$_sed
3711 if test "X$SED" != "X"; then
3716 echo "$ac_t""$SED" 1>&6
3718 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3719 echo "configure:3720: checking whether ln -s works" >&5
3720 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3724 if ln -s X conftestdata 2>/dev/null
3727 ac_cv_prog_LN_S="ln -s"
3732 LN_S="$ac_cv_prog_LN_S"
3733 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3734 echo "$ac_t""yes" 1>&6
3736 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3740 echo "configure:3741: checking how to recognise dependent libraries" >&5
3741 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 lt_cv_file_magic_cmd='$MAGIC_CMD'
3745 lt_cv_file_magic_test_file=
3746 lt_cv_deplibs_check_method='unknown'
3747 # Need to set the preceding variable on all platforms that support
3748 # interlibrary dependencies.
3749 # 'none' -- dependencies not supported.
3750 # `unknown' -- same as none, but documents that we really don't know.
3751 # 'pass_all' -- all dependencies passed with no checks.
3752 # 'test_compile' -- check by making test program.
3753 # 'file_magic [[regex]]' -- check by looking for files in library path
3754 # which responds to the $file_magic_cmd with a given egrep regex.
3755 # If you have `file' or equivalent on your system and you're not sure
3756 # whether `pass_all' will *always* work, you probably want this one.
3760 lt_cv_deplibs_check_method=pass_all
3764 lt_cv_deplibs_check_method=pass_all
3768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3769 lt_cv_file_magic_cmd='/usr/bin/file -L'
3770 lt_cv_file_magic_test_file=/shlib/libc.so
3773 cygwin* | mingw* | pw32*)
3774 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3775 lt_cv_file_magic_cmd='$OBJDUMP -f'
3778 darwin* | rhapsody*)
3779 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3780 lt_cv_file_magic_cmd='/usr/bin/file -L'
3782 rhapsody* | darwin1.[012])
3783 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3786 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3792 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795 # Not sure whether the presence of OpenBSD here was a mistake.
3796 # Let's accept both of them until this is cleared up.
3797 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3798 lt_cv_file_magic_cmd=/usr/bin/file
3799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3803 lt_cv_deplibs_check_method=pass_all
3808 lt_cv_deplibs_check_method=pass_all
3812 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3813 lt_cv_file_magic_cmd=/usr/bin/file
3814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3817 irix5* | irix6* | nonstopux*)
3819 irix5* | nonstopux*)
3820 # this will be overridden with pass_all, but let us keep it just in case
3821 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3825 *-32|*"-32 ") libmagic=32-bit;;
3826 *-n32|*"-n32 ") libmagic=N32;;
3827 *-64|*"-64 ") libmagic=64-bit;;
3828 *) libmagic=never-match;;
3830 # this will be overridden with pass_all, but let us keep it just in case
3831 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3834 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3835 lt_cv_deplibs_check_method=pass_all
3838 # This must be Linux ELF.
3841 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3842 lt_cv_deplibs_check_method=pass_all ;;
3844 # glibc up to 2.1.1 does not perform some relocations on ARM
3845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3847 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3851 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3852 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3854 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3860 lt_cv_file_magic_cmd=/usr/bin/file
3861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3865 lt_cv_file_magic_cmd=/usr/bin/file
3866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3870 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3874 osf3* | osf4* | osf5*)
3875 # this will be overridden with pass_all, but let us keep it just in case
3876 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3877 lt_cv_file_magic_test_file=/shlib/libc.so
3878 lt_cv_deplibs_check_method=pass_all
3882 lt_cv_deplibs_check_method=pass_all
3886 lt_cv_deplibs_check_method=pass_all
3887 lt_cv_file_magic_test_file=/lib/libc.so
3890 sysv5uw[78]* | sysv4*uw2*)
3891 lt_cv_deplibs_check_method=pass_all
3894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3895 case $host_vendor in
3897 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]'
3898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3901 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_file_magic_cmd='/bin/file'
3905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3908 lt_cv_file_magic_cmd='/bin/file'
3909 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3910 lt_cv_file_magic_test_file=/lib/libc.so
3913 lt_cv_deplibs_check_method=pass_all
3921 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3922 file_magic_cmd=$lt_cv_file_magic_cmd
3923 deplibs_check_method=$lt_cv_deplibs_check_method
3925 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3926 echo "configure:3927: checking for object suffix" >&5
3927 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3928 echo $ac_n "(cached) $ac_c" 1>&6
3931 echo 'int i = 1;' > conftest.$ac_ext
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3933 for ac_file in conftest.*; do
3936 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3940 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3945 echo "$ac_t""$ac_cv_objext" 1>&6
3946 OBJEXT=$ac_cv_objext
3947 ac_objext=$ac_cv_objext
3952 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3953 echo "configure:3954: checking for executable suffix" >&5
3954 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3961 echo 'int main () { return 0; }' > conftest.$ac_ext
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3964 for file in conftest.*; do
3966 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3967 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3971 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3974 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3979 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3980 echo "$ac_t""${ac_cv_exeext}" 1>&6
3983 if test $host != $build; then
3984 ac_tool_prefix=${host_alias}-
3992 # Check for command to grab the raw symbol name followed by C symbol from nm.
3993 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3994 echo "configure:3995: checking command to parse $NM output" >&5
3995 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3999 # These are sane defaults that work on at least a few old systems.
4000 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4002 # Character class describing NM global symbol codes.
4003 symcode='[BCDEGRST]'
4005 # Regexp to match symbols that can be accessed directly from C.
4006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4008 # Transform the above into a raw symbol and a C symbol.
4009 symxfrm='\1 \2\3 \3'
4011 # Transform an extracted symbol line into a proper C declaration
4012 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4014 # Transform an extracted symbol line into symbol name and symbol address
4015 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'"
4017 # Define system-specific variables.
4022 cygwin* | mingw* | pw32*)
4023 symcode='[ABCDGISTW]'
4025 hpux*) # Its linker distinguishes data from code symbols
4026 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4027 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'"
4030 symcode='[BCDEGRST]'
4033 symcode='[BCDEGQRST]'
4043 # Handle CRLF in mingw tool chain
4047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4051 # If we're using GNU nm, then use its standard symbol codes.
4052 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4053 symcode='[ABCDGISTW]'
4056 # Try without a prefix undercore, then with it.
4057 for ac_symprfx in "" "_"; do
4059 # Write the raw and C identifiers.
4060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4062 # Check to see that the pipe works correctly.
4065 cat > conftest.$ac_ext <<EOF
4070 void nm_test_func(){}
4074 int main(){nm_test_var='a';nm_test_func();return(0);}
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 # Now try to grab the symbols.
4080 if { (eval echo configure:4081: \"$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
4081 # Try sorting and uniquifying the output.
4082 if sort "$nlist" | uniq > "$nlist"T; then
4083 mv -f "$nlist"T "$nlist"
4088 # Make sure that we snagged all the symbols we need.
4089 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4090 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4091 cat <<EOF > conftest.$ac_ext
4097 # Now generate the symbol file.
4098 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4100 cat <<EOF >> conftest.$ac_ext
4101 #if defined (__STDC__) && __STDC__
4102 # define lt_ptr void *
4104 # define lt_ptr char *
4108 /* The mapping between symbol names and symbols. */
4113 lt_preloaded_symbols[] =
4116 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4117 cat <<\EOF >> conftest.$ac_ext
4125 # Now try linking the two files.
4126 mv conftest.$ac_objext conftstm.$ac_objext
4128 save_CFLAGS="$CFLAGS"
4129 LIBS="conftstm.$ac_objext"
4130 CFLAGS="$CFLAGS$no_builtin_flag"
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4135 CFLAGS="$save_CFLAGS"
4137 echo "cannot find nm_test_func in $nlist" >&5
4140 echo "cannot find nm_test_var in $nlist" >&5
4143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4146 echo "$progname: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 rm -f conftest* conftst*
4151 # Do not use the global_symbol_pipe unless it works.
4152 if test "$pipe_works" = yes; then
4155 lt_cv_sys_global_symbol_pipe=
4161 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4163 global_symbol_to_cdecl=
4164 global_symbol_to_c_name_address=
4166 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4167 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4169 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4171 echo "$ac_t""failed" 1>&6
4173 echo "$ac_t""ok" 1>&6
4176 for ac_hdr in dlfcn.h
4178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_hdr" >&5
4181 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4190 { (eval echo configure:4191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4192 if test -z "$ac_err"; then
4194 eval "ac_cv_header_$ac_safe=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 eval "ac_cv_header_$ac_safe=no"
4204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4207 cat >> confdefs.h <<EOF
4208 #define $ac_tr_hdr 1
4212 echo "$ac_t""no" 1>&6
4221 # Only perform the check for file, if the check method requires it
4222 case $deplibs_check_method in
4224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4225 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4226 echo "configure:4227: checking for ${ac_tool_prefix}file" >&5
4227 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4238 ac_save_MAGIC_CMD="$MAGIC_CMD"
4239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4240 ac_dummy="/usr/bin:$PATH"
4241 for ac_dir in $ac_dummy; do
4242 test -z "$ac_dir" && ac_dir=.
4243 if test -f $ac_dir/${ac_tool_prefix}file; then
4244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4245 if test -n "$file_magic_test_file"; then
4246 case $deplibs_check_method in
4248 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4251 egrep "$file_magic_regex" > /dev/null; then
4256 *** Warning: the command libtool uses to detect shared libraries,
4257 *** $file_magic_cmd, produces output that libtool cannot recognize.
4258 *** The result is that libtool may fail to recognize shared libraries
4259 *** as such. This will affect the creation of libtool libraries that
4260 *** depend on shared libraries, but programs linked with such libtool
4261 *** libraries will work regardless of this problem. Nevertheless, you
4262 *** may want to report the problem to your system manager and/or to
4263 *** bug-libtool@gnu.org
4273 MAGIC_CMD="$ac_save_MAGIC_CMD"
4278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4279 if test -n "$MAGIC_CMD"; then
4280 echo "$ac_t""$MAGIC_CMD" 1>&6
4282 echo "$ac_t""no" 1>&6
4285 if test -z "$lt_cv_path_MAGIC_CMD"; then
4286 if test -n "$ac_tool_prefix"; then
4287 echo $ac_n "checking for file""... $ac_c" 1>&6
4288 echo "configure:4289: checking for file" >&5
4289 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4300 ac_save_MAGIC_CMD="$MAGIC_CMD"
4301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4302 ac_dummy="/usr/bin:$PATH"
4303 for ac_dir in $ac_dummy; do
4304 test -z "$ac_dir" && ac_dir=.
4305 if test -f $ac_dir/file; then
4306 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4307 if test -n "$file_magic_test_file"; then
4308 case $deplibs_check_method in
4310 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4313 egrep "$file_magic_regex" > /dev/null; then
4318 *** Warning: the command libtool uses to detect shared libraries,
4319 *** $file_magic_cmd, produces output that libtool cannot recognize.
4320 *** The result is that libtool may fail to recognize shared libraries
4321 *** as such. This will affect the creation of libtool libraries that
4322 *** depend on shared libraries, but programs linked with such libtool
4323 *** libraries will work regardless of this problem. Nevertheless, you
4324 *** may want to report the problem to your system manager and/or to
4325 *** bug-libtool@gnu.org
4335 MAGIC_CMD="$ac_save_MAGIC_CMD"
4340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4341 if test -n "$MAGIC_CMD"; then
4342 echo "$ac_t""$MAGIC_CMD" 1>&6
4344 echo "$ac_t""no" 1>&6
4356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4359 echo "configure:4360: checking for $ac_word" >&5
4360 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 if test -n "$RANLIB"; then
4364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4368 for ac_dir in $ac_dummy; do
4369 test -z "$ac_dir" && ac_dir=.
4370 if test -f $ac_dir/$ac_word; then
4371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4378 RANLIB="$ac_cv_prog_RANLIB"
4379 if test -n "$RANLIB"; then
4380 echo "$ac_t""$RANLIB" 1>&6
4382 echo "$ac_t""no" 1>&6
4386 if test -z "$ac_cv_prog_RANLIB"; then
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "ranlib", so it can be a program name with args.
4389 set dummy ranlib; ac_word=$2
4390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_word" >&5
4392 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 if test -n "$RANLIB"; then
4396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4400 for ac_dir in $ac_dummy; do
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f $ac_dir/$ac_word; then
4403 ac_cv_prog_RANLIB="ranlib"
4408 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4411 RANLIB="$ac_cv_prog_RANLIB"
4412 if test -n "$RANLIB"; then
4413 echo "$ac_t""$RANLIB" 1>&6
4415 echo "$ac_t""no" 1>&6
4423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4424 set dummy ${ac_tool_prefix}strip; ac_word=$2
4425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_word" >&5
4427 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 if test -n "$STRIP"; then
4431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4435 for ac_dir in $ac_dummy; do
4436 test -z "$ac_dir" && ac_dir=.
4437 if test -f $ac_dir/$ac_word; then
4438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4445 STRIP="$ac_cv_prog_STRIP"
4446 if test -n "$STRIP"; then
4447 echo "$ac_t""$STRIP" 1>&6
4449 echo "$ac_t""no" 1>&6
4453 if test -z "$ac_cv_prog_STRIP"; then
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "strip", so it can be a program name with args.
4456 set dummy strip; ac_word=$2
4457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_word" >&5
4459 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 if test -n "$STRIP"; then
4463 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 for ac_dir in $ac_dummy; do
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f $ac_dir/$ac_word; then
4470 ac_cv_prog_STRIP="strip"
4475 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4478 STRIP="$ac_cv_prog_STRIP"
4479 if test -n "$STRIP"; then
4480 echo "$ac_t""$STRIP" 1>&6
4482 echo "$ac_t""no" 1>&6
4492 enable_win32_dll=yes
4494 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4495 if test "${enable_libtool_lock+set}" = set; then
4496 enableval="$enable_libtool_lock"
4500 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4502 # Some flags need to be propagated to the compiler or linker for good
4506 # Find out which ABI we are using.
4507 echo '#line 4508 "configure"' > conftest.$ac_ext
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4509 case `/usr/bin/file conftest.$ac_objext` in
4525 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4526 SAVE_CFLAGS="$CFLAGS"
4527 CFLAGS="$CFLAGS -belf"
4528 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4529 echo "configure:4530: checking whether the C compiler needs -belf" >&5
4530 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4539 cross_compiling=$ac_cv_prog_cc_cross
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 lt_cv_cc_needs_belf=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 lt_cv_cc_needs_belf=no
4560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4561 ac_cpp='$CPP $CPPFLAGS'
4562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 cross_compiling=$ac_cv_prog_cc_cross
4568 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4569 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4570 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4571 CFLAGS="$SAVE_CFLAGS"
4575 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4579 echo "configure:4580: checking for $ac_word" >&5
4580 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 if test -n "$DLLTOOL"; then
4584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4588 for ac_dir in $ac_dummy; do
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f $ac_dir/$ac_word; then
4591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4598 DLLTOOL="$ac_cv_prog_DLLTOOL"
4599 if test -n "$DLLTOOL"; then
4600 echo "$ac_t""$DLLTOOL" 1>&6
4602 echo "$ac_t""no" 1>&6
4606 if test -z "$ac_cv_prog_DLLTOOL"; then
4607 if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "dlltool", so it can be a program name with args.
4609 set dummy dlltool; ac_word=$2
4610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_word" >&5
4612 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 if test -n "$DLLTOOL"; then
4616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4620 for ac_dir in $ac_dummy; do
4621 test -z "$ac_dir" && ac_dir=.
4622 if test -f $ac_dir/$ac_word; then
4623 ac_cv_prog_DLLTOOL="dlltool"
4628 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4631 DLLTOOL="$ac_cv_prog_DLLTOOL"
4632 if test -n "$DLLTOOL"; then
4633 echo "$ac_t""$DLLTOOL" 1>&6
4635 echo "$ac_t""no" 1>&6
4643 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}as; ac_word=$2
4645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4646 echo "configure:4647: checking for $ac_word" >&5
4647 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 if test -n "$AS"; then
4651 ac_cv_prog_AS="$AS" # Let the user override the test.
4653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4655 for ac_dir in $ac_dummy; do
4656 test -z "$ac_dir" && ac_dir=.
4657 if test -f $ac_dir/$ac_word; then
4658 ac_cv_prog_AS="${ac_tool_prefix}as"
4666 if test -n "$AS"; then
4667 echo "$ac_t""$AS" 1>&6
4669 echo "$ac_t""no" 1>&6
4673 if test -z "$ac_cv_prog_AS"; then
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "as", so it can be a program name with args.
4676 set dummy as; ac_word=$2
4677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_word" >&5
4679 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 if test -n "$AS"; then
4683 ac_cv_prog_AS="$AS" # Let the user override the test.
4685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4687 for ac_dir in $ac_dummy; do
4688 test -z "$ac_dir" && ac_dir=.
4689 if test -f $ac_dir/$ac_word; then
4695 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4699 if test -n "$AS"; then
4700 echo "$ac_t""$AS" 1>&6
4702 echo "$ac_t""no" 1>&6
4710 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4713 echo "configure:4714: checking for $ac_word" >&5
4714 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 if test -n "$OBJDUMP"; then
4718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4722 for ac_dir in $ac_dummy; do
4723 test -z "$ac_dir" && ac_dir=.
4724 if test -f $ac_dir/$ac_word; then
4725 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4732 OBJDUMP="$ac_cv_prog_OBJDUMP"
4733 if test -n "$OBJDUMP"; then
4734 echo "$ac_t""$OBJDUMP" 1>&6
4736 echo "$ac_t""no" 1>&6
4740 if test -z "$ac_cv_prog_OBJDUMP"; then
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "objdump", so it can be a program name with args.
4743 set dummy objdump; ac_word=$2
4744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_word" >&5
4746 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 if test -n "$OBJDUMP"; then
4750 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4754 for ac_dir in $ac_dummy; do
4755 test -z "$ac_dir" && ac_dir=.
4756 if test -f $ac_dir/$ac_word; then
4757 ac_cv_prog_OBJDUMP="objdump"
4762 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4765 OBJDUMP="$ac_cv_prog_OBJDUMP"
4766 if test -n "$OBJDUMP"; then
4767 echo "$ac_t""$OBJDUMP" 1>&6
4769 echo "$ac_t""no" 1>&6
4778 # recent cygwin and mingw systems supply a stub DllMain which the user
4779 # can override, but on older systems we have to supply one
4780 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4781 echo "configure:4782: checking if libtool should supply DllMain function" >&5
4782 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 cat > conftest.$ac_ext <<EOF
4786 #line 4787 "configure"
4787 #include "confdefs.h"
4790 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4794 if { (eval echo configure:4795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4796 lt_cv_need_dllmain=no
4798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4801 lt_cv_need_dllmain=yes
4806 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4809 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4810 # old mingw systems require "-dll" to link a DLL, while more recent ones
4812 SAVE_CFLAGS="$CFLAGS"
4813 CFLAGS="$CFLAGS -mdll"
4814 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4815 echo "configure:4816: checking how to link DLLs" >&5
4816 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4827 if { (eval echo configure:4828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4829 lt_cv_cc_dll_switch=-mdll
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 lt_cv_cc_dll_switch=-dll
4839 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4840 CFLAGS="$SAVE_CFLAGS" ;;
4841 *-*-cygwin* | *-*-pw32*)
4842 # cygwin systems need to pass --dll to the linker, and not link
4843 # crt.o which will require a WinMain@16 definition.
4844 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4850 # Sed substitution that helps us do robust quoting. It backslashifies
4851 # metacharacters that are still active within double-quoted strings.
4852 Xsed='sed -e s/^X//'
4853 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4855 # Same as above, but do not quote variable references.
4856 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4858 # Sed substitution to delay expansion of an escaped shell variable in a
4859 # double_quote_subst'ed string.
4860 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4866 default_ofile=libtool
4867 can_build_shared=yes
4869 # All known linkers require a `.a' archive for static linking (except M$VC,
4870 # which needs '.lib').
4872 ltmain="$ac_aux_dir/ltmain.sh"
4873 ofile="$default_ofile"
4874 with_gnu_ld="$lt_cv_prog_gnu_ld"
4875 need_locks="$enable_libtool_lock"
4878 old_CFLAGS="$CFLAGS"
4880 # Set sane defaults for various variables
4881 test -z "$AR" && AR=ar
4882 test -z "$AR_FLAGS" && AR_FLAGS=cru
4883 test -z "$AS" && AS=as
4884 test -z "$CC" && CC=cc
4885 test -z "$DLLTOOL" && DLLTOOL=dlltool
4886 test -z "$LD" && LD=ld
4887 test -z "$LN_S" && LN_S="ln -s"
4888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4889 test -z "$NM" && NM=nm
4890 test -z "$OBJDUMP" && OBJDUMP=objdump
4891 test -z "$RANLIB" && RANLIB=:
4892 test -z "$STRIP" && STRIP=:
4893 test -z "$ac_objext" && ac_objext=o
4895 if test x"$host" != x"$build"; then
4896 ac_tool_prefix=${host_alias}-
4901 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4904 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4909 # AIX sometimes has problems with the GCC collect2 program. For some
4910 # reason, if we set the COLLECT_NAMES environment variable, the problems
4911 # vanish in a puff of smoke.
4912 if test "X${COLLECT_NAMES+set}" != Xset; then
4914 export COLLECT_NAMES
4919 # Determine commands to create old-style static archives.
4920 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4921 old_postinstall_cmds='chmod 644 $oldlib'
4922 old_postuninstall_cmds=
4924 if test -n "$RANLIB"; then
4927 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4930 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4933 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4936 # Allow CC to be a program name with arguments.
4940 ## FIXME: this should be a separate macro
4942 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4943 echo "configure:4944: checking for objdir" >&5
4944 rm -f .libs 2>/dev/null
4945 mkdir .libs 2>/dev/null
4946 if test -d .libs; then
4949 # MS-DOS does not allow filenames that begin with a dot.
4952 rmdir .libs 2>/dev/null
4953 echo "$ac_t""$objdir" 1>&6
4958 ## FIXME: this should be a separate macro
4960 # Check whether --with-pic or --without-pic was given.
4961 if test "${with_pic+set}" = set; then
4968 test -z "$pic_mode" && pic_mode=default
4970 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4971 # in isolation, and that seeing it set (from the cache) indicates that
4972 # the associated values are set (in the cache) correctly too.
4973 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $compiler option to produce PIC" >&5
4975 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4979 lt_cv_prog_cc_shlib=
4981 lt_cv_prog_cc_static=
4982 lt_cv_prog_cc_no_builtin=
4983 lt_cv_prog_cc_can_build_shared=$can_build_shared
4985 if test "$GCC" = yes; then
4986 lt_cv_prog_cc_wl='-Wl,'
4987 lt_cv_prog_cc_static='-static'
4991 # Below there is a dirty hack to force normal static linking with -ldl
4992 # The problem is because libdl dynamically linked with both libc and
4993 # libC (AIX C++ library), which obviously doesn't included in libraries
4994 # list by gcc. This cause undefined symbols with -static flags.
4995 # This hack allows C programs to be linked with "-static -ldl", but
4996 # not sure about C++ programs.
4997 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5000 # FIXME: we need at least 68020 code to build shared libraries, but
5001 # adding the `-m68020' flag to GCC prevents building anything better,
5003 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5006 # PIC is the default for these OSes.
5008 darwin* | rhapsody*)
5009 # PIC is the default on this platform
5010 # Common symbols not allowed in MH_DYLIB files
5011 lt_cv_prog_cc_pic='-fno-common'
5013 cygwin* | mingw* | pw32* | os2*)
5014 # This hack is so that the source file can tell whether it is being
5015 # built for inclusion in a dll (and should export symbols for example).
5016 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5019 if test -d /usr/nec; then
5020 lt_cv_prog_cc_pic=-Kconform_pic
5024 lt_cv_prog_cc_pic='-fPIC'
5028 # PORTME Check for PIC flags for the system compiler.
5030 aix3* | aix4* | aix5*)
5031 lt_cv_prog_cc_wl='-Wl,'
5032 # All AIX code is PIC.
5033 if test "$host_cpu" = ia64; then
5034 # AIX 5 now supports IA64 processor
5035 lt_cv_prog_cc_static='-Bstatic'
5037 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5041 hpux9* | hpux10* | hpux11*)
5042 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5043 lt_cv_prog_cc_wl='-Wl,'
5044 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5045 lt_cv_prog_cc_pic='+Z'
5048 irix5* | irix6* | nonstopux*)
5049 lt_cv_prog_cc_wl='-Wl,'
5050 lt_cv_prog_cc_static='-non_shared'
5051 # PIC (with -KPIC) is the default.
5054 cygwin* | mingw* | pw32* | os2*)
5055 # This hack is so that the source file can tell whether it is being
5056 # built for inclusion in a dll (and should export symbols for example).
5057 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5061 lt_cv_prog_cc_pic='-KPIC'
5062 lt_cv_prog_cc_static='-Bstatic'
5065 osf3* | osf4* | osf5*)
5066 # All OSF/1 code is PIC.
5067 lt_cv_prog_cc_wl='-Wl,'
5068 lt_cv_prog_cc_static='-non_shared'
5072 lt_cv_prog_cc_pic='-Kpic'
5073 lt_cv_prog_cc_static='-dn'
5074 lt_cv_prog_cc_shlib='-belf'
5078 lt_cv_prog_cc_pic='-KPIC'
5079 lt_cv_prog_cc_static='-Bstatic'
5080 lt_cv_prog_cc_wl='-Wl,'
5084 lt_cv_prog_cc_pic='-PIC'
5085 lt_cv_prog_cc_static='-Bstatic'
5086 lt_cv_prog_cc_wl='-Qoption ld '
5089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5090 lt_cv_prog_cc_pic='-KPIC'
5091 lt_cv_prog_cc_static='-Bstatic'
5092 lt_cv_prog_cc_wl='-Wl,'
5096 lt_cv_prog_cc_pic='-pic'
5097 lt_cv_prog_cc_static='-Bstatic'
5101 if test -d /usr/nec ;then
5102 lt_cv_prog_cc_pic='-Kconform_pic'
5103 lt_cv_prog_cc_static='-Bstatic'
5108 lt_cv_prog_cc_can_build_shared=no
5115 if test -z "$lt_cv_prog_cc_pic"; then
5116 echo "$ac_t""none" 1>&6
5118 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5120 # Check to make sure the pic_flag actually works.
5121 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5122 echo "configure:5123: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5123 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5126 save_CFLAGS="$CFLAGS"
5127 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5136 if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5139 hpux9* | hpux10* | hpux11*)
5140 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5141 # they create non-PIC objects. So, if there were any warnings, we
5142 # assume that PIC is not supported.
5143 if test -s conftest.err; then
5144 lt_cv_prog_cc_pic_works=no
5146 lt_cv_prog_cc_pic_works=yes
5150 lt_cv_prog_cc_pic_works=yes
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 lt_cv_prog_cc_pic_works=no
5162 CFLAGS="$save_CFLAGS"
5167 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5169 lt_cv_prog_cc_can_build_shared=no
5171 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5174 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5179 # Check for any special shared library compilation flags.
5180 if test -n "$lt_cv_prog_cc_shlib"; then
5181 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5182 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5184 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5185 lt_cv_prog_cc_can_build_shared=no
5189 ## FIXME: this should be a separate macro
5191 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5192 echo "configure:5193: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5193 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 lt_cv_prog_cc_static_works=no
5197 save_LDFLAGS="$LDFLAGS"
5198 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 lt_cv_prog_cc_static_works=yes
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5215 LDFLAGS="$save_LDFLAGS"
5220 # Belt *and* braces to stop my trousers falling down:
5221 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5222 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5224 pic_flag="$lt_cv_prog_cc_pic"
5225 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5226 wl="$lt_cv_prog_cc_wl"
5227 link_static_flag="$lt_cv_prog_cc_static"
5228 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5229 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5234 ## FIXME: this should be a separate macro
5236 # Check to see if options -o and -c are simultaneously supported by compiler
5237 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5238 echo "configure:5239: checking if $compiler supports -c -o file.$ac_objext" >&5
5239 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5243 $rm -r conftest 2>/dev/null
5246 echo "int some_variable = 0;" > conftest.$ac_ext
5248 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5249 # that will create temporary files in the current directory regardless of
5250 # the output directory. Thus, making CWD read-only will cause this test
5251 # to fail, enabling locking or at least warning the user not to do parallel
5254 save_CFLAGS="$CFLAGS"
5255 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5257 if { (eval echo configure:5258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5258 # The compiler can only warn and ignore the option if not recognized
5259 # So say no if there are warnings
5260 if test -s out/conftest.err; then
5261 lt_cv_compiler_c_o=no
5263 lt_cv_compiler_c_o=yes
5266 # Append any errors to the config.log.
5267 cat out/conftest.err 1>&5
5268 lt_cv_compiler_c_o=no
5270 CFLAGS="$save_CFLAGS"
5276 $rm -r conftest 2>/dev/null
5280 compiler_c_o=$lt_cv_compiler_c_o
5281 echo "$ac_t""$compiler_c_o" 1>&6
5283 if test x"$compiler_c_o" = x"yes"; then
5284 # Check to see if we can write to a .lo
5285 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5286 echo "configure:5287: checking if $compiler supports -c -o file.lo" >&5
5287 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5291 lt_cv_compiler_o_lo=no
5292 save_CFLAGS="$CFLAGS"
5293 CFLAGS="$CFLAGS -c -o conftest.lo"
5294 save_objext="$ac_objext"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5301 int some_variable = 0;
5304 if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 # The compiler can only warn and ignore the option if not recognized
5307 # So say no if there are warnings
5308 if test -s conftest.err; then
5309 lt_cv_compiler_o_lo=no
5311 lt_cv_compiler_o_lo=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5319 ac_objext="$save_objext"
5320 CFLAGS="$save_CFLAGS"
5324 compiler_o_lo=$lt_cv_compiler_o_lo
5325 echo "$ac_t""$compiler_o_lo" 1>&6
5332 ## FIXME: this should be a separate macro
5334 # Check to see if we can do hard links to lock some files if needed
5335 hard_links="nottested"
5336 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5337 # do not overwrite the value of need_locks provided by the user
5338 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5339 echo "configure:5340: checking if we can lock with hard links" >&5
5342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5344 ln conftest.a conftest.b 2>&5 || hard_links=no
5345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5346 echo "$ac_t""$hard_links" 1>&6
5347 if test "$hard_links" = no; then
5348 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5357 ## FIXME: this should be a separate macro
5359 if test "$GCC" = yes; then
5360 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5361 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5362 echo "configure:5363: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5363 echo "int some_variable = 0;" > conftest.$ac_ext
5364 save_CFLAGS="$CFLAGS"
5365 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5366 compiler_rtti_exceptions=no
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5372 int some_variable = 0;
5375 if { (eval echo configure:5376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5377 # The compiler can only warn and ignore the option if not recognized
5378 # So say no if there are warnings
5379 if test -s conftest.err; then
5380 compiler_rtti_exceptions=no
5382 compiler_rtti_exceptions=yes
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5390 CFLAGS="$save_CFLAGS"
5391 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5393 if test "$compiler_rtti_exceptions" = "yes"; then
5394 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5396 no_builtin_flag=' -fno-builtin'
5402 ## FIXME: this should be a separate macro
5404 # See if the linker supports building shared libraries.
5405 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5406 echo "configure:5407: checking whether the linker ($LD) supports shared libraries" >&5
5408 allow_undefined_flag=
5410 need_lib_prefix=unknown
5411 need_version=unknown
5412 # when you set need_version to no, make sure it does not cause -set_version
5413 # flags to be left without arguments
5415 archive_expsym_cmds=
5416 old_archive_from_new_cmds=
5417 old_archive_from_expsyms_cmds=
5418 export_dynamic_flag_spec=
5419 whole_archive_flag_spec=
5420 thread_safe_flag_spec=
5421 hardcode_into_libs=no
5422 hardcode_libdir_flag_spec=
5423 hardcode_libdir_separator=
5426 hardcode_shlibpath_var=unsupported
5428 link_all_deplibs=unknown
5429 always_export_symbols=no
5430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5431 # include_expsyms should be a list of space-separated symbols to be *always*
5432 # included in the symbol list
5434 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5437 # as well as any symbol that contains `d'.
5438 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5440 # platforms (ab)use it in PIC code, but their linkers get confused if
5441 # the symbol is explicitly referenced. Since portable code cannot
5442 # rely on this symbol name, it's probably fine to never include it in
5443 # preloaded symbol tables.
5444 extract_expsyms_cmds=
5447 cygwin* | mingw* | pw32*)
5448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5449 # When not using gcc, we currently assume that we are using
5450 # Microsoft Visual C++.
5451 if test "$GCC" != yes; then
5461 if test "$with_gnu_ld" = yes; then
5462 # If archive_cmds runs LD, not CC, wlarc should be empty
5465 # See if GNU ld supports shared libraries.
5467 aix3* | aix4* | aix5*)
5468 # On AIX, the GNU linker is very broken
5469 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5474 *** to be unable to reliably create shared libraries on AIX.
5475 *** Therefore, libtool is disabling shared libraries support. If you
5476 *** really care for shared libraries, you may want to modify your PATH
5477 *** so that a non-GNU linker is found, and then restart.
5483 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)'
5484 hardcode_libdir_flag_spec='-L$libdir'
5485 hardcode_minus_L=yes
5487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5488 # that the semantics of dynamic libraries on AmigaOS, at least up
5489 # to version 4, is to share data among multiple programs linked
5490 # with the same dynamic library. Since this doesn't match the
5491 # behavior of shared libraries on other platforms, we can use
5497 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5498 allow_undefined_flag=unsupported
5499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5500 # support --undefined. This deserves some investigation. FIXME
5501 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5507 cygwin* | mingw* | pw32*)
5508 # hardcode_libdir_flag_spec is actually meaningless, as there is
5509 # no search path for DLLs.
5510 hardcode_libdir_flag_spec='-L$libdir'
5511 allow_undefined_flag=unsupported
5512 always_export_symbols=yes
5514 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5515 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5516 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5517 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5518 else $CC -o impgen impgen.c ; fi)~
5519 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5521 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5523 # cygwin and mingw dlls have different entry points and sets of symbols
5525 # FIXME: what about values for MSVC?
5526 dll_entry=__cygwin_dll_entry@12
5527 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5531 dll_entry=_DllMainCRTStartup@12
5532 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5536 # mingw and cygwin differ, and it's simplest to just exclude the union
5537 # of the two symbol sets.
5538 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5540 # recent cygwin and mingw systems supply a stub DllMain which the user
5541 # can override, but on older systems we have to supply one (in ltdll.c)
5542 if test "x$lt_cv_need_dllmain" = "xyes"; then
5543 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5544 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~
5545 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5551 # Extract the symbol export list from an `--export-all' def file,
5552 # then regenerate the def file from the symbol export list, so that
5553 # the compiled dll only exports the symbol export list.
5554 # Be careful not to strip the DATA tag left be newer dlltools.
5555 export_symbols_cmds="$ltdll_cmds"'
5556 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5557 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5559 # If the export-symbols file already is a .def file (1st line
5560 # is EXPORTS), use it as is.
5561 # If DATA tags from a recent dlltool are present, honour them!
5562 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5563 cp $export_symbols $output_objdir/$soname-def;
5565 echo EXPORTS > $output_objdir/$soname-def;
5567 cat $export_symbols | while read symbol; do
5570 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5571 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5572 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5574 _lt_hint=`expr 1 + \$_lt_hint`;
5578 $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~
5579 $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~
5580 $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~
5581 $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~
5582 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5586 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5587 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5590 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5591 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5596 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5600 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5601 *** create shared libraries on Solaris systems. Therefore, libtool
5602 *** is disabling shared libraries support. We urge you to upgrade GNU
5603 *** binutils to release 2.9.1 or newer. Another option is to modify
5604 *** your PATH or compiler configuration so that the native linker is
5605 *** used, and then restart.
5608 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5620 hardcode_shlibpath_var=no
5624 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5633 if test "$ld_shlibs" = yes; then
5634 runpath_var=LD_RUN_PATH
5635 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5636 export_dynamic_flag_spec='${wl}--export-dynamic'
5638 cygwin* | mingw* | pw32*)
5639 # dlltool doesn't understand --whole-archive et. al.
5640 whole_archive_flag_spec=
5643 # ancient GNU ld didn't support --whole-archive et. al.
5644 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5645 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5647 whole_archive_flag_spec=
5653 # PORTME fill in a description of your system's linker (not GNU ld)
5656 allow_undefined_flag=unsupported
5657 always_export_symbols=yes
5658 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'
5659 # Note: this linker hardcodes the directories in LIBPATH if there
5660 # are no directories specified by -L.
5661 hardcode_minus_L=yes
5662 if test "$GCC" = yes && test -z "$link_static_flag"; then
5663 # Neither direct hardcoding nor static linking is supported with a
5665 hardcode_direct=unsupported
5670 if test "$host_cpu" = ia64; then
5671 # On IA64, the linker does run time linking by default, so we don't
5672 # have to do anything special.
5673 aix_use_runtimelinking=no
5674 exp_sym_flag='-Bexport'
5677 aix_use_runtimelinking=no
5679 # Test if we are trying to use run time linking or normal
5680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5681 # need to do runtime linking.
5682 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5683 for ld_flag in $LDFLAGS; do
5686 aix_use_runtimelinking=yes
5693 exp_sym_flag='-bexport'
5694 no_entry_flag='-bnoentry'
5697 # When large executables or shared objects are built, AIX ld can
5698 # have problems creating the table of contents. If linking a library
5699 # or program results in "error TOC overflow" add -mminimal-toc to
5700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5705 hardcode_libdir_separator=':'
5706 if test "$GCC" = yes; then
5707 case $host_os in aix4.[012]|aix4.[012].*)
5708 collect2name=`${CC} -print-prog-name=collect2`
5709 if test -f "$collect2name" && \
5710 strings "$collect2name" | grep resolve_lib_name >/dev/null
5712 # We have reworked collect2
5715 # We have old collect2
5716 hardcode_direct=unsupported
5717 # It fails to find uninstalled libraries when the uninstalled
5718 # path is not listed in the libpath. Setting hardcode_minus_L
5719 # to unsupported forces relinking
5720 hardcode_minus_L=yes
5721 hardcode_libdir_flag_spec='-L$libdir'
5722 hardcode_libdir_separator=
5726 shared_flag='-shared'
5729 if test "$host_cpu" = ia64; then
5730 shared_flag='${wl}-G'
5732 if test "$aix_use_runtimelinking" = yes; then
5733 shared_flag='${wl}-G'
5735 shared_flag='${wl}-bM:SRE'
5740 # It seems that -bexpall can do strange things, so it is better to
5741 # generate a list of symbols to export.
5742 always_export_symbols=yes
5743 if test "$aix_use_runtimelinking" = yes; then
5744 # Warning - without using the other runtime loading flags (-brtl),
5745 # -berok will link without error, but may produce a broken library.
5746 allow_undefined_flag='-berok'
5747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5748 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"
5750 if test "$host_cpu" = ia64; then
5751 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5752 allow_undefined_flag="-z nodefs"
5753 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"
5755 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5756 # Warning - without using the other run time loading flags,
5757 # -berok will link without error, but may produce a broken library.
5758 allow_undefined_flag='${wl}-berok'
5759 # This is a bit strange, but is similar to how AIX traditionally builds
5760 # it's shared libraries.
5761 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'
5767 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)'
5768 hardcode_libdir_flag_spec='-L$libdir'
5769 hardcode_minus_L=yes
5770 # see comment about different semantics on the GNU ld section
5774 cygwin* | mingw* | pw32*)
5775 # When not using gcc, we currently assume that we are using
5776 # Microsoft Visual C++.
5777 # hardcode_libdir_flag_spec is actually meaningless, as there is
5778 # no search path for DLLs.
5779 hardcode_libdir_flag_spec=' '
5780 allow_undefined_flag=unsupported
5781 # Tell ltmain to make .lib files, not .a files.
5783 # FIXME: Setting linknames here is a bad hack.
5784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5785 # The linker will automatically build a .lib file if we build a DLL.
5786 old_archive_from_new_cmds='true'
5787 # FIXME: Should let the user specify the lib program.
5788 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5789 fix_srcfile_path='`cygpath -w "$srcfile"`'
5792 darwin* | rhapsody*)
5794 rhapsody* | darwin1.[012])
5795 allow_undefined_flag='-undefined suppress'
5798 allow_undefined_flag='-flat_namespace -undefined suppress'
5801 # FIXME: Relying on posixy $() will cause problems for
5802 # cross-compilation, but unfortunately the echo tests do not
5803 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5804 # `"' quotes if we put them in here... so don't!
5805 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)'
5806 # We need to add '_' to the symbols in $export_symbols first
5807 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5809 hardcode_shlibpath_var=no
5810 whole_archive_flag_spec='-all_load $convenience'
5817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5818 # support. Future versions do this automatically, but an explicit c++rt0.o
5819 # does not break anything, and helps significantly (at the cost of a little
5822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5823 hardcode_libdir_flag_spec='-R$libdir'
5825 hardcode_shlibpath_var=no
5828 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5832 hardcode_minus_L=yes
5833 hardcode_shlibpath_var=no
5836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5838 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5839 hardcode_libdir_flag_spec='-R$libdir'
5841 hardcode_shlibpath_var=no
5844 hpux9* | hpux10* | hpux11*)
5846 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' ;;
5847 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5850 hardcode_libdir_separator=:
5852 hardcode_minus_L=yes # Not in the search PATH, but as the default
5853 # location of the library.
5854 export_dynamic_flag_spec='${wl}-E'
5857 irix5* | irix6* | nonstopux*)
5858 if test "$GCC" = yes; then
5859 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'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5862 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'
5863 hardcode_libdir_flag_spec='-rpath $libdir'
5865 hardcode_libdir_separator=:
5866 link_all_deplibs=yes
5870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5875 hardcode_libdir_flag_spec='-R$libdir'
5877 hardcode_shlibpath_var=no
5881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5884 hardcode_libdir_separator=:
5885 hardcode_shlibpath_var=no
5890 hardcode_shlibpath_var=no
5891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5894 export_dynamic_flag_spec='${wl}-E'
5897 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5899 hardcode_libdir_flag_spec='-R$libdir'
5902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5910 hardcode_libdir_flag_spec='-L$libdir'
5911 hardcode_minus_L=yes
5912 allow_undefined_flag=unsupported
5913 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'
5914 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5918 if test "$GCC" = yes; then
5919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5920 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'
5922 allow_undefined_flag=' -expect_unresolved \*'
5923 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'
5925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5926 hardcode_libdir_separator=:
5929 osf4* | osf5*) # as osf3* with the addition of -msym flag
5930 if test "$GCC" = yes; then
5931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5932 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'
5933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5935 allow_undefined_flag=' -expect_unresolved \*'
5936 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'
5937 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5938 $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'
5940 #Both c and cxx compiler support -rpath directly
5941 hardcode_libdir_flag_spec='-rpath $libdir'
5943 hardcode_libdir_separator=:
5947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5948 hardcode_shlibpath_var=no
5949 runpath_var=LD_RUN_PATH
5950 hardcode_runpath_var=yes
5951 export_dynamic_flag_spec='${wl}-Bexport'
5955 # gcc --version < 3.0 without binutils cannot create self contained
5956 # shared libraries reliably, requiring libgcc.a to resolve some of
5957 # the object symbols generated in some cases. Libraries that use
5958 # assert need libgcc.a to resolve __eprintf, for example. Linking
5959 # a copy of libgcc.a into every shared library to guarantee resolving
5960 # such symbols causes other problems: According to Tim Van Holder
5961 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5962 # (to the application) exception stack for one thing.
5963 no_undefined_flag=' -z defs'
5964 if test "$GCC" = yes; then
5965 case `$CC --version 2>/dev/null` in
5969 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5970 *** create self contained shared libraries on Solaris systems, without
5971 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5972 *** -no-undefined support, which will at least allow you to build shared
5973 *** libraries. However, you may find that when you link such libraries
5974 *** into an application without using GCC, you have to manually add
5975 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5976 *** upgrade to a newer version of GCC. Another option is to rebuild your
5977 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5984 # $CC -shared without GNU ld will not create a library from C++
5985 # object files and a static libstdc++, better avoid it by now
5986 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5987 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5989 hardcode_libdir_flag_spec='-R$libdir'
5990 hardcode_shlibpath_var=no
5992 solaris2.[0-5] | solaris2.[0-5].*) ;;
5993 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5996 link_all_deplibs=yes
6000 if test "x$host_vendor" = xsequent; then
6001 # Use $CC to link under sequent, because it throws in some extra .o
6002 # files that make .init and .fini sections work.
6003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6007 hardcode_libdir_flag_spec='-L$libdir'
6009 hardcode_minus_L=yes
6010 hardcode_shlibpath_var=no
6014 case $host_vendor in
6016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6017 hardcode_direct=yes # is this really true???
6020 ## LD is ld it makes a PLAMLIB
6021 ## CC just makes a GrossModule.
6022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6023 reload_cmds='$CC -r -o $output$reload_objs'
6027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6031 runpath_var='LD_RUN_PATH'
6032 hardcode_shlibpath_var=no
6036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_shlibpath_var=no
6038 export_dynamic_flag_spec='-Bexport'
6042 no_undefined_flag=' -z text'
6043 # $CC -shared without GNU ld will not create a library from C++
6044 # object files and a static libstdc++, better avoid it by now
6045 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6046 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6047 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6048 hardcode_libdir_flag_spec=
6049 hardcode_shlibpath_var=no
6050 runpath_var='LD_RUN_PATH'
6054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6055 hardcode_libdir_flag_spec='-L$libdir'
6056 hardcode_shlibpath_var=no
6060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6061 hardcode_libdir_flag_spec='-L$libdir'
6062 hardcode_shlibpath_var=no
6066 if test -d /usr/nec; then
6067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6068 hardcode_shlibpath_var=no
6069 runpath_var=LD_RUN_PATH
6070 hardcode_runpath_var=yes
6076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6079 hardcode_shlibpath_var=no
6080 hardcode_runpath_var=yes
6081 runpath_var=LD_RUN_PATH
6084 sysv5uw7* | unixware7*)
6085 no_undefined_flag='${wl}-z ${wl}text'
6086 if test "$GCC" = yes; then
6087 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6089 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6091 runpath_var='LD_RUN_PATH'
6092 hardcode_shlibpath_var=no
6100 echo "$ac_t""$ld_shlibs" 1>&6
6101 test "$ld_shlibs" = no && can_build_shared=no
6105 ## FIXME: this should be a separate macro
6107 # Check hardcoding attributes.
6108 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6109 echo "configure:6110: checking how to hardcode library paths into programs" >&5
6111 if test -n "$hardcode_libdir_flag_spec" || \
6112 test -n "$runpath_var"; then
6114 # We can hardcode non-existant directories.
6115 if test "$hardcode_direct" != no &&
6116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6117 # have to relink, otherwise we might link with an installed library
6118 # when we should be linking with a yet-to-be-installed one
6119 ## test "$hardcode_shlibpath_var" != no &&
6120 test "$hardcode_minus_L" != no; then
6121 # Linking always hardcodes the temporary library directory.
6122 hardcode_action=relink
6124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6125 hardcode_action=immediate
6128 # We cannot hardcode anything, or else we can only hardcode existing
6130 hardcode_action=unsupported
6132 echo "$ac_t""$hardcode_action" 1>&6
6136 ## FIXME: this should be a separate macro
6140 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6141 echo "configure:6142: checking whether stripping libraries is possible" >&5
6142 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6145 echo "$ac_t""yes" 1>&6
6147 echo "$ac_t""no" 1>&6
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6153 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6155 ## FIXME: this should be a separate macro
6157 # PORTME Fill in your ld.so characteristics
6158 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6159 echo "configure:6160: checking dynamic linker characteristics" >&5
6161 libname_spec='lib$name'
6168 shlibpath_overrides_runpath=unknown
6170 dynamic_linker="$host_os ld.so"
6171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6177 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6178 shlibpath_var=LIBPATH
6180 # AIX has no versioning support, so we append a major version to the name.
6181 soname_spec='${libname}${release}.so$major'
6188 hardcode_into_libs=yes
6189 if test "$host_cpu" = ia64; then
6190 # AIX 5 supports IA64
6191 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6192 shlibpath_var=LD_LIBRARY_PATH
6194 # With GCC up to 2.95.x, collect2 would create an import file
6195 # for dependence libraries. The import file would start with
6196 # the line `#! .'. This would cause the generated library to
6197 # depend on `.', always an invalid library. This was fixed in
6198 # development snapshots of GCC prior to 3.0.
6200 aix4 | aix4.[01] | aix4.[01].*)
6201 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6203 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6210 # AIX (on Power*) has no versioning support, so currently we can
6211 # not hardcode correct soname into executable. Probably we can
6212 # add versioning support to collect2, so additional links can
6213 # be useful in future.
6214 if test "$aix_use_runtimelinking" = yes; then
6215 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6216 # instead of lib<name>.a to let people know that these are not
6217 # typical AIX shared libraries.
6218 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6220 # We preserve .a as extension for shared libraries through AIX4.2
6221 # and later when we are not doing run time linking.
6222 library_names_spec='${libname}${release}.a $libname.a'
6223 soname_spec='${libname}${release}.so$major'
6225 shlibpath_var=LIBPATH
6227 hardcode_into_libs=yes
6231 library_names_spec='$libname.ixlibrary $libname.a'
6232 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6233 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'
6237 library_names_spec='${libname}.so'
6238 dynamic_linker="$host_os ld.so"
6239 shlibpath_var=LIBRARY_PATH
6245 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6246 soname_spec='${libname}${release}.so$major'
6247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6248 shlibpath_var=LD_LIBRARY_PATH
6249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6251 export_dynamic_flag_spec=-rdynamic
6252 # the default ld.so.conf also contains /usr/contrib/lib and
6253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6254 # libtool to hard-code these into programs
6257 cygwin* | mingw* | pw32*)
6258 version_type=windows
6261 case $GCC,$host_os in
6263 library_names_spec='$libname.dll.a'
6264 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6265 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6266 dldir=$destdir/`dirname \$dlpath`~
6267 test -d \$dldir || mkdir -p \$dldir~
6268 $install_prog .libs/$dlname \$dldir/$dlname'
6269 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6270 dlpath=$dir/\$dldll~
6274 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6275 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6278 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6281 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6284 dynamic_linker='Win32 ld.exe'
6285 # FIXME: first we should search . and the directory the executable is in
6289 darwin* | rhapsody*)
6290 dynamic_linker="$host_os dyld"
6294 # FIXME: Relying on posixy $() will cause problems for
6295 # cross-compilation, but unfortunately the echo tests do not
6296 # yet detect zsh echo's removal of \ escapes.
6297 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)'
6298 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6299 shlibpath_overrides_runpath=yes
6300 shlibpath_var=DYLD_LIBRARY_PATH
6308 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6309 version_type=freebsd-$objformat
6310 case $version_type in
6312 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6317 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6321 shlibpath_var=LD_LIBRARY_PATH
6324 shlibpath_overrides_runpath=yes
6327 shlibpath_overrides_runpath=no
6328 hardcode_into_libs=yes
6337 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6338 soname_spec='${libname}${release}.so$major'
6339 shlibpath_var=LD_LIBRARY_PATH
6340 hardcode_into_libs=yes
6343 hpux9* | hpux10* | hpux11*)
6344 # Give a soname corresponding to the major version so that dld.sl refuses to
6345 # link against other versions.
6346 dynamic_linker="$host_os dld.sl"
6350 shlibpath_var=SHLIB_PATH
6351 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6352 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6353 soname_spec='${libname}${release}.sl$major'
6354 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6355 postinstall_cmds='chmod 555 $lib'
6358 irix5* | irix6* | nonstopux*)
6360 nonstopux*) version_type=nonstopux ;;
6361 *) version_type=irix ;;
6365 soname_spec='${libname}${release}.so$major'
6366 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6368 irix5* | nonstopux*)
6372 case $LD in # libtool.m4 will add one of these switches to LD
6373 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6374 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6375 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6376 *) libsuff= shlibsuff= libmagic=never-match;;
6380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6381 shlibpath_overrides_runpath=no
6382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6386 # No shared lib support for Linux oldld, aout, or coff.
6387 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6391 # This must be Linux ELF.
6396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6397 soname_spec='${libname}${release}.so$major'
6398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6399 shlibpath_var=LD_LIBRARY_PATH
6400 shlibpath_overrides_runpath=no
6401 # This implies no fast_install, which is unacceptable.
6402 # Some rework will be needed to allow for fast_install
6403 # before this can be enabled.
6404 hardcode_into_libs=yes
6406 # We used to test for /lib/ld.so.1 and disable shared libraries on
6407 # powerpc, because MkLinux only supported shared libraries with the
6408 # GNU dynamic linker. Since this was broken with cross compilers,
6409 # most powerpc-linux boxes support dynamic linking these days and
6410 # people can always --disable-shared, the test was removed, and we
6411 # assume the GNU/Linux dynamic linker is in use.
6412 dynamic_linker='GNU/Linux ld.so'
6419 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6420 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6422 dynamic_linker='NetBSD (a.out) ld.so'
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6425 soname_spec='${libname}${release}.so$major'
6426 dynamic_linker='NetBSD ld.elf_so'
6428 shlibpath_var=LD_LIBRARY_PATH
6429 shlibpath_overrides_runpath=yes
6430 hardcode_into_libs=yes
6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6436 shlibpath_var=LD_LIBRARY_PATH
6437 shlibpath_overrides_runpath=yes
6444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6446 openbsd2.[89] | openbsd2.[89].*)
6447 shlibpath_overrides_runpath=no
6450 shlibpath_overrides_runpath=yes
6454 shlibpath_overrides_runpath=yes
6456 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6458 shlibpath_var=LD_LIBRARY_PATH
6462 libname_spec='$name'
6464 library_names_spec='$libname.dll $libname.a'
6465 dynamic_linker='OS/2 ld.exe'
6466 shlibpath_var=LIBPATH
6469 osf3* | osf4* | osf5*)
6472 soname_spec='${libname}${release}.so$major'
6473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6474 shlibpath_var=LD_LIBRARY_PATH
6475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6476 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6477 hardcode_into_libs=yes
6482 soname_spec='${libname}${release}.so$major'
6483 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6484 shlibpath_var=LD_LIBRARY_PATH
6491 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6492 soname_spec='${libname}${release}.so$major'
6493 shlibpath_var=LD_LIBRARY_PATH
6494 shlibpath_overrides_runpath=yes
6495 hardcode_into_libs=yes
6496 # ldd complains unless libraries are executable
6497 postinstall_cmds='chmod +x $lib'
6502 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6504 shlibpath_var=LD_LIBRARY_PATH
6505 shlibpath_overrides_runpath=yes
6506 if test "$with_gnu_ld" = yes; then
6512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6514 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6515 soname_spec='${libname}${release}.so$major'
6516 shlibpath_var=LD_LIBRARY_PATH
6517 case $host_vendor in
6519 shlibpath_overrides_runpath=no
6521 export_dynamic_flag_spec='${wl}-Blargedynsym'
6522 runpath_var=LD_RUN_PATH
6530 shlibpath_overrides_runpath=no
6531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6538 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6539 soname_spec='${libname}${release}.so$major'
6540 shlibpath_var=LD_LIBRARY_PATH
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6548 soname_spec='${libname}${release}.so$major'
6549 shlibpath_var=LD_LIBRARY_PATH
6553 if test -d /usr/nec ;then
6555 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6556 soname_spec='$libname.so.$major'
6557 shlibpath_var=LD_LIBRARY_PATH
6565 echo "$ac_t""$dynamic_linker" 1>&6
6566 test "$dynamic_linker" = no && can_build_shared=no
6570 ## FIXME: this should be a separate macro
6572 # Report the final consequences.
6573 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6574 echo "configure:6575: checking if libtool supports shared libraries" >&5
6575 echo "$ac_t""$can_build_shared" 1>&6
6579 ## FIXME: this should be a separate macro
6581 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6582 echo "configure:6583: checking whether to build shared libraries" >&5
6583 test "$can_build_shared" = "no" && enable_shared=no
6585 # On AIX, shared libraries and static libraries use the same namespace, and
6586 # are all built from PIC.
6589 test "$enable_shared" = yes && enable_static=no
6590 if test -n "$RANLIB"; then
6591 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6592 postinstall_cmds='$RANLIB $lib'
6597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6598 test "$enable_shared" = yes && enable_static=no
6602 echo "$ac_t""$enable_shared" 1>&6
6606 ## FIXME: this should be a separate macro
6608 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6609 echo "configure:6610: checking whether to build static libraries" >&5
6610 # Make sure either enable_shared or enable_static is yes.
6611 test "$enable_shared" = yes || enable_static=yes
6612 echo "$ac_t""$enable_static" 1>&6
6616 if test "$hardcode_action" = relink; then
6617 # Fast installation is not supported
6618 enable_fast_install=no
6619 elif test "$shlibpath_overrides_runpath" = yes ||
6620 test "$enable_shared" = no; then
6621 # Fast installation is not necessary
6622 enable_fast_install=needless
6625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6626 if test "$GCC" = yes; then
6627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6630 if test "x$enable_dlopen" != xyes; then
6631 enable_dlopen=unknown
6632 enable_dlopen_self=unknown
6633 enable_dlopen_self_static=unknown
6640 lt_cv_dlopen="load_add_on"
6642 lt_cv_dlopen_self=yes
6645 cygwin* | mingw* | pw32*)
6646 lt_cv_dlopen="LoadLibrary"
6651 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6652 echo "configure:6653: checking for shl_load" >&5
6653 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* System header to define __stub macros and hopefully few prototypes,
6660 which can conflict with char shl_load(); below. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6670 /* The GNU C library defines this for functions which it implements
6671 to always fail with ENOSYS. Some functions are actually named
6672 something starting with __ and the normal name is an alias. */
6673 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_func_shl_load=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_func_shl_load=no"
6693 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 lt_cv_dlopen="shl_load"
6697 echo "$ac_t""no" 1>&6
6698 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6699 echo "configure:6700: checking for shl_load in -ldld" >&5
6700 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6701 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 ac_save_LIBS="$LIBS"
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 eval "ac_cv_lib_$ac_lib_var=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 eval "ac_cv_lib_$ac_lib_var=no"
6728 LIBS="$ac_save_LIBS"
6731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6735 echo "$ac_t""no" 1>&6
6736 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6737 echo "configure:6738: checking for dlopen" >&5
6738 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* System header to define __stub macros and hopefully few prototypes,
6745 which can conflict with char dlopen(); below. */
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6755 /* The GNU C library defines this for functions which it implements
6756 to always fail with ENOSYS. Some functions are actually named
6757 something starting with __ and the normal name is an alias. */
6758 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6768 eval "ac_cv_func_dlopen=yes"
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 eval "ac_cv_func_dlopen=no"
6778 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6779 echo "$ac_t""yes" 1>&6
6780 lt_cv_dlopen="dlopen"
6782 echo "$ac_t""no" 1>&6
6783 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6784 echo "configure:6785: checking for dlopen in -ldl" >&5
6785 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 ac_save_LIBS="$LIBS"
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6805 eval "ac_cv_lib_$ac_lib_var=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 eval "ac_cv_lib_$ac_lib_var=no"
6813 LIBS="$ac_save_LIBS"
6816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6820 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6822 echo "configure:6823: checking for dlopen in -lsvld" >&5
6823 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6824 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS="$LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6858 echo "$ac_t""no" 1>&6
6859 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6860 echo "configure:6861: checking for dld_link in -ldld" >&5
6861 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 ac_save_LIBS="$LIBS"
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 eval "ac_cv_lib_$ac_lib_var=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_lib_$ac_lib_var=no"
6889 LIBS="$ac_save_LIBS"
6892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6896 echo "$ac_t""no" 1>&6
6917 if test "x$lt_cv_dlopen" != xno; then
6923 case $lt_cv_dlopen in
6925 save_CPPFLAGS="$CPPFLAGS"
6926 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6928 save_LDFLAGS="$LDFLAGS"
6929 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6932 LIBS="$lt_cv_dlopen_libs $LIBS"
6934 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6935 echo "configure:6936: checking whether a program can dlopen itself" >&5
6936 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 if test "$cross_compiling" = yes; then :
6940 lt_cv_dlopen_self=cross
6942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6943 lt_status=$lt_dlunknown
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6955 # define LT_DLGLOBAL RTLD_GLOBAL
6958 # define LT_DLGLOBAL DL_GLOBAL
6960 # define LT_DLGLOBAL 0
6964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6965 find out it does not work in some platform. */
6966 #ifndef LT_DLLAZY_OR_NOW
6968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6971 # define LT_DLLAZY_OR_NOW DL_LAZY
6974 # define LT_DLLAZY_OR_NOW RTLD_NOW
6977 # define LT_DLLAZY_OR_NOW DL_NOW
6979 # define LT_DLLAZY_OR_NOW 0
6987 extern "C" void exit (int);
6990 void fnord() { int i=42;}
6993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6994 int status = $lt_dlunknown;
6998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6999 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7000 /* dlclose (self); */
7006 if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7007 (./conftest; exit; ) 2>/dev/null
7010 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7011 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7012 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7015 # compilation failed
7016 lt_cv_dlopen_self=no
7024 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7026 if test "x$lt_cv_dlopen_self" = xyes; then
7027 LDFLAGS="$LDFLAGS $link_static_flag"
7028 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7029 echo "configure:7030: checking whether a statically linked program can dlopen itself" >&5
7030 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 if test "$cross_compiling" = yes; then :
7034 lt_cv_dlopen_self_static=cross
7036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7037 lt_status=$lt_dlunknown
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7049 # define LT_DLGLOBAL RTLD_GLOBAL
7052 # define LT_DLGLOBAL DL_GLOBAL
7054 # define LT_DLGLOBAL 0
7058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7059 find out it does not work in some platform. */
7060 #ifndef LT_DLLAZY_OR_NOW
7062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7065 # define LT_DLLAZY_OR_NOW DL_LAZY
7068 # define LT_DLLAZY_OR_NOW RTLD_NOW
7071 # define LT_DLLAZY_OR_NOW DL_NOW
7073 # define LT_DLLAZY_OR_NOW 0
7081 extern "C" void exit (int);
7084 void fnord() { int i=42;}
7087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7088 int status = $lt_dlunknown;
7092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7094 /* dlclose (self); */
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7101 (./conftest; exit; ) 2>/dev/null
7104 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7105 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7106 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7109 # compilation failed
7110 lt_cv_dlopen_self_static=no
7118 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7121 CPPFLAGS="$save_CPPFLAGS"
7122 LDFLAGS="$save_LDFLAGS"
7127 case $lt_cv_dlopen_self in
7128 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7129 *) enable_dlopen_self=unknown ;;
7132 case $lt_cv_dlopen_self_static in
7133 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7134 *) enable_dlopen_self_static=unknown ;;
7139 ## FIXME: this should be a separate macro
7141 if test "$enable_shared" = yes && test "$GCC" = yes; then
7142 case $archive_cmds in
7144 # FIXME: we may have to deal with multi-command sequences.
7147 # Test whether the compiler implicitly links with -lc since on some
7148 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7149 # to ld, don't add -lc before -lgcc.
7150 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7151 echo "configure:7152: checking whether -lc should be explicitly linked in" >&5
7152 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7156 echo 'static int dummy;' > conftest.$ac_ext
7158 if { (eval echo configure:7159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7161 libobjs=conftest.$ac_objext
7163 wl=$lt_cv_prog_cc_wl
7169 save_allow_undefined_flag=$allow_undefined_flag
7170 allow_undefined_flag=
7171 if { (eval echo configure:7172: \"$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; }
7173 lt_cv_archive_cmds_need_lc=no
7175 lt_cv_archive_cmds_need_lc=yes
7177 allow_undefined_flag=$save_allow_undefined_flag
7179 cat conftest.err 1>&5
7183 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7187 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7191 ## FIXME: this should be a separate macro
7193 # The second clause should only fire when bootstrapping the
7194 # libtool distribution, otherwise you forgot to ship ltmain.sh
7195 # with your package, and you will get complaints that there are
7196 # no rules to generate ltmain.sh.
7197 if test -f "$ltmain"; then
7200 # If there is no Makefile yet, we rely on a make rule to execute
7201 # `config.status --recheck' to rerun these tests and create the
7202 # libtool script then.
7203 test -f Makefile && make "$ltmain"
7206 if test -f "$ltmain"; then
7207 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7210 echo creating $ofile
7212 # Now quote all the things that may contain metacharacters while being
7213 # careful not to overquote the AC_SUBSTed values. We take copies of the
7214 # variables and quote the copies for generation of the libtool script.
7215 for var in echo old_CC old_CFLAGS SED \
7216 AR AR_FLAGS CC LD LN_S NM SHELL \
7217 reload_flag reload_cmds wl \
7218 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7219 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7220 library_names_spec soname_spec \
7221 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7222 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7223 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7224 old_striplib striplib file_magic_cmd export_symbols_cmds \
7225 deplibs_check_method allow_undefined_flag no_undefined_flag \
7226 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7227 global_symbol_to_c_name_address \
7228 hardcode_libdir_flag_spec hardcode_libdir_separator \
7229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7230 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7233 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7234 old_postinstall_cmds | old_postuninstall_cmds | \
7235 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7236 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7237 postinstall_cmds | postuninstall_cmds | \
7238 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7239 # Double-quote double-evaled strings.
7240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7248 cat <<__EOF__ > "${ofile}T"
7251 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7252 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7253 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7255 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7258 # This program is free software; you can redistribute it and/or modify
7259 # it under the terms of the GNU General Public License as published by
7260 # the Free Software Foundation; either version 2 of the License, or
7261 # (at your option) any later version.
7263 # This program is distributed in the hope that it will be useful, but
7264 # WITHOUT ANY WARRANTY; without even the implied warranty of
7265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7266 # General Public License for more details.
7268 # You should have received a copy of the GNU General Public License
7269 # along with this program; if not, write to the Free Software
7270 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7272 # As a special exception to the GNU General Public License, if you
7273 # distribute this file as part of a program that contains a
7274 # configuration script generated by Autoconf, you may include it under
7275 # the same distribution terms that you use for the rest of that program.
7277 # A sed that does not truncate output.
7280 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7281 Xsed="${SED} -e s/^X//"
7283 # The HP-UX ksh and POSIX shell print the target directory to stdout
7285 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7287 # ### BEGIN LIBTOOL CONFIG
7289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7291 # Shell to use when invoking shell scripts.
7294 # Whether or not to build shared libraries.
7295 build_libtool_libs=$enable_shared
7297 # Whether or not to build static libraries.
7298 build_old_libs=$enable_static
7300 # Whether or not to add -lc for building shared libraries.
7301 build_libtool_need_lc=$need_lc
7303 # Whether or not to optimize for fast installation.
7304 fast_install=$enable_fast_install
7307 host_alias=$host_alias
7310 # An echo program that does not interpret backslashes.
7315 AR_FLAGS=$lt_AR_FLAGS
7317 # The default C compiler.
7320 # Is the compiler the GNU C compiler?
7323 # The linker used to build libraries.
7326 # Whether we need hard or soft links.
7329 # A BSD-compatible nm program.
7332 # A symbol stripping program
7335 # Used to examine libraries when file_magic_cmd begins "file"
7336 MAGIC_CMD=$MAGIC_CMD
7338 # Used on cygwin: DLL creation program.
7341 # Used on cygwin: object dumper.
7344 # Used on cygwin: assembler.
7347 # The name of the directory that contains temporary libtool files.
7350 # How to create reloadable object files.
7351 reload_flag=$lt_reload_flag
7352 reload_cmds=$lt_reload_cmds
7354 # How to pass a linker flag through the compiler.
7357 # Object file suffix (normally "o").
7360 # Old archive suffix (normally "a").
7363 # Executable file suffix (normally "").
7366 # Additional compiler flags for building library objects.
7367 pic_flag=$lt_pic_flag
7370 # Does compiler simultaneously support -c and -o options?
7371 compiler_c_o=$lt_compiler_c_o
7373 # Can we write directly to a .lo ?
7374 compiler_o_lo=$lt_compiler_o_lo
7376 # Must we lock files when doing compilation ?
7377 need_locks=$lt_need_locks
7379 # Do we need the lib prefix for modules?
7380 need_lib_prefix=$need_lib_prefix
7382 # Do we need a version for libraries?
7383 need_version=$need_version
7385 # Whether dlopen is supported.
7386 dlopen_support=$enable_dlopen
7388 # Whether dlopen of programs is supported.
7389 dlopen_self=$enable_dlopen_self
7391 # Whether dlopen of statically linked programs is supported.
7392 dlopen_self_static=$enable_dlopen_self_static
7394 # Compiler flag to prevent dynamic linking.
7395 link_static_flag=$lt_link_static_flag
7397 # Compiler flag to turn off builtin functions.
7398 no_builtin_flag=$lt_no_builtin_flag
7400 # Compiler flag to allow reflexive dlopens.
7401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7403 # Compiler flag to generate shared objects directly from archives.
7404 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7406 # Compiler flag to generate thread-safe objects.
7407 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7409 # Library versioning type.
7410 version_type=$version_type
7412 # Format of library name prefix.
7413 libname_spec=$lt_libname_spec
7415 # List of archive names. First name is the real one, the rest are links.
7416 # The last name is the one that the linker finds with -lNAME.
7417 library_names_spec=$lt_library_names_spec
7419 # The coded name of the library, if different from the real name.
7420 soname_spec=$lt_soname_spec
7422 # Commands used to build and install an old-style archive.
7424 old_archive_cmds=$lt_old_archive_cmds
7425 old_postinstall_cmds=$lt_old_postinstall_cmds
7426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7428 # Create an old-style archive from a shared archive.
7429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7431 # Create a temporary old-style archive to link instead of a shared archive.
7432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7434 # Commands used to build and install a shared archive.
7435 archive_cmds=$lt_archive_cmds
7436 archive_expsym_cmds=$lt_archive_expsym_cmds
7437 postinstall_cmds=$lt_postinstall_cmds
7438 postuninstall_cmds=$lt_postuninstall_cmds
7440 # Commands to strip libraries.
7441 old_striplib=$lt_old_striplib
7442 striplib=$lt_striplib
7444 # Method to check whether dependent libraries are shared objects.
7445 deplibs_check_method=$lt_deplibs_check_method
7447 # Command to use when deplibs_check_method == file_magic.
7448 file_magic_cmd=$lt_file_magic_cmd
7450 # Flag that allows shared libraries with undefined symbols to be built.
7451 allow_undefined_flag=$lt_allow_undefined_flag
7453 # Flag that forces no undefined symbols.
7454 no_undefined_flag=$lt_no_undefined_flag
7456 # Commands used to finish a libtool library installation in a directory.
7457 finish_cmds=$lt_finish_cmds
7459 # Same as above, but a single script fragment to be evaled but not shown.
7460 finish_eval=$lt_finish_eval
7462 # Take the output of nm and produce a listing of raw symbols and C names.
7463 global_symbol_pipe=$lt_global_symbol_pipe
7465 # Transform the output of nm in a proper C declaration
7466 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7468 # Transform the output of nm in a C name address pair
7469 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7471 # This is the shared library runtime path variable.
7472 runpath_var=$runpath_var
7474 # This is the shared library path variable.
7475 shlibpath_var=$shlibpath_var
7477 # Is shlibpath searched before the hard-coded library search path?
7478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7480 # How to hardcode a shared library path into an executable.
7481 hardcode_action=$hardcode_action
7483 # Whether we should hardcode library paths into libraries.
7484 hardcode_into_libs=$hardcode_into_libs
7486 # Flag to hardcode \$libdir into a binary during linking.
7487 # This must work even if \$libdir does not exist.
7488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7490 # Whether we need a single -rpath flag with a separated argument.
7491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7493 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7495 hardcode_direct=$hardcode_direct
7497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7499 hardcode_minus_L=$hardcode_minus_L
7501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7502 # the resulting binary.
7503 hardcode_shlibpath_var=$hardcode_shlibpath_var
7505 # Variables whose values should be saved in libtool wrapper scripts and
7506 # restored at relink time.
7507 variables_saved_for_relink="$variables_saved_for_relink"
7509 # Whether libtool must link a program against all its dependency libraries.
7510 link_all_deplibs=$link_all_deplibs
7512 # Compile-time system search path for libraries
7513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7515 # Run-time system search path for libraries
7516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7518 # Fix the shell variable \$srcfile for the compiler.
7519 fix_srcfile_path="$fix_srcfile_path"
7521 # Set to yes if exported symbols are required.
7522 always_export_symbols=$always_export_symbols
7524 # The commands to list exported symbols.
7525 export_symbols_cmds=$lt_export_symbols_cmds
7527 # The commands to extract the exported symbol list from a shared archive.
7528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7530 # Symbols that should not be listed in the preloaded symbols.
7531 exclude_expsyms=$lt_exclude_expsyms
7533 # Symbols that must always be exported.
7534 include_expsyms=$lt_include_expsyms
7536 # ### END LIBTOOL CONFIG
7542 cat <<\EOF >> "${ofile}T"
7544 # AIX sometimes has problems with the GCC collect2 program. For some
7545 # reason, if we set the COLLECT_NAMES environment variable, the problems
7546 # vanish in a puff of smoke.
7547 if test "X${COLLECT_NAMES+set}" != Xset; then
7549 export COLLECT_NAMES
7556 cygwin* | mingw* | pw32* | os2*)
7557 cat <<'EOF' >> "${ofile}T"
7558 # This is a source program that is used to create dlls on Windows
7559 # Don't remove nor modify the starting and closing comments
7560 # /* ltdll.c starts here */
7561 # #define WIN32_LEAN_AND_MEAN
7562 # #include <windows.h>
7563 # #undef WIN32_LEAN_AND_MEAN
7564 # #include <stdio.h>
7566 # #ifndef __CYGWIN__
7567 # # ifdef __CYGWIN32__
7568 # # define __CYGWIN__ __CYGWIN32__
7572 # #ifdef __cplusplus
7575 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7576 # #ifdef __cplusplus
7581 # #include <cygwin/cygwin_dll.h>
7582 # DECLARE_CYGWIN_DLL( DllMain );
7584 # HINSTANCE __hDllInstance_base;
7587 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7589 # __hDllInstance_base = hInst;
7592 # /* ltdll.c ends here */
7593 # This is a source program that is used to create import libraries
7594 # on Windows for dlls which lack them. Don't remove nor modify the
7595 # starting and closing comments
7596 # /* impgen.c starts here */
7597 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7599 # This file is part of GNU libtool.
7601 # This program is free software; you can redistribute it and/or modify
7602 # it under the terms of the GNU General Public License as published by
7603 # the Free Software Foundation; either version 2 of the License, or
7604 # (at your option) any later version.
7606 # This program is distributed in the hope that it will be useful,
7607 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7608 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7609 # GNU General Public License for more details.
7611 # You should have received a copy of the GNU General Public License
7612 # along with this program; if not, write to the Free Software
7613 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7616 # #include <stdio.h> /* for printf() */
7617 # #include <unistd.h> /* for open(), lseek(), read() */
7618 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7619 # #include <string.h> /* for strdup() */
7621 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7623 # #define O_BINARY 0
7626 # static unsigned int
7627 # pe_get16 (fd, offset)
7631 # unsigned char b[2];
7632 # lseek (fd, offset, SEEK_SET);
7634 # return b[0] + (b[1]<<8);
7637 # static unsigned int
7638 # pe_get32 (fd, offset)
7642 # unsigned char b[4];
7643 # lseek (fd, offset, SEEK_SET);
7645 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7648 # static unsigned int
7652 # unsigned char *b = ptr;
7653 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7662 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7663 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7664 # unsigned long name_rvas, nexp;
7665 # unsigned char *expdata, *erva;
7666 # char *filename, *dll_name;
7668 # filename = argv[1];
7670 # dll = open(filename, O_RDONLY|O_BINARY);
7674 # dll_name = filename;
7676 # for (i=0; filename[i]; i++)
7677 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7678 # dll_name = filename + i +1;
7680 # pe_header_offset = pe_get32 (dll, 0x3c);
7681 # opthdr_ofs = pe_header_offset + 4 + 20;
7682 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7684 # if (num_entries < 1) /* no exports */
7687 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7688 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7689 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7690 # secptr = (pe_header_offset + 4 + 20 +
7691 # pe_get16 (dll, pe_header_offset + 4 + 16));
7694 # for (i = 0; i < nsections; i++)
7697 # unsigned long secptr1 = secptr + 40 * i;
7698 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7699 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7700 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7701 # lseek(dll, secptr1, SEEK_SET);
7702 # read(dll, sname, 8);
7703 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7705 # expptr = fptr + (export_rva - vaddr);
7706 # if (export_rva + export_size > vaddr + vsize)
7707 # export_size = vsize - (export_rva - vaddr);
7712 # expdata = (unsigned char*)malloc(export_size);
7713 # lseek (dll, expptr, SEEK_SET);
7714 # read (dll, expdata, export_size);
7715 # erva = expdata - export_rva;
7717 # nexp = pe_as32 (expdata+24);
7718 # name_rvas = pe_as32 (expdata+32);
7720 # printf ("EXPORTS\n");
7721 # for (i = 0; i<nexp; i++)
7723 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7724 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7729 # /* impgen.c ends here */
7735 # We use sed instead of cat because bash on DJGPP gets confused if
7736 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7737 # text mode, it properly converts lines to CR/LF. This bash problem
7738 # is reportedly fixed, but why not run on old versions too?
7739 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7741 mv -f "${ofile}T" "$ofile" || \
7742 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7752 # This can be used to rebuild libtool when needed
7753 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7755 # Always use our own libtool.
7756 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7758 # Prevent multiple expansion
7762 # test for ln hardlink support
7763 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7764 echo "configure:7765: checking whether ln works" >&5
7765 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 rm -f conftest.src conftest.dst
7769 echo "conftest" > conftest.src
7770 if ln conftest.src conftest.dst 2>/dev/null
7772 ol_cv_prog_LN_H="ln"
7774 ol_cv_prog_LN_H="cp"
7776 rm -f conftest.src conftest.dst
7779 LN_H="$ol_cv_prog_LN_H"
7780 if test "$ol_cv_prog_LN_H" = "ln"; then
7781 echo "$ac_t""yes" 1>&6
7783 echo "$ac_t""no" 1>&6
7786 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7787 echo "configure:7788: checking whether ln -s works" >&5
7788 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7792 if ln -s X conftestdata 2>/dev/null
7795 ac_cv_prog_LN_S="ln -s"
7800 LN_S="$ac_cv_prog_LN_S"
7801 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7802 echo "$ac_t""yes" 1>&6
7804 echo "$ac_t""no" 1>&6
7809 if test $ol_enable_perl != no ; then
7810 # Extract the first word of "perl", so it can be a program name with args.
7811 set dummy perl; ac_word=$2
7812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_word" >&5
7814 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7819 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7822 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7827 for ac_dir in $ac_dummy; do
7828 test -z "$ac_dir" && ac_dir=.
7829 if test -f $ac_dir/$ac_word; then
7830 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7835 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7839 PERLBIN="$ac_cv_path_PERLBIN"
7840 if test -n "$PERLBIN"; then
7841 echo "$ac_t""$PERLBIN" 1>&6
7843 echo "$ac_t""no" 1>&6
7847 if test "no$PERLBIN" = "no" ; then
7848 if test $ol_enable_perl = yes ; then
7849 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7853 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7854 if test x"$ol_with_perl_module" = "xstatic" ; then
7855 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7857 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7863 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7864 echo "configure:7865: checking how to run the C preprocessor" >&5
7865 # On Suns, sometimes $CPP names a directory.
7866 if test -n "$CPP" && test -d "$CPP"; then
7869 if test -z "$CPP"; then
7870 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 # This must be in double quotes, not single quotes, because CPP may get
7874 # substituted into the Makefile and "${CC-cc}" will confuse make.
7876 # On the NeXT, cc -E runs the code through the compiler's parser,
7877 # not just through cpp.
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7885 { (eval echo configure:7886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7887 if test -z "$ac_err"; then
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 CPP="${CC-cc} -E -traditional-cpp"
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7902 { (eval echo configure:7903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7904 if test -z "$ac_err"; then
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 CPP="${CC-cc} -nologo -E"
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7919 { (eval echo configure:7920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7921 if test -z "$ac_err"; then
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7935 ac_cv_prog_CPP="$CPP"
7937 CPP="$ac_cv_prog_CPP"
7939 ac_cv_prog_CPP="$CPP"
7941 echo "$ac_t""$CPP" 1>&6
7944 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7945 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7947 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7948 echo "configure: warning: programs compiled here do not run here..." 1>&2
7949 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7953 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7954 echo "configure:7959: checking for Cygwin environment" >&5
7955 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7964 "configure"
7960 #include "confdefs.h"
7965 #define __CYGWIN__ __CYGWIN32__
7970 if { (eval echo configure:7975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7982 echo "$ac_t""$ac_cv_cygwin" 1>&6
7984 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7985 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7986 echo "configure:7991: checking for mingw32 environment" >&5
7987 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7996 "configure"
7992 #include "confdefs.h"
7998 if { (eval echo configure:8003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8010 echo "$ac_t""$ac_cv_mingw32" 1>&6
8012 test "$ac_cv_mingw32" = yes && MINGW32=yes
8016 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8017 echo "configure:8022: checking for executable suffix" >&5
8018 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8021 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8025 echo 'int main () { return 0; }' > conftest.$ac_ext
8027 if { (eval echo configure:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8028 for file in conftest.*; do
8030 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8031 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8035 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8038 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8043 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8044 echo "$ac_t""${ac_cv_exeext}" 1>&6
8047 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8048 echo "configure:8053: checking for object suffix" >&5
8049 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8053 echo 'int i = 1;' > conftest.$ac_ext
8054 if { (eval echo configure:8059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8055 for ac_file in conftest.*; do
8058 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8062 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8067 echo "$ac_t""$ac_cv_objext" 1>&6
8068 OBJEXT=$ac_cv_objext
8069 ac_objext=$ac_cv_objext
8072 cat >> confdefs.h <<EOF
8073 #define EXEEXT "${EXEEXT}"
8077 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8078 echo "configure:8083: checking for be_app in -lbe" >&5
8079 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8080 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 ac_save_LIBS="$LIBS"
8084 LIBS="-lbe -lroot -lnet $LIBS"
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8091 "configure"
8087 #include "confdefs.h"
8088 /* Override any gcc2 internal prototype to avoid an error. */
8089 /* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8097 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 eval "ac_cv_lib_$ac_lib_var=yes"
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 eval "ac_cv_lib_$ac_lib_var=no"
8107 LIBS="$ac_save_LIBS"
8110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8111 echo "$ac_t""yes" 1>&6
8112 LIBS="$LIBS -lbe -lroot -lnet"
8114 echo "$ac_t""no" 1>&6
8122 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8123 echo "configure:8128: checking for ${CC-cc} option to accept ANSI C" >&5
8124 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 am_cv_prog_cc_stdc=no
8129 # Don't try gcc -ansi; that turns off useful extensions and
8130 # breaks some systems' header files.
8131 # AIX -qlanglvl=ansi
8132 # Ultrix and OSF/1 -std1
8133 # HP-UX 10.20 and later -Ae
8134 # HP-UX older versions -Aa -D_HPUX_SOURCE
8135 # SVR4 -Xc -D__EXTENSIONS__
8136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8138 CC="$ac_save_CC $ac_arg"
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8145 "configure"
8141 #include "confdefs.h"
8144 #include <sys/types.h>
8145 #include <sys/stat.h>
8146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8147 struct buf { int x; };
8148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8149 static char *e (p, i)
8155 static char *f (char * (*g) (char **, int), char **p, ...)
8160 s = g (p, va_arg (v,int));
8164 int test (int i, double x);
8165 struct s1 {int (*f) (int a);};
8166 struct s2 {int (*f) (double a);};
8167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8177 if { (eval echo configure:8182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8179 am_cv_prog_cc_stdc="$ac_arg"; break
8181 echo "configure: failed program was:" >&5
8182 cat conftest.$ac_ext >&5
8190 if test -z "$am_cv_prog_cc_stdc"; then
8191 echo "$ac_t""none needed" 1>&6
8193 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8195 case "x$am_cv_prog_cc_stdc" in
8197 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8200 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8201 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8204 # test for make depend flag
8207 if test -z "${MKDEP}"; then
8209 if test -z "${MKDEP_FLAGS}"; then
8210 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8211 echo "configure:8216: checking for ${OL_MKDEP} depend flag" >&5
8212 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8217 for flag in "-M" "-xM"; do
8218 cat > conftest.c <<EOF
8221 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8222 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8224 if test ! -f conftest."${ac_object}" ; then
8226 OL_MKDEP_FLAGS="$flag"
8235 echo "$ac_t""$ol_cv_mkdep" 1>&6
8238 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8243 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8248 if test "${ol_cv_mkdep}" = no ; then
8249 # this will soon become an error
8250 echo "configure: warning: do not know how to generate dependencies" 1>&2
8253 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8254 echo "configure:8259: checking for afopen in -ls" >&5
8255 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8256 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8257 echo $ac_n "(cached) $ac_c" 1>&6
8259 ac_save_LIBS="$LIBS"
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8267 "configure"
8263 #include "confdefs.h"
8264 /* Override any gcc2 internal prototype to avoid an error. */
8265 /* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
8273 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8275 eval "ac_cv_lib_$ac_lib_var=yes"
8277 echo "configure: failed program was:" >&5
8278 cat conftest.$ac_ext >&5
8280 eval "ac_cv_lib_$ac_lib_var=no"
8283 LIBS="$ac_save_LIBS"
8286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8287 echo "$ac_t""yes" 1>&6
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_AIX_SECURITY 1
8296 echo "$ac_t""no" 1>&6
8302 ac_cv_func_getopt=no
8303 cat >> confdefs.h <<\EOF
8304 #define BOTH_STRINGS_H 1
8311 if test $ol_enable_modules != no ; then
8312 for ac_hdr in ltdl.h
8314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8316 echo "configure:8321: checking for $ac_hdr" >&5
8317 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8326 "configure"
8322 #include "confdefs.h"
8325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8326 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8328 if test -z "$ac_err"; then
8330 eval "ac_cv_header_$ac_safe=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_header_$ac_safe=no"
8340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8343 cat >> confdefs.h <<EOF
8344 #define $ac_tr_hdr 1
8348 echo "$ac_t""no" 1>&6
8353 if test $ac_cv_header_ltdl_h = no ; then
8354 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8357 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8358 echo "configure:8363: checking for lt_dlinit in -lltdl" >&5
8359 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8360 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8363 ac_save_LIBS="$LIBS"
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8371 "configure"
8367 #include "confdefs.h"
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 /* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8377 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8379 eval "ac_cv_lib_$ac_lib_var=yes"
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 eval "ac_cv_lib_$ac_lib_var=no"
8387 LIBS="$ac_save_LIBS"
8390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8391 echo "$ac_t""yes" 1>&6
8394 cat >> confdefs.h <<\EOF
8395 #define HAVE_LIBLTDL 1
8400 echo "$ac_t""no" 1>&6
8404 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8405 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8409 ol_with_bdb_module=static
8410 ol_with_dnssrv_module=static
8411 ol_with_ldap_module=static
8412 ol_with_ldbm_module=static
8413 ol_with_meta_module=static
8414 ol_with_monitor_module=static
8415 ol_with_null_module=static
8416 ol_with_passwd_module=static
8417 ol_with_perl_module=static
8418 ol_with_shell_module=static
8419 ol_with_sql_module=static
8423 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8424 echo "configure:8429: checking for EBCDIC" >&5
8425 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8435 "configure"
8431 #include "confdefs.h"
8434 #include <__ASCII__/generate_error.h>
8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8439 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8441 if test -z "$ac_err"; then
8443 ol_cv_cpp_ebcdic=yes
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8454 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8455 if test $ol_cv_cpp_ebcdic = yes ; then
8456 cat >> confdefs.h <<\EOF
8457 #define HAVE_EBCDIC 1
8462 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8463 echo "configure:8468: checking for ANSI C header files" >&5
8464 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8467 cat > conftest.$ac_ext <<EOF
8468 #line 8473 "configure"
8469 #include "confdefs.h"
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then
8480 ol_cv_header_stdc=yes
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 ol_cv_header_stdc=no
8490 if test $ol_cv_header_stdc = yes; then
8491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8498 "configure"
8494 #include "confdefs.h"
8497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8498 egrep "memchr" >/dev/null 2>&1; then
8502 ol_cv_header_stdc=no
8508 if test $ol_cv_header_stdc = yes; then
8509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8510 cat > conftest.$ac_ext <<EOF
8511 #line 8516 "configure"
8512 #include "confdefs.h"
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516 egrep "free" >/dev/null 2>&1; then
8520 ol_cv_header_stdc=no
8526 if test $ol_cv_header_stdc = yes; then
8527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8528 if test "$cross_compiling" = yes; then
8531 cat > conftest.$ac_ext <<EOF
8532 #line 8537 "configure"
8533 #include "confdefs.h"
8536 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8537 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8539 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8540 || ('j' <= (c) && (c) <= 'r') \
8541 || ('s' <= (c) && (c) <= 'z'))
8542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8545 int main () { int i; for (i = 0; i < 256; i++)
8546 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8550 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8557 ol_cv_header_stdc=no
8565 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8566 if test $ol_cv_header_stdc = yes; then
8567 cat >> confdefs.h <<\EOF
8568 #define STDC_HEADERS 1
8572 ac_cv_header_stdc=disable
8575 if test $ol_cv_header_stdc != yes; then
8576 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8580 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8583 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8584 echo "configure:8589: checking for $ac_hdr that defines DIR" >&5
8585 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8588 cat > conftest.$ac_ext <<EOF
8589 #line 8594 "configure"
8590 #include "confdefs.h"
8591 #include <sys/types.h>
8597 if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8599 eval "ac_cv_header_dirent_$ac_safe=yes"
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 eval "ac_cv_header_dirent_$ac_safe=no"
8608 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8611 cat >> confdefs.h <<EOF
8612 #define $ac_tr_hdr 1
8614 ac_header_dirent=$ac_hdr; break
8616 echo "$ac_t""no" 1>&6
8619 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8620 if test $ac_header_dirent = dirent.h; then
8621 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8622 echo "configure:8627: checking for opendir in -ldir" >&5
8623 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 ac_save_LIBS="$LIBS"
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8635 "configure"
8631 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8641 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8643 eval "ac_cv_lib_$ac_lib_var=yes"
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8648 eval "ac_cv_lib_$ac_lib_var=no"
8651 LIBS="$ac_save_LIBS"
8654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8655 echo "$ac_t""yes" 1>&6
8658 echo "$ac_t""no" 1>&6
8662 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8663 echo "configure:8668: checking for opendir in -lx" >&5
8664 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8668 ac_save_LIBS="$LIBS"
8670 cat > conftest.$ac_ext <<EOF
8671 #line 8676 "configure"
8672 #include "confdefs.h"
8673 /* Override any gcc2 internal prototype to avoid an error. */
8674 /* We use char because int might match the return type of a gcc2
8675 builtin and then its argument prototype would still apply. */
8682 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8684 eval "ac_cv_lib_$ac_lib_var=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_lib_$ac_lib_var=no"
8692 LIBS="$ac_save_LIBS"
8695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8696 echo "$ac_t""yes" 1>&6
8699 echo "$ac_t""no" 1>&6
8704 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8705 echo "configure:8710: checking for sys/wait.h that is POSIX.1 compatible" >&5
8706 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8715 "configure"
8711 #include "confdefs.h"
8712 #include <sys/types.h>
8713 #include <sys/wait.h>
8715 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8718 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8726 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8728 ac_cv_header_sys_wait_h=yes
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 ac_cv_header_sys_wait_h=no
8738 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8739 if test $ac_cv_header_sys_wait_h = yes; then
8740 cat >> confdefs.h <<\EOF
8741 #define HAVE_SYS_WAIT_H 1
8746 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8747 echo "configure:8752: checking POSIX termios" >&5
8748 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8757 "configure"
8753 #include "confdefs.h"
8754 #include <sys/types.h>
8756 #include <termios.h>
8758 /* SunOS 4.0.3 has termios.h but not the library calls. */
8762 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8764 am_cv_sys_posix_termios=yes
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8769 am_cv_sys_posix_termios=no
8774 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8777 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8778 echo "configure:8783: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8779 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8784 gwinsz_in_termios_h=no
8785 if test $am_cv_sys_posix_termios = yes; then
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8792 "configure"
8788 #include "confdefs.h"
8789 #include <sys/types.h>
8790 # include <termios.h>
8796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8797 egrep "yes" >/dev/null 2>&1; then
8799 gwinsz_in_termios_h=yes
8805 if test $gwinsz_in_termios_h = no; then
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8812 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8810 # include <sys/ioctl.h>
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 egrep "yes" >/dev/null 2>&1; then
8819 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8827 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8828 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8829 cat >> confdefs.h <<\EOF
8830 #define GWINSZ_IN_SYS_IOCTL 1
8835 if test $am_cv_sys_posix_termios = yes ; then
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_POSIX_TERMIOS 1
8892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8894 echo "configure:8899: checking for $ac_hdr" >&5
8895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8904 "configure"
8900 #include "confdefs.h"
8903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8904 { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906 if test -z "$ac_err"; then
8908 eval "ac_cv_header_$ac_safe=yes"
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 eval "ac_cv_header_$ac_safe=no"
8918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8921 cat >> confdefs.h <<EOF
8922 #define $ac_tr_hdr 1
8926 echo "$ac_t""no" 1>&6
8933 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8934 echo "configure:8939: checking for dlopen" >&5
8935 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8944 "configure"
8940 #include "confdefs.h"
8941 /* System header to define __stub macros and hopefully few prototypes,
8942 which can conflict with char dlopen(); below. */
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8963 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 eval "ac_cv_func_dlopen=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 eval "ac_cv_func_dlopen=no"
8975 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8979 echo "$ac_t""no" 1>&6
8980 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8981 echo "configure:8986: checking for dlopen in -ldl" >&5
8982 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8986 ac_save_LIBS="$LIBS"
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8994 "configure"
8990 #include "confdefs.h"
8991 /* Override any gcc2 internal prototype to avoid an error. */
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
9000 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 eval "ac_cv_lib_$ac_lib_var=yes"
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9007 eval "ac_cv_lib_$ac_lib_var=no"
9010 LIBS="$ac_save_LIBS"
9013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9014 echo "$ac_t""yes" 1>&6
9015 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_lib 1
9024 echo "$ac_t""no" 1>&6
9030 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9031 echo "configure:9036: checking for sigset in -lV3" >&5
9032 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9036 ac_save_LIBS="$LIBS"
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9044 "configure"
9040 #include "confdefs.h"
9041 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9050 if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052 eval "ac_cv_lib_$ac_lib_var=yes"
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 eval "ac_cv_lib_$ac_lib_var=no"
9060 LIBS="$ac_save_LIBS"
9063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9064 echo "$ac_t""yes" 1>&6
9065 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9067 cat >> confdefs.h <<EOF
9068 #define $ac_tr_lib 1
9074 echo "$ac_t""no" 1>&6
9078 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9079 echo "configure:9084: checking for winsock" >&5
9081 for curlib in ws2_32 wsock32; do
9082 LIBS="$LIBS -l$curlib"
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9089 "configure"
9085 #include "confdefs.h"
9089 char closesocket@4();
9090 char gethostname@8();
9101 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9112 if test $have_winsock = yes; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_WINSOCK 1
9117 ac_cv_func_socket=yes
9118 ac_cv_func_select=yes
9119 ac_cv_func_closesocket=yes
9120 ac_cv_func_gethostname=yes
9121 if test $curlib = ws2_32; then
9122 have_winsock=winsock2
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_WINSOCK2 1
9132 echo "$ac_t""$have_winsock" 1>&6
9135 echo $ac_n "checking for socket""... $ac_c" 1>&6
9136 echo "configure:9141: checking for socket" >&5
9137 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9146 "configure"
9142 #include "confdefs.h"
9143 /* System header to define __stub macros and hopefully few prototypes,
9144 which can conflict with char socket(); below. */
9146 /* Override any gcc2 internal prototype to avoid an error. */
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined (__stub_socket) || defined (__stub___socket)
9165 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9167 eval "ac_cv_func_socket=yes"
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9172 eval "ac_cv_func_socket=no"
9177 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9181 echo "$ac_t""no" 1>&6
9183 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9184 echo "configure:9189: checking for main in -lsocket" >&5
9185 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9189 ac_save_LIBS="$LIBS"
9190 LIBS="-lsocket $LIBS"
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9197 "configure"
9193 #include "confdefs.h"
9199 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 eval "ac_cv_lib_$ac_lib_var=yes"
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9206 eval "ac_cv_lib_$ac_lib_var=no"
9209 LIBS="$ac_save_LIBS"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_lib 1
9220 LIBS="-lsocket $LIBS"
9223 echo "$ac_t""no" 1>&6
9226 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9227 echo "configure:9232: checking for main in -lnet" >&5
9228 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9232 ac_save_LIBS="$LIBS"
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9240 "configure"
9236 #include "confdefs.h"
9242 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 eval "ac_cv_lib_$ac_lib_var=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_lib_$ac_lib_var=no"
9252 LIBS="$ac_save_LIBS"
9255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_lib 1
9266 echo "$ac_t""no" 1>&6
9269 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9270 echo "configure:9275: checking for main in -lnsl_s" >&5
9271 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9275 ac_save_LIBS="$LIBS"
9276 LIBS="-lnsl_s $LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9283 "configure"
9279 #include "confdefs.h"
9285 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287 eval "ac_cv_lib_$ac_lib_var=yes"
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9292 eval "ac_cv_lib_$ac_lib_var=no"
9295 LIBS="$ac_save_LIBS"
9298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_lib 1
9306 LIBS="-lnsl_s $LIBS"
9309 echo "$ac_t""no" 1>&6
9312 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9313 echo "configure:9318: checking for main in -lnsl" >&5
9314 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9315 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9318 ac_save_LIBS="$LIBS"
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9326 "configure"
9322 #include "confdefs.h"
9328 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330 eval "ac_cv_lib_$ac_lib_var=yes"
9332 echo "configure: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9335 eval "ac_cv_lib_$ac_lib_var=no"
9338 LIBS="$ac_save_LIBS"
9341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9342 echo "$ac_t""yes" 1>&6
9343 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9345 cat >> confdefs.h <<EOF
9346 #define $ac_tr_lib 1
9352 echo "$ac_t""no" 1>&6
9355 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9356 echo "configure:9361: checking for socket in -linet" >&5
9357 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 ac_save_LIBS="$LIBS"
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9369 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9375 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9385 LIBS="$ac_save_LIBS"
9388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9389 echo "$ac_t""yes" 1>&6
9390 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9392 cat >> confdefs.h <<EOF
9393 #define $ac_tr_lib 1
9399 echo "$ac_t""no" 1>&6
9402 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9403 echo "configure:9408: checking for main in -lgen" >&5
9404 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9405 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9408 ac_save_LIBS="$LIBS"
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9416 "configure"
9412 #include "confdefs.h"
9418 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 eval "ac_cv_lib_$ac_lib_var=yes"
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 eval "ac_cv_lib_$ac_lib_var=no"
9428 LIBS="$ac_save_LIBS"
9431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9432 echo "$ac_t""yes" 1>&6
9433 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9435 cat >> confdefs.h <<EOF
9436 #define $ac_tr_lib 1
9442 echo "$ac_t""no" 1>&6
9449 echo $ac_n "checking for select""... $ac_c" 1>&6
9450 echo "configure:9455: checking for select" >&5
9451 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9460 "configure"
9456 #include "confdefs.h"
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char select(); below. */
9460 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9468 /* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471 #if defined (__stub_select) || defined (__stub___select)
9479 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9481 eval "ac_cv_func_select=yes"
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9486 eval "ac_cv_func_select=no"
9491 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9492 echo "$ac_t""yes" 1>&6
9495 echo "$ac_t""no" 1>&6
9496 { echo "configure: error: select() required." 1>&2; exit 1; }
9500 if test "${ac_cv_header_winsock_h}" != yes; then
9501 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9502 echo "configure:9507: checking types of arguments for select()" >&5
9503 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9504 echo $ac_n "(cached) $ac_c" 1>&6
9506 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9509 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9513 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9514 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9521 "configure"
9517 #include "confdefs.h"
9518 #ifdef HAVE_SYS_TYPES_H
9519 #include <sys/types.h>
9521 #ifdef HAVE_SYS_TIME_H
9522 #include <sys/time.h>
9524 #ifdef HAVE_SYS_SELECT_H
9525 #include <sys/select.h>
9527 #ifdef HAVE_SYS_SOCKET_H
9528 #include <sys/socket.h>
9530 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);
9535 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9537 ac_not_found=no ; break 3
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9554 if test "$ac_not_found" = yes; then
9555 ac_cv_func_select_arg1=int
9556 ac_cv_func_select_arg234='int *'
9557 ac_cv_func_select_arg5='struct timeval *'
9559 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9560 cat >> confdefs.h <<EOF
9561 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9564 cat >> confdefs.h <<EOF
9565 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9568 cat >> confdefs.h <<EOF
9569 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9576 for ac_hdr in regex.h
9578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9580 echo "configure:9585: checking for $ac_hdr" >&5
9581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9590 "configure"
9586 #include "confdefs.h"
9589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590 { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592 if test -z "$ac_err"; then
9594 eval "ac_cv_header_$ac_safe=yes"
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9600 eval "ac_cv_header_$ac_safe=no"
9604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607 cat >> confdefs.h <<EOF
9608 #define $ac_tr_hdr 1
9612 echo "$ac_t""no" 1>&6
9616 if test "$ac_cv_header_regex_h" != yes ; then
9617 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9620 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9621 echo "configure:9626: checking for library containing regfree" >&5
9622 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9623 echo $ac_n "(cached) $ac_c" 1>&6
9625 ac_func_search_save_LIBS="$LIBS"
9626 ac_cv_search_regfree="no"
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9633 "configure"
9629 #include "confdefs.h"
9630 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9639 if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9641 ac_cv_search_regfree="none required"
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9647 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9655 "configure"
9651 #include "confdefs.h"
9652 /* Override any gcc2 internal prototype to avoid an error. */
9653 /* We use char because int might match the return type of a gcc2
9654 builtin and then its argument prototype would still apply. */
9661 if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9663 ac_cv_search_regfree="-l$ac_lib"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9671 LIBS="$ac_func_search_save_LIBS"
9674 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9675 if test "$ac_cv_search_regfree" != "no"; then
9676 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9679 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9683 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9684 echo "configure:9689: checking for compatible POSIX regex" >&5
9685 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9689 if test "$cross_compiling" = yes; then
9690 ol_cv_c_posix_regex=cross
9692 cat > conftest.$ac_ext <<EOF
9693 #line 9698 "configure"
9694 #include "confdefs.h"
9696 #include <sys/types.h>
9698 static char *pattern, *string;
9706 if(regcomp(&re, pattern, 0)) {
9710 string = "ALL MATCH";
9712 rc = regexec(&re, string, 0, (void*)0, 0);
9719 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9721 ol_cv_c_posix_regex=yes
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 ol_cv_c_posix_regex=no
9733 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9735 if test "$ol_cv_c_posix_regex" = no ; then
9736 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9741 for ac_hdr in sys/uuid.h
9743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9745 echo "configure:9750: checking for $ac_hdr" >&5
9746 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9755 "configure"
9751 #include "confdefs.h"
9754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9755 { (eval echo configure:9760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9757 if test -z "$ac_err"; then
9759 eval "ac_cv_header_$ac_safe=yes"
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9765 eval "ac_cv_header_$ac_safe=no"
9769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9772 cat >> confdefs.h <<EOF
9773 #define $ac_tr_hdr 1
9777 echo "$ac_t""no" 1>&6
9781 if test $ac_cv_header_sys_uuid_h = yes ; then
9784 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9785 echo "configure:9790: checking for library containing uuid_to_str" >&5
9786 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9789 ac_func_search_save_LIBS="$LIBS"
9790 ac_cv_search_uuid_to_str="no"
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9797 "configure"
9793 #include "confdefs.h"
9794 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9803 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9805 ac_cv_search_uuid_to_str="none required"
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9811 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9819 "configure"
9815 #include "confdefs.h"
9816 /* Override any gcc2 internal prototype to avoid an error. */
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9825 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9827 ac_cv_search_uuid_to_str="-l$ac_lib"
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9835 LIBS="$ac_func_search_save_LIBS"
9838 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9839 if test "$ac_cv_search_uuid_to_str" != "no"; then
9840 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9847 if test have_uuid = yes ; then
9848 cat >> confdefs.h <<\EOF
9849 #define HAVE_UUID_TO_STR 1
9853 test "$ac_cv_search_uuid_to_str" = "none required" || \
9854 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9858 if test $have_uuid = no ; then
9859 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9860 echo "configure:9865: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9862 LIBS="$LIBS -lrpcrt4"
9863 cat > conftest.$ac_ext <<EOF
9864 #line 9869 "configure"
9865 #include "confdefs.h"
9867 char UuidCreate@4();
9868 char UuidToStringA@8();
9877 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9887 if test $need_rpcrt = yes; then
9888 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9891 echo "$ac_t""$need_rpcrt" 1>&6
9895 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9896 echo "configure:9901: checking for res_query" >&5
9897 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9898 echo $ac_n "(cached) $ac_c" 1>&6
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9906 "configure"
9902 #include "confdefs.h"
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char res_query(); below. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 /* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined (__stub_res_query) || defined (__stub___res_query)
9925 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9927 eval "ac_cv_func_res_query=yes"
9929 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9932 eval "ac_cv_func_res_query=no"
9937 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9941 echo "$ac_t""no" 1>&6
9944 if test $ac_cv_func_res_query = no ; then
9945 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9946 echo "configure:9951: checking for __res_query" >&5
9947 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9956 "configure"
9952 #include "confdefs.h"
9953 /* System header to define __stub macros and hopefully few prototypes,
9954 which can conflict with char __res_query(); below. */
9956 /* Override any gcc2 internal prototype to avoid an error. */
9957 /* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */
9964 /* The GNU C library defines this for functions which it implements
9965 to always fail with ENOSYS. Some functions are actually named
9966 something starting with __ and the normal name is an alias. */
9967 #if defined (__stub___res_query) || defined (__stub_____res_query)
9975 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9977 eval "ac_cv_func___res_query=yes"
9979 echo "configure: failed program was:" >&5
9980 cat conftest.$ac_ext >&5
9982 eval "ac_cv_func___res_query=no"
9987 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9988 echo "$ac_t""yes" 1>&6
9991 echo "$ac_t""no" 1>&6
9994 ac_cv_func_res_query=$ac_cv_func___res_query
9997 if test $ac_cv_func_res_query = no ; then
9998 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9999 echo "configure:10004: checking for res_query in -lbind" >&5
10000 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10004 ac_save_LIBS="$LIBS"
10005 LIBS="-lbind $LIBS"
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10012 "configure"
10008 #include "confdefs.h"
10009 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10018 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10020 eval "ac_cv_lib_$ac_lib_var=yes"
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10025 eval "ac_cv_lib_$ac_lib_var=no"
10028 LIBS="$ac_save_LIBS"
10031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10032 echo "$ac_t""yes" 1>&6
10033 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10035 cat >> confdefs.h <<EOF
10036 #define $ac_tr_lib 1
10039 LIBS="-lbind $LIBS"
10042 echo "$ac_t""no" 1>&6
10045 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10048 if test $ac_cv_func_res_query = no ; then
10049 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10050 echo "configure:10055: checking for __res_query in -lbind" >&5
10051 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10055 ac_save_LIBS="$LIBS"
10056 LIBS="-lbind $LIBS"
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10063 "configure"
10059 #include "confdefs.h"
10060 /* Override any gcc2 internal prototype to avoid an error. */
10061 /* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10063 char __res_query();
10069 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10071 eval "ac_cv_lib_$ac_lib_var=yes"
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10076 eval "ac_cv_lib_$ac_lib_var=no"
10079 LIBS="$ac_save_LIBS"
10082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10083 echo "$ac_t""yes" 1>&6
10084 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10086 cat >> confdefs.h <<EOF
10087 #define $ac_tr_lib 1
10090 LIBS="-lbind $LIBS"
10093 echo "$ac_t""no" 1>&6
10096 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10099 if test $ac_cv_func_res_query = no ; then
10100 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10101 echo "configure:10106: checking for res_query in -lresolv" >&5
10102 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10103 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10106 ac_save_LIBS="$LIBS"
10107 LIBS="-lresolv $LIBS"
10108 cat > conftest.$ac_ext <<EOF
10109 #line 10114 "configure"
10110 #include "confdefs.h"
10111 /* Override any gcc2 internal prototype to avoid an error. */
10112 /* We use char because int might match the return type of a gcc2
10113 builtin and then its argument prototype would still apply. */
10120 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10122 eval "ac_cv_lib_$ac_lib_var=yes"
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10127 eval "ac_cv_lib_$ac_lib_var=no"
10130 LIBS="$ac_save_LIBS"
10133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10136 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10137 cat >> confdefs.h <<EOF
10138 #define $ac_tr_lib 1
10141 LIBS="-lresolv $LIBS"
10144 echo "$ac_t""no" 1>&6
10147 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10150 if test $ac_cv_func_res_query = no ; then
10151 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10152 echo "configure:10157: checking for __res_query in -lresolv" >&5
10153 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10155 echo $ac_n "(cached) $ac_c" 1>&6
10157 ac_save_LIBS="$LIBS"
10158 LIBS="-lresolv $LIBS"
10159 cat > conftest.$ac_ext <<EOF
10160 #line 10165 "configure"
10161 #include "confdefs.h"
10162 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165 char __res_query();
10171 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10173 eval "ac_cv_lib_$ac_lib_var=yes"
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10178 eval "ac_cv_lib_$ac_lib_var=no"
10181 LIBS="$ac_save_LIBS"
10184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10185 echo "$ac_t""yes" 1>&6
10186 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10188 cat >> confdefs.h <<EOF
10189 #define $ac_tr_lib 1
10192 LIBS="-lresolv $LIBS"
10195 echo "$ac_t""no" 1>&6
10198 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10201 if test "$ac_cv_func_res_query" = yes ; then
10202 cat >> confdefs.h <<\EOF
10203 #define HAVE_RES_QUERY 1
10207 if test $ol_enable_dnssrv != no ; then
10212 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10213 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10216 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10219 echo "configure:10224: checking for $ac_func" >&5
10220 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10221 echo $ac_n "(cached) $ac_c" 1>&6
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10229 "configure"
10225 #include "confdefs.h"
10226 /* System header to define __stub macros and hopefully few prototypes,
10227 which can conflict with char $ac_func(); below. */
10228 #include <assert.h>
10229 /* Override any gcc2 internal prototype to avoid an error. */
10230 /* We use char because int might match the return type of a gcc2
10231 builtin and then its argument prototype would still apply. */
10237 /* The GNU C library defines this for functions which it implements
10238 to always fail with ENOSYS. Some functions are actually named
10239 something starting with __ and the normal name is an alias. */
10240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10248 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10250 eval "ac_cv_func_$ac_func=yes"
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 eval "ac_cv_func_$ac_func=no"
10260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10263 cat >> confdefs.h <<EOF
10264 #define $ac_tr_func 1
10268 echo "$ac_t""no" 1>&6
10274 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10275 if test $ol_enable_ipv6 = yes ; then
10276 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10278 elif test $ol_enable_ipv6 != no ; then
10279 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10280 echo "configure:10285: checking INET6_ADDRSTRLEN" >&5
10281 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10291 "configure"
10287 #include "confdefs.h"
10289 # include <netinet/in.h>
10290 # ifdef INET6_ADDRSTRLEN
10291 __has_inet6_addrstrlen__;
10295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10296 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10298 ol_cv_inet6_addrstrlen=yes
10301 ol_cv_inet6_addrstrlen=no
10307 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10310 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10311 echo "configure:10316: checking struct sockaddr_storage" >&5
10312 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10322 "configure"
10318 #include "confdefs.h"
10320 #include <sys/types.h>
10321 #include <sys/socket.h>
10325 struct sockaddr_storage ss;
10329 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10331 ol_cv_struct_sockaddr_storage=yes
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10336 ol_cv_struct_sockaddr_storage=no
10341 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10343 if test $ol_cv_inet6_addrstrlen = yes \
10344 -a $ol_cv_struct_sockaddr_storage = yes ; then
10346 elif test $ol_enable_ipv6 = yes \
10347 -a $ol_cv_inet6_addrstrlen = no ; then
10348 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10349 elif test $ol_enable_ipv6 = yes \
10350 -a $ol_cv_struct_sockaddr_storage = no ; then
10351 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10355 if test $ol_enable_local != no ; then
10356 for ac_hdr in sys/un.h
10358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10360 echo "configure:10365: checking for $ac_hdr" >&5
10361 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10362 echo $ac_n "(cached) $ac_c" 1>&6
10364 cat > conftest.$ac_ext <<EOF
10365 #line 10370 "configure"
10366 #include "confdefs.h"
10369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10370 { (eval echo configure:10375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10372 if test -z "$ac_err"; then
10374 eval "ac_cv_header_$ac_safe=yes"
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10380 eval "ac_cv_header_$ac_safe=no"
10384 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10387 cat >> confdefs.h <<EOF
10388 #define $ac_tr_hdr 1
10392 echo "$ac_t""no" 1>&6
10397 if test $ol_enable_local = auto ; then
10398 ol_enable_local=$ac_cv_header_sys_un_h
10399 elif test $ac_cv_header_sys_un_h = no ; then
10400 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10409 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10410 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10411 -o $ol_with_kerberos = k425 ; then
10413 for ac_hdr in krb5.h
10415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10417 echo "configure:10422: checking for $ac_hdr" >&5
10418 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10427 "configure"
10423 #include "confdefs.h"
10426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10427 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10429 if test -z "$ac_err"; then
10431 eval "ac_cv_header_$ac_safe=yes"
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 eval "ac_cv_header_$ac_safe=no"
10441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10442 echo "$ac_t""yes" 1>&6
10443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10444 cat >> confdefs.h <<EOF
10445 #define $ac_tr_hdr 1
10449 echo "$ac_t""no" 1>&6
10454 if test $ac_cv_header_krb5_h = yes ; then
10455 for ac_hdr in heim_err.h
10457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10459 echo "configure:10464: checking for $ac_hdr" >&5
10460 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10461 echo $ac_n "(cached) $ac_c" 1>&6
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10469 "configure"
10465 #include "confdefs.h"
10468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10469 { (eval echo configure:10474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10471 if test -z "$ac_err"; then
10473 eval "ac_cv_header_$ac_safe=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_header_$ac_safe=no"
10483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10486 cat >> confdefs.h <<EOF
10487 #define $ac_tr_hdr 1
10491 echo "$ac_t""no" 1>&6
10495 if test $ac_cv_header_heim_err_h = yes ; then
10501 if test $krb5_impl = mit; then
10502 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10503 echo "configure:10508: checking for main in -lk5crypto" >&5
10504 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10505 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10508 ac_save_LIBS="$LIBS"
10509 LIBS="-lk5crypto $LIBS"
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10516 "configure"
10512 #include "confdefs.h"
10518 if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10520 eval "ac_cv_lib_$ac_lib_var=yes"
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10525 eval "ac_cv_lib_$ac_lib_var=no"
10528 LIBS="$ac_save_LIBS"
10531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10533 krb5crypto=k5crypto
10535 echo "$ac_t""no" 1>&6
10540 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10541 echo "configure:10546: checking for main in -lkrb5" >&5
10542 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10544 echo $ac_n "(cached) $ac_c" 1>&6
10546 ac_save_LIBS="$LIBS"
10547 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10554 "configure"
10550 #include "confdefs.h"
10556 if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10558 eval "ac_cv_lib_$ac_lib_var=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 eval "ac_cv_lib_$ac_lib_var=no"
10566 LIBS="$ac_save_LIBS"
10569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10570 echo "$ac_t""yes" 1>&6
10572 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10574 echo "$ac_t""no" 1>&6
10579 elif test $krb5_impl = heimdal; then
10580 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10581 echo "configure:10586: checking for main in -ldes" >&5
10582 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 ac_save_LIBS="$LIBS"
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10594 "configure"
10590 #include "confdefs.h"
10596 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 eval "ac_cv_lib_$ac_lib_var=no"
10606 LIBS="$ac_save_LIBS"
10609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10613 echo "$ac_t""no" 1>&6
10618 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10619 echo "configure:10624: checking for main in -lkrb5" >&5
10620 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10624 ac_save_LIBS="$LIBS"
10625 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10632 "configure"
10628 #include "confdefs.h"
10634 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10636 eval "ac_cv_lib_$ac_lib_var=yes"
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10641 eval "ac_cv_lib_$ac_lib_var=no"
10644 LIBS="$ac_save_LIBS"
10647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10648 echo "$ac_t""yes" 1>&6
10650 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10652 echo "$ac_t""no" 1>&6
10657 cat >> confdefs.h <<\EOF
10658 #define HAVE_HEIMDAL_KERBEROS 1
10664 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10667 if test $have_krb5 = yes ; then
10670 cat >> confdefs.h <<\EOF
10671 #define HAVE_KRB5 1
10675 if test $ol_enable_kpasswd != no ; then
10676 ol_link_kpasswd=yes;
10679 if test $ol_with_kerberos = k5only ; then
10680 ol_with_kerberos=found
10683 elif test $ol_with_kerberos != auto ; then
10684 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10690 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10691 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10693 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10697 echo "configure:10702: checking for $ac_hdr" >&5
10698 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10699 echo $ac_n "(cached) $ac_c" 1>&6
10701 cat > conftest.$ac_ext <<EOF
10702 #line 10707 "configure"
10703 #include "confdefs.h"
10706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10707 { (eval echo configure:10712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10709 if test -z "$ac_err"; then
10711 eval "ac_cv_header_$ac_safe=yes"
10714 echo "configure: failed program was:" >&5
10715 cat conftest.$ac_ext >&5
10717 eval "ac_cv_header_$ac_safe=no"
10721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10722 echo "$ac_t""yes" 1>&6
10723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10724 cat >> confdefs.h <<EOF
10725 #define $ac_tr_hdr 1
10729 echo "$ac_t""no" 1>&6
10734 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10735 if test $krb5_impl = mit; then
10736 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10737 echo "configure:10742: checking for main in -lkrb4" >&5
10738 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 ac_save_LIBS="$LIBS"
10743 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10750 "configure"
10746 #include "confdefs.h"
10752 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10754 eval "ac_cv_lib_$ac_lib_var=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_lib_$ac_lib_var=no"
10762 LIBS="$ac_save_LIBS"
10765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10766 echo "$ac_t""yes" 1>&6
10768 KRB4_LIBS="-lkrb4 -ldes425"
10770 echo "$ac_t""no" 1>&6
10775 elif test $krb5_impl = heimdal; then
10776 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10777 echo "configure:10782: checking for main in -lkrb4" >&5
10778 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10779 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10782 ac_save_LIBS="$LIBS"
10783 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10784 cat > conftest.$ac_ext <<EOF
10785 #line 10790 "configure"
10786 #include "confdefs.h"
10792 if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10794 eval "ac_cv_lib_$ac_lib_var=yes"
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10799 eval "ac_cv_lib_$ac_lib_var=no"
10802 LIBS="$ac_save_LIBS"
10805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10806 echo "$ac_t""yes" 1>&6
10810 echo "$ac_t""no" 1>&6
10817 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10820 if test $have_k425 = yes ; then
10821 ol_with_kerberos=found
10824 cat >> confdefs.h <<\EOF
10825 #define HAVE_KRB425 1
10828 cat >> confdefs.h <<\EOF
10829 #define HAVE_KRB4 1
10833 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10834 echo "configure:10839: checking for des_debug in Kerberos libraries" >&5
10835 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10836 echo $ac_n "(cached) $ac_c" 1>&6
10840 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10847 "configure"
10843 #include "confdefs.h"
10845 #include <kerberosIV/krb.h>
10846 #include <kerberosIV/des.h>
10847 extern int des_debug;
10855 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10857 ol_cv_var_des_debug=yes
10859 echo "configure: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10862 ol_cv_var_des_debug=no
10869 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10871 if test $ol_cv_var_des_debug = yes ; then
10872 cat >> confdefs.h <<\EOF
10873 #define HAVE_DES_DEBUG 1
10883 if test $ol_link_krb5 = yes ; then
10884 ol_with_kerberos=found
10887 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10888 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10890 for ac_hdr in krb.h des.h krb-archaeology.h
10892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10894 echo "configure:10899: checking for $ac_hdr" >&5
10895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10904 "configure"
10900 #include "confdefs.h"
10903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10904 { (eval echo configure:10909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10906 if test -z "$ac_err"; then
10908 eval "ac_cv_header_$ac_safe=yes"
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10914 eval "ac_cv_header_$ac_safe=no"
10918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10919 echo "$ac_t""yes" 1>&6
10920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10921 cat >> confdefs.h <<EOF
10922 #define $ac_tr_hdr 1
10926 echo "$ac_t""no" 1>&6
10931 if test $ac_cv_header_krb_h = yes ; then
10932 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10933 echo "configure:10938: checking for main in -lkrb" >&5
10934 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10938 ac_save_LIBS="$LIBS"
10939 LIBS="-lkrb -ldes $LIBS"
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10946 "configure"
10942 #include "confdefs.h"
10948 if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 eval "ac_cv_lib_$ac_lib_var=yes"
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 eval "ac_cv_lib_$ac_lib_var=no"
10958 LIBS="$ac_save_LIBS"
10961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10962 echo "$ac_t""yes" 1>&6
10965 echo "$ac_t""no" 1>&6
10970 if test $have_k4 = yes ; then
10971 ol_with_kerberos=found
10974 cat >> confdefs.h <<\EOF
10975 #define HAVE_KRB4 1
10979 KRB4_LIBS="-lkrb -ldes"
10981 if test $ac_cv_header_krb_archaeology_h = yes ; then
10982 cat >> confdefs.h <<\EOF
10983 #define HAVE_KTH_KERBEROS 1
10991 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10992 ol_link_kpasswd=yes
10995 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10998 elif test $ol_enable_kbind = yes ; then
10999 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11002 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11003 cat >> confdefs.h <<\EOF
11004 #define HAVE_KERBEROS 1
11008 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11009 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11013 if test $ol_with_tls != no ; then
11014 for ac_hdr in openssl/ssl.h ssl.h
11016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11018 echo "configure:11023: checking for $ac_hdr" >&5
11019 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11028 "configure"
11024 #include "confdefs.h"
11027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11028 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11030 if test -z "$ac_err"; then
11032 eval "ac_cv_header_$ac_safe=yes"
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11038 eval "ac_cv_header_$ac_safe=no"
11042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11043 echo "$ac_t""yes" 1>&6
11044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11045 cat >> confdefs.h <<EOF
11046 #define $ac_tr_hdr 1
11050 echo "$ac_t""no" 1>&6
11055 if test $ac_cv_header_openssl_ssl_h = yes \
11056 -o $ac_cv_header_ssl_h = yes ; then
11057 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11058 echo "configure:11063: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11059 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11061 echo $ac_n "(cached) $ac_c" 1>&6
11063 ac_save_LIBS="$LIBS"
11064 LIBS="-lssl -lcrypto $LIBS"
11065 cat > conftest.$ac_ext <<EOF
11066 #line 11071 "configure"
11067 #include "confdefs.h"
11068 /* Override any gcc2 internal prototype to avoid an error. */
11069 /* We use char because int might match the return type of a gcc2
11070 builtin and then its argument prototype would still apply. */
11071 char SSLeay_add_ssl_algorithms();
11074 SSLeay_add_ssl_algorithms()
11077 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11079 eval "ac_cv_lib_$ac_lib_var=yes"
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11084 eval "ac_cv_lib_$ac_lib_var=no"
11087 LIBS="$ac_save_LIBS"
11090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11095 echo "$ac_t""no" 1>&6
11100 if test $have_ssleay = no ; then
11101 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11102 echo "configure:11107: checking for SSL_library_init in -lssl" >&5
11103 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11107 ac_save_LIBS="$LIBS"
11108 LIBS="-lssl -lcrypto $LIBS"
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11115 "configure"
11111 #include "confdefs.h"
11112 /* Override any gcc2 internal prototype to avoid an error. */
11113 /* We use char because int might match the return type of a gcc2
11114 builtin and then its argument prototype would still apply. */
11115 char SSL_library_init();
11121 if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11123 eval "ac_cv_lib_$ac_lib_var=yes"
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11128 eval "ac_cv_lib_$ac_lib_var=no"
11131 LIBS="$ac_save_LIBS"
11134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11135 echo "$ac_t""yes" 1>&6
11139 echo "$ac_t""no" 1>&6
11145 if test $have_ssleay = no ; then
11146 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11147 echo "configure:11152: checking for ssl3_accept in -lssl" >&5
11148 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11149 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11150 echo $ac_n "(cached) $ac_c" 1>&6
11152 ac_save_LIBS="$LIBS"
11153 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11154 cat > conftest.$ac_ext <<EOF
11155 #line 11160 "configure"
11156 #include "confdefs.h"
11157 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11160 char ssl3_accept();
11166 if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 eval "ac_cv_lib_$ac_lib_var=yes"
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 eval "ac_cv_lib_$ac_lib_var=no"
11176 LIBS="$ac_save_LIBS"
11179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11184 echo "$ac_t""no" 1>&6
11190 if test $have_ssleay = yes ; then
11194 cat >> confdefs.h <<\EOF
11195 #define HAVE_SSLEAY 1
11199 if test $need_rsaref = yes; then
11200 cat >> confdefs.h <<\EOF
11201 #define HAVE_RSAREF 1
11205 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11207 TLS_LIBS="-lssl -lcrypto"
11213 echo "configure: warning: TLS data protection not supported!" 1>&2
11216 if test $ol_link_tls = yes ; then
11217 cat >> confdefs.h <<\EOF
11222 elif test $ol_with_tls = auto ; then
11223 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11224 echo "configure: warning: TLS data protection not supported!" 1>&2
11226 elif test $ol_with_tls != no ; then
11227 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11230 if test $ol_enable_lmpasswd != no; then
11231 if test $ol_link_tls != yes ; then
11232 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11235 cat >> confdefs.h <<\EOF
11236 #define SLAPD_LMHASH 1
11243 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11244 -o $ol_with_threads = nt ; then
11247 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11248 echo "configure:11253: checking for _beginthread" >&5
11249 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11258 "configure"
11254 #include "confdefs.h"
11255 /* System header to define __stub macros and hopefully few prototypes,
11256 which can conflict with char _beginthread(); below. */
11257 #include <assert.h>
11258 /* Override any gcc2 internal prototype to avoid an error. */
11259 /* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11261 char _beginthread();
11266 /* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11277 if { (eval echo configure:11282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 eval "ac_cv_func__beginthread=yes"
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 eval "ac_cv_func__beginthread=no"
11289 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11290 echo "$ac_t""yes" 1>&6
11293 echo "$ac_t""no" 1>&6
11297 if test $ac_cv_func__beginthread = yes ; then
11298 cat >> confdefs.h <<\EOF
11299 #define HAVE_NT_THREADS 1
11302 ol_cv_nt_threads=yes
11306 if test "$ol_cv_nt_threads" = yes ; then
11308 ol_with_threads=found
11309 ol_with_yielding_select=yes
11311 cat >> confdefs.h <<\EOF
11312 #define HAVE_NT_SERVICE_MANAGER 1
11315 cat >> confdefs.h <<\EOF
11316 #define HAVE_NT_EVENT_LOG 1
11321 if test $ol_with_threads = nt ; then
11322 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11326 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11327 -o $ol_with_threads = posix ; then
11329 for ac_hdr in pthread.h
11331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11333 echo "configure:11338: checking for $ac_hdr" >&5
11334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11343 "configure"
11339 #include "confdefs.h"
11342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11343 { (eval echo configure:11348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345 if test -z "$ac_err"; then
11347 eval "ac_cv_header_$ac_safe=yes"
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11353 eval "ac_cv_header_$ac_safe=no"
11357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11360 cat >> confdefs.h <<EOF
11361 #define $ac_tr_hdr 1
11365 echo "$ac_t""no" 1>&6
11370 if test $ac_cv_header_pthread_h = yes ; then
11371 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11372 echo "configure:11377: checking POSIX thread version" >&5
11373 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11383 "configure"
11379 #include "confdefs.h"
11381 # include <pthread.h>
11385 int i = PTHREAD_CREATE_JOINABLE;
11389 if { (eval echo configure:11394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11392 cat > conftest.$ac_ext <<EOF
11393 #line 11398 "configure"
11394 #include "confdefs.h"
11395 #include <pthread.h>
11397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11398 egrep "pthread_detach" >/dev/null 2>&1; then
11400 ol_cv_pthread_version=10
11403 ol_cv_pthread_version=8
11408 echo "configure: failed program was:" >&5
11409 cat conftest.$ac_ext >&5
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11418 "configure"
11414 #include "confdefs.h"
11416 # include <pthread.h>
11417 # ifdef PTHREAD_CREATE_UNDETACHED
11422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11423 egrep "draft7" >/dev/null 2>&1; then
11425 ol_cv_pthread_version=7
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11435 "configure"
11431 #include "confdefs.h"
11432 #include <pthread.h>
11434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11435 egrep "pthread_attr_init" >/dev/null 2>&1; then
11437 ol_cv_pthread_version=6
11441 cat > conftest.$ac_ext <<EOF
11442 #line 11447 "configure"
11443 #include "confdefs.h"
11445 # include <pthread.h>
11446 #ifdef PTHREAD_MUTEX_INITIALIZER
11451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11452 egrep "draft5" >/dev/null 2>&1; then
11454 ol_cv_pthread_version=5
11457 ol_cv_pthread_version=4
11472 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11475 if test $ol_cv_pthread_version != 0 ; then
11476 cat >> confdefs.h <<EOF
11477 #define HAVE_PTHREADS $ol_cv_pthread_version
11481 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11484 # consider threads found
11485 ol_with_threads=found
11488 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11489 echo "configure:11494: checking for LinuxThreads pthread.h" >&5
11490 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
11493 cat > conftest.$ac_ext <<EOF
11494 #line 11499 "configure"
11495 #include "confdefs.h"
11496 #include <pthread.h>
11498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11499 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11501 ol_cv_header_linux_threads=yes
11504 ol_cv_header_linux_threads=no
11511 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11512 if test $ol_cv_header_linux_threads = yes; then
11513 cat >> confdefs.h <<\EOF
11514 #define HAVE_LINUX_THREADS 1
11520 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11521 echo "configure:11526: checking for GNU Pth pthread.h" >&5
11522 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11531 "configure"
11527 #include "confdefs.h"
11528 #include <pthread.h>
11529 #ifdef _POSIX_THREAD_IS_GNU_PTH
11534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11535 egrep "__gnu_pth__" >/dev/null 2>&1; then
11537 ol_cv_header_gnu_pth_pthread_h=yes
11540 ol_cv_header_gnu_pth_pthread_h=no
11547 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11550 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11551 for ac_hdr in sched.h
11553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11555 echo "configure:11560: checking for $ac_hdr" >&5
11556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11557 echo $ac_n "(cached) $ac_c" 1>&6
11559 cat > conftest.$ac_ext <<EOF
11560 #line 11565 "configure"
11561 #include "confdefs.h"
11564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11565 { (eval echo configure:11570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11567 if test -z "$ac_err"; then
11569 eval "ac_cv_header_$ac_safe=yes"
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11575 eval "ac_cv_header_$ac_safe=no"
11579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
11581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11582 cat >> confdefs.h <<EOF
11583 #define $ac_tr_hdr 1
11587 echo "$ac_t""no" 1>&6
11594 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11595 echo "configure:11600: checking for pthread_create in default libraries" >&5
11596 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11600 if test "$cross_compiling" = yes; then
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11607 "configure"
11603 #include "confdefs.h"
11604 /* pthread test headers */
11605 #include <pthread.h>
11606 #if HAVE_PTHREADS < 7
11610 #define NULL (void*)0
11613 static void *task(p)
11616 return (void *) (p == NULL);
11621 /* pthread test function */
11622 #ifndef PTHREAD_CREATE_DETACHED
11623 #define PTHREAD_CREATE_DETACHED 1
11627 int detach = PTHREAD_CREATE_DETACHED;
11629 #if HAVE_PTHREADS > 4
11630 /* Final pthreads */
11631 pthread_attr_t attr;
11633 status = pthread_attr_init(&attr);
11634 if( status ) return status;
11636 #if HAVE_PTHREADS < 7
11637 status = pthread_attr_setdetachstate(&attr, &detach);
11638 if( status < 0 ) status = errno;
11640 status = pthread_attr_setdetachstate(&attr, detach);
11642 if( status ) return status;
11643 status = pthread_create( &t, &attr, task, NULL );
11644 #if HAVE_PTHREADS < 7
11645 if( status < 0 ) status = errno;
11647 if( status ) return status;
11649 /* Draft 4 pthreads */
11650 status = pthread_create( &t, pthread_attr_default, task, NULL );
11651 if( status ) return errno;
11653 /* give thread a chance to complete */
11654 /* it should remain joinable and hence detachable */
11657 status = pthread_detach( &t );
11658 if( status ) return errno;
11661 #ifdef HAVE_LINUX_THREADS
11662 pthread_kill_other_threads_np();
11669 if { (eval echo configure:11674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11671 ol_cv_pthread_create=yes
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11676 ol_cv_pthread_create=no
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11686 "configure"
11682 #include "confdefs.h"
11683 /* pthread test headers */
11684 #include <pthread.h>
11685 #if HAVE_PTHREADS < 7
11689 #define NULL (void*)0
11692 static void *task(p)
11695 return (void *) (p == NULL);
11699 int main(argc, argv)
11704 /* pthread test function */
11705 #ifndef PTHREAD_CREATE_DETACHED
11706 #define PTHREAD_CREATE_DETACHED 1
11710 int detach = PTHREAD_CREATE_DETACHED;
11712 #if HAVE_PTHREADS > 4
11713 /* Final pthreads */
11714 pthread_attr_t attr;
11716 status = pthread_attr_init(&attr);
11717 if( status ) return status;
11719 #if HAVE_PTHREADS < 7
11720 status = pthread_attr_setdetachstate(&attr, &detach);
11721 if( status < 0 ) status = errno;
11723 status = pthread_attr_setdetachstate(&attr, detach);
11725 if( status ) return status;
11726 status = pthread_create( &t, &attr, task, NULL );
11727 #if HAVE_PTHREADS < 7
11728 if( status < 0 ) status = errno;
11730 if( status ) return status;
11732 /* Draft 4 pthreads */
11733 status = pthread_create( &t, pthread_attr_default, task, NULL );
11734 if( status ) return errno;
11736 /* give thread a chance to complete */
11737 /* it should remain joinable and hence detachable */
11740 status = pthread_detach( &t );
11741 if( status ) return errno;
11744 #ifdef HAVE_LINUX_THREADS
11745 pthread_kill_other_threads_np();
11753 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11755 ol_cv_pthread_create=yes
11757 echo "configure: failed program was:" >&5
11758 cat conftest.$ac_ext >&5
11760 ol_cv_pthread_create=no
11767 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11769 if test $ol_cv_pthread_create != no ; then
11770 ol_link_threads=posix
11771 ol_link_pthreads=""
11774 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11775 if test "$ol_link_threads" = no ; then
11777 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11778 echo "configure:11783: checking for pthread link with -kthread" >&5
11779 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11780 echo $ac_n "(cached) $ac_c" 1>&6
11785 LIBS="-kthread $LIBS"
11787 if test "$cross_compiling" = yes; then
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11794 "configure"
11790 #include "confdefs.h"
11791 /* pthread test headers */
11792 #include <pthread.h>
11793 #if HAVE_PTHREADS < 7
11797 #define NULL (void*)0
11800 static void *task(p)
11803 return (void *) (p == NULL);
11808 /* pthread test function */
11809 #ifndef PTHREAD_CREATE_DETACHED
11810 #define PTHREAD_CREATE_DETACHED 1
11814 int detach = PTHREAD_CREATE_DETACHED;
11816 #if HAVE_PTHREADS > 4
11817 /* Final pthreads */
11818 pthread_attr_t attr;
11820 status = pthread_attr_init(&attr);
11821 if( status ) return status;
11823 #if HAVE_PTHREADS < 7
11824 status = pthread_attr_setdetachstate(&attr, &detach);
11825 if( status < 0 ) status = errno;
11827 status = pthread_attr_setdetachstate(&attr, detach);
11829 if( status ) return status;
11830 status = pthread_create( &t, &attr, task, NULL );
11831 #if HAVE_PTHREADS < 7
11832 if( status < 0 ) status = errno;
11834 if( status ) return status;
11836 /* Draft 4 pthreads */
11837 status = pthread_create( &t, pthread_attr_default, task, NULL );
11838 if( status ) return errno;
11840 /* give thread a chance to complete */
11841 /* it should remain joinable and hence detachable */
11844 status = pthread_detach( &t );
11845 if( status ) return errno;
11848 #ifdef HAVE_LINUX_THREADS
11849 pthread_kill_other_threads_np();
11856 if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858 ol_cv_pthread_kthread=yes
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11863 ol_cv_pthread_kthread=no
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11873 "configure"
11869 #include "confdefs.h"
11870 /* pthread test headers */
11871 #include <pthread.h>
11872 #if HAVE_PTHREADS < 7
11876 #define NULL (void*)0
11879 static void *task(p)
11882 return (void *) (p == NULL);
11886 int main(argc, argv)
11891 /* pthread test function */
11892 #ifndef PTHREAD_CREATE_DETACHED
11893 #define PTHREAD_CREATE_DETACHED 1
11897 int detach = PTHREAD_CREATE_DETACHED;
11899 #if HAVE_PTHREADS > 4
11900 /* Final pthreads */
11901 pthread_attr_t attr;
11903 status = pthread_attr_init(&attr);
11904 if( status ) return status;
11906 #if HAVE_PTHREADS < 7
11907 status = pthread_attr_setdetachstate(&attr, &detach);
11908 if( status < 0 ) status = errno;
11910 status = pthread_attr_setdetachstate(&attr, detach);
11912 if( status ) return status;
11913 status = pthread_create( &t, &attr, task, NULL );
11914 #if HAVE_PTHREADS < 7
11915 if( status < 0 ) status = errno;
11917 if( status ) return status;
11919 /* Draft 4 pthreads */
11920 status = pthread_create( &t, pthread_attr_default, task, NULL );
11921 if( status ) return errno;
11923 /* give thread a chance to complete */
11924 /* it should remain joinable and hence detachable */
11927 status = pthread_detach( &t );
11928 if( status ) return errno;
11931 #ifdef HAVE_LINUX_THREADS
11932 pthread_kill_other_threads_np();
11940 if { (eval echo configure:11945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11942 ol_cv_pthread_kthread=yes
11944 echo "configure: failed program was:" >&5
11945 cat conftest.$ac_ext >&5
11947 ol_cv_pthread_kthread=no
11958 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11960 if test $ol_cv_pthread_kthread = yes ; then
11961 ol_link_pthreads="-kthread"
11962 ol_link_threads=posix
11966 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11967 if test "$ol_link_threads" = no ; then
11969 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11970 echo "configure:11975: checking for pthread link with -pthread" >&5
11971 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11977 LIBS="-pthread $LIBS"
11979 if test "$cross_compiling" = yes; then
11980 cat > conftest.$ac_ext <<EOF
11981 #line 11986 "configure"
11982 #include "confdefs.h"
11983 /* pthread test headers */
11984 #include <pthread.h>
11985 #if HAVE_PTHREADS < 7
11989 #define NULL (void*)0
11992 static void *task(p)
11995 return (void *) (p == NULL);
12000 /* pthread test function */
12001 #ifndef PTHREAD_CREATE_DETACHED
12002 #define PTHREAD_CREATE_DETACHED 1
12006 int detach = PTHREAD_CREATE_DETACHED;
12008 #if HAVE_PTHREADS > 4
12009 /* Final pthreads */
12010 pthread_attr_t attr;
12012 status = pthread_attr_init(&attr);
12013 if( status ) return status;
12015 #if HAVE_PTHREADS < 7
12016 status = pthread_attr_setdetachstate(&attr, &detach);
12017 if( status < 0 ) status = errno;
12019 status = pthread_attr_setdetachstate(&attr, detach);
12021 if( status ) return status;
12022 status = pthread_create( &t, &attr, task, NULL );
12023 #if HAVE_PTHREADS < 7
12024 if( status < 0 ) status = errno;
12026 if( status ) return status;
12028 /* Draft 4 pthreads */
12029 status = pthread_create( &t, pthread_attr_default, task, NULL );
12030 if( status ) return errno;
12032 /* give thread a chance to complete */
12033 /* it should remain joinable and hence detachable */
12036 status = pthread_detach( &t );
12037 if( status ) return errno;
12040 #ifdef HAVE_LINUX_THREADS
12041 pthread_kill_other_threads_np();
12048 if { (eval echo configure:12053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12050 ol_cv_pthread_pthread=yes
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12055 ol_cv_pthread_pthread=no
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12065 "configure"
12061 #include "confdefs.h"
12062 /* pthread test headers */
12063 #include <pthread.h>
12064 #if HAVE_PTHREADS < 7
12068 #define NULL (void*)0
12071 static void *task(p)
12074 return (void *) (p == NULL);
12078 int main(argc, argv)
12083 /* pthread test function */
12084 #ifndef PTHREAD_CREATE_DETACHED
12085 #define PTHREAD_CREATE_DETACHED 1
12089 int detach = PTHREAD_CREATE_DETACHED;
12091 #if HAVE_PTHREADS > 4
12092 /* Final pthreads */
12093 pthread_attr_t attr;
12095 status = pthread_attr_init(&attr);
12096 if( status ) return status;
12098 #if HAVE_PTHREADS < 7
12099 status = pthread_attr_setdetachstate(&attr, &detach);
12100 if( status < 0 ) status = errno;
12102 status = pthread_attr_setdetachstate(&attr, detach);
12104 if( status ) return status;
12105 status = pthread_create( &t, &attr, task, NULL );
12106 #if HAVE_PTHREADS < 7
12107 if( status < 0 ) status = errno;
12109 if( status ) return status;
12111 /* Draft 4 pthreads */
12112 status = pthread_create( &t, pthread_attr_default, task, NULL );
12113 if( status ) return errno;
12115 /* give thread a chance to complete */
12116 /* it should remain joinable and hence detachable */
12119 status = pthread_detach( &t );
12120 if( status ) return errno;
12123 #ifdef HAVE_LINUX_THREADS
12124 pthread_kill_other_threads_np();
12132 if { (eval echo configure:12137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12134 ol_cv_pthread_pthread=yes
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12139 ol_cv_pthread_pthread=no
12150 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12152 if test $ol_cv_pthread_pthread = yes ; then
12153 ol_link_pthreads="-pthread"
12154 ol_link_threads=posix
12158 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12159 if test "$ol_link_threads" = no ; then
12161 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12162 echo "configure:12167: checking for pthread link with -pthreads" >&5
12163 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
12169 LIBS="-pthreads $LIBS"
12171 if test "$cross_compiling" = yes; then
12172 cat > conftest.$ac_ext <<EOF
12173 #line 12178 "configure"
12174 #include "confdefs.h"
12175 /* pthread test headers */
12176 #include <pthread.h>
12177 #if HAVE_PTHREADS < 7
12181 #define NULL (void*)0
12184 static void *task(p)
12187 return (void *) (p == NULL);
12192 /* pthread test function */
12193 #ifndef PTHREAD_CREATE_DETACHED
12194 #define PTHREAD_CREATE_DETACHED 1
12198 int detach = PTHREAD_CREATE_DETACHED;
12200 #if HAVE_PTHREADS > 4
12201 /* Final pthreads */
12202 pthread_attr_t attr;
12204 status = pthread_attr_init(&attr);
12205 if( status ) return status;
12207 #if HAVE_PTHREADS < 7
12208 status = pthread_attr_setdetachstate(&attr, &detach);
12209 if( status < 0 ) status = errno;
12211 status = pthread_attr_setdetachstate(&attr, detach);
12213 if( status ) return status;
12214 status = pthread_create( &t, &attr, task, NULL );
12215 #if HAVE_PTHREADS < 7
12216 if( status < 0 ) status = errno;
12218 if( status ) return status;
12220 /* Draft 4 pthreads */
12221 status = pthread_create( &t, pthread_attr_default, task, NULL );
12222 if( status ) return errno;
12224 /* give thread a chance to complete */
12225 /* it should remain joinable and hence detachable */
12228 status = pthread_detach( &t );
12229 if( status ) return errno;
12232 #ifdef HAVE_LINUX_THREADS
12233 pthread_kill_other_threads_np();
12240 if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12242 ol_cv_pthread_pthreads=yes
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12247 ol_cv_pthread_pthreads=no
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12257 "configure"
12253 #include "confdefs.h"
12254 /* pthread test headers */
12255 #include <pthread.h>
12256 #if HAVE_PTHREADS < 7
12260 #define NULL (void*)0
12263 static void *task(p)
12266 return (void *) (p == NULL);
12270 int main(argc, argv)
12275 /* pthread test function */
12276 #ifndef PTHREAD_CREATE_DETACHED
12277 #define PTHREAD_CREATE_DETACHED 1
12281 int detach = PTHREAD_CREATE_DETACHED;
12283 #if HAVE_PTHREADS > 4
12284 /* Final pthreads */
12285 pthread_attr_t attr;
12287 status = pthread_attr_init(&attr);
12288 if( status ) return status;
12290 #if HAVE_PTHREADS < 7
12291 status = pthread_attr_setdetachstate(&attr, &detach);
12292 if( status < 0 ) status = errno;
12294 status = pthread_attr_setdetachstate(&attr, detach);
12296 if( status ) return status;
12297 status = pthread_create( &t, &attr, task, NULL );
12298 #if HAVE_PTHREADS < 7
12299 if( status < 0 ) status = errno;
12301 if( status ) return status;
12303 /* Draft 4 pthreads */
12304 status = pthread_create( &t, pthread_attr_default, task, NULL );
12305 if( status ) return errno;
12307 /* give thread a chance to complete */
12308 /* it should remain joinable and hence detachable */
12311 status = pthread_detach( &t );
12312 if( status ) return errno;
12315 #ifdef HAVE_LINUX_THREADS
12316 pthread_kill_other_threads_np();
12324 if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12326 ol_cv_pthread_pthreads=yes
12328 echo "configure: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12331 ol_cv_pthread_pthreads=no
12342 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12344 if test $ol_cv_pthread_pthreads = yes ; then
12345 ol_link_pthreads="-pthreads"
12346 ol_link_threads=posix
12350 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12351 if test "$ol_link_threads" = no ; then
12353 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12354 echo "configure:12359: checking for pthread link with -mthreads" >&5
12355 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12356 echo $ac_n "(cached) $ac_c" 1>&6
12361 LIBS="-mthreads $LIBS"
12363 if test "$cross_compiling" = yes; then
12364 cat > conftest.$ac_ext <<EOF
12365 #line 12370 "configure"
12366 #include "confdefs.h"
12367 /* pthread test headers */
12368 #include <pthread.h>
12369 #if HAVE_PTHREADS < 7
12373 #define NULL (void*)0
12376 static void *task(p)
12379 return (void *) (p == NULL);
12384 /* pthread test function */
12385 #ifndef PTHREAD_CREATE_DETACHED
12386 #define PTHREAD_CREATE_DETACHED 1
12390 int detach = PTHREAD_CREATE_DETACHED;
12392 #if HAVE_PTHREADS > 4
12393 /* Final pthreads */
12394 pthread_attr_t attr;
12396 status = pthread_attr_init(&attr);
12397 if( status ) return status;
12399 #if HAVE_PTHREADS < 7
12400 status = pthread_attr_setdetachstate(&attr, &detach);
12401 if( status < 0 ) status = errno;
12403 status = pthread_attr_setdetachstate(&attr, detach);
12405 if( status ) return status;
12406 status = pthread_create( &t, &attr, task, NULL );
12407 #if HAVE_PTHREADS < 7
12408 if( status < 0 ) status = errno;
12410 if( status ) return status;
12412 /* Draft 4 pthreads */
12413 status = pthread_create( &t, pthread_attr_default, task, NULL );
12414 if( status ) return errno;
12416 /* give thread a chance to complete */
12417 /* it should remain joinable and hence detachable */
12420 status = pthread_detach( &t );
12421 if( status ) return errno;
12424 #ifdef HAVE_LINUX_THREADS
12425 pthread_kill_other_threads_np();
12432 if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 ol_cv_pthread_mthreads=yes
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 ol_cv_pthread_mthreads=no
12443 cat > conftest.$ac_ext <<EOF
12444 #line 12449 "configure"
12445 #include "confdefs.h"
12446 /* pthread test headers */
12447 #include <pthread.h>
12448 #if HAVE_PTHREADS < 7
12452 #define NULL (void*)0
12455 static void *task(p)
12458 return (void *) (p == NULL);
12462 int main(argc, argv)
12467 /* pthread test function */
12468 #ifndef PTHREAD_CREATE_DETACHED
12469 #define PTHREAD_CREATE_DETACHED 1
12473 int detach = PTHREAD_CREATE_DETACHED;
12475 #if HAVE_PTHREADS > 4
12476 /* Final pthreads */
12477 pthread_attr_t attr;
12479 status = pthread_attr_init(&attr);
12480 if( status ) return status;
12482 #if HAVE_PTHREADS < 7
12483 status = pthread_attr_setdetachstate(&attr, &detach);
12484 if( status < 0 ) status = errno;
12486 status = pthread_attr_setdetachstate(&attr, detach);
12488 if( status ) return status;
12489 status = pthread_create( &t, &attr, task, NULL );
12490 #if HAVE_PTHREADS < 7
12491 if( status < 0 ) status = errno;
12493 if( status ) return status;
12495 /* Draft 4 pthreads */
12496 status = pthread_create( &t, pthread_attr_default, task, NULL );
12497 if( status ) return errno;
12499 /* give thread a chance to complete */
12500 /* it should remain joinable and hence detachable */
12503 status = pthread_detach( &t );
12504 if( status ) return errno;
12507 #ifdef HAVE_LINUX_THREADS
12508 pthread_kill_other_threads_np();
12516 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12518 ol_cv_pthread_mthreads=yes
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12523 ol_cv_pthread_mthreads=no
12534 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12536 if test $ol_cv_pthread_mthreads = yes ; then
12537 ol_link_pthreads="-mthreads"
12538 ol_link_threads=posix
12542 # Pthread try link: -thread (ol_cv_pthread_thread)
12543 if test "$ol_link_threads" = no ; then
12545 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12546 echo "configure:12551: checking for pthread link with -thread" >&5
12547 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12553 LIBS="-thread $LIBS"
12555 if test "$cross_compiling" = yes; then
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12562 "configure"
12558 #include "confdefs.h"
12559 /* pthread test headers */
12560 #include <pthread.h>
12561 #if HAVE_PTHREADS < 7
12565 #define NULL (void*)0
12568 static void *task(p)
12571 return (void *) (p == NULL);
12576 /* pthread test function */
12577 #ifndef PTHREAD_CREATE_DETACHED
12578 #define PTHREAD_CREATE_DETACHED 1
12582 int detach = PTHREAD_CREATE_DETACHED;
12584 #if HAVE_PTHREADS > 4
12585 /* Final pthreads */
12586 pthread_attr_t attr;
12588 status = pthread_attr_init(&attr);
12589 if( status ) return status;
12591 #if HAVE_PTHREADS < 7
12592 status = pthread_attr_setdetachstate(&attr, &detach);
12593 if( status < 0 ) status = errno;
12595 status = pthread_attr_setdetachstate(&attr, detach);
12597 if( status ) return status;
12598 status = pthread_create( &t, &attr, task, NULL );
12599 #if HAVE_PTHREADS < 7
12600 if( status < 0 ) status = errno;
12602 if( status ) return status;
12604 /* Draft 4 pthreads */
12605 status = pthread_create( &t, pthread_attr_default, task, NULL );
12606 if( status ) return errno;
12608 /* give thread a chance to complete */
12609 /* it should remain joinable and hence detachable */
12612 status = pthread_detach( &t );
12613 if( status ) return errno;
12616 #ifdef HAVE_LINUX_THREADS
12617 pthread_kill_other_threads_np();
12624 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12626 ol_cv_pthread_thread=yes
12628 echo "configure: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12631 ol_cv_pthread_thread=no
12635 cat > conftest.$ac_ext <<EOF
12636 #line 12641 "configure"
12637 #include "confdefs.h"
12638 /* pthread test headers */
12639 #include <pthread.h>
12640 #if HAVE_PTHREADS < 7
12644 #define NULL (void*)0
12647 static void *task(p)
12650 return (void *) (p == NULL);
12654 int main(argc, argv)
12659 /* pthread test function */
12660 #ifndef PTHREAD_CREATE_DETACHED
12661 #define PTHREAD_CREATE_DETACHED 1
12665 int detach = PTHREAD_CREATE_DETACHED;
12667 #if HAVE_PTHREADS > 4
12668 /* Final pthreads */
12669 pthread_attr_t attr;
12671 status = pthread_attr_init(&attr);
12672 if( status ) return status;
12674 #if HAVE_PTHREADS < 7
12675 status = pthread_attr_setdetachstate(&attr, &detach);
12676 if( status < 0 ) status = errno;
12678 status = pthread_attr_setdetachstate(&attr, detach);
12680 if( status ) return status;
12681 status = pthread_create( &t, &attr, task, NULL );
12682 #if HAVE_PTHREADS < 7
12683 if( status < 0 ) status = errno;
12685 if( status ) return status;
12687 /* Draft 4 pthreads */
12688 status = pthread_create( &t, pthread_attr_default, task, NULL );
12689 if( status ) return errno;
12691 /* give thread a chance to complete */
12692 /* it should remain joinable and hence detachable */
12695 status = pthread_detach( &t );
12696 if( status ) return errno;
12699 #ifdef HAVE_LINUX_THREADS
12700 pthread_kill_other_threads_np();
12708 if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12710 ol_cv_pthread_thread=yes
12712 echo "configure: failed program was:" >&5
12713 cat conftest.$ac_ext >&5
12715 ol_cv_pthread_thread=no
12726 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12728 if test $ol_cv_pthread_thread = yes ; then
12729 ol_link_pthreads="-thread"
12730 ol_link_threads=posix
12735 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12736 if test "$ol_link_threads" = no ; then
12737 # try -lpthread -lmach -lexc -lc_r
12738 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12739 echo "configure:12744: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12740 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12746 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12748 if test "$cross_compiling" = yes; then
12749 cat > conftest.$ac_ext <<EOF
12750 #line 12755 "configure"
12751 #include "confdefs.h"
12752 /* pthread test headers */
12753 #include <pthread.h>
12754 #if HAVE_PTHREADS < 7
12758 #define NULL (void*)0
12761 static void *task(p)
12764 return (void *) (p == NULL);
12769 /* pthread test function */
12770 #ifndef PTHREAD_CREATE_DETACHED
12771 #define PTHREAD_CREATE_DETACHED 1
12775 int detach = PTHREAD_CREATE_DETACHED;
12777 #if HAVE_PTHREADS > 4
12778 /* Final pthreads */
12779 pthread_attr_t attr;
12781 status = pthread_attr_init(&attr);
12782 if( status ) return status;
12784 #if HAVE_PTHREADS < 7
12785 status = pthread_attr_setdetachstate(&attr, &detach);
12786 if( status < 0 ) status = errno;
12788 status = pthread_attr_setdetachstate(&attr, detach);
12790 if( status ) return status;
12791 status = pthread_create( &t, &attr, task, NULL );
12792 #if HAVE_PTHREADS < 7
12793 if( status < 0 ) status = errno;
12795 if( status ) return status;
12797 /* Draft 4 pthreads */
12798 status = pthread_create( &t, pthread_attr_default, task, NULL );
12799 if( status ) return errno;
12801 /* give thread a chance to complete */
12802 /* it should remain joinable and hence detachable */
12805 status = pthread_detach( &t );
12806 if( status ) return errno;
12809 #ifdef HAVE_LINUX_THREADS
12810 pthread_kill_other_threads_np();
12817 if { (eval echo configure:12822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12819 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12821 echo "configure: failed program was:" >&5
12822 cat conftest.$ac_ext >&5
12824 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12828 cat > conftest.$ac_ext <<EOF
12829 #line 12834 "configure"
12830 #include "confdefs.h"
12831 /* pthread test headers */
12832 #include <pthread.h>
12833 #if HAVE_PTHREADS < 7
12837 #define NULL (void*)0
12840 static void *task(p)
12843 return (void *) (p == NULL);
12847 int main(argc, argv)
12852 /* pthread test function */
12853 #ifndef PTHREAD_CREATE_DETACHED
12854 #define PTHREAD_CREATE_DETACHED 1
12858 int detach = PTHREAD_CREATE_DETACHED;
12860 #if HAVE_PTHREADS > 4
12861 /* Final pthreads */
12862 pthread_attr_t attr;
12864 status = pthread_attr_init(&attr);
12865 if( status ) return status;
12867 #if HAVE_PTHREADS < 7
12868 status = pthread_attr_setdetachstate(&attr, &detach);
12869 if( status < 0 ) status = errno;
12871 status = pthread_attr_setdetachstate(&attr, detach);
12873 if( status ) return status;
12874 status = pthread_create( &t, &attr, task, NULL );
12875 #if HAVE_PTHREADS < 7
12876 if( status < 0 ) status = errno;
12878 if( status ) return status;
12880 /* Draft 4 pthreads */
12881 status = pthread_create( &t, pthread_attr_default, task, NULL );
12882 if( status ) return errno;
12884 /* give thread a chance to complete */
12885 /* it should remain joinable and hence detachable */
12888 status = pthread_detach( &t );
12889 if( status ) return errno;
12892 #ifdef HAVE_LINUX_THREADS
12893 pthread_kill_other_threads_np();
12901 if { (eval echo configure:12906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12903 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12905 echo "configure: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12908 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12919 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12921 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12922 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12923 ol_link_threads=posix
12927 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12928 if test "$ol_link_threads" = no ; then
12929 # try -lpthread -lmach -lexc
12930 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12931 echo "configure:12936: checking for pthread link with -lpthread -lmach -lexc" >&5
12932 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12938 LIBS="-lpthread -lmach -lexc $LIBS"
12940 if test "$cross_compiling" = yes; then
12941 cat > conftest.$ac_ext <<EOF
12942 #line 12947 "configure"
12943 #include "confdefs.h"
12944 /* pthread test headers */
12945 #include <pthread.h>
12946 #if HAVE_PTHREADS < 7
12950 #define NULL (void*)0
12953 static void *task(p)
12956 return (void *) (p == NULL);
12961 /* pthread test function */
12962 #ifndef PTHREAD_CREATE_DETACHED
12963 #define PTHREAD_CREATE_DETACHED 1
12967 int detach = PTHREAD_CREATE_DETACHED;
12969 #if HAVE_PTHREADS > 4
12970 /* Final pthreads */
12971 pthread_attr_t attr;
12973 status = pthread_attr_init(&attr);
12974 if( status ) return status;
12976 #if HAVE_PTHREADS < 7
12977 status = pthread_attr_setdetachstate(&attr, &detach);
12978 if( status < 0 ) status = errno;
12980 status = pthread_attr_setdetachstate(&attr, detach);
12982 if( status ) return status;
12983 status = pthread_create( &t, &attr, task, NULL );
12984 #if HAVE_PTHREADS < 7
12985 if( status < 0 ) status = errno;
12987 if( status ) return status;
12989 /* Draft 4 pthreads */
12990 status = pthread_create( &t, pthread_attr_default, task, NULL );
12991 if( status ) return errno;
12993 /* give thread a chance to complete */
12994 /* it should remain joinable and hence detachable */
12997 status = pthread_detach( &t );
12998 if( status ) return errno;
13001 #ifdef HAVE_LINUX_THREADS
13002 pthread_kill_other_threads_np();
13009 if { (eval echo configure:13014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13011 ol_cv_pthread_lpthread_lmach_lexc=yes
13013 echo "configure: failed program was:" >&5
13014 cat conftest.$ac_ext >&5
13016 ol_cv_pthread_lpthread_lmach_lexc=no
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13026 "configure"
13022 #include "confdefs.h"
13023 /* pthread test headers */
13024 #include <pthread.h>
13025 #if HAVE_PTHREADS < 7
13029 #define NULL (void*)0
13032 static void *task(p)
13035 return (void *) (p == NULL);
13039 int main(argc, argv)
13044 /* pthread test function */
13045 #ifndef PTHREAD_CREATE_DETACHED
13046 #define PTHREAD_CREATE_DETACHED 1
13050 int detach = PTHREAD_CREATE_DETACHED;
13052 #if HAVE_PTHREADS > 4
13053 /* Final pthreads */
13054 pthread_attr_t attr;
13056 status = pthread_attr_init(&attr);
13057 if( status ) return status;
13059 #if HAVE_PTHREADS < 7
13060 status = pthread_attr_setdetachstate(&attr, &detach);
13061 if( status < 0 ) status = errno;
13063 status = pthread_attr_setdetachstate(&attr, detach);
13065 if( status ) return status;
13066 status = pthread_create( &t, &attr, task, NULL );
13067 #if HAVE_PTHREADS < 7
13068 if( status < 0 ) status = errno;
13070 if( status ) return status;
13072 /* Draft 4 pthreads */
13073 status = pthread_create( &t, pthread_attr_default, task, NULL );
13074 if( status ) return errno;
13076 /* give thread a chance to complete */
13077 /* it should remain joinable and hence detachable */
13080 status = pthread_detach( &t );
13081 if( status ) return errno;
13084 #ifdef HAVE_LINUX_THREADS
13085 pthread_kill_other_threads_np();
13093 if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13095 ol_cv_pthread_lpthread_lmach_lexc=yes
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 ol_cv_pthread_lpthread_lmach_lexc=no
13111 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13113 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13114 ol_link_pthreads="-lpthread -lmach -lexc"
13115 ol_link_threads=posix
13120 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13121 if test "$ol_link_threads" = no ; then
13122 # try -lpthread -Wl,-woff,85
13123 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13124 echo "configure:13129: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13125 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13126 echo $ac_n "(cached) $ac_c" 1>&6
13131 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13133 if test "$cross_compiling" = yes; then
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13140 "configure"
13136 #include "confdefs.h"
13137 /* pthread test headers */
13138 #include <pthread.h>
13139 #if HAVE_PTHREADS < 7
13143 #define NULL (void*)0
13146 static void *task(p)
13149 return (void *) (p == NULL);
13154 /* pthread test function */
13155 #ifndef PTHREAD_CREATE_DETACHED
13156 #define PTHREAD_CREATE_DETACHED 1
13160 int detach = PTHREAD_CREATE_DETACHED;
13162 #if HAVE_PTHREADS > 4
13163 /* Final pthreads */
13164 pthread_attr_t attr;
13166 status = pthread_attr_init(&attr);
13167 if( status ) return status;
13169 #if HAVE_PTHREADS < 7
13170 status = pthread_attr_setdetachstate(&attr, &detach);
13171 if( status < 0 ) status = errno;
13173 status = pthread_attr_setdetachstate(&attr, detach);
13175 if( status ) return status;
13176 status = pthread_create( &t, &attr, task, NULL );
13177 #if HAVE_PTHREADS < 7
13178 if( status < 0 ) status = errno;
13180 if( status ) return status;
13182 /* Draft 4 pthreads */
13183 status = pthread_create( &t, pthread_attr_default, task, NULL );
13184 if( status ) return errno;
13186 /* give thread a chance to complete */
13187 /* it should remain joinable and hence detachable */
13190 status = pthread_detach( &t );
13191 if( status ) return errno;
13194 #ifdef HAVE_LINUX_THREADS
13195 pthread_kill_other_threads_np();
13202 if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13204 ol_cv_pthread_lib_lpthread_woff=yes
13206 echo "configure: failed program was:" >&5
13207 cat conftest.$ac_ext >&5
13209 ol_cv_pthread_lib_lpthread_woff=no
13213 cat > conftest.$ac_ext <<EOF
13214 #line 13219 "configure"
13215 #include "confdefs.h"
13216 /* pthread test headers */
13217 #include <pthread.h>
13218 #if HAVE_PTHREADS < 7
13222 #define NULL (void*)0
13225 static void *task(p)
13228 return (void *) (p == NULL);
13232 int main(argc, argv)
13237 /* pthread test function */
13238 #ifndef PTHREAD_CREATE_DETACHED
13239 #define PTHREAD_CREATE_DETACHED 1
13243 int detach = PTHREAD_CREATE_DETACHED;
13245 #if HAVE_PTHREADS > 4
13246 /* Final pthreads */
13247 pthread_attr_t attr;
13249 status = pthread_attr_init(&attr);
13250 if( status ) return status;
13252 #if HAVE_PTHREADS < 7
13253 status = pthread_attr_setdetachstate(&attr, &detach);
13254 if( status < 0 ) status = errno;
13256 status = pthread_attr_setdetachstate(&attr, detach);
13258 if( status ) return status;
13259 status = pthread_create( &t, &attr, task, NULL );
13260 #if HAVE_PTHREADS < 7
13261 if( status < 0 ) status = errno;
13263 if( status ) return status;
13265 /* Draft 4 pthreads */
13266 status = pthread_create( &t, pthread_attr_default, task, NULL );
13267 if( status ) return errno;
13269 /* give thread a chance to complete */
13270 /* it should remain joinable and hence detachable */
13273 status = pthread_detach( &t );
13274 if( status ) return errno;
13277 #ifdef HAVE_LINUX_THREADS
13278 pthread_kill_other_threads_np();
13286 if { (eval echo configure:13291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13288 ol_cv_pthread_lib_lpthread_woff=yes
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13293 ol_cv_pthread_lib_lpthread_woff=no
13304 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13306 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13307 ol_link_pthreads="-lpthread -Wl,-woff,85"
13308 ol_link_threads=posix
13313 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13314 if test "$ol_link_threads" = no ; then
13316 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13317 echo "configure:13322: checking for pthread link with -lpthread" >&5
13318 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13319 echo $ac_n "(cached) $ac_c" 1>&6
13324 LIBS="-lpthread $LIBS"
13326 if test "$cross_compiling" = yes; then
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13333 "configure"
13329 #include "confdefs.h"
13330 /* pthread test headers */
13331 #include <pthread.h>
13332 #if HAVE_PTHREADS < 7
13336 #define NULL (void*)0
13339 static void *task(p)
13342 return (void *) (p == NULL);
13347 /* pthread test function */
13348 #ifndef PTHREAD_CREATE_DETACHED
13349 #define PTHREAD_CREATE_DETACHED 1
13353 int detach = PTHREAD_CREATE_DETACHED;
13355 #if HAVE_PTHREADS > 4
13356 /* Final pthreads */
13357 pthread_attr_t attr;
13359 status = pthread_attr_init(&attr);
13360 if( status ) return status;
13362 #if HAVE_PTHREADS < 7
13363 status = pthread_attr_setdetachstate(&attr, &detach);
13364 if( status < 0 ) status = errno;
13366 status = pthread_attr_setdetachstate(&attr, detach);
13368 if( status ) return status;
13369 status = pthread_create( &t, &attr, task, NULL );
13370 #if HAVE_PTHREADS < 7
13371 if( status < 0 ) status = errno;
13373 if( status ) return status;
13375 /* Draft 4 pthreads */
13376 status = pthread_create( &t, pthread_attr_default, task, NULL );
13377 if( status ) return errno;
13379 /* give thread a chance to complete */
13380 /* it should remain joinable and hence detachable */
13383 status = pthread_detach( &t );
13384 if( status ) return errno;
13387 #ifdef HAVE_LINUX_THREADS
13388 pthread_kill_other_threads_np();
13395 if { (eval echo configure:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13397 ol_cv_pthread_lpthread=yes
13399 echo "configure: failed program was:" >&5
13400 cat conftest.$ac_ext >&5
13402 ol_cv_pthread_lpthread=no
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13412 "configure"
13408 #include "confdefs.h"
13409 /* pthread test headers */
13410 #include <pthread.h>
13411 #if HAVE_PTHREADS < 7
13415 #define NULL (void*)0
13418 static void *task(p)
13421 return (void *) (p == NULL);
13425 int main(argc, argv)
13430 /* pthread test function */
13431 #ifndef PTHREAD_CREATE_DETACHED
13432 #define PTHREAD_CREATE_DETACHED 1
13436 int detach = PTHREAD_CREATE_DETACHED;
13438 #if HAVE_PTHREADS > 4
13439 /* Final pthreads */
13440 pthread_attr_t attr;
13442 status = pthread_attr_init(&attr);
13443 if( status ) return status;
13445 #if HAVE_PTHREADS < 7
13446 status = pthread_attr_setdetachstate(&attr, &detach);
13447 if( status < 0 ) status = errno;
13449 status = pthread_attr_setdetachstate(&attr, detach);
13451 if( status ) return status;
13452 status = pthread_create( &t, &attr, task, NULL );
13453 #if HAVE_PTHREADS < 7
13454 if( status < 0 ) status = errno;
13456 if( status ) return status;
13458 /* Draft 4 pthreads */
13459 status = pthread_create( &t, pthread_attr_default, task, NULL );
13460 if( status ) return errno;
13462 /* give thread a chance to complete */
13463 /* it should remain joinable and hence detachable */
13466 status = pthread_detach( &t );
13467 if( status ) return errno;
13470 #ifdef HAVE_LINUX_THREADS
13471 pthread_kill_other_threads_np();
13479 if { (eval echo configure:13484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13481 ol_cv_pthread_lpthread=yes
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 ol_cv_pthread_lpthread=no
13497 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13499 if test $ol_cv_pthread_lpthread = yes ; then
13500 ol_link_pthreads="-lpthread"
13501 ol_link_threads=posix
13505 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13506 if test "$ol_link_threads" = no ; then
13508 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13509 echo "configure:13514: checking for pthread link with -lc_r" >&5
13510 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13511 echo $ac_n "(cached) $ac_c" 1>&6
13518 if test "$cross_compiling" = yes; then
13519 cat > conftest.$ac_ext <<EOF
13520 #line 13525 "configure"
13521 #include "confdefs.h"
13522 /* pthread test headers */
13523 #include <pthread.h>
13524 #if HAVE_PTHREADS < 7
13528 #define NULL (void*)0
13531 static void *task(p)
13534 return (void *) (p == NULL);
13539 /* pthread test function */
13540 #ifndef PTHREAD_CREATE_DETACHED
13541 #define PTHREAD_CREATE_DETACHED 1
13545 int detach = PTHREAD_CREATE_DETACHED;
13547 #if HAVE_PTHREADS > 4
13548 /* Final pthreads */
13549 pthread_attr_t attr;
13551 status = pthread_attr_init(&attr);
13552 if( status ) return status;
13554 #if HAVE_PTHREADS < 7
13555 status = pthread_attr_setdetachstate(&attr, &detach);
13556 if( status < 0 ) status = errno;
13558 status = pthread_attr_setdetachstate(&attr, detach);
13560 if( status ) return status;
13561 status = pthread_create( &t, &attr, task, NULL );
13562 #if HAVE_PTHREADS < 7
13563 if( status < 0 ) status = errno;
13565 if( status ) return status;
13567 /* Draft 4 pthreads */
13568 status = pthread_create( &t, pthread_attr_default, task, NULL );
13569 if( status ) return errno;
13571 /* give thread a chance to complete */
13572 /* it should remain joinable and hence detachable */
13575 status = pthread_detach( &t );
13576 if( status ) return errno;
13579 #ifdef HAVE_LINUX_THREADS
13580 pthread_kill_other_threads_np();
13587 if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13589 ol_cv_pthread_lc_r=yes
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13594 ol_cv_pthread_lc_r=no
13598 cat > conftest.$ac_ext <<EOF
13599 #line 13604 "configure"
13600 #include "confdefs.h"
13601 /* pthread test headers */
13602 #include <pthread.h>
13603 #if HAVE_PTHREADS < 7
13607 #define NULL (void*)0
13610 static void *task(p)
13613 return (void *) (p == NULL);
13617 int main(argc, argv)
13622 /* pthread test function */
13623 #ifndef PTHREAD_CREATE_DETACHED
13624 #define PTHREAD_CREATE_DETACHED 1
13628 int detach = PTHREAD_CREATE_DETACHED;
13630 #if HAVE_PTHREADS > 4
13631 /* Final pthreads */
13632 pthread_attr_t attr;
13634 status = pthread_attr_init(&attr);
13635 if( status ) return status;
13637 #if HAVE_PTHREADS < 7
13638 status = pthread_attr_setdetachstate(&attr, &detach);
13639 if( status < 0 ) status = errno;
13641 status = pthread_attr_setdetachstate(&attr, detach);
13643 if( status ) return status;
13644 status = pthread_create( &t, &attr, task, NULL );
13645 #if HAVE_PTHREADS < 7
13646 if( status < 0 ) status = errno;
13648 if( status ) return status;
13650 /* Draft 4 pthreads */
13651 status = pthread_create( &t, pthread_attr_default, task, NULL );
13652 if( status ) return errno;
13654 /* give thread a chance to complete */
13655 /* it should remain joinable and hence detachable */
13658 status = pthread_detach( &t );
13659 if( status ) return errno;
13662 #ifdef HAVE_LINUX_THREADS
13663 pthread_kill_other_threads_np();
13671 if { (eval echo configure:13676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13673 ol_cv_pthread_lc_r=yes
13675 echo "configure: failed program was:" >&5
13676 cat conftest.$ac_ext >&5
13678 ol_cv_pthread_lc_r=no
13689 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13691 if test $ol_cv_pthread_lc_r = yes ; then
13692 ol_link_pthreads="-lc_r"
13693 ol_link_threads=posix
13698 # Pthread try link: -threads (ol_cv_pthread_threads)
13699 if test "$ol_link_threads" = no ; then
13701 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13702 echo "configure:13707: checking for pthread link with -threads" >&5
13703 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13704 echo $ac_n "(cached) $ac_c" 1>&6
13709 LIBS="-threads $LIBS"
13711 if test "$cross_compiling" = yes; then
13712 cat > conftest.$ac_ext <<EOF
13713 #line 13718 "configure"
13714 #include "confdefs.h"
13715 /* pthread test headers */
13716 #include <pthread.h>
13717 #if HAVE_PTHREADS < 7
13721 #define NULL (void*)0
13724 static void *task(p)
13727 return (void *) (p == NULL);
13732 /* pthread test function */
13733 #ifndef PTHREAD_CREATE_DETACHED
13734 #define PTHREAD_CREATE_DETACHED 1
13738 int detach = PTHREAD_CREATE_DETACHED;
13740 #if HAVE_PTHREADS > 4
13741 /* Final pthreads */
13742 pthread_attr_t attr;
13744 status = pthread_attr_init(&attr);
13745 if( status ) return status;
13747 #if HAVE_PTHREADS < 7
13748 status = pthread_attr_setdetachstate(&attr, &detach);
13749 if( status < 0 ) status = errno;
13751 status = pthread_attr_setdetachstate(&attr, detach);
13753 if( status ) return status;
13754 status = pthread_create( &t, &attr, task, NULL );
13755 #if HAVE_PTHREADS < 7
13756 if( status < 0 ) status = errno;
13758 if( status ) return status;
13760 /* Draft 4 pthreads */
13761 status = pthread_create( &t, pthread_attr_default, task, NULL );
13762 if( status ) return errno;
13764 /* give thread a chance to complete */
13765 /* it should remain joinable and hence detachable */
13768 status = pthread_detach( &t );
13769 if( status ) return errno;
13772 #ifdef HAVE_LINUX_THREADS
13773 pthread_kill_other_threads_np();
13780 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13782 ol_cv_pthread_threads=yes
13784 echo "configure: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13787 ol_cv_pthread_threads=no
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13797 "configure"
13793 #include "confdefs.h"
13794 /* pthread test headers */
13795 #include <pthread.h>
13796 #if HAVE_PTHREADS < 7
13800 #define NULL (void*)0
13803 static void *task(p)
13806 return (void *) (p == NULL);
13810 int main(argc, argv)
13815 /* pthread test function */
13816 #ifndef PTHREAD_CREATE_DETACHED
13817 #define PTHREAD_CREATE_DETACHED 1
13821 int detach = PTHREAD_CREATE_DETACHED;
13823 #if HAVE_PTHREADS > 4
13824 /* Final pthreads */
13825 pthread_attr_t attr;
13827 status = pthread_attr_init(&attr);
13828 if( status ) return status;
13830 #if HAVE_PTHREADS < 7
13831 status = pthread_attr_setdetachstate(&attr, &detach);
13832 if( status < 0 ) status = errno;
13834 status = pthread_attr_setdetachstate(&attr, detach);
13836 if( status ) return status;
13837 status = pthread_create( &t, &attr, task, NULL );
13838 #if HAVE_PTHREADS < 7
13839 if( status < 0 ) status = errno;
13841 if( status ) return status;
13843 /* Draft 4 pthreads */
13844 status = pthread_create( &t, pthread_attr_default, task, NULL );
13845 if( status ) return errno;
13847 /* give thread a chance to complete */
13848 /* it should remain joinable and hence detachable */
13851 status = pthread_detach( &t );
13852 if( status ) return errno;
13855 #ifdef HAVE_LINUX_THREADS
13856 pthread_kill_other_threads_np();
13864 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13866 ol_cv_pthread_threads=yes
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13871 ol_cv_pthread_threads=no
13882 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13884 if test $ol_cv_pthread_threads = yes ; then
13885 ol_link_pthreads="-threads"
13886 ol_link_threads=posix
13891 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13892 if test "$ol_link_threads" = no ; then
13893 # try -lpthreads -lmach -lexc -lc_r
13894 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13895 echo "configure:13900: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13896 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13902 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13904 if test "$cross_compiling" = yes; then
13905 cat > conftest.$ac_ext <<EOF
13906 #line 13911 "configure"
13907 #include "confdefs.h"
13908 /* pthread test headers */
13909 #include <pthread.h>
13910 #if HAVE_PTHREADS < 7
13914 #define NULL (void*)0
13917 static void *task(p)
13920 return (void *) (p == NULL);
13925 /* pthread test function */
13926 #ifndef PTHREAD_CREATE_DETACHED
13927 #define PTHREAD_CREATE_DETACHED 1
13931 int detach = PTHREAD_CREATE_DETACHED;
13933 #if HAVE_PTHREADS > 4
13934 /* Final pthreads */
13935 pthread_attr_t attr;
13937 status = pthread_attr_init(&attr);
13938 if( status ) return status;
13940 #if HAVE_PTHREADS < 7
13941 status = pthread_attr_setdetachstate(&attr, &detach);
13942 if( status < 0 ) status = errno;
13944 status = pthread_attr_setdetachstate(&attr, detach);
13946 if( status ) return status;
13947 status = pthread_create( &t, &attr, task, NULL );
13948 #if HAVE_PTHREADS < 7
13949 if( status < 0 ) status = errno;
13951 if( status ) return status;
13953 /* Draft 4 pthreads */
13954 status = pthread_create( &t, pthread_attr_default, task, NULL );
13955 if( status ) return errno;
13957 /* give thread a chance to complete */
13958 /* it should remain joinable and hence detachable */
13961 status = pthread_detach( &t );
13962 if( status ) return errno;
13965 #ifdef HAVE_LINUX_THREADS
13966 pthread_kill_other_threads_np();
13973 if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13975 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13977 echo "configure: failed program was:" >&5
13978 cat conftest.$ac_ext >&5
13980 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13984 cat > conftest.$ac_ext <<EOF
13985 #line 13990 "configure"
13986 #include "confdefs.h"
13987 /* pthread test headers */
13988 #include <pthread.h>
13989 #if HAVE_PTHREADS < 7
13993 #define NULL (void*)0
13996 static void *task(p)
13999 return (void *) (p == NULL);
14003 int main(argc, argv)
14008 /* pthread test function */
14009 #ifndef PTHREAD_CREATE_DETACHED
14010 #define PTHREAD_CREATE_DETACHED 1
14014 int detach = PTHREAD_CREATE_DETACHED;
14016 #if HAVE_PTHREADS > 4
14017 /* Final pthreads */
14018 pthread_attr_t attr;
14020 status = pthread_attr_init(&attr);
14021 if( status ) return status;
14023 #if HAVE_PTHREADS < 7
14024 status = pthread_attr_setdetachstate(&attr, &detach);
14025 if( status < 0 ) status = errno;
14027 status = pthread_attr_setdetachstate(&attr, detach);
14029 if( status ) return status;
14030 status = pthread_create( &t, &attr, task, NULL );
14031 #if HAVE_PTHREADS < 7
14032 if( status < 0 ) status = errno;
14034 if( status ) return status;
14036 /* Draft 4 pthreads */
14037 status = pthread_create( &t, pthread_attr_default, task, NULL );
14038 if( status ) return errno;
14040 /* give thread a chance to complete */
14041 /* it should remain joinable and hence detachable */
14044 status = pthread_detach( &t );
14045 if( status ) return errno;
14048 #ifdef HAVE_LINUX_THREADS
14049 pthread_kill_other_threads_np();
14057 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14059 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14061 echo "configure: failed program was:" >&5
14062 cat conftest.$ac_ext >&5
14064 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14075 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14077 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14078 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14079 ol_link_threads=posix
14083 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14084 if test "$ol_link_threads" = no ; then
14085 # try -lpthreads -lmach -lexc
14086 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14087 echo "configure:14092: checking for pthread link with -lpthreads -lmach -lexc" >&5
14088 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14089 echo $ac_n "(cached) $ac_c" 1>&6
14094 LIBS="-lpthreads -lmach -lexc $LIBS"
14096 if test "$cross_compiling" = yes; then
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14103 "configure"
14099 #include "confdefs.h"
14100 /* pthread test headers */
14101 #include <pthread.h>
14102 #if HAVE_PTHREADS < 7
14106 #define NULL (void*)0
14109 static void *task(p)
14112 return (void *) (p == NULL);
14117 /* pthread test function */
14118 #ifndef PTHREAD_CREATE_DETACHED
14119 #define PTHREAD_CREATE_DETACHED 1
14123 int detach = PTHREAD_CREATE_DETACHED;
14125 #if HAVE_PTHREADS > 4
14126 /* Final pthreads */
14127 pthread_attr_t attr;
14129 status = pthread_attr_init(&attr);
14130 if( status ) return status;
14132 #if HAVE_PTHREADS < 7
14133 status = pthread_attr_setdetachstate(&attr, &detach);
14134 if( status < 0 ) status = errno;
14136 status = pthread_attr_setdetachstate(&attr, detach);
14138 if( status ) return status;
14139 status = pthread_create( &t, &attr, task, NULL );
14140 #if HAVE_PTHREADS < 7
14141 if( status < 0 ) status = errno;
14143 if( status ) return status;
14145 /* Draft 4 pthreads */
14146 status = pthread_create( &t, pthread_attr_default, task, NULL );
14147 if( status ) return errno;
14149 /* give thread a chance to complete */
14150 /* it should remain joinable and hence detachable */
14153 status = pthread_detach( &t );
14154 if( status ) return errno;
14157 #ifdef HAVE_LINUX_THREADS
14158 pthread_kill_other_threads_np();
14165 if { (eval echo configure:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14167 ol_cv_pthread_lpthreads_lmach_lexc=yes
14169 echo "configure: failed program was:" >&5
14170 cat conftest.$ac_ext >&5
14172 ol_cv_pthread_lpthreads_lmach_lexc=no
14176 cat > conftest.$ac_ext <<EOF
14177 #line 14182 "configure"
14178 #include "confdefs.h"
14179 /* pthread test headers */
14180 #include <pthread.h>
14181 #if HAVE_PTHREADS < 7
14185 #define NULL (void*)0
14188 static void *task(p)
14191 return (void *) (p == NULL);
14195 int main(argc, argv)
14200 /* pthread test function */
14201 #ifndef PTHREAD_CREATE_DETACHED
14202 #define PTHREAD_CREATE_DETACHED 1
14206 int detach = PTHREAD_CREATE_DETACHED;
14208 #if HAVE_PTHREADS > 4
14209 /* Final pthreads */
14210 pthread_attr_t attr;
14212 status = pthread_attr_init(&attr);
14213 if( status ) return status;
14215 #if HAVE_PTHREADS < 7
14216 status = pthread_attr_setdetachstate(&attr, &detach);
14217 if( status < 0 ) status = errno;
14219 status = pthread_attr_setdetachstate(&attr, detach);
14221 if( status ) return status;
14222 status = pthread_create( &t, &attr, task, NULL );
14223 #if HAVE_PTHREADS < 7
14224 if( status < 0 ) status = errno;
14226 if( status ) return status;
14228 /* Draft 4 pthreads */
14229 status = pthread_create( &t, pthread_attr_default, task, NULL );
14230 if( status ) return errno;
14232 /* give thread a chance to complete */
14233 /* it should remain joinable and hence detachable */
14236 status = pthread_detach( &t );
14237 if( status ) return errno;
14240 #ifdef HAVE_LINUX_THREADS
14241 pthread_kill_other_threads_np();
14249 if { (eval echo configure:14254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14251 ol_cv_pthread_lpthreads_lmach_lexc=yes
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14256 ol_cv_pthread_lpthreads_lmach_lexc=no
14267 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14269 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14270 ol_link_pthreads="-lpthreads -lmach -lexc"
14271 ol_link_threads=posix
14275 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14276 if test "$ol_link_threads" = no ; then
14277 # try -lpthreads -lexc
14278 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14279 echo "configure:14284: checking for pthread link with -lpthreads -lexc" >&5
14280 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14281 echo $ac_n "(cached) $ac_c" 1>&6
14286 LIBS="-lpthreads -lexc $LIBS"
14288 if test "$cross_compiling" = yes; then
14289 cat > conftest.$ac_ext <<EOF
14290 #line 14295 "configure"
14291 #include "confdefs.h"
14292 /* pthread test headers */
14293 #include <pthread.h>
14294 #if HAVE_PTHREADS < 7
14298 #define NULL (void*)0
14301 static void *task(p)
14304 return (void *) (p == NULL);
14309 /* pthread test function */
14310 #ifndef PTHREAD_CREATE_DETACHED
14311 #define PTHREAD_CREATE_DETACHED 1
14315 int detach = PTHREAD_CREATE_DETACHED;
14317 #if HAVE_PTHREADS > 4
14318 /* Final pthreads */
14319 pthread_attr_t attr;
14321 status = pthread_attr_init(&attr);
14322 if( status ) return status;
14324 #if HAVE_PTHREADS < 7
14325 status = pthread_attr_setdetachstate(&attr, &detach);
14326 if( status < 0 ) status = errno;
14328 status = pthread_attr_setdetachstate(&attr, detach);
14330 if( status ) return status;
14331 status = pthread_create( &t, &attr, task, NULL );
14332 #if HAVE_PTHREADS < 7
14333 if( status < 0 ) status = errno;
14335 if( status ) return status;
14337 /* Draft 4 pthreads */
14338 status = pthread_create( &t, pthread_attr_default, task, NULL );
14339 if( status ) return errno;
14341 /* give thread a chance to complete */
14342 /* it should remain joinable and hence detachable */
14345 status = pthread_detach( &t );
14346 if( status ) return errno;
14349 #ifdef HAVE_LINUX_THREADS
14350 pthread_kill_other_threads_np();
14357 if { (eval echo configure:14362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14359 ol_cv_pthread_lpthreads_lexc=yes
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14364 ol_cv_pthread_lpthreads_lexc=no
14368 cat > conftest.$ac_ext <<EOF
14369 #line 14374 "configure"
14370 #include "confdefs.h"
14371 /* pthread test headers */
14372 #include <pthread.h>
14373 #if HAVE_PTHREADS < 7
14377 #define NULL (void*)0
14380 static void *task(p)
14383 return (void *) (p == NULL);
14387 int main(argc, argv)
14392 /* pthread test function */
14393 #ifndef PTHREAD_CREATE_DETACHED
14394 #define PTHREAD_CREATE_DETACHED 1
14398 int detach = PTHREAD_CREATE_DETACHED;
14400 #if HAVE_PTHREADS > 4
14401 /* Final pthreads */
14402 pthread_attr_t attr;
14404 status = pthread_attr_init(&attr);
14405 if( status ) return status;
14407 #if HAVE_PTHREADS < 7
14408 status = pthread_attr_setdetachstate(&attr, &detach);
14409 if( status < 0 ) status = errno;
14411 status = pthread_attr_setdetachstate(&attr, detach);
14413 if( status ) return status;
14414 status = pthread_create( &t, &attr, task, NULL );
14415 #if HAVE_PTHREADS < 7
14416 if( status < 0 ) status = errno;
14418 if( status ) return status;
14420 /* Draft 4 pthreads */
14421 status = pthread_create( &t, pthread_attr_default, task, NULL );
14422 if( status ) return errno;
14424 /* give thread a chance to complete */
14425 /* it should remain joinable and hence detachable */
14428 status = pthread_detach( &t );
14429 if( status ) return errno;
14432 #ifdef HAVE_LINUX_THREADS
14433 pthread_kill_other_threads_np();
14441 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14443 ol_cv_pthread_lpthreads_lexc=yes
14445 echo "configure: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14448 ol_cv_pthread_lpthreads_lexc=no
14459 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14461 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14462 ol_link_pthreads="-lpthreads -lexc"
14463 ol_link_threads=posix
14468 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14469 if test "$ol_link_threads" = no ; then
14471 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14472 echo "configure:14477: checking for pthread link with -lpthreads" >&5
14473 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14479 LIBS="-lpthreads $LIBS"
14481 if test "$cross_compiling" = yes; then
14482 cat > conftest.$ac_ext <<EOF
14483 #line 14488 "configure"
14484 #include "confdefs.h"
14485 /* pthread test headers */
14486 #include <pthread.h>
14487 #if HAVE_PTHREADS < 7
14491 #define NULL (void*)0
14494 static void *task(p)
14497 return (void *) (p == NULL);
14502 /* pthread test function */
14503 #ifndef PTHREAD_CREATE_DETACHED
14504 #define PTHREAD_CREATE_DETACHED 1
14508 int detach = PTHREAD_CREATE_DETACHED;
14510 #if HAVE_PTHREADS > 4
14511 /* Final pthreads */
14512 pthread_attr_t attr;
14514 status = pthread_attr_init(&attr);
14515 if( status ) return status;
14517 #if HAVE_PTHREADS < 7
14518 status = pthread_attr_setdetachstate(&attr, &detach);
14519 if( status < 0 ) status = errno;
14521 status = pthread_attr_setdetachstate(&attr, detach);
14523 if( status ) return status;
14524 status = pthread_create( &t, &attr, task, NULL );
14525 #if HAVE_PTHREADS < 7
14526 if( status < 0 ) status = errno;
14528 if( status ) return status;
14530 /* Draft 4 pthreads */
14531 status = pthread_create( &t, pthread_attr_default, task, NULL );
14532 if( status ) return errno;
14534 /* give thread a chance to complete */
14535 /* it should remain joinable and hence detachable */
14538 status = pthread_detach( &t );
14539 if( status ) return errno;
14542 #ifdef HAVE_LINUX_THREADS
14543 pthread_kill_other_threads_np();
14550 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14552 ol_cv_pthread_lib_lpthreads=yes
14554 echo "configure: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14557 ol_cv_pthread_lib_lpthreads=no
14561 cat > conftest.$ac_ext <<EOF
14562 #line 14567 "configure"
14563 #include "confdefs.h"
14564 /* pthread test headers */
14565 #include <pthread.h>
14566 #if HAVE_PTHREADS < 7
14570 #define NULL (void*)0
14573 static void *task(p)
14576 return (void *) (p == NULL);
14580 int main(argc, argv)
14585 /* pthread test function */
14586 #ifndef PTHREAD_CREATE_DETACHED
14587 #define PTHREAD_CREATE_DETACHED 1
14591 int detach = PTHREAD_CREATE_DETACHED;
14593 #if HAVE_PTHREADS > 4
14594 /* Final pthreads */
14595 pthread_attr_t attr;
14597 status = pthread_attr_init(&attr);
14598 if( status ) return status;
14600 #if HAVE_PTHREADS < 7
14601 status = pthread_attr_setdetachstate(&attr, &detach);
14602 if( status < 0 ) status = errno;
14604 status = pthread_attr_setdetachstate(&attr, detach);
14606 if( status ) return status;
14607 status = pthread_create( &t, &attr, task, NULL );
14608 #if HAVE_PTHREADS < 7
14609 if( status < 0 ) status = errno;
14611 if( status ) return status;
14613 /* Draft 4 pthreads */
14614 status = pthread_create( &t, pthread_attr_default, task, NULL );
14615 if( status ) return errno;
14617 /* give thread a chance to complete */
14618 /* it should remain joinable and hence detachable */
14621 status = pthread_detach( &t );
14622 if( status ) return errno;
14625 #ifdef HAVE_LINUX_THREADS
14626 pthread_kill_other_threads_np();
14634 if { (eval echo configure:14639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14636 ol_cv_pthread_lib_lpthreads=yes
14638 echo "configure: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14641 ol_cv_pthread_lib_lpthreads=no
14652 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14654 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14655 ol_link_pthreads="-lpthreads"
14656 ol_link_threads=posix
14661 if test $ol_link_threads != no ; then
14662 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14664 save_CPPFLAGS="$CPPFLAGS"
14666 LIBS="$LTHREAD_LIBS $LIBS"
14668 for ac_func in sched_yield pthread_yield thr_yield
14670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14671 echo "configure:14676: checking for $ac_func" >&5
14672 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14673 echo $ac_n "(cached) $ac_c" 1>&6
14675 cat > conftest.$ac_ext <<EOF
14676 #line 14681 "configure"
14677 #include "confdefs.h"
14678 /* System header to define __stub macros and hopefully few prototypes,
14679 which can conflict with char $ac_func(); below. */
14680 #include <assert.h>
14681 /* Override any gcc2 internal prototype to avoid an error. */
14682 /* We use char because int might match the return type of a gcc2
14683 builtin and then its argument prototype would still apply. */
14689 /* The GNU C library defines this for functions which it implements
14690 to always fail with ENOSYS. Some functions are actually named
14691 something starting with __ and the normal name is an alias. */
14692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14700 if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 eval "ac_cv_func_$ac_func=yes"
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14707 eval "ac_cv_func_$ac_func=no"
14712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14713 echo "$ac_t""yes" 1>&6
14714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14715 cat >> confdefs.h <<EOF
14716 #define $ac_tr_func 1
14720 echo "$ac_t""no" 1>&6
14725 if test $ac_cv_func_sched_yield = no -a \
14726 $ac_cv_func_pthread_yield = no -a \
14727 $ac_cv_func_thr_yield = no ; then
14728 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14729 echo "configure:14734: checking for sched_yield in -lrt" >&5
14730 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14732 echo $ac_n "(cached) $ac_c" 1>&6
14734 ac_save_LIBS="$LIBS"
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14742 "configure"
14738 #include "confdefs.h"
14739 /* Override any gcc2 internal prototype to avoid an error. */
14740 /* We use char because int might match the return type of a gcc2
14741 builtin and then its argument prototype would still apply. */
14742 char sched_yield();
14748 if { (eval echo configure:14753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14750 eval "ac_cv_lib_$ac_lib_var=yes"
14752 echo "configure: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14755 eval "ac_cv_lib_$ac_lib_var=no"
14758 LIBS="$ac_save_LIBS"
14761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14762 echo "$ac_t""yes" 1>&6
14763 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14764 cat >> confdefs.h <<\EOF
14765 #define HAVE_SCHED_YIELD 1
14768 ac_cv_func_sched_yield=yes
14770 echo "$ac_t""no" 1>&6
14771 ac_cv_func_sched_yield=no
14775 if test $ac_cv_func_sched_yield = no -a \
14776 $ac_cv_func_pthread_yield = no -a \
14777 "$ac_cv_func_thr_yield" = no ; then
14778 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14781 for ac_func in pthread_kill pthread_rwlock_destroy
14783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14784 echo "configure:14789: checking for $ac_func" >&5
14785 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14786 echo $ac_n "(cached) $ac_c" 1>&6
14788 cat > conftest.$ac_ext <<EOF
14789 #line 14794 "configure"
14790 #include "confdefs.h"
14791 /* System header to define __stub macros and hopefully few prototypes,
14792 which can conflict with char $ac_func(); below. */
14793 #include <assert.h>
14794 /* Override any gcc2 internal prototype to avoid an error. */
14795 /* We use char because int might match the return type of a gcc2
14796 builtin and then its argument prototype would still apply. */
14802 /* The GNU C library defines this for functions which it implements
14803 to always fail with ENOSYS. Some functions are actually named
14804 something starting with __ and the normal name is an alias. */
14805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14813 if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815 eval "ac_cv_func_$ac_func=yes"
14817 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14820 eval "ac_cv_func_$ac_func=no"
14825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14826 echo "$ac_t""yes" 1>&6
14827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14828 cat >> confdefs.h <<EOF
14829 #define $ac_tr_func 1
14833 echo "$ac_t""no" 1>&6
14838 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14839 echo "configure:14844: checking for pthread_detach with <pthread.h>" >&5
14840 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14841 echo $ac_n "(cached) $ac_c" 1>&6
14844 cat > conftest.$ac_ext <<EOF
14845 #line 14850 "configure"
14846 #include "confdefs.h"
14848 #include <pthread.h>
14850 #define NULL (void*)0
14854 pthread_detach(NULL);
14857 if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 ol_cv_func_pthread_detach=yes
14861 echo "configure: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14864 ol_cv_func_pthread_detach=no
14870 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14872 if test $ol_cv_func_pthread_detach = no ; then
14873 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14876 cat >> confdefs.h <<\EOF
14877 #define HAVE_PTHREAD_DETACH 1
14882 pthread_setconcurrency \
14883 pthread_getconcurrency \
14884 thr_setconcurrency \
14885 thr_getconcurrency \
14888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14889 echo "configure:14894: checking for $ac_func" >&5
14890 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14899 "configure"
14895 #include "confdefs.h"
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char $ac_func(); below. */
14898 #include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14907 /* The GNU C library defines this for functions which it implements
14908 to always fail with ENOSYS. Some functions are actually named
14909 something starting with __ and the normal name is an alias. */
14910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14918 if { (eval echo configure:14923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14920 eval "ac_cv_func_$ac_func=yes"
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14925 eval "ac_cv_func_$ac_func=no"
14930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14931 echo "$ac_t""yes" 1>&6
14932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14933 cat >> confdefs.h <<EOF
14934 #define $ac_tr_func 1
14938 echo "$ac_t""no" 1>&6
14944 for ac_func in pthread_kill_other_threads_np
14946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14947 echo "configure:14952: checking for $ac_func" >&5
14948 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14957 "configure"
14953 #include "confdefs.h"
14954 /* System header to define __stub macros and hopefully few prototypes,
14955 which can conflict with char $ac_func(); below. */
14956 #include <assert.h>
14957 /* Override any gcc2 internal prototype to avoid an error. */
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14965 /* The GNU C library defines this for functions which it implements
14966 to always fail with ENOSYS. Some functions are actually named
14967 something starting with __ and the normal name is an alias. */
14968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14976 if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14978 eval "ac_cv_func_$ac_func=yes"
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14983 eval "ac_cv_func_$ac_func=no"
14988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14989 echo "$ac_t""yes" 1>&6
14990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14991 cat >> confdefs.h <<EOF
14992 #define $ac_tr_func 1
14996 echo "$ac_t""no" 1>&6
15000 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15001 echo "configure:15006: checking for LinuxThreads implementation" >&5
15002 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15003 echo $ac_n "(cached) $ac_c" 1>&6
15005 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15008 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15013 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15014 echo "configure:15019: checking for LinuxThreads consistency" >&5
15015 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15016 echo $ac_n "(cached) $ac_c" 1>&6
15019 if test $ol_cv_header_linux_threads = yes -a \
15020 $ol_cv_sys_linux_threads = yes; then
15021 ol_cv_linux_threads=yes
15022 elif test $ol_cv_header_linux_threads = no -a \
15023 $ol_cv_sys_linux_threads = no; then
15024 ol_cv_linux_threads=no
15026 ol_cv_linux_threads=error
15031 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15034 if test $ol_cv_linux_threads = error; then
15035 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15038 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15039 echo "configure:15044: checking if pthread_create() works" >&5
15040 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
15044 if test "$cross_compiling" = yes; then
15045 ol_cv_pthread_create_works=yes
15047 cat > conftest.$ac_ext <<EOF
15048 #line 15053 "configure"
15049 #include "confdefs.h"
15050 /* pthread test headers */
15051 #include <pthread.h>
15052 #if HAVE_PTHREADS < 7
15056 #define NULL (void*)0
15059 static void *task(p)
15062 return (void *) (p == NULL);
15066 int main(argc, argv)
15071 /* pthread test function */
15072 #ifndef PTHREAD_CREATE_DETACHED
15073 #define PTHREAD_CREATE_DETACHED 1
15077 int detach = PTHREAD_CREATE_DETACHED;
15079 #if HAVE_PTHREADS > 4
15080 /* Final pthreads */
15081 pthread_attr_t attr;
15083 status = pthread_attr_init(&attr);
15084 if( status ) return status;
15086 #if HAVE_PTHREADS < 7
15087 status = pthread_attr_setdetachstate(&attr, &detach);
15088 if( status < 0 ) status = errno;
15090 status = pthread_attr_setdetachstate(&attr, detach);
15092 if( status ) return status;
15093 status = pthread_create( &t, &attr, task, NULL );
15094 #if HAVE_PTHREADS < 7
15095 if( status < 0 ) status = errno;
15097 if( status ) return status;
15099 /* Draft 4 pthreads */
15100 status = pthread_create( &t, pthread_attr_default, task, NULL );
15101 if( status ) return errno;
15103 /* give thread a chance to complete */
15104 /* it should remain joinable and hence detachable */
15107 status = pthread_detach( &t );
15108 if( status ) return errno;
15111 #ifdef HAVE_LINUX_THREADS
15112 pthread_kill_other_threads_np();
15120 if { (eval echo configure:15125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15122 ol_cv_pthread_create_works=yes
15124 echo "configure: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15127 ol_cv_pthread_create_works=no
15134 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15136 if test $ol_cv_pthread_create_works = no ; then
15137 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15140 if test $ol_with_yielding_select = auto ; then
15141 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15142 echo "configure:15147: checking if select yields when using pthreads" >&5
15143 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15144 echo $ac_n "(cached) $ac_c" 1>&6
15147 if test "$cross_compiling" = yes; then
15148 ol_cv_pthread_select_yields=cross
15150 cat > conftest.$ac_ext <<EOF
15151 #line 15156 "configure"
15152 #include "confdefs.h"
15154 #include <sys/types.h>
15155 #include <sys/time.h>
15156 #include <unistd.h>
15157 #include <pthread.h>
15159 #define NULL (void*) 0
15162 static int fildes[2];
15164 static void *task(p)
15176 FD_SET(fildes[0], &rfds);
15178 /* we're not interested in any fds */
15179 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15186 exit(0); /* if we exit here, the select blocked the whole process */
15189 int main(argc, argv)
15195 /* create a pipe to select */
15196 if(pipe(&fildes[0])) {
15201 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15202 (void) pthread_setconcurrency(2);
15204 #ifdef HAVE_THR_SETCONCURRENCY
15205 /* Set Solaris LWP concurrency to 2 */
15206 thr_setconcurrency(2);
15210 #if HAVE_PTHREADS < 6
15211 pthread_create(&t, pthread_attr_default, task, NULL);
15213 pthread_create(&t, NULL, task, NULL);
15216 /* make sure task runs first */
15219 #elif defined( HAVE_SCHED_YIELD )
15221 #elif defined( HAVE_PTHREAD_YIELD )
15228 if { (eval echo configure:15233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15230 ol_cv_pthread_select_yields=no
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 ol_cv_pthread_select_yields=yes
15242 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15244 if test $ol_cv_pthread_select_yields = cross ; then
15245 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15248 if test $ol_cv_pthread_select_yields = yes ; then
15249 ol_with_yielding_select=yes
15253 CPPFLAGS="$save_CPPFLAGS"
15256 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15260 if test $ol_with_threads = posix ; then
15261 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15265 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15266 -o $ol_with_threads = mach ; then
15268 for ac_hdr in mach/cthreads.h cthreads.h
15270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15272 echo "configure:15277: checking for $ac_hdr" >&5
15273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15274 echo $ac_n "(cached) $ac_c" 1>&6
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15282 "configure"
15278 #include "confdefs.h"
15281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15282 { (eval echo configure:15287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15284 if test -z "$ac_err"; then
15286 eval "ac_cv_header_$ac_safe=yes"
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15292 eval "ac_cv_header_$ac_safe=no"
15296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15297 echo "$ac_t""yes" 1>&6
15298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15299 cat >> confdefs.h <<EOF
15300 #define $ac_tr_hdr 1
15304 echo "$ac_t""no" 1>&6
15308 if test $ac_cv_header_mach_cthreads_h = yes ; then
15309 ol_with_threads=found
15311 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15312 echo "configure:15317: checking for cthread_fork" >&5
15313 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15314 echo $ac_n "(cached) $ac_c" 1>&6
15316 cat > conftest.$ac_ext <<EOF
15317 #line 15322 "configure"
15318 #include "confdefs.h"
15319 /* System header to define __stub macros and hopefully few prototypes,
15320 which can conflict with char cthread_fork(); below. */
15321 #include <assert.h>
15322 /* Override any gcc2 internal prototype to avoid an error. */
15323 /* We use char because int might match the return type of a gcc2
15324 builtin and then its argument prototype would still apply. */
15325 char cthread_fork();
15330 /* The GNU C library defines this for functions which it implements
15331 to always fail with ENOSYS. Some functions are actually named
15332 something starting with __ and the normal name is an alias. */
15333 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15341 if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 eval "ac_cv_func_cthread_fork=yes"
15345 echo "configure: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15348 eval "ac_cv_func_cthread_fork=no"
15353 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15354 echo "$ac_t""yes" 1>&6
15355 ol_link_threads=yes
15357 echo "$ac_t""no" 1>&6
15361 if test $ol_link_threads = no ; then
15362 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15363 echo "configure:15368: checking for cthread_fork with -all_load" >&5
15364 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15365 echo $ac_n "(cached) $ac_c" 1>&6
15369 LIBS="-all_load $LIBS"
15370 cat > conftest.$ac_ext <<EOF
15371 #line 15376 "configure"
15372 #include "confdefs.h"
15373 #include <mach/cthreads.h>
15376 cthread_fork((void *)0, (void *)0);
15380 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15382 ol_cv_cthread_all_load=yes
15384 echo "configure: failed program was:" >&5
15385 cat conftest.$ac_ext >&5
15387 ol_cv_cthread_all_load=no
15394 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15396 if test $ol_cv_cthread_all_load = yes ; then
15397 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15398 ol_link_threads=mach
15399 ol_with_threads=found
15403 elif test $ac_cv_header_cthreads_h = yes ; then
15405 ol_with_threads=found
15408 LIBS="$LIBS -lthreads"
15409 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15410 echo "configure:15415: checking for cthread_fork" >&5
15411 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15412 echo $ac_n "(cached) $ac_c" 1>&6
15414 cat > conftest.$ac_ext <<EOF
15415 #line 15420 "configure"
15416 #include "confdefs.h"
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char cthread_fork(); below. */
15419 #include <assert.h>
15420 /* Override any gcc2 internal prototype to avoid an error. */
15421 /* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423 char cthread_fork();
15428 /* The GNU C library defines this for functions which it implements
15429 to always fail with ENOSYS. Some functions are actually named
15430 something starting with __ and the normal name is an alias. */
15431 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15439 if { (eval echo configure:15444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15441 eval "ac_cv_func_cthread_fork=yes"
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15446 eval "ac_cv_func_cthread_fork=no"
15451 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
15453 ol_link_threads=yes
15455 echo "$ac_t""no" 1>&6
15460 if test $ol_link_threads = yes ; then
15461 LTHREAD_LIBS="-lthreads"
15462 ol_link_threads=mach
15463 ol_with_threads=found
15465 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15468 elif test $ol_with_threads = mach ; then
15469 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15472 if test $ol_link_threads = mach ; then
15473 cat >> confdefs.h <<\EOF
15474 #define HAVE_MACH_CTHREADS 1
15477 elif test $ol_with_threads = found ; then
15478 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15482 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15483 -o $ol_with_threads = pth ; then
15485 for ac_hdr in pth.h
15487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15489 echo "configure:15494: checking for $ac_hdr" >&5
15490 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15491 echo $ac_n "(cached) $ac_c" 1>&6
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15499 "configure"
15495 #include "confdefs.h"
15498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15499 { (eval echo configure:15504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15501 if test -z "$ac_err"; then
15503 eval "ac_cv_header_$ac_safe=yes"
15506 echo "configure: failed program was:" >&5
15507 cat conftest.$ac_ext >&5
15509 eval "ac_cv_header_$ac_safe=no"
15513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15514 echo "$ac_t""yes" 1>&6
15515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15516 cat >> confdefs.h <<EOF
15517 #define $ac_tr_hdr 1
15521 echo "$ac_t""no" 1>&6
15526 if test $ac_cv_header_pth_h = yes ; then
15527 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15528 echo "configure:15533: checking for pth_version in -lpth" >&5
15529 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15531 echo $ac_n "(cached) $ac_c" 1>&6
15533 ac_save_LIBS="$LIBS"
15535 cat > conftest.$ac_ext <<EOF
15536 #line 15541 "configure"
15537 #include "confdefs.h"
15538 /* Override any gcc2 internal prototype to avoid an error. */
15539 /* We use char because int might match the return type of a gcc2
15540 builtin and then its argument prototype would still apply. */
15541 char pth_version();
15547 if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15549 eval "ac_cv_lib_$ac_lib_var=yes"
15551 echo "configure: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15554 eval "ac_cv_lib_$ac_lib_var=no"
15557 LIBS="$ac_save_LIBS"
15560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15561 echo "$ac_t""yes" 1>&6
15564 echo "$ac_t""no" 1>&6
15569 if test $have_pth = yes ; then
15570 cat >> confdefs.h <<\EOF
15571 #define HAVE_GNU_PTH 1
15574 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15575 ol_link_threads=pth
15576 ol_with_threads=found
15578 if test $ol_with_yielding_select = auto ; then
15579 ol_with_yielding_select=yes
15585 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15586 -o $ol_with_threads = lwp ; then
15588 for ac_hdr in thread.h synch.h
15590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15592 echo "configure:15597: checking for $ac_hdr" >&5
15593 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15594 echo $ac_n "(cached) $ac_c" 1>&6
15596 cat > conftest.$ac_ext <<EOF
15597 #line 15602 "configure"
15598 #include "confdefs.h"
15601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15602 { (eval echo configure:15607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15604 if test -z "$ac_err"; then
15606 eval "ac_cv_header_$ac_safe=yes"
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15612 eval "ac_cv_header_$ac_safe=no"
15616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15617 echo "$ac_t""yes" 1>&6
15618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15619 cat >> confdefs.h <<EOF
15620 #define $ac_tr_hdr 1
15624 echo "$ac_t""no" 1>&6
15628 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15629 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15630 echo "configure:15635: checking for thr_create in -lthread" >&5
15631 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15632 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15635 ac_save_LIBS="$LIBS"
15636 LIBS="-lthread $LIBS"
15637 cat > conftest.$ac_ext <<EOF
15638 #line 15643 "configure"
15639 #include "confdefs.h"
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15649 if { (eval echo configure:15654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15651 eval "ac_cv_lib_$ac_lib_var=yes"
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15656 eval "ac_cv_lib_$ac_lib_var=no"
15659 LIBS="$ac_save_LIBS"
15662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15663 echo "$ac_t""yes" 1>&6
15666 echo "$ac_t""no" 1>&6
15671 if test $have_thr = yes ; then
15672 cat >> confdefs.h <<\EOF
15676 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15677 ol_link_threads=thr
15679 if test $ol_with_yielding_select = auto ; then
15680 ol_with_yielding_select=yes
15684 thr_setconcurrency \
15685 thr_getconcurrency \
15688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15689 echo "configure:15694: checking for $ac_func" >&5
15690 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15693 cat > conftest.$ac_ext <<EOF
15694 #line 15699 "configure"
15695 #include "confdefs.h"
15696 /* System header to define __stub macros and hopefully few prototypes,
15697 which can conflict with char $ac_func(); below. */
15698 #include <assert.h>
15699 /* Override any gcc2 internal prototype to avoid an error. */
15700 /* We use char because int might match the return type of a gcc2
15701 builtin and then its argument prototype would still apply. */
15707 /* The GNU C library defines this for functions which it implements
15708 to always fail with ENOSYS. Some functions are actually named
15709 something starting with __ and the normal name is an alias. */
15710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15718 if { (eval echo configure:15723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15720 eval "ac_cv_func_$ac_func=yes"
15722 echo "configure: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15725 eval "ac_cv_func_$ac_func=no"
15730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15731 echo "$ac_t""yes" 1>&6
15732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15733 cat >> confdefs.h <<EOF
15734 #define $ac_tr_func 1
15738 echo "$ac_t""no" 1>&6
15745 for ac_hdr in lwp/lwp.h
15747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15749 echo "configure:15754: checking for $ac_hdr" >&5
15750 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15751 echo $ac_n "(cached) $ac_c" 1>&6
15753 cat > conftest.$ac_ext <<EOF
15754 #line 15759 "configure"
15755 #include "confdefs.h"
15758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15759 { (eval echo configure:15764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15761 if test -z "$ac_err"; then
15763 eval "ac_cv_header_$ac_safe=yes"
15766 echo "configure: failed program was:" >&5
15767 cat conftest.$ac_ext >&5
15769 eval "ac_cv_header_$ac_safe=no"
15773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15774 echo "$ac_t""yes" 1>&6
15775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15776 cat >> confdefs.h <<EOF
15777 #define $ac_tr_hdr 1
15781 echo "$ac_t""no" 1>&6
15785 if test $ac_cv_header_lwp_lwp_h = yes ; then
15786 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15787 echo "configure:15792: checking for lwp_create in -llwp" >&5
15788 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
15792 ac_save_LIBS="$LIBS"
15794 cat > conftest.$ac_ext <<EOF
15795 #line 15800 "configure"
15796 #include "confdefs.h"
15797 /* Override any gcc2 internal prototype to avoid an error. */
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15806 if { (eval echo configure:15811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15808 eval "ac_cv_lib_$ac_lib_var=yes"
15810 echo "configure: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15813 eval "ac_cv_lib_$ac_lib_var=no"
15816 LIBS="$ac_save_LIBS"
15819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
15823 echo "$ac_t""no" 1>&6
15828 if test $have_lwp = yes ; then
15829 cat >> confdefs.h <<\EOF
15833 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15834 ol_link_threads=lwp
15836 if test $ol_with_yielding_select = auto ; then
15837 ol_with_yielding_select=no
15843 if test $ol_with_yielding_select = yes ; then
15844 cat >> confdefs.h <<\EOF
15845 #define HAVE_YIELDING_SELECT 1
15850 if test $ol_with_threads = manual ; then
15851 ol_link_threads=yes
15853 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15855 for ac_hdr in pthread.h sched.h
15857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15859 echo "configure:15864: checking for $ac_hdr" >&5
15860 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15861 echo $ac_n "(cached) $ac_c" 1>&6
15863 cat > conftest.$ac_ext <<EOF
15864 #line 15869 "configure"
15865 #include "confdefs.h"
15868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15869 { (eval echo configure:15874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15871 if test -z "$ac_err"; then
15873 eval "ac_cv_header_$ac_safe=yes"
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15879 eval "ac_cv_header_$ac_safe=no"
15883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15884 echo "$ac_t""yes" 1>&6
15885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15886 cat >> confdefs.h <<EOF
15887 #define $ac_tr_hdr 1
15891 echo "$ac_t""no" 1>&6
15895 for ac_func in sched_yield pthread_yield
15897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15898 echo "configure:15903: checking for $ac_func" >&5
15899 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15900 echo $ac_n "(cached) $ac_c" 1>&6
15902 cat > conftest.$ac_ext <<EOF
15903 #line 15908 "configure"
15904 #include "confdefs.h"
15905 /* System header to define __stub macros and hopefully few prototypes,
15906 which can conflict with char $ac_func(); below. */
15907 #include <assert.h>
15908 /* Override any gcc2 internal prototype to avoid an error. */
15909 /* We use char because int might match the return type of a gcc2
15910 builtin and then its argument prototype would still apply. */
15916 /* The GNU C library defines this for functions which it implements
15917 to always fail with ENOSYS. Some functions are actually named
15918 something starting with __ and the normal name is an alias. */
15919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15927 if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15929 eval "ac_cv_func_$ac_func=yes"
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15934 eval "ac_cv_func_$ac_func=no"
15939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15940 echo "$ac_t""yes" 1>&6
15941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15942 cat >> confdefs.h <<EOF
15943 #define $ac_tr_func 1
15947 echo "$ac_t""no" 1>&6
15952 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15953 echo "configure:15958: checking for LinuxThreads pthread.h" >&5
15954 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15957 cat > conftest.$ac_ext <<EOF
15958 #line 15963 "configure"
15959 #include "confdefs.h"
15960 #include <pthread.h>
15962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15963 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15965 ol_cv_header_linux_threads=yes
15968 ol_cv_header_linux_threads=no
15975 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15976 if test $ol_cv_header_linux_threads = yes; then
15977 cat >> confdefs.h <<\EOF
15978 #define HAVE_LINUX_THREADS 1
15984 for ac_hdr in mach/cthreads.h
15986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15988 echo "configure:15993: checking for $ac_hdr" >&5
15989 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15990 echo $ac_n "(cached) $ac_c" 1>&6
15992 cat > conftest.$ac_ext <<EOF
15993 #line 15998 "configure"
15994 #include "confdefs.h"
15997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15998 { (eval echo configure:16003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16000 if test -z "$ac_err"; then
16002 eval "ac_cv_header_$ac_safe=yes"
16005 echo "configure: failed program was:" >&5
16006 cat conftest.$ac_ext >&5
16008 eval "ac_cv_header_$ac_safe=no"
16012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16013 echo "$ac_t""yes" 1>&6
16014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16015 cat >> confdefs.h <<EOF
16016 #define $ac_tr_hdr 1
16020 echo "$ac_t""no" 1>&6
16024 for ac_hdr in lwp/lwp.h
16026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16028 echo "configure:16033: checking for $ac_hdr" >&5
16029 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16030 echo $ac_n "(cached) $ac_c" 1>&6
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16038 "configure"
16034 #include "confdefs.h"
16037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16038 { (eval echo configure:16043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16040 if test -z "$ac_err"; then
16042 eval "ac_cv_header_$ac_safe=yes"
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16048 eval "ac_cv_header_$ac_safe=no"
16052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16053 echo "$ac_t""yes" 1>&6
16054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16055 cat >> confdefs.h <<EOF
16056 #define $ac_tr_hdr 1
16060 echo "$ac_t""no" 1>&6
16064 for ac_hdr in thread.h synch.h
16066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16068 echo "configure:16073: checking for $ac_hdr" >&5
16069 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16072 cat > conftest.$ac_ext <<EOF
16073 #line 16078 "configure"
16074 #include "confdefs.h"
16077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16078 { (eval echo configure:16083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16080 if test -z "$ac_err"; then
16082 eval "ac_cv_header_$ac_safe=yes"
16085 echo "configure: failed program was:" >&5
16086 cat conftest.$ac_ext >&5
16088 eval "ac_cv_header_$ac_safe=no"
16092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16093 echo "$ac_t""yes" 1>&6
16094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16095 cat >> confdefs.h <<EOF
16096 #define $ac_tr_hdr 1
16100 echo "$ac_t""no" 1>&6
16106 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16107 cat >> confdefs.h <<\EOF
16108 #define REENTRANT 1
16111 cat >> confdefs.h <<\EOF
16112 #define _REENTRANT 1
16115 cat >> confdefs.h <<\EOF
16116 #define THREAD_SAFE 1
16119 cat >> confdefs.h <<\EOF
16120 #define _THREAD_SAFE 1
16123 cat >> confdefs.h <<\EOF
16124 #define THREADSAFE 1
16127 cat >> confdefs.h <<\EOF
16128 #define _THREADSAFE 1
16131 cat >> confdefs.h <<\EOF
16132 #define _SGI_MP_SOURCE 1
16136 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16137 echo "configure:16142: checking for thread specific errno" >&5
16138 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16139 echo $ac_n "(cached) $ac_c" 1>&6
16142 cat > conftest.$ac_ext <<EOF
16143 #line 16148 "configure"
16144 #include "confdefs.h"
16150 if { (eval echo configure:16155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16152 ol_cv_errno_thread_specific=yes
16154 echo "configure: failed program was:" >&5
16155 cat conftest.$ac_ext >&5
16157 ol_cv_errno_thread_specific=no
16163 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16165 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16166 echo "configure:16171: checking for thread specific h_errno" >&5
16167 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16168 echo $ac_n "(cached) $ac_c" 1>&6
16171 cat > conftest.$ac_ext <<EOF
16172 #line 16177 "configure"
16173 #include "confdefs.h"
16179 if { (eval echo configure:16184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16181 ol_cv_h_errno_thread_specific=yes
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 ol_cv_h_errno_thread_specific=no
16192 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16194 if test $ol_cv_errno_thread_specific != yes \
16195 -o $ol_cv_h_errno_thread_specific != yes ; then
16196 LIBS="$LTHREAD_LIBS $LIBS"
16202 if test $ol_link_threads = no ; then
16203 if test $ol_with_threads = yes ; then
16204 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16207 if test $ol_with_threads = auto ; then
16208 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16212 cat >> confdefs.h <<\EOF
16213 #define NO_THREADS 1
16219 if test $ol_link_threads != no ; then
16220 cat >> confdefs.h <<\EOF
16221 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16228 gethostbyname_r gethostbyaddr_r \
16231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16232 echo "configure:16237: checking for $ac_func" >&5
16233 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16234 echo $ac_n "(cached) $ac_c" 1>&6
16236 cat > conftest.$ac_ext <<EOF
16237 #line 16242 "configure"
16238 #include "confdefs.h"
16239 /* System header to define __stub macros and hopefully few prototypes,
16240 which can conflict with char $ac_func(); below. */
16241 #include <assert.h>
16242 /* Override any gcc2 internal prototype to avoid an error. */
16243 /* We use char because int might match the return type of a gcc2
16244 builtin and then its argument prototype would still apply. */
16250 /* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16261 if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16263 eval "ac_cv_func_$ac_func=yes"
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16268 eval "ac_cv_func_$ac_func=no"
16273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16274 echo "$ac_t""yes" 1>&6
16275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16276 cat >> confdefs.h <<EOF
16277 #define $ac_tr_func 1
16281 echo "$ac_t""no" 1>&6
16286 if test "$ac_cv_func_ctime_r" = no ; then
16287 ol_cv_func_ctime_r_nargs=0
16289 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16290 echo "configure:16295: checking number of arguments of ctime_r" >&5
16291 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16292 echo $ac_n "(cached) $ac_c" 1>&6
16294 cat > conftest.$ac_ext <<EOF
16295 #line 16300 "configure"
16296 #include "confdefs.h"
16299 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16302 if { (eval echo configure:16307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16304 ol_cv_func_ctime_r_nargs3=yes
16306 echo "configure: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16309 ol_cv_func_ctime_r_nargs3=no
16313 cat > conftest.$ac_ext <<EOF
16314 #line 16319 "configure"
16315 #include "confdefs.h"
16318 time_t ti; char *buffer; ctime_r(&ti,buffer);
16321 if { (eval echo configure:16326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16323 ol_cv_func_ctime_r_nargs2=yes
16325 echo "configure: failed program was:" >&5
16326 cat conftest.$ac_ext >&5
16328 ol_cv_func_ctime_r_nargs2=no
16332 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16333 $ol_cv_func_ctime_r_nargs2 = no ; then
16335 ol_cv_func_ctime_r_nargs=3
16337 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16338 $ol_cv_func_ctime_r_nargs2 = yes ; then
16340 ol_cv_func_ctime_r_nargs=2
16343 ol_cv_func_ctime_r_nargs=0
16348 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16350 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16351 cat >> confdefs.h <<EOF
16352 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16359 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16360 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16361 echo "configure:16366: checking number of arguments of gethostbyname_r" >&5
16362 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16365 cat > conftest.$ac_ext <<EOF
16366 #line 16371 "configure"
16367 #include "confdefs.h"
16368 #include <sys/types.h>
16369 #include <sys/socket.h>
16370 #include <netinet/in.h>
16372 #define BUFSIZE (sizeof(struct hostent)+10)
16374 struct hostent hent; char buffer[BUFSIZE];
16375 int bufsize=BUFSIZE;int h_errno;
16376 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16377 buffer, bufsize, &h_errno);
16380 if { (eval echo configure:16385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16382 ol_cv_func_gethostbyname_r_nargs5=yes
16384 echo "configure: failed program was:" >&5
16385 cat conftest.$ac_ext >&5
16387 ol_cv_func_gethostbyname_r_nargs5=no
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16397 "configure"
16393 #include "confdefs.h"
16394 #include <sys/types.h>
16395 #include <sys/socket.h>
16396 #include <netinet/in.h>
16398 #define BUFSIZE (sizeof(struct hostent)+10)
16400 struct hostent hent;struct hostent *rhent;
16401 char buffer[BUFSIZE];
16402 int bufsize=BUFSIZE;int h_errno;
16403 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16407 if { (eval echo configure:16412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16409 ol_cv_func_gethostbyname_r_nargs6=yes
16411 echo "configure: failed program was:" >&5
16412 cat conftest.$ac_ext >&5
16414 ol_cv_func_gethostbyname_r_nargs6=no
16418 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16419 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16421 ol_cv_func_gethostbyname_r_nargs=5
16423 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16424 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16426 ol_cv_func_gethostbyname_r_nargs=6
16429 ol_cv_func_gethostbyname_r_nargs=0
16434 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16435 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16436 cat >> confdefs.h <<EOF
16437 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16443 ol_cv_func_gethostbyname_r_nargs=0
16446 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16447 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16448 echo "configure:16453: checking number of arguments of gethostbyaddr_r" >&5
16449 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16450 echo $ac_n "(cached) $ac_c" 1>&6
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16458 "configure"
16454 #include "confdefs.h"
16455 #include <sys/types.h>
16456 #include <sys/socket.h>
16457 #include <netinet/in.h>
16459 #define BUFSIZE (sizeof(struct hostent)+10)
16461 struct hostent hent; char buffer[BUFSIZE];
16462 struct in_addr add;
16463 size_t alen=sizeof(struct in_addr);
16464 int bufsize=BUFSIZE;int h_errno;
16465 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16466 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16469 if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16471 ol_cv_func_gethostbyaddr_r_nargs7=yes
16473 echo "configure: failed program was:" >&5
16474 cat conftest.$ac_ext >&5
16476 ol_cv_func_gethostbyaddr_r_nargs7=no
16480 cat > conftest.$ac_ext <<EOF
16481 #line 16486 "configure"
16482 #include "confdefs.h"
16483 #include <sys/types.h>
16484 #include <sys/socket.h>
16485 #include <netinet/in.h>
16487 #define BUFSIZE (sizeof(struct hostent)+10)
16489 struct hostent hent;
16490 struct hostent *rhent; char buffer[BUFSIZE];
16491 struct in_addr add;
16492 size_t alen=sizeof(struct in_addr);
16493 int bufsize=BUFSIZE;int h_errno;
16494 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16495 alen, AF_INET, &hent, buffer, bufsize,
16499 if { (eval echo configure:16504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16501 ol_cv_func_gethostbyaddr_r_nargs8=yes
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16506 ol_cv_func_gethostbyaddr_r_nargs8=no
16510 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16511 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16513 ol_cv_func_gethostbyaddr_r_nargs=7
16515 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16516 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16518 ol_cv_func_gethostbyaddr_r_nargs=8
16521 ol_cv_func_gethostbyaddr_r_nargs=0
16526 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16527 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16528 cat >> confdefs.h <<EOF
16529 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16535 ol_cv_func_gethostbyaddr_r_nargs=0
16540 if test $ol_with_ldbm_api = auto \
16541 -o $ol_with_ldbm_api = berkeley \
16542 -o $ol_with_ldbm_api = bcompat ; then
16544 if test $ol_with_ldbm_api = bcompat; then \
16545 for ac_hdr in db_185.h db.h
16547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16549 echo "configure:16554: checking for $ac_hdr" >&5
16550 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16551 echo $ac_n "(cached) $ac_c" 1>&6
16553 cat > conftest.$ac_ext <<EOF
16554 #line 16559 "configure"
16555 #include "confdefs.h"
16558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16559 { (eval echo configure:16564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16561 if test -z "$ac_err"; then
16563 eval "ac_cv_header_$ac_safe=yes"
16566 echo "configure: failed program was:" >&5
16567 cat conftest.$ac_ext >&5
16569 eval "ac_cv_header_$ac_safe=no"
16573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16574 echo "$ac_t""yes" 1>&6
16575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16576 cat >> confdefs.h <<EOF
16577 #define $ac_tr_hdr 1
16581 echo "$ac_t""no" 1>&6
16585 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16586 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16587 echo "configure:16592: checking if Berkeley DB header compatibility" >&5
16588 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16589 echo $ac_n "(cached) $ac_c" 1>&6
16592 cat > conftest.$ac_ext <<EOF
16593 #line 16598 "configure"
16594 #include "confdefs.h"
16597 # include <db_185.h>
16602 /* this check could be improved */
16603 #ifndef DB_VERSION_MAJOR
16604 # define DB_VERSION_MAJOR 1
16607 #if DB_VERSION_MAJOR == 1
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613 egrep "__db_version_1" >/dev/null 2>&1; then
16615 ol_cv_header_db1=yes
16618 ol_cv_header_db1=no
16624 echo "$ac_t""$ol_cv_header_db1" 1>&6
16626 if test $ol_cv_header_db1 = yes ; then
16628 if test $ol_cv_lib_db = no ; then
16629 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16630 echo "configure:16635: checking for Berkeley DB link (default)" >&5
16631 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16637 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16645 "configure"
16641 #include "confdefs.h"
16643 #ifdef HAVE_DB_185_H
16644 # include <db_185.h>
16649 #ifndef DB_VERSION_MAJOR
16650 # define DB_VERSION_MAJOR 1
16654 #define NULL ((void*)0)
16659 #if DB_VERSION_MAJOR > 1
16662 int major, minor, patch;
16664 version = db_version( &major, &minor, &patch );
16666 if( major != DB_VERSION_MAJOR ||
16667 minor < DB_VERSION_MINOR )
16669 printf("Berkeley DB version mismatch\n"
16670 "\texpected: %s\n\tgot: %s\n",
16671 DB_VERSION_STRING, version);
16677 #if DB_VERSION_MAJOR > 2
16678 db_env_create( NULL, 0 );
16679 #elif DB_VERSION_MAJOR > 1
16680 db_appexit( NULL );
16682 (void) dbopen( NULL, 0, 0, 0, NULL);
16687 if { (eval echo configure:16692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16691 echo "configure: failed program was:" >&5
16692 cat conftest.$ac_ext >&5
16702 echo "$ac_t""$ol_cv_db_none" 1>&6
16704 if test $ol_cv_db_none = yes ; then
16709 if test $ol_cv_lib_db = no ; then
16710 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16711 echo "configure:16716: checking for Berkeley DB link (-ldb41)" >&5
16712 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16713 echo $ac_n "(cached) $ac_c" 1>&6
16718 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16720 cat > conftest.$ac_ext <<EOF
16721 #line 16726 "configure"
16722 #include "confdefs.h"
16724 #ifdef HAVE_DB_185_H
16725 # include <db_185.h>
16730 #ifndef DB_VERSION_MAJOR
16731 # define DB_VERSION_MAJOR 1
16735 #define NULL ((void*)0)
16740 #if DB_VERSION_MAJOR > 1
16743 int major, minor, patch;
16745 version = db_version( &major, &minor, &patch );
16747 if( major != DB_VERSION_MAJOR ||
16748 minor < DB_VERSION_MINOR )
16750 printf("Berkeley DB version mismatch\n"
16751 "\texpected: %s\n\tgot: %s\n",
16752 DB_VERSION_STRING, version);
16758 #if DB_VERSION_MAJOR > 2
16759 db_env_create( NULL, 0 );
16760 #elif DB_VERSION_MAJOR > 1
16761 db_appexit( NULL );
16763 (void) dbopen( NULL, 0, 0, 0, NULL);
16768 if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16783 echo "$ac_t""$ol_cv_db_db41" 1>&6
16785 if test $ol_cv_db_db41 = yes ; then
16786 ol_cv_lib_db=-ldb41
16790 if test $ol_cv_lib_db = no ; then
16791 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16792 echo "configure:16797: checking for Berkeley DB link (-ldb-41)" >&5
16793 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16794 echo $ac_n "(cached) $ac_c" 1>&6
16799 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16807 "configure"
16803 #include "confdefs.h"
16805 #ifdef HAVE_DB_185_H
16806 # include <db_185.h>
16811 #ifndef DB_VERSION_MAJOR
16812 # define DB_VERSION_MAJOR 1
16816 #define NULL ((void*)0)
16821 #if DB_VERSION_MAJOR > 1
16824 int major, minor, patch;
16826 version = db_version( &major, &minor, &patch );
16828 if( major != DB_VERSION_MAJOR ||
16829 minor < DB_VERSION_MINOR )
16831 printf("Berkeley DB version mismatch\n"
16832 "\texpected: %s\n\tgot: %s\n",
16833 DB_VERSION_STRING, version);
16839 #if DB_VERSION_MAJOR > 2
16840 db_env_create( NULL, 0 );
16841 #elif DB_VERSION_MAJOR > 1
16842 db_appexit( NULL );
16844 (void) dbopen( NULL, 0, 0, 0, NULL);
16849 if { (eval echo configure:16854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16853 echo "configure: failed program was:" >&5
16854 cat conftest.$ac_ext >&5
16864 echo "$ac_t""$ol_cv_db_db_41" 1>&6
16866 if test $ol_cv_db_db_41 = yes ; then
16867 ol_cv_lib_db=-ldb-41
16871 if test $ol_cv_lib_db = no ; then
16872 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
16873 echo "configure:16878: checking for Berkeley DB link (-ldb-4.1)" >&5
16874 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16880 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16888 "configure"
16884 #include "confdefs.h"
16886 #ifdef HAVE_DB_185_H
16887 # include <db_185.h>
16892 #ifndef DB_VERSION_MAJOR
16893 # define DB_VERSION_MAJOR 1
16897 #define NULL ((void*)0)
16902 #if DB_VERSION_MAJOR > 1
16905 int major, minor, patch;
16907 version = db_version( &major, &minor, &patch );
16909 if( major != DB_VERSION_MAJOR ||
16910 minor < DB_VERSION_MINOR )
16912 printf("Berkeley DB version mismatch\n"
16913 "\texpected: %s\n\tgot: %s\n",
16914 DB_VERSION_STRING, version);
16920 #if DB_VERSION_MAJOR > 2
16921 db_env_create( NULL, 0 );
16922 #elif DB_VERSION_MAJOR > 1
16923 db_appexit( NULL );
16925 (void) dbopen( NULL, 0, 0, 0, NULL);
16930 if { (eval echo configure:16935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16932 ol_cv_db_db_4_dot_1=yes
16934 echo "configure: failed program was:" >&5
16935 cat conftest.$ac_ext >&5
16937 ol_cv_db_db_4_dot_1=no
16945 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
16947 if test $ol_cv_db_db_4_dot_1 = yes ; then
16948 ol_cv_lib_db=-ldb-4.1
16952 if test $ol_cv_lib_db = no ; then
16953 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
16954 echo "configure:16959: checking for Berkeley DB link (-ldb-4-1)" >&5
16955 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
16956 echo $ac_n "(cached) $ac_c" 1>&6
16961 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16963 cat > conftest.$ac_ext <<EOF
16964 #line 16969 "configure"
16965 #include "confdefs.h"
16967 #ifdef HAVE_DB_185_H
16968 # include <db_185.h>
16973 #ifndef DB_VERSION_MAJOR
16974 # define DB_VERSION_MAJOR 1
16978 #define NULL ((void*)0)
16983 #if DB_VERSION_MAJOR > 1
16986 int major, minor, patch;
16988 version = db_version( &major, &minor, &patch );
16990 if( major != DB_VERSION_MAJOR ||
16991 minor < DB_VERSION_MINOR )
16993 printf("Berkeley DB version mismatch\n"
16994 "\texpected: %s\n\tgot: %s\n",
16995 DB_VERSION_STRING, version);
17001 #if DB_VERSION_MAJOR > 2
17002 db_env_create( NULL, 0 );
17003 #elif DB_VERSION_MAJOR > 1
17004 db_appexit( NULL );
17006 (void) dbopen( NULL, 0, 0, 0, NULL);
17011 if { (eval echo configure:17016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17013 ol_cv_db_db_4_1=yes
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17026 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17028 if test $ol_cv_db_db_4_1 = yes ; then
17029 ol_cv_lib_db=-ldb-4-1
17033 if test $ol_cv_lib_db = no ; then
17034 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17035 echo "configure:17040: checking for Berkeley DB link (-ldb-4)" >&5
17036 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17037 echo $ac_n "(cached) $ac_c" 1>&6
17042 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17044 cat > conftest.$ac_ext <<EOF
17045 #line 17050 "configure"
17046 #include "confdefs.h"
17048 #ifdef HAVE_DB_185_H
17049 # include <db_185.h>
17054 #ifndef DB_VERSION_MAJOR
17055 # define DB_VERSION_MAJOR 1
17059 #define NULL ((void*)0)
17064 #if DB_VERSION_MAJOR > 1
17067 int major, minor, patch;
17069 version = db_version( &major, &minor, &patch );
17071 if( major != DB_VERSION_MAJOR ||
17072 minor < DB_VERSION_MINOR )
17074 printf("Berkeley DB version mismatch\n"
17075 "\texpected: %s\n\tgot: %s\n",
17076 DB_VERSION_STRING, version);
17082 #if DB_VERSION_MAJOR > 2
17083 db_env_create( NULL, 0 );
17084 #elif DB_VERSION_MAJOR > 1
17085 db_appexit( NULL );
17087 (void) dbopen( NULL, 0, 0, 0, NULL);
17092 if { (eval echo configure:17097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17096 echo "configure: failed program was:" >&5
17097 cat conftest.$ac_ext >&5
17107 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17109 if test $ol_cv_db_db_4 = yes ; then
17110 ol_cv_lib_db=-ldb-4
17114 if test $ol_cv_lib_db = no ; then
17115 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17116 echo "configure:17121: checking for Berkeley DB link (-ldb4)" >&5
17117 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17118 echo $ac_n "(cached) $ac_c" 1>&6
17123 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17125 cat > conftest.$ac_ext <<EOF
17126 #line 17131 "configure"
17127 #include "confdefs.h"
17129 #ifdef HAVE_DB_185_H
17130 # include <db_185.h>
17135 #ifndef DB_VERSION_MAJOR
17136 # define DB_VERSION_MAJOR 1
17140 #define NULL ((void*)0)
17145 #if DB_VERSION_MAJOR > 1
17148 int major, minor, patch;
17150 version = db_version( &major, &minor, &patch );
17152 if( major != DB_VERSION_MAJOR ||
17153 minor < DB_VERSION_MINOR )
17155 printf("Berkeley DB version mismatch\n"
17156 "\texpected: %s\n\tgot: %s\n",
17157 DB_VERSION_STRING, version);
17163 #if DB_VERSION_MAJOR > 2
17164 db_env_create( NULL, 0 );
17165 #elif DB_VERSION_MAJOR > 1
17166 db_appexit( NULL );
17168 (void) dbopen( NULL, 0, 0, 0, NULL);
17173 if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17177 echo "configure: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17188 echo "$ac_t""$ol_cv_db_db4" 1>&6
17190 if test $ol_cv_db_db4 = yes ; then
17195 if test $ol_cv_lib_db = no ; then
17196 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17197 echo "configure:17202: checking for Berkeley DB link (-ldb)" >&5
17198 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17199 echo $ac_n "(cached) $ac_c" 1>&6
17204 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17212 "configure"
17208 #include "confdefs.h"
17210 #ifdef HAVE_DB_185_H
17211 # include <db_185.h>
17216 #ifndef DB_VERSION_MAJOR
17217 # define DB_VERSION_MAJOR 1
17221 #define NULL ((void*)0)
17226 #if DB_VERSION_MAJOR > 1
17229 int major, minor, patch;
17231 version = db_version( &major, &minor, &patch );
17233 if( major != DB_VERSION_MAJOR ||
17234 minor < DB_VERSION_MINOR )
17236 printf("Berkeley DB version mismatch\n"
17237 "\texpected: %s\n\tgot: %s\n",
17238 DB_VERSION_STRING, version);
17244 #if DB_VERSION_MAJOR > 2
17245 db_env_create( NULL, 0 );
17246 #elif DB_VERSION_MAJOR > 1
17247 db_appexit( NULL );
17249 (void) dbopen( NULL, 0, 0, 0, NULL);
17254 if { (eval echo configure:17259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17258 echo "configure: failed program was:" >&5
17259 cat conftest.$ac_ext >&5
17269 echo "$ac_t""$ol_cv_db_db" 1>&6
17271 if test $ol_cv_db_db = yes ; then
17276 if test $ol_cv_lib_db = no ; then
17277 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17278 echo "configure:17283: checking for Berkeley DB link (-ldb3)" >&5
17279 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17280 echo $ac_n "(cached) $ac_c" 1>&6
17285 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17287 cat > conftest.$ac_ext <<EOF
17288 #line 17293 "configure"
17289 #include "confdefs.h"
17291 #ifdef HAVE_DB_185_H
17292 # include <db_185.h>
17297 #ifndef DB_VERSION_MAJOR
17298 # define DB_VERSION_MAJOR 1
17302 #define NULL ((void*)0)
17307 #if DB_VERSION_MAJOR > 1
17310 int major, minor, patch;
17312 version = db_version( &major, &minor, &patch );
17314 if( major != DB_VERSION_MAJOR ||
17315 minor < DB_VERSION_MINOR )
17317 printf("Berkeley DB version mismatch\n"
17318 "\texpected: %s\n\tgot: %s\n",
17319 DB_VERSION_STRING, version);
17325 #if DB_VERSION_MAJOR > 2
17326 db_env_create( NULL, 0 );
17327 #elif DB_VERSION_MAJOR > 1
17328 db_appexit( NULL );
17330 (void) dbopen( NULL, 0, 0, 0, NULL);
17335 if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17339 echo "configure: failed program was:" >&5
17340 cat conftest.$ac_ext >&5
17350 echo "$ac_t""$ol_cv_db_db3" 1>&6
17352 if test $ol_cv_db_db3 = yes ; then
17357 if test $ol_cv_lib_db = no ; then
17358 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17359 echo "configure:17364: checking for Berkeley DB link (-ldb-3)" >&5
17360 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17361 echo $ac_n "(cached) $ac_c" 1>&6
17366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17368 cat > conftest.$ac_ext <<EOF
17369 #line 17374 "configure"
17370 #include "confdefs.h"
17372 #ifdef HAVE_DB_185_H
17373 # include <db_185.h>
17378 #ifndef DB_VERSION_MAJOR
17379 # define DB_VERSION_MAJOR 1
17383 #define NULL ((void*)0)
17388 #if DB_VERSION_MAJOR > 1
17391 int major, minor, patch;
17393 version = db_version( &major, &minor, &patch );
17395 if( major != DB_VERSION_MAJOR ||
17396 minor < DB_VERSION_MINOR )
17398 printf("Berkeley DB version mismatch\n"
17399 "\texpected: %s\n\tgot: %s\n",
17400 DB_VERSION_STRING, version);
17406 #if DB_VERSION_MAJOR > 2
17407 db_env_create( NULL, 0 );
17408 #elif DB_VERSION_MAJOR > 1
17409 db_appexit( NULL );
17411 (void) dbopen( NULL, 0, 0, 0, NULL);
17416 if { (eval echo configure:17421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17420 echo "configure: failed program was:" >&5
17421 cat conftest.$ac_ext >&5
17431 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17433 if test $ol_cv_db_db_3 = yes ; then
17434 ol_cv_lib_db=-ldb-3
17438 if test $ol_cv_lib_db = no ; then
17439 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17440 echo "configure:17445: checking for Berkeley DB link (-ldb2)" >&5
17441 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17442 echo $ac_n "(cached) $ac_c" 1>&6
17447 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17449 cat > conftest.$ac_ext <<EOF
17450 #line 17455 "configure"
17451 #include "confdefs.h"
17453 #ifdef HAVE_DB_185_H
17454 # include <db_185.h>
17459 #ifndef DB_VERSION_MAJOR
17460 # define DB_VERSION_MAJOR 1
17464 #define NULL ((void*)0)
17469 #if DB_VERSION_MAJOR > 1
17472 int major, minor, patch;
17474 version = db_version( &major, &minor, &patch );
17476 if( major != DB_VERSION_MAJOR ||
17477 minor < DB_VERSION_MINOR )
17479 printf("Berkeley DB version mismatch\n"
17480 "\texpected: %s\n\tgot: %s\n",
17481 DB_VERSION_STRING, version);
17487 #if DB_VERSION_MAJOR > 2
17488 db_env_create( NULL, 0 );
17489 #elif DB_VERSION_MAJOR > 1
17490 db_appexit( NULL );
17492 (void) dbopen( NULL, 0, 0, 0, NULL);
17497 if { (eval echo configure:17502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17501 echo "configure: failed program was:" >&5
17502 cat conftest.$ac_ext >&5
17512 echo "$ac_t""$ol_cv_db_db2" 1>&6
17514 if test $ol_cv_db_db2 = yes ; then
17519 if test $ol_cv_lib_db = no ; then
17520 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17521 echo "configure:17526: checking for Berkeley DB link (-ldb-2)" >&5
17522 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17523 echo $ac_n "(cached) $ac_c" 1>&6
17528 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17530 cat > conftest.$ac_ext <<EOF
17531 #line 17536 "configure"
17532 #include "confdefs.h"
17534 #ifdef HAVE_DB_185_H
17535 # include <db_185.h>
17540 #ifndef DB_VERSION_MAJOR
17541 # define DB_VERSION_MAJOR 1
17545 #define NULL ((void*)0)
17550 #if DB_VERSION_MAJOR > 1
17553 int major, minor, patch;
17555 version = db_version( &major, &minor, &patch );
17557 if( major != DB_VERSION_MAJOR ||
17558 minor < DB_VERSION_MINOR )
17560 printf("Berkeley DB version mismatch\n"
17561 "\texpected: %s\n\tgot: %s\n",
17562 DB_VERSION_STRING, version);
17568 #if DB_VERSION_MAJOR > 2
17569 db_env_create( NULL, 0 );
17570 #elif DB_VERSION_MAJOR > 1
17571 db_appexit( NULL );
17573 (void) dbopen( NULL, 0, 0, 0, NULL);
17578 if { (eval echo configure:17583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17593 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17595 if test $ol_cv_db_db_2 = yes ; then
17596 ol_cv_lib_db=-ldb-2
17600 if test $ol_cv_lib_db = no ; then
17601 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17602 echo "configure:17607: checking for Berkeley DB link (-ldb1)" >&5
17603 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17604 echo $ac_n "(cached) $ac_c" 1>&6
17609 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17611 cat > conftest.$ac_ext <<EOF
17612 #line 17617 "configure"
17613 #include "confdefs.h"
17615 #ifdef HAVE_DB_185_H
17616 # include <db_185.h>
17621 #ifndef DB_VERSION_MAJOR
17622 # define DB_VERSION_MAJOR 1
17626 #define NULL ((void*)0)
17631 #if DB_VERSION_MAJOR > 1
17634 int major, minor, patch;
17636 version = db_version( &major, &minor, &patch );
17638 if( major != DB_VERSION_MAJOR ||
17639 minor < DB_VERSION_MINOR )
17641 printf("Berkeley DB version mismatch\n"
17642 "\texpected: %s\n\tgot: %s\n",
17643 DB_VERSION_STRING, version);
17649 #if DB_VERSION_MAJOR > 2
17650 db_env_create( NULL, 0 );
17651 #elif DB_VERSION_MAJOR > 1
17652 db_appexit( NULL );
17654 (void) dbopen( NULL, 0, 0, 0, NULL);
17659 if { (eval echo configure:17664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17663 echo "configure: failed program was:" >&5
17664 cat conftest.$ac_ext >&5
17674 echo "$ac_t""$ol_cv_db_db1" 1>&6
17676 if test $ol_cv_db_db1 = yes ; then
17681 if test $ol_cv_lib_db = no ; then
17682 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17683 echo "configure:17688: checking for Berkeley DB link (-ldb-1)" >&5
17684 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17685 echo $ac_n "(cached) $ac_c" 1>&6
17690 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17692 cat > conftest.$ac_ext <<EOF
17693 #line 17698 "configure"
17694 #include "confdefs.h"
17696 #ifdef HAVE_DB_185_H
17697 # include <db_185.h>
17702 #ifndef DB_VERSION_MAJOR
17703 # define DB_VERSION_MAJOR 1
17707 #define NULL ((void*)0)
17712 #if DB_VERSION_MAJOR > 1
17715 int major, minor, patch;
17717 version = db_version( &major, &minor, &patch );
17719 if( major != DB_VERSION_MAJOR ||
17720 minor < DB_VERSION_MINOR )
17722 printf("Berkeley DB version mismatch\n"
17723 "\texpected: %s\n\tgot: %s\n",
17724 DB_VERSION_STRING, version);
17730 #if DB_VERSION_MAJOR > 2
17731 db_env_create( NULL, 0 );
17732 #elif DB_VERSION_MAJOR > 1
17733 db_appexit( NULL );
17735 (void) dbopen( NULL, 0, 0, 0, NULL);
17740 if { (eval echo configure:17745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17744 echo "configure: failed program was:" >&5
17745 cat conftest.$ac_ext >&5
17755 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17757 if test $ol_cv_db_db_1 = yes ; then
17758 ol_cv_lib_db=-ldb-1
17763 if test "$ol_cv_lib_db" != no ; then
17764 ol_cv_berkeley_db=yes
17770 ol_cv_berkeley_db=no
17773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17775 echo "configure:17780: checking for $ac_hdr" >&5
17776 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17777 echo $ac_n "(cached) $ac_c" 1>&6
17779 cat > conftest.$ac_ext <<EOF
17780 #line 17785 "configure"
17781 #include "confdefs.h"
17784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17785 { (eval echo configure:17790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17787 if test -z "$ac_err"; then
17789 eval "ac_cv_header_$ac_safe=yes"
17792 echo "configure: failed program was:" >&5
17793 cat conftest.$ac_ext >&5
17795 eval "ac_cv_header_$ac_safe=no"
17799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17800 echo "$ac_t""yes" 1>&6
17801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17802 cat >> confdefs.h <<EOF
17803 #define $ac_tr_hdr 1
17807 echo "$ac_t""no" 1>&6
17811 if test $ac_cv_header_db_h = yes; then
17813 if test $ol_cv_lib_db = no ; then
17814 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17815 echo "configure:17820: checking for Berkeley DB link (default)" >&5
17816 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17817 echo $ac_n "(cached) $ac_c" 1>&6
17822 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17824 cat > conftest.$ac_ext <<EOF
17825 #line 17830 "configure"
17826 #include "confdefs.h"
17828 #ifdef HAVE_DB_185_H
17829 # include <db_185.h>
17834 #ifndef DB_VERSION_MAJOR
17835 # define DB_VERSION_MAJOR 1
17839 #define NULL ((void*)0)
17844 #if DB_VERSION_MAJOR > 1
17847 int major, minor, patch;
17849 version = db_version( &major, &minor, &patch );
17851 if( major != DB_VERSION_MAJOR ||
17852 minor < DB_VERSION_MINOR )
17854 printf("Berkeley DB version mismatch\n"
17855 "\texpected: %s\n\tgot: %s\n",
17856 DB_VERSION_STRING, version);
17862 #if DB_VERSION_MAJOR > 2
17863 db_env_create( NULL, 0 );
17864 #elif DB_VERSION_MAJOR > 1
17865 db_appexit( NULL );
17867 (void) dbopen( NULL, 0, 0, 0, NULL);
17872 if { (eval echo configure:17877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17876 echo "configure: failed program was:" >&5
17877 cat conftest.$ac_ext >&5
17887 echo "$ac_t""$ol_cv_db_none" 1>&6
17889 if test $ol_cv_db_none = yes ; then
17894 if test $ol_cv_lib_db = no ; then
17895 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17896 echo "configure:17901: checking for Berkeley DB link (-ldb41)" >&5
17897 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17898 echo $ac_n "(cached) $ac_c" 1>&6
17903 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17905 cat > conftest.$ac_ext <<EOF
17906 #line 17911 "configure"
17907 #include "confdefs.h"
17909 #ifdef HAVE_DB_185_H
17910 # include <db_185.h>
17915 #ifndef DB_VERSION_MAJOR
17916 # define DB_VERSION_MAJOR 1
17920 #define NULL ((void*)0)
17925 #if DB_VERSION_MAJOR > 1
17928 int major, minor, patch;
17930 version = db_version( &major, &minor, &patch );
17932 if( major != DB_VERSION_MAJOR ||
17933 minor < DB_VERSION_MINOR )
17935 printf("Berkeley DB version mismatch\n"
17936 "\texpected: %s\n\tgot: %s\n",
17937 DB_VERSION_STRING, version);
17943 #if DB_VERSION_MAJOR > 2
17944 db_env_create( NULL, 0 );
17945 #elif DB_VERSION_MAJOR > 1
17946 db_appexit( NULL );
17948 (void) dbopen( NULL, 0, 0, 0, NULL);
17953 if { (eval echo configure:17958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17957 echo "configure: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17968 echo "$ac_t""$ol_cv_db_db41" 1>&6
17970 if test $ol_cv_db_db41 = yes ; then
17971 ol_cv_lib_db=-ldb41
17975 if test $ol_cv_lib_db = no ; then
17976 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17977 echo "configure:17982: checking for Berkeley DB link (-ldb-41)" >&5
17978 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17979 echo $ac_n "(cached) $ac_c" 1>&6
17984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17986 cat > conftest.$ac_ext <<EOF
17987 #line 17992 "configure"
17988 #include "confdefs.h"
17990 #ifdef HAVE_DB_185_H
17991 # include <db_185.h>
17996 #ifndef DB_VERSION_MAJOR
17997 # define DB_VERSION_MAJOR 1
18001 #define NULL ((void*)0)
18006 #if DB_VERSION_MAJOR > 1
18009 int major, minor, patch;
18011 version = db_version( &major, &minor, &patch );
18013 if( major != DB_VERSION_MAJOR ||
18014 minor < DB_VERSION_MINOR )
18016 printf("Berkeley DB version mismatch\n"
18017 "\texpected: %s\n\tgot: %s\n",
18018 DB_VERSION_STRING, version);
18024 #if DB_VERSION_MAJOR > 2
18025 db_env_create( NULL, 0 );
18026 #elif DB_VERSION_MAJOR > 1
18027 db_appexit( NULL );
18029 (void) dbopen( NULL, 0, 0, 0, NULL);
18034 if { (eval echo configure:18039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18038 echo "configure: failed program was:" >&5
18039 cat conftest.$ac_ext >&5
18049 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18051 if test $ol_cv_db_db_41 = yes ; then
18052 ol_cv_lib_db=-ldb-41
18056 if test $ol_cv_lib_db = no ; then
18057 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18058 echo "configure:18063: checking for Berkeley DB link (-ldb-4.1)" >&5
18059 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18060 echo $ac_n "(cached) $ac_c" 1>&6
18065 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18067 cat > conftest.$ac_ext <<EOF
18068 #line 18073 "configure"
18069 #include "confdefs.h"
18071 #ifdef HAVE_DB_185_H
18072 # include <db_185.h>
18077 #ifndef DB_VERSION_MAJOR
18078 # define DB_VERSION_MAJOR 1
18082 #define NULL ((void*)0)
18087 #if DB_VERSION_MAJOR > 1
18090 int major, minor, patch;
18092 version = db_version( &major, &minor, &patch );
18094 if( major != DB_VERSION_MAJOR ||
18095 minor < DB_VERSION_MINOR )
18097 printf("Berkeley DB version mismatch\n"
18098 "\texpected: %s\n\tgot: %s\n",
18099 DB_VERSION_STRING, version);
18105 #if DB_VERSION_MAJOR > 2
18106 db_env_create( NULL, 0 );
18107 #elif DB_VERSION_MAJOR > 1
18108 db_appexit( NULL );
18110 (void) dbopen( NULL, 0, 0, 0, NULL);
18115 if { (eval echo configure:18120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18117 ol_cv_db_db_4_dot_1=yes
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18122 ol_cv_db_db_4_dot_1=no
18130 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18132 if test $ol_cv_db_db_4_dot_1 = yes ; then
18133 ol_cv_lib_db=-ldb-4.1
18137 if test $ol_cv_lib_db = no ; then
18138 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18139 echo "configure:18144: checking for Berkeley DB link (-ldb-4-1)" >&5
18140 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18141 echo $ac_n "(cached) $ac_c" 1>&6
18146 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18148 cat > conftest.$ac_ext <<EOF
18149 #line 18154 "configure"
18150 #include "confdefs.h"
18152 #ifdef HAVE_DB_185_H
18153 # include <db_185.h>
18158 #ifndef DB_VERSION_MAJOR
18159 # define DB_VERSION_MAJOR 1
18163 #define NULL ((void*)0)
18168 #if DB_VERSION_MAJOR > 1
18171 int major, minor, patch;
18173 version = db_version( &major, &minor, &patch );
18175 if( major != DB_VERSION_MAJOR ||
18176 minor < DB_VERSION_MINOR )
18178 printf("Berkeley DB version mismatch\n"
18179 "\texpected: %s\n\tgot: %s\n",
18180 DB_VERSION_STRING, version);
18186 #if DB_VERSION_MAJOR > 2
18187 db_env_create( NULL, 0 );
18188 #elif DB_VERSION_MAJOR > 1
18189 db_appexit( NULL );
18191 (void) dbopen( NULL, 0, 0, 0, NULL);
18196 if { (eval echo configure:18201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18198 ol_cv_db_db_4_1=yes
18200 echo "configure: failed program was:" >&5
18201 cat conftest.$ac_ext >&5
18211 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18213 if test $ol_cv_db_db_4_1 = yes ; then
18214 ol_cv_lib_db=-ldb-4-1
18218 if test $ol_cv_lib_db = no ; then
18219 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18220 echo "configure:18225: checking for Berkeley DB link (-ldb-4)" >&5
18221 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18222 echo $ac_n "(cached) $ac_c" 1>&6
18227 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18229 cat > conftest.$ac_ext <<EOF
18230 #line 18235 "configure"
18231 #include "confdefs.h"
18233 #ifdef HAVE_DB_185_H
18234 # include <db_185.h>
18239 #ifndef DB_VERSION_MAJOR
18240 # define DB_VERSION_MAJOR 1
18244 #define NULL ((void*)0)
18249 #if DB_VERSION_MAJOR > 1
18252 int major, minor, patch;
18254 version = db_version( &major, &minor, &patch );
18256 if( major != DB_VERSION_MAJOR ||
18257 minor < DB_VERSION_MINOR )
18259 printf("Berkeley DB version mismatch\n"
18260 "\texpected: %s\n\tgot: %s\n",
18261 DB_VERSION_STRING, version);
18267 #if DB_VERSION_MAJOR > 2
18268 db_env_create( NULL, 0 );
18269 #elif DB_VERSION_MAJOR > 1
18270 db_appexit( NULL );
18272 (void) dbopen( NULL, 0, 0, 0, NULL);
18277 if { (eval echo configure:18282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18281 echo "configure: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18292 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18294 if test $ol_cv_db_db_4 = yes ; then
18295 ol_cv_lib_db=-ldb-4
18299 if test $ol_cv_lib_db = no ; then
18300 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18301 echo "configure:18306: checking for Berkeley DB link (-ldb4)" >&5
18302 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18308 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18310 cat > conftest.$ac_ext <<EOF
18311 #line 18316 "configure"
18312 #include "confdefs.h"
18314 #ifdef HAVE_DB_185_H
18315 # include <db_185.h>
18320 #ifndef DB_VERSION_MAJOR
18321 # define DB_VERSION_MAJOR 1
18325 #define NULL ((void*)0)
18330 #if DB_VERSION_MAJOR > 1
18333 int major, minor, patch;
18335 version = db_version( &major, &minor, &patch );
18337 if( major != DB_VERSION_MAJOR ||
18338 minor < DB_VERSION_MINOR )
18340 printf("Berkeley DB version mismatch\n"
18341 "\texpected: %s\n\tgot: %s\n",
18342 DB_VERSION_STRING, version);
18348 #if DB_VERSION_MAJOR > 2
18349 db_env_create( NULL, 0 );
18350 #elif DB_VERSION_MAJOR > 1
18351 db_appexit( NULL );
18353 (void) dbopen( NULL, 0, 0, 0, NULL);
18358 if { (eval echo configure:18363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18373 echo "$ac_t""$ol_cv_db_db4" 1>&6
18375 if test $ol_cv_db_db4 = yes ; then
18380 if test $ol_cv_lib_db = no ; then
18381 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18382 echo "configure:18387: checking for Berkeley DB link (-ldb)" >&5
18383 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18384 echo $ac_n "(cached) $ac_c" 1>&6
18389 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18391 cat > conftest.$ac_ext <<EOF
18392 #line 18397 "configure"
18393 #include "confdefs.h"
18395 #ifdef HAVE_DB_185_H
18396 # include <db_185.h>
18401 #ifndef DB_VERSION_MAJOR
18402 # define DB_VERSION_MAJOR 1
18406 #define NULL ((void*)0)
18411 #if DB_VERSION_MAJOR > 1
18414 int major, minor, patch;
18416 version = db_version( &major, &minor, &patch );
18418 if( major != DB_VERSION_MAJOR ||
18419 minor < DB_VERSION_MINOR )
18421 printf("Berkeley DB version mismatch\n"
18422 "\texpected: %s\n\tgot: %s\n",
18423 DB_VERSION_STRING, version);
18429 #if DB_VERSION_MAJOR > 2
18430 db_env_create( NULL, 0 );
18431 #elif DB_VERSION_MAJOR > 1
18432 db_appexit( NULL );
18434 (void) dbopen( NULL, 0, 0, 0, NULL);
18439 if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18443 echo "configure: failed program was:" >&5
18444 cat conftest.$ac_ext >&5
18454 echo "$ac_t""$ol_cv_db_db" 1>&6
18456 if test $ol_cv_db_db = yes ; then
18461 if test $ol_cv_lib_db = no ; then
18462 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18463 echo "configure:18468: checking for Berkeley DB link (-ldb3)" >&5
18464 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18465 echo $ac_n "(cached) $ac_c" 1>&6
18470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18472 cat > conftest.$ac_ext <<EOF
18473 #line 18478 "configure"
18474 #include "confdefs.h"
18476 #ifdef HAVE_DB_185_H
18477 # include <db_185.h>
18482 #ifndef DB_VERSION_MAJOR
18483 # define DB_VERSION_MAJOR 1
18487 #define NULL ((void*)0)
18492 #if DB_VERSION_MAJOR > 1
18495 int major, minor, patch;
18497 version = db_version( &major, &minor, &patch );
18499 if( major != DB_VERSION_MAJOR ||
18500 minor < DB_VERSION_MINOR )
18502 printf("Berkeley DB version mismatch\n"
18503 "\texpected: %s\n\tgot: %s\n",
18504 DB_VERSION_STRING, version);
18510 #if DB_VERSION_MAJOR > 2
18511 db_env_create( NULL, 0 );
18512 #elif DB_VERSION_MAJOR > 1
18513 db_appexit( NULL );
18515 (void) dbopen( NULL, 0, 0, 0, NULL);
18520 if { (eval echo configure:18525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18524 echo "configure: failed program was:" >&5
18525 cat conftest.$ac_ext >&5
18535 echo "$ac_t""$ol_cv_db_db3" 1>&6
18537 if test $ol_cv_db_db3 = yes ; then
18542 if test $ol_cv_lib_db = no ; then
18543 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18544 echo "configure:18549: checking for Berkeley DB link (-ldb-3)" >&5
18545 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18546 echo $ac_n "(cached) $ac_c" 1>&6
18551 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18553 cat > conftest.$ac_ext <<EOF
18554 #line 18559 "configure"
18555 #include "confdefs.h"
18557 #ifdef HAVE_DB_185_H
18558 # include <db_185.h>
18563 #ifndef DB_VERSION_MAJOR
18564 # define DB_VERSION_MAJOR 1
18568 #define NULL ((void*)0)
18573 #if DB_VERSION_MAJOR > 1
18576 int major, minor, patch;
18578 version = db_version( &major, &minor, &patch );
18580 if( major != DB_VERSION_MAJOR ||
18581 minor < DB_VERSION_MINOR )
18583 printf("Berkeley DB version mismatch\n"
18584 "\texpected: %s\n\tgot: %s\n",
18585 DB_VERSION_STRING, version);
18591 #if DB_VERSION_MAJOR > 2
18592 db_env_create( NULL, 0 );
18593 #elif DB_VERSION_MAJOR > 1
18594 db_appexit( NULL );
18596 (void) dbopen( NULL, 0, 0, 0, NULL);
18601 if { (eval echo configure:18606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18605 echo "configure: failed program was:" >&5
18606 cat conftest.$ac_ext >&5
18616 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18618 if test $ol_cv_db_db_3 = yes ; then
18619 ol_cv_lib_db=-ldb-3
18623 if test $ol_cv_lib_db = no ; then
18624 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18625 echo "configure:18630: checking for Berkeley DB link (-ldb2)" >&5
18626 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18627 echo $ac_n "(cached) $ac_c" 1>&6
18632 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18634 cat > conftest.$ac_ext <<EOF
18635 #line 18640 "configure"
18636 #include "confdefs.h"
18638 #ifdef HAVE_DB_185_H
18639 # include <db_185.h>
18644 #ifndef DB_VERSION_MAJOR
18645 # define DB_VERSION_MAJOR 1
18649 #define NULL ((void*)0)
18654 #if DB_VERSION_MAJOR > 1
18657 int major, minor, patch;
18659 version = db_version( &major, &minor, &patch );
18661 if( major != DB_VERSION_MAJOR ||
18662 minor < DB_VERSION_MINOR )
18664 printf("Berkeley DB version mismatch\n"
18665 "\texpected: %s\n\tgot: %s\n",
18666 DB_VERSION_STRING, version);
18672 #if DB_VERSION_MAJOR > 2
18673 db_env_create( NULL, 0 );
18674 #elif DB_VERSION_MAJOR > 1
18675 db_appexit( NULL );
18677 (void) dbopen( NULL, 0, 0, 0, NULL);
18682 if { (eval echo configure:18687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18686 echo "configure: failed program was:" >&5
18687 cat conftest.$ac_ext >&5
18697 echo "$ac_t""$ol_cv_db_db2" 1>&6
18699 if test $ol_cv_db_db2 = yes ; then
18704 if test $ol_cv_lib_db = no ; then
18705 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18706 echo "configure:18711: checking for Berkeley DB link (-ldb-2)" >&5
18707 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18708 echo $ac_n "(cached) $ac_c" 1>&6
18713 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18715 cat > conftest.$ac_ext <<EOF
18716 #line 18721 "configure"
18717 #include "confdefs.h"
18719 #ifdef HAVE_DB_185_H
18720 # include <db_185.h>
18725 #ifndef DB_VERSION_MAJOR
18726 # define DB_VERSION_MAJOR 1
18730 #define NULL ((void*)0)
18735 #if DB_VERSION_MAJOR > 1
18738 int major, minor, patch;
18740 version = db_version( &major, &minor, &patch );
18742 if( major != DB_VERSION_MAJOR ||
18743 minor < DB_VERSION_MINOR )
18745 printf("Berkeley DB version mismatch\n"
18746 "\texpected: %s\n\tgot: %s\n",
18747 DB_VERSION_STRING, version);
18753 #if DB_VERSION_MAJOR > 2
18754 db_env_create( NULL, 0 );
18755 #elif DB_VERSION_MAJOR > 1
18756 db_appexit( NULL );
18758 (void) dbopen( NULL, 0, 0, 0, NULL);
18763 if { (eval echo configure:18768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18767 echo "configure: failed program was:" >&5
18768 cat conftest.$ac_ext >&5
18778 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18780 if test $ol_cv_db_db_2 = yes ; then
18781 ol_cv_lib_db=-ldb-2
18785 if test $ol_cv_lib_db = no ; then
18786 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18787 echo "configure:18792: checking for Berkeley DB link (-ldb1)" >&5
18788 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18789 echo $ac_n "(cached) $ac_c" 1>&6
18794 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18796 cat > conftest.$ac_ext <<EOF
18797 #line 18802 "configure"
18798 #include "confdefs.h"
18800 #ifdef HAVE_DB_185_H
18801 # include <db_185.h>
18806 #ifndef DB_VERSION_MAJOR
18807 # define DB_VERSION_MAJOR 1
18811 #define NULL ((void*)0)
18816 #if DB_VERSION_MAJOR > 1
18819 int major, minor, patch;
18821 version = db_version( &major, &minor, &patch );
18823 if( major != DB_VERSION_MAJOR ||
18824 minor < DB_VERSION_MINOR )
18826 printf("Berkeley DB version mismatch\n"
18827 "\texpected: %s\n\tgot: %s\n",
18828 DB_VERSION_STRING, version);
18834 #if DB_VERSION_MAJOR > 2
18835 db_env_create( NULL, 0 );
18836 #elif DB_VERSION_MAJOR > 1
18837 db_appexit( NULL );
18839 (void) dbopen( NULL, 0, 0, 0, NULL);
18844 if { (eval echo configure:18849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18848 echo "configure: failed program was:" >&5
18849 cat conftest.$ac_ext >&5
18859 echo "$ac_t""$ol_cv_db_db1" 1>&6
18861 if test $ol_cv_db_db1 = yes ; then
18866 if test $ol_cv_lib_db = no ; then
18867 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18868 echo "configure:18873: checking for Berkeley DB link (-ldb-1)" >&5
18869 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18870 echo $ac_n "(cached) $ac_c" 1>&6
18875 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18877 cat > conftest.$ac_ext <<EOF
18878 #line 18883 "configure"
18879 #include "confdefs.h"
18881 #ifdef HAVE_DB_185_H
18882 # include <db_185.h>
18887 #ifndef DB_VERSION_MAJOR
18888 # define DB_VERSION_MAJOR 1
18892 #define NULL ((void*)0)
18897 #if DB_VERSION_MAJOR > 1
18900 int major, minor, patch;
18902 version = db_version( &major, &minor, &patch );
18904 if( major != DB_VERSION_MAJOR ||
18905 minor < DB_VERSION_MINOR )
18907 printf("Berkeley DB version mismatch\n"
18908 "\texpected: %s\n\tgot: %s\n",
18909 DB_VERSION_STRING, version);
18915 #if DB_VERSION_MAJOR > 2
18916 db_env_create( NULL, 0 );
18917 #elif DB_VERSION_MAJOR > 1
18918 db_appexit( NULL );
18920 (void) dbopen( NULL, 0, 0, 0, NULL);
18925 if { (eval echo configure:18930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18929 echo "configure: failed program was:" >&5
18930 cat conftest.$ac_ext >&5
18940 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18942 if test $ol_cv_db_db_1 = yes ; then
18943 ol_cv_lib_db=-ldb-1
18948 if test "$ol_cv_lib_db" != no ; then
18949 ol_cv_berkeley_db=yes
18950 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18951 echo "configure:18956: checking for Berkeley DB thread support" >&5
18952 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18953 echo $ac_n "(cached) $ac_c" 1>&6
18957 LIBS="$LTHREAD_LIBS $LIBS"
18958 if test $ol_cv_lib_db != yes ; then
18959 LIBS="$ol_cv_lib_db $LIBS"
18962 if test "$cross_compiling" = yes; then
18963 ol_cv_berkeley_db_thread=cross
18965 cat > conftest.$ac_ext <<EOF
18966 #line 18971 "configure"
18967 #include "confdefs.h"
18969 #ifdef HAVE_DB_185_H
18975 #define NULL ((void *)0)
18980 u_int32_t flags = DB_CREATE |
18986 #if DB_VERSION_MAJOR > 2
18987 DB_ENV *env = NULL;
18989 rc = db_env_create( &env, 0 );
18991 flags |= DB_INIT_MPOOL;
18992 #ifdef DB_MPOOL_PRIVATE
18993 flags |= DB_MPOOL_PRIVATE;
18997 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19001 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19002 rc = env->open( env, NULL, flags, 0 );
19004 rc = env->open( env, NULL, NULL, flags, 0 );
19008 rc = env->close( env, 0 );
19012 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19018 memset( &env, '\0', sizeof(env) );
19020 rc = db_appinit( NULL, NULL, &env, flags );
19023 db_appexit( &env );
19026 unlink("__db_mpool.share");
19027 unlink("__db_lock.share");
19033 if { (eval echo configure:19038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19035 ol_cv_berkeley_db_thread=yes
19037 echo "configure: failed program was:" >&5
19038 cat conftest.$ac_ext >&5
19040 ol_cv_berkeley_db_thread=no
19050 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19052 if test $ol_cv_berkeley_db_thread != no ; then
19053 cat >> confdefs.h <<\EOF
19054 #define HAVE_BERKELEY_DB_THREAD 1
19064 if test $ol_cv_berkeley_db != no ; then
19065 cat >> confdefs.h <<\EOF
19066 #define HAVE_BERKELEY_DB 1
19070 ol_link_ldbm=berkeley
19071 ol_with_ldbm_api=berkeley
19073 if test $ol_with_ldbm_type = hash ; then
19074 cat >> confdefs.h <<\EOF
19075 #define LDBM_USE_DBHASH 1
19079 cat >> confdefs.h <<\EOF
19080 #define LDBM_USE_DBBTREE 1
19085 if test $ol_cv_lib_db != yes ; then
19086 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19091 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19092 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19093 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19094 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19095 echo "configure:19100: checking Berkeley DB version for BDB backend" >&5
19096 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19097 echo $ac_n "(cached) $ac_c" 1>&6
19100 cat > conftest.$ac_ext <<EOF
19101 #line 19106 "configure"
19102 #include "confdefs.h"
19106 /* this check could be improved */
19107 #ifndef DB_VERSION_MAJOR
19108 # define DB_VERSION_MAJOR 1
19110 #ifndef DB_VERSION_MINOR
19111 # define DB_VERSION_MINOR 0
19114 /* require 4.1 or later */
19115 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
19116 __db_version_compat
19120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19121 egrep "__db_version_compat" >/dev/null 2>&1; then
19123 ol_cv_bdb_compat=yes
19126 ol_cv_bdb_compat=no
19132 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19135 if test $ol_cv_bdb_compat = yes ; then
19137 elif test $ol_enable_bdb = yes ; then
19138 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19144 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19145 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19146 ol_with_ldbm_api=none
19149 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19150 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19151 echo "configure:19156: checking for MDBM library" >&5
19152 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19153 echo $ac_n "(cached) $ac_c" 1>&6
19156 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19157 echo "configure:19162: checking for mdbm_set_chain" >&5
19158 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19161 cat > conftest.$ac_ext <<EOF
19162 #line 19167 "configure"
19163 #include "confdefs.h"
19164 /* System header to define __stub macros and hopefully few prototypes,
19165 which can conflict with char mdbm_set_chain(); below. */
19166 #include <assert.h>
19167 /* Override any gcc2 internal prototype to avoid an error. */
19168 /* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19170 char mdbm_set_chain();
19175 /* The GNU C library defines this for functions which it implements
19176 to always fail with ENOSYS. Some functions are actually named
19177 something starting with __ and the normal name is an alias. */
19178 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19181 f = mdbm_set_chain;
19186 if { (eval echo configure:19191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19188 eval "ac_cv_func_mdbm_set_chain=yes"
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19193 eval "ac_cv_func_mdbm_set_chain=no"
19198 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19199 echo "$ac_t""yes" 1>&6
19202 echo "$ac_t""no" 1>&6
19204 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19205 echo "configure:19210: checking for mdbm_set_chain in -lmdbm" >&5
19206 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19208 echo $ac_n "(cached) $ac_c" 1>&6
19210 ac_save_LIBS="$LIBS"
19211 LIBS="-lmdbm $LIBS"
19212 cat > conftest.$ac_ext <<EOF
19213 #line 19218 "configure"
19214 #include "confdefs.h"
19215 /* Override any gcc2 internal prototype to avoid an error. */
19216 /* We use char because int might match the return type of a gcc2
19217 builtin and then its argument prototype would still apply. */
19218 char mdbm_set_chain();
19224 if { (eval echo configure:19229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19226 eval "ac_cv_lib_$ac_lib_var=yes"
19228 echo "configure: failed program was:" >&5
19229 cat conftest.$ac_ext >&5
19231 eval "ac_cv_lib_$ac_lib_var=no"
19234 LIBS="$ac_save_LIBS"
19237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19238 echo "$ac_t""yes" 1>&6
19239 ol_cv_lib_mdbm=-lmdbm
19241 echo "$ac_t""no" 1>&6
19252 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19255 for ac_hdr in mdbm.h
19257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19259 echo "configure:19264: checking for $ac_hdr" >&5
19260 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19261 echo $ac_n "(cached) $ac_c" 1>&6
19263 cat > conftest.$ac_ext <<EOF
19264 #line 19269 "configure"
19265 #include "confdefs.h"
19268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19269 { (eval echo configure:19274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19271 if test -z "$ac_err"; then
19273 eval "ac_cv_header_$ac_safe=yes"
19276 echo "configure: failed program was:" >&5
19277 cat conftest.$ac_ext >&5
19279 eval "ac_cv_header_$ac_safe=no"
19283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19284 echo "$ac_t""yes" 1>&6
19285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19286 cat >> confdefs.h <<EOF
19287 #define $ac_tr_hdr 1
19291 echo "$ac_t""no" 1>&6
19295 echo $ac_n "checking for db""... $ac_c" 1>&6
19296 echo "configure:19301: checking for db" >&5
19297 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19298 echo $ac_n "(cached) $ac_c" 1>&6
19301 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19309 echo "$ac_t""$ol_cv_mdbm" 1>&6
19310 if test $ol_cv_mdbm = yes ; then
19311 cat >> confdefs.h <<\EOF
19312 #define HAVE_MDBM 1
19318 if test $ol_cv_mdbm = yes ; then
19320 ol_with_ldbm_api=mdbm
19321 if test $ol_cv_lib_mdbm != yes ; then
19322 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19327 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19328 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19329 echo "configure:19334: checking for GDBM library" >&5
19330 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19331 echo $ac_n "(cached) $ac_c" 1>&6
19334 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19335 echo "configure:19340: checking for gdbm_open" >&5
19336 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19337 echo $ac_n "(cached) $ac_c" 1>&6
19339 cat > conftest.$ac_ext <<EOF
19340 #line 19345 "configure"
19341 #include "confdefs.h"
19342 /* System header to define __stub macros and hopefully few prototypes,
19343 which can conflict with char gdbm_open(); below. */
19344 #include <assert.h>
19345 /* Override any gcc2 internal prototype to avoid an error. */
19346 /* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19364 if { (eval echo configure:19369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19366 eval "ac_cv_func_gdbm_open=yes"
19368 echo "configure: failed program was:" >&5
19369 cat conftest.$ac_ext >&5
19371 eval "ac_cv_func_gdbm_open=no"
19376 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19377 echo "$ac_t""yes" 1>&6
19380 echo "$ac_t""no" 1>&6
19382 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19383 echo "configure:19388: checking for gdbm_open in -lgdbm" >&5
19384 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19385 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19386 echo $ac_n "(cached) $ac_c" 1>&6
19388 ac_save_LIBS="$LIBS"
19389 LIBS="-lgdbm $LIBS"
19390 cat > conftest.$ac_ext <<EOF
19391 #line 19396 "configure"
19392 #include "confdefs.h"
19393 /* Override any gcc2 internal prototype to avoid an error. */
19394 /* We use char because int might match the return type of a gcc2
19395 builtin and then its argument prototype would still apply. */
19402 if { (eval echo configure:19407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19404 eval "ac_cv_lib_$ac_lib_var=yes"
19406 echo "configure: failed program was:" >&5
19407 cat conftest.$ac_ext >&5
19409 eval "ac_cv_lib_$ac_lib_var=no"
19412 LIBS="$ac_save_LIBS"
19415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19416 echo "$ac_t""yes" 1>&6
19417 ol_cv_lib_gdbm=-lgdbm
19419 echo "$ac_t""no" 1>&6
19430 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19433 for ac_hdr in gdbm.h
19435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19437 echo "configure:19442: checking for $ac_hdr" >&5
19438 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19439 echo $ac_n "(cached) $ac_c" 1>&6
19441 cat > conftest.$ac_ext <<EOF
19442 #line 19447 "configure"
19443 #include "confdefs.h"
19446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19447 { (eval echo configure:19452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19449 if test -z "$ac_err"; then
19451 eval "ac_cv_header_$ac_safe=yes"
19454 echo "configure: failed program was:" >&5
19455 cat conftest.$ac_ext >&5
19457 eval "ac_cv_header_$ac_safe=no"
19461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19462 echo "$ac_t""yes" 1>&6
19463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19464 cat >> confdefs.h <<EOF
19465 #define $ac_tr_hdr 1
19469 echo "$ac_t""no" 1>&6
19473 echo $ac_n "checking for db""... $ac_c" 1>&6
19474 echo "configure:19479: checking for db" >&5
19475 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19476 echo $ac_n "(cached) $ac_c" 1>&6
19479 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19487 echo "$ac_t""$ol_cv_gdbm" 1>&6
19488 if test $ol_cv_gdbm = yes ; then
19489 cat >> confdefs.h <<\EOF
19490 #define HAVE_GDBM 1
19496 if test $ol_cv_gdbm = yes ; then
19498 ol_with_ldbm_api=gdbm
19500 if test $ol_cv_lib_gdbm != yes ; then
19501 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19506 if test $ol_with_ldbm_api = ndbm ; then
19507 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19508 echo "configure:19513: checking for NDBM library" >&5
19509 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19510 echo $ac_n "(cached) $ac_c" 1>&6
19513 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19514 echo "configure:19519: checking for dbm_open" >&5
19515 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19516 echo $ac_n "(cached) $ac_c" 1>&6
19518 cat > conftest.$ac_ext <<EOF
19519 #line 19524 "configure"
19520 #include "confdefs.h"
19521 /* System header to define __stub macros and hopefully few prototypes,
19522 which can conflict with char dbm_open(); below. */
19523 #include <assert.h>
19524 /* Override any gcc2 internal prototype to avoid an error. */
19525 /* We use char because int might match the return type of a gcc2
19526 builtin and then its argument prototype would still apply. */
19532 /* The GNU C library defines this for functions which it implements
19533 to always fail with ENOSYS. Some functions are actually named
19534 something starting with __ and the normal name is an alias. */
19535 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19543 if { (eval echo configure:19548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19545 eval "ac_cv_func_dbm_open=yes"
19547 echo "configure: failed program was:" >&5
19548 cat conftest.$ac_ext >&5
19550 eval "ac_cv_func_dbm_open=no"
19555 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19556 echo "$ac_t""yes" 1>&6
19559 echo "$ac_t""no" 1>&6
19561 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19562 echo "configure:19567: checking for dbm_open in -lndbm" >&5
19563 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19564 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19565 echo $ac_n "(cached) $ac_c" 1>&6
19567 ac_save_LIBS="$LIBS"
19568 LIBS="-lndbm $LIBS"
19569 cat > conftest.$ac_ext <<EOF
19570 #line 19575 "configure"
19571 #include "confdefs.h"
19572 /* Override any gcc2 internal prototype to avoid an error. */
19573 /* We use char because int might match the return type of a gcc2
19574 builtin and then its argument prototype would still apply. */
19581 if { (eval echo configure:19586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19583 eval "ac_cv_lib_$ac_lib_var=yes"
19585 echo "configure: failed program was:" >&5
19586 cat conftest.$ac_ext >&5
19588 eval "ac_cv_lib_$ac_lib_var=no"
19591 LIBS="$ac_save_LIBS"
19594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19595 echo "$ac_t""yes" 1>&6
19596 ol_cv_lib_ndbm=-lndbm
19598 echo "$ac_t""no" 1>&6
19600 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19601 echo "configure:19606: checking for dbm_open in -ldbm" >&5
19602 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19603 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19604 echo $ac_n "(cached) $ac_c" 1>&6
19606 ac_save_LIBS="$LIBS"
19608 cat > conftest.$ac_ext <<EOF
19609 #line 19614 "configure"
19610 #include "confdefs.h"
19611 /* Override any gcc2 internal prototype to avoid an error. */
19612 /* We use char because int might match the return type of a gcc2
19613 builtin and then its argument prototype would still apply. */
19620 if { (eval echo configure:19625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19622 eval "ac_cv_lib_$ac_lib_var=yes"
19624 echo "configure: failed program was:" >&5
19625 cat conftest.$ac_ext >&5
19627 eval "ac_cv_lib_$ac_lib_var=no"
19630 LIBS="$ac_save_LIBS"
19633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19634 echo "$ac_t""yes" 1>&6
19635 ol_cv_lib_ndbm=-ldbm
19637 echo "$ac_t""no" 1>&6
19650 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19653 for ac_hdr in ndbm.h
19655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19657 echo "configure:19662: checking for $ac_hdr" >&5
19658 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19659 echo $ac_n "(cached) $ac_c" 1>&6
19661 cat > conftest.$ac_ext <<EOF
19662 #line 19667 "configure"
19663 #include "confdefs.h"
19666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19667 { (eval echo configure:19672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19669 if test -z "$ac_err"; then
19671 eval "ac_cv_header_$ac_safe=yes"
19674 echo "configure: failed program was:" >&5
19675 cat conftest.$ac_ext >&5
19677 eval "ac_cv_header_$ac_safe=no"
19681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19682 echo "$ac_t""yes" 1>&6
19683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19684 cat >> confdefs.h <<EOF
19685 #define $ac_tr_hdr 1
19689 echo "$ac_t""no" 1>&6
19693 echo $ac_n "checking for db""... $ac_c" 1>&6
19694 echo "configure:19699: checking for db" >&5
19695 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19696 echo $ac_n "(cached) $ac_c" 1>&6
19699 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19707 echo "$ac_t""$ol_cv_ndbm" 1>&6
19708 if test $ol_cv_ndbm = yes ; then
19709 cat >> confdefs.h <<\EOF
19710 #define HAVE_NDBM 1
19716 if test $ol_cv_ndbm = yes ; then
19718 ol_with_ldbm_api=ndbm
19720 if test $ol_cv_lib_ndbm != yes ; then
19721 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19726 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19727 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19728 if test $ol_enable_ldbm = yes ; then
19729 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19732 echo "configure: warning: disabling LDBM" 1>&2
19737 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19738 BUILD_LIBS_DYNAMIC=shared
19739 cat >> confdefs.h <<\EOF
19740 #define LDAP_LIBS_DYNAMIC 1
19745 BUILD_LIBS_DYNAMIC=static
19749 if test $ol_enable_wrappers != no ; then
19750 for ac_hdr in tcpd.h
19752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19754 echo "configure:19759: checking for $ac_hdr" >&5
19755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19756 echo $ac_n "(cached) $ac_c" 1>&6
19758 cat > conftest.$ac_ext <<EOF
19759 #line 19764 "configure"
19760 #include "confdefs.h"
19763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19764 { (eval echo configure:19769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19766 if test -z "$ac_err"; then
19768 eval "ac_cv_header_$ac_safe=yes"
19771 echo "configure: failed program was:" >&5
19772 cat conftest.$ac_ext >&5
19774 eval "ac_cv_header_$ac_safe=no"
19778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19779 echo "$ac_t""yes" 1>&6
19780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19781 cat >> confdefs.h <<EOF
19782 #define $ac_tr_hdr 1
19785 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19786 echo "configure:19791: checking for TCP wrappers library" >&5
19788 LIBS="$LIBS -lwrap"
19789 cat > conftest.$ac_ext <<EOF
19790 #line 19795 "configure"
19791 #include "confdefs.h"
19794 int allow_severity = 0;
19795 int deny_severity = 0;
19797 struct request_info *req;
19805 if { (eval echo configure:19810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19807 echo "$ac_t""-lwrap" 1>&6
19811 echo "configure: failed program was:" >&5
19812 cat conftest.$ac_ext >&5
19816 cat > conftest.$ac_ext <<EOF
19817 #line 19822 "configure"
19818 #include "confdefs.h"
19821 int allow_severity = 0;
19822 int deny_severity = 0;
19824 struct request_info *req;
19832 if { (eval echo configure:19837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19834 echo "$ac_t""-lwrap -lnsl" 1>&6
19836 LIBS="$save_LIBS -lnsl"
19838 echo "configure: failed program was:" >&5
19839 cat conftest.$ac_ext >&5
19842 echo "$ac_t""no" 1>&6
19850 echo "$ac_t""no" 1>&6
19856 if test $have_wrappers = yes ; then
19857 cat >> confdefs.h <<\EOF
19858 #define HAVE_TCPD 1
19862 elif test $ol_enable_wrappers = yes ; then
19863 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19865 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19870 if test $ol_enable_syslog != no ; then
19871 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19872 echo "configure:19877: checking for openlog" >&5
19873 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19874 echo $ac_n "(cached) $ac_c" 1>&6
19876 cat > conftest.$ac_ext <<EOF
19877 #line 19882 "configure"
19878 #include "confdefs.h"
19879 /* System header to define __stub macros and hopefully few prototypes,
19880 which can conflict with char openlog(); below. */
19881 #include <assert.h>
19882 /* Override any gcc2 internal prototype to avoid an error. */
19883 /* We use char because int might match the return type of a gcc2
19884 builtin and then its argument prototype would still apply. */
19890 /* The GNU C library defines this for functions which it implements
19891 to always fail with ENOSYS. Some functions are actually named
19892 something starting with __ and the normal name is an alias. */
19893 #if defined (__stub_openlog) || defined (__stub___openlog)
19901 if { (eval echo configure:19906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19903 eval "ac_cv_func_openlog=yes"
19905 echo "configure: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19908 eval "ac_cv_func_openlog=no"
19913 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19914 echo "$ac_t""yes" 1>&6
19917 echo "$ac_t""no" 1>&6
19920 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19921 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19923 ol_enable_syslog=$ac_cv_func_openlog
19928 if test $ol_enable_sql != no ; then
19929 for ac_hdr in sql.h sqlext.h
19931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19933 echo "configure:19938: checking for $ac_hdr" >&5
19934 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19935 echo $ac_n "(cached) $ac_c" 1>&6
19937 cat > conftest.$ac_ext <<EOF
19938 #line 19943 "configure"
19939 #include "confdefs.h"
19942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19943 { (eval echo configure:19948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19945 if test -z "$ac_err"; then
19947 eval "ac_cv_header_$ac_safe=yes"
19950 echo "configure: failed program was:" >&5
19951 cat conftest.$ac_ext >&5
19953 eval "ac_cv_header_$ac_safe=no"
19957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19958 echo "$ac_t""yes" 1>&6
19959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19960 cat >> confdefs.h <<EOF
19961 #define $ac_tr_hdr 1
19965 echo "$ac_t""no" 1>&6
19966 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19972 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19973 echo "configure:19978: checking for SQLDriverConnect in -liodbc" >&5
19974 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19975 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19976 echo $ac_n "(cached) $ac_c" 1>&6
19978 ac_save_LIBS="$LIBS"
19979 LIBS="-liodbc $LIBS"
19980 cat > conftest.$ac_ext <<EOF
19981 #line 19986 "configure"
19982 #include "confdefs.h"
19983 /* Override any gcc2 internal prototype to avoid an error. */
19984 /* We use char because int might match the return type of a gcc2
19985 builtin and then its argument prototype would still apply. */
19986 char SQLDriverConnect();
19992 if { (eval echo configure:19997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19994 eval "ac_cv_lib_$ac_lib_var=yes"
19996 echo "configure: failed program was:" >&5
19997 cat conftest.$ac_ext >&5
19999 eval "ac_cv_lib_$ac_lib_var=no"
20002 LIBS="$ac_save_LIBS"
20005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20006 echo "$ac_t""yes" 1>&6
20009 echo "$ac_t""no" 1>&6
20013 if test $have_iodbc = yes ; then
20014 ol_link_sql="-liodbc"
20016 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20017 echo "configure:20022: checking for SQLDriverConnect in -lodbc" >&5
20018 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20020 echo $ac_n "(cached) $ac_c" 1>&6
20022 ac_save_LIBS="$LIBS"
20023 LIBS="-lodbc $LIBS"
20024 cat > conftest.$ac_ext <<EOF
20025 #line 20030 "configure"
20026 #include "confdefs.h"
20027 /* Override any gcc2 internal prototype to avoid an error. */
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20030 char SQLDriverConnect();
20036 if { (eval echo configure:20041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20038 eval "ac_cv_lib_$ac_lib_var=yes"
20040 echo "configure: failed program was:" >&5
20041 cat conftest.$ac_ext >&5
20043 eval "ac_cv_lib_$ac_lib_var=no"
20046 LIBS="$ac_save_LIBS"
20049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20050 echo "$ac_t""yes" 1>&6
20053 echo "$ac_t""no" 1>&6
20057 if test $have_odbc = yes ; then
20058 ol_link_sql="-lodbc"
20062 if test $ol_link_sql != no ; then
20063 SLAPD_SQL_LIBS="$ol_link_sql"
20065 elif test $ol_enable_sql != auto ; then
20066 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20071 for ac_hdr in termcap.h ncurses.h
20073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20075 echo "configure:20080: checking for $ac_hdr" >&5
20076 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20077 echo $ac_n "(cached) $ac_c" 1>&6
20079 cat > conftest.$ac_ext <<EOF
20080 #line 20085 "configure"
20081 #include "confdefs.h"
20084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20085 { (eval echo configure:20090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20087 if test -z "$ac_err"; then
20089 eval "ac_cv_header_$ac_safe=yes"
20092 echo "configure: failed program was:" >&5
20093 cat conftest.$ac_ext >&5
20095 eval "ac_cv_header_$ac_safe=no"
20099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20100 echo "$ac_t""yes" 1>&6
20101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20102 cat >> confdefs.h <<EOF
20103 #define $ac_tr_hdr 1
20107 echo "$ac_t""no" 1>&6
20112 if test $ol_link_termcap = no ; then
20113 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
20114 echo "configure:20119: checking for tputs in -ltermcap" >&5
20115 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20116 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20119 ac_save_LIBS="$LIBS"
20120 LIBS="-ltermcap $LIBS"
20121 cat > conftest.$ac_ext <<EOF
20122 #line 20127 "configure"
20123 #include "confdefs.h"
20124 /* Override any gcc2 internal prototype to avoid an error. */
20125 /* We use char because int might match the return type of a gcc2
20126 builtin and then its argument prototype would still apply. */
20133 if { (eval echo configure:20138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20135 eval "ac_cv_lib_$ac_lib_var=yes"
20137 echo "configure: failed program was:" >&5
20138 cat conftest.$ac_ext >&5
20140 eval "ac_cv_lib_$ac_lib_var=no"
20143 LIBS="$ac_save_LIBS"
20146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20147 echo "$ac_t""yes" 1>&6
20150 echo "$ac_t""no" 1>&6
20154 if test $have_termcap = yes ; then
20155 cat >> confdefs.h <<\EOF
20156 #define HAVE_TERMCAP 1
20159 ol_link_termcap=yes
20160 TERMCAP_LIBS=-ltermcap
20164 if test $ol_link_termcap = no ; then
20165 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20166 echo "configure:20171: checking for initscr in -lncurses" >&5
20167 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20169 echo $ac_n "(cached) $ac_c" 1>&6
20171 ac_save_LIBS="$LIBS"
20172 LIBS="-lncurses $LIBS"
20173 cat > conftest.$ac_ext <<EOF
20174 #line 20179 "configure"
20175 #include "confdefs.h"
20176 /* Override any gcc2 internal prototype to avoid an error. */
20177 /* We use char because int might match the return type of a gcc2
20178 builtin and then its argument prototype would still apply. */
20185 if { (eval echo configure:20190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20187 eval "ac_cv_lib_$ac_lib_var=yes"
20189 echo "configure: failed program was:" >&5
20190 cat conftest.$ac_ext >&5
20192 eval "ac_cv_lib_$ac_lib_var=no"
20195 LIBS="$ac_save_LIBS"
20198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20199 echo "$ac_t""yes" 1>&6
20202 echo "$ac_t""no" 1>&6
20206 if test $have_ncurses = yes ; then
20207 cat >> confdefs.h <<\EOF
20208 #define HAVE_NCURSES 1
20211 ol_link_termcap=yes
20212 TERMCAP_LIBS=-lncurses
20216 if test $ol_link_termcap = no ; then
20217 cat >> confdefs.h <<\EOF
20218 #define NO_TERMCAP 1
20226 if test $ol_with_cyrus_sasl != no ; then
20227 for ac_hdr in sasl/sasl.h sasl.h
20229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20231 echo "configure:20236: checking for $ac_hdr" >&5
20232 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20233 echo $ac_n "(cached) $ac_c" 1>&6
20235 cat > conftest.$ac_ext <<EOF
20236 #line 20241 "configure"
20237 #include "confdefs.h"
20240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20241 { (eval echo configure:20246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20243 if test -z "$ac_err"; then
20245 eval "ac_cv_header_$ac_safe=yes"
20248 echo "configure: failed program was:" >&5
20249 cat conftest.$ac_ext >&5
20251 eval "ac_cv_header_$ac_safe=no"
20255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20256 echo "$ac_t""yes" 1>&6
20257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20258 cat >> confdefs.h <<EOF
20259 #define $ac_tr_hdr 1
20263 echo "$ac_t""no" 1>&6
20268 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20269 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20270 echo "configure:20275: checking for sasl_client_init in -lsasl2" >&5
20271 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20273 echo $ac_n "(cached) $ac_c" 1>&6
20275 ac_save_LIBS="$LIBS"
20276 LIBS="-lsasl2 $LIBS"
20277 cat > conftest.$ac_ext <<EOF
20278 #line 20283 "configure"
20279 #include "confdefs.h"
20280 /* Override any gcc2 internal prototype to avoid an error. */
20281 /* We use char because int might match the return type of a gcc2
20282 builtin and then its argument prototype would still apply. */
20283 char sasl_client_init();
20289 if { (eval echo configure:20294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20291 eval "ac_cv_lib_$ac_lib_var=yes"
20293 echo "configure: failed program was:" >&5
20294 cat conftest.$ac_ext >&5
20296 eval "ac_cv_lib_$ac_lib_var=no"
20299 LIBS="$ac_save_LIBS"
20302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20303 echo "$ac_t""yes" 1>&6
20304 ol_link_sasl="-lsasl2"
20306 echo "$ac_t""no" 1>&6
20307 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20308 echo "configure:20313: checking for sasl_client_init in -lsasl" >&5
20309 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20311 echo $ac_n "(cached) $ac_c" 1>&6
20313 ac_save_LIBS="$LIBS"
20314 LIBS="-lsasl $LIBS"
20315 cat > conftest.$ac_ext <<EOF
20316 #line 20321 "configure"
20317 #include "confdefs.h"
20318 /* Override any gcc2 internal prototype to avoid an error. */
20319 /* We use char because int might match the return type of a gcc2
20320 builtin and then its argument prototype would still apply. */
20321 char sasl_client_init();
20327 if { (eval echo configure:20332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20329 eval "ac_cv_lib_$ac_lib_var=yes"
20331 echo "configure: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20334 eval "ac_cv_lib_$ac_lib_var=no"
20337 LIBS="$ac_save_LIBS"
20340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20341 echo "$ac_t""yes" 1>&6
20342 ol_link_sasl="-lsasl"
20344 echo "$ac_t""no" 1>&6
20351 if test $ol_link_sasl = no ; then
20352 if test $ol_with_cyrus_sasl != auto ; then
20353 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20355 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20356 echo "configure: warning: SASL authentication not supported!" 1>&2
20357 if test $ol_link_tls = no ; then
20358 echo "configure: warning: Strong authentication not supported!" 1>&2
20362 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20363 echo "configure:20368: checking Cyrus SASL library version" >&5
20364 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20365 echo $ac_n "(cached) $ac_c" 1>&6
20368 cat > conftest.$ac_ext <<EOF
20369 #line 20374 "configure"
20370 #include "confdefs.h"
20372 #ifdef HAVE_SASL_SASL_H
20373 #include <sasl/sasl.h>
20378 /* require 2.1.3 or later */
20379 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20380 char *__sasl_compat = "1.5.x okay";
20381 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20382 __sasl_compat "2.2+ or better okay (we guess)";
20383 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20384 && SASL_VERSION_STEP >=3
20385 __sasl_compat = "2.1.3+ or better okay";
20389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20390 egrep "__sasl_compat" >/dev/null 2>&1; then
20392 ol_cv_sasl_compat=yes
20395 ol_cv_sasl_compat=no
20401 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20403 if test $ol_cv_sasl_compat = no ; then
20405 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20408 cat >> confdefs.h <<\EOF
20409 #define HAVE_CYRUS_SASL 1
20412 SASL_LIBS="$ol_link_sasl"
20413 if test $ol_enable_spasswd != no ; then
20414 ol_link_spasswd=yes
20417 ac_save_LIBS="$LIBS"
20418 LIBS="$LIBS $ol_link_sasl"
20419 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20420 echo "configure:20425: checking for sasl_version" >&5
20421 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20422 echo $ac_n "(cached) $ac_c" 1>&6
20424 cat > conftest.$ac_ext <<EOF
20425 #line 20430 "configure"
20426 #include "confdefs.h"
20427 /* System header to define __stub macros and hopefully few prototypes,
20428 which can conflict with char sasl_version(); below. */
20429 #include <assert.h>
20430 /* Override any gcc2 internal prototype to avoid an error. */
20431 /* We use char because int might match the return type of a gcc2
20432 builtin and then its argument prototype would still apply. */
20433 char sasl_version();
20438 /* The GNU C library defines this for functions which it implements
20439 to always fail with ENOSYS. Some functions are actually named
20440 something starting with __ and the normal name is an alias. */
20441 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20449 if { (eval echo configure:20454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20451 eval "ac_cv_func_sasl_version=yes"
20453 echo "configure: failed program was:" >&5
20454 cat conftest.$ac_ext >&5
20456 eval "ac_cv_func_sasl_version=no"
20461 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20462 echo "$ac_t""yes" 1>&6
20463 cat >> confdefs.h <<\EOF
20464 #define HAVE_SASL_VERSION 1
20468 echo "$ac_t""no" 1>&6
20471 LIBS="$ac_save_LIBS"
20475 echo "configure: warning: SASL authentication not supported!" 1>&2
20476 if test $ol_link_tls = no ; then
20477 echo "configure: warning: Strong authentication not supported!" 1>&2
20481 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20483 if test -r /dev/urandom ; then
20484 dev="/dev/urandom";
20485 elif test -r /idev/urandom ; then
20486 dev="/idev/urandom";
20487 elif test -r /dev/srandom ; then
20488 dev="/dev/srandom";
20489 elif test -r /dev/random ; then
20491 elif test -r /idev/random ; then
20492 dev="/idev/random";
20495 if test $dev != no ; then
20496 cat >> confdefs.h <<EOF
20497 #define URANDOM_DEVICE "$dev"
20504 if test $ol_with_fetch != no ; then
20506 LIBS="-lfetch -lcom_err $LIBS"
20507 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20508 echo "configure:20513: checking fetch(3) library" >&5
20509 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20510 echo $ac_n "(cached) $ac_c" 1>&6
20513 cat > conftest.$ac_ext <<EOF
20514 #line 20519 "configure"
20515 #include "confdefs.h"
20517 #include <sys/param.h>
20521 struct url *u = fetchParseURL("file:///");
20524 if { (eval echo configure:20529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20526 ol_cv_lib_fetch=yes
20528 echo "configure: failed program was:" >&5
20529 cat conftest.$ac_ext >&5
20536 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20538 if test $ol_cv_lib_fetch != no ; then
20539 ol_link_fetch="-lfetch -lcom_err"
20540 cat >> confdefs.h <<\EOF
20541 #define HAVE_FETCH 1
20547 if test $ol_cv_lib_fetch != no ; then
20548 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20549 ol_link_fetch=freebsd
20551 elif test $ol_with_fetch != auto ; then
20552 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20556 ol_link_readline=no
20557 if test $ol_with_readline != no ; then
20558 for ac_hdr in readline/readline.h readline/history.h
20560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20562 echo "configure:20567: checking for $ac_hdr" >&5
20563 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20564 echo $ac_n "(cached) $ac_c" 1>&6
20566 cat > conftest.$ac_ext <<EOF
20567 #line 20572 "configure"
20568 #include "confdefs.h"
20571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20572 { (eval echo configure:20577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20574 if test -z "$ac_err"; then
20576 eval "ac_cv_header_$ac_safe=yes"
20579 echo "configure: failed program was:" >&5
20580 cat conftest.$ac_ext >&5
20582 eval "ac_cv_header_$ac_safe=no"
20586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20587 echo "$ac_t""yes" 1>&6
20588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20589 cat >> confdefs.h <<EOF
20590 #define $ac_tr_hdr 1
20594 echo "$ac_t""no" 1>&6
20599 if test $ac_cv_header_readline_readline_h = yes ; then
20601 LIBS="$TERMCAP_LIBS $LIBS"
20602 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20603 echo "configure:20608: checking for readline in -lreadline" >&5
20604 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20606 echo $ac_n "(cached) $ac_c" 1>&6
20608 ac_save_LIBS="$LIBS"
20609 LIBS="-lreadline $LIBS"
20610 cat > conftest.$ac_ext <<EOF
20611 #line 20616 "configure"
20612 #include "confdefs.h"
20613 /* Override any gcc2 internal prototype to avoid an error. */
20614 /* We use char because int might match the return type of a gcc2
20615 builtin and then its argument prototype would still apply. */
20622 if { (eval echo configure:20627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20624 eval "ac_cv_lib_$ac_lib_var=yes"
20626 echo "configure: failed program was:" >&5
20627 cat conftest.$ac_ext >&5
20629 eval "ac_cv_lib_$ac_lib_var=no"
20632 LIBS="$ac_save_LIBS"
20635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20636 echo "$ac_t""yes" 1>&6
20639 echo "$ac_t""no" 1>&6
20645 if test $have_readline = yes ; then
20646 ol_with_readline=found
20647 ol_link_readline=yes
20649 READLINE_LIBS="-lreadline"
20654 if test $ol_link_readline = yes ; then
20655 cat >> confdefs.h <<\EOF
20656 #define HAVE_READLINE 1
20662 if test $ol_enable_crypt != no ; then
20664 LIBS="$TLS_LIBS $LIBS"
20666 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20667 echo "configure:20672: checking for crypt" >&5
20668 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20669 echo $ac_n "(cached) $ac_c" 1>&6
20671 cat > conftest.$ac_ext <<EOF
20672 #line 20677 "configure"
20673 #include "confdefs.h"
20674 /* System header to define __stub macros and hopefully few prototypes,
20675 which can conflict with char crypt(); below. */
20676 #include <assert.h>
20677 /* Override any gcc2 internal prototype to avoid an error. */
20678 /* We use char because int might match the return type of a gcc2
20679 builtin and then its argument prototype would still apply. */
20685 /* The GNU C library defines this for functions which it implements
20686 to always fail with ENOSYS. Some functions are actually named
20687 something starting with __ and the normal name is an alias. */
20688 #if defined (__stub_crypt) || defined (__stub___crypt)
20696 if { (eval echo configure:20701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20698 eval "ac_cv_func_crypt=yes"
20700 echo "configure: failed program was:" >&5
20701 cat conftest.$ac_ext >&5
20703 eval "ac_cv_func_crypt=no"
20708 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20709 echo "$ac_t""yes" 1>&6
20712 echo "$ac_t""no" 1>&6
20715 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20716 echo "configure:20721: checking for crypt in -lcrypt" >&5
20717 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20718 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20719 echo $ac_n "(cached) $ac_c" 1>&6
20721 ac_save_LIBS="$LIBS"
20722 LIBS="-lcrypt $LIBS"
20723 cat > conftest.$ac_ext <<EOF
20724 #line 20729 "configure"
20725 #include "confdefs.h"
20726 /* Override any gcc2 internal prototype to avoid an error. */
20727 /* We use char because int might match the return type of a gcc2
20728 builtin and then its argument prototype would still apply. */
20735 if { (eval echo configure:20740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20737 eval "ac_cv_lib_$ac_lib_var=yes"
20739 echo "configure: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20742 eval "ac_cv_lib_$ac_lib_var=no"
20745 LIBS="$ac_save_LIBS"
20748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20749 echo "$ac_t""yes" 1>&6
20750 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20753 echo "$ac_t""no" 1>&6
20762 if test $have_crypt = yes ; then
20763 cat >> confdefs.h <<\EOF
20764 #define HAVE_CRYPT 1
20768 echo "configure: warning: could not find crypt" 1>&2
20769 if test $ol_enable_crypt = yes ; then
20770 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20773 echo "configure: warning: disabling crypt support" 1>&2
20778 if test $ol_enable_proctitle != no ; then
20779 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20780 echo "configure:20785: checking for setproctitle" >&5
20781 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20782 echo $ac_n "(cached) $ac_c" 1>&6
20784 cat > conftest.$ac_ext <<EOF
20785 #line 20790 "configure"
20786 #include "confdefs.h"
20787 /* System header to define __stub macros and hopefully few prototypes,
20788 which can conflict with char setproctitle(); below. */
20789 #include <assert.h>
20790 /* Override any gcc2 internal prototype to avoid an error. */
20791 /* We use char because int might match the return type of a gcc2
20792 builtin and then its argument prototype would still apply. */
20793 char setproctitle();
20798 /* The GNU C library defines this for functions which it implements
20799 to always fail with ENOSYS. Some functions are actually named
20800 something starting with __ and the normal name is an alias. */
20801 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20809 if { (eval echo configure:20814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20811 eval "ac_cv_func_setproctitle=yes"
20813 echo "configure: failed program was:" >&5
20814 cat conftest.$ac_ext >&5
20816 eval "ac_cv_func_setproctitle=no"
20821 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20822 echo "$ac_t""yes" 1>&6
20823 have_setproctitle=yes
20825 echo "$ac_t""no" 1>&6
20827 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20828 echo "configure:20833: checking for setproctitle in -lutil" >&5
20829 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20831 echo $ac_n "(cached) $ac_c" 1>&6
20833 ac_save_LIBS="$LIBS"
20834 LIBS="-lutil $LIBS"
20835 cat > conftest.$ac_ext <<EOF
20836 #line 20841 "configure"
20837 #include "confdefs.h"
20838 /* Override any gcc2 internal prototype to avoid an error. */
20839 /* We use char because int might match the return type of a gcc2
20840 builtin and then its argument prototype would still apply. */
20841 char setproctitle();
20847 if { (eval echo configure:20852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20849 eval "ac_cv_lib_$ac_lib_var=yes"
20851 echo "configure: failed program was:" >&5
20852 cat conftest.$ac_ext >&5
20854 eval "ac_cv_lib_$ac_lib_var=no"
20857 LIBS="$ac_save_LIBS"
20860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20861 echo "$ac_t""yes" 1>&6
20862 have_setproctitle=yes
20863 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20865 echo "$ac_t""no" 1>&6
20866 have_setproctitle=no
20867 LIBOBJS="$LIBOBJS setproctitle.o"
20868 LIBSRCS="$LIBSRCS setproctitle.c"
20874 if test $have_setproctitle = yes ; then
20875 cat >> confdefs.h <<\EOF
20876 #define HAVE_SETPROCTITLE 1
20882 if test $ol_enable_slp != no ; then
20883 for ac_hdr in slp.h
20885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20887 echo "configure:20892: checking for $ac_hdr" >&5
20888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20889 echo $ac_n "(cached) $ac_c" 1>&6
20891 cat > conftest.$ac_ext <<EOF
20892 #line 20897 "configure"
20893 #include "confdefs.h"
20896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20897 { (eval echo configure:20902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20899 if test -z "$ac_err"; then
20901 eval "ac_cv_header_$ac_safe=yes"
20904 echo "configure: failed program was:" >&5
20905 cat conftest.$ac_ext >&5
20907 eval "ac_cv_header_$ac_safe=no"
20911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20912 echo "$ac_t""yes" 1>&6
20913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20914 cat >> confdefs.h <<EOF
20915 #define $ac_tr_hdr 1
20919 echo "$ac_t""no" 1>&6
20924 if test $ac_cv_header_slp_h = yes ; then
20925 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20926 echo "configure:20931: checking for SLPOpen in -lslp" >&5
20927 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20929 echo $ac_n "(cached) $ac_c" 1>&6
20931 ac_save_LIBS="$LIBS"
20933 cat > conftest.$ac_ext <<EOF
20934 #line 20939 "configure"
20935 #include "confdefs.h"
20936 /* Override any gcc2 internal prototype to avoid an error. */
20937 /* We use char because int might match the return type of a gcc2
20938 builtin and then its argument prototype would still apply. */
20945 if { (eval echo configure:20950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20947 eval "ac_cv_lib_$ac_lib_var=yes"
20949 echo "configure: failed program was:" >&5
20950 cat conftest.$ac_ext >&5
20952 eval "ac_cv_lib_$ac_lib_var=no"
20955 LIBS="$ac_save_LIBS"
20958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20959 echo "$ac_t""yes" 1>&6
20962 echo "$ac_t""no" 1>&6
20966 if test $have_slp = yes ; then
20967 cat >> confdefs.h <<\EOF
20971 SLAPD_SLP_LIBS=-lslp
20974 elif test $ol_enable_slp = yes ; then
20975 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20979 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20980 echo "configure:20985: checking for ANSI C header files" >&5
20981 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20982 echo $ac_n "(cached) $ac_c" 1>&6
20984 cat > conftest.$ac_ext <<EOF
20985 #line 20990 "configure"
20986 #include "confdefs.h"
20987 #include <stdlib.h>
20988 #include <stdarg.h>
20989 #include <string.h>
20992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20993 { (eval echo configure:20998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20995 if test -z "$ac_err"; then
20997 ac_cv_header_stdc=yes
21000 echo "configure: failed program was:" >&5
21001 cat conftest.$ac_ext >&5
21003 ac_cv_header_stdc=no
21007 if test $ac_cv_header_stdc = yes; then
21008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21009 cat > conftest.$ac_ext <<EOF
21010 #line 21015 "configure"
21011 #include "confdefs.h"
21012 #include <string.h>
21014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21015 egrep "memchr" >/dev/null 2>&1; then
21019 ac_cv_header_stdc=no
21025 if test $ac_cv_header_stdc = yes; then
21026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21033 "configure"
21029 #include "confdefs.h"
21030 #include <stdlib.h>
21032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21033 egrep "free" >/dev/null 2>&1; then
21037 ac_cv_header_stdc=no
21043 if test $ac_cv_header_stdc = yes; then
21044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21045 if test "$cross_compiling" = yes; then
21048 cat > conftest.$ac_ext <<EOF
21049 #line 21054 "configure"
21050 #include "confdefs.h"
21052 #if ((' ' & 0x0FF) == 0x020)
21053 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21054 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21056 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21057 || ('j' <= (c) && (c) <= 'r') \
21058 || ('s' <= (c) && (c) <= 'z'))
21059 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21062 int main () { int i; for (i = 0; i < 256; i++)
21063 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21067 if { (eval echo configure:21072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21071 echo "configure: failed program was:" >&5
21072 cat conftest.$ac_ext >&5
21074 ac_cv_header_stdc=no
21082 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21083 if test $ac_cv_header_stdc = yes; then
21084 cat >> confdefs.h <<\EOF
21085 #define STDC_HEADERS 1
21090 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21091 echo "configure:21096: checking for mode_t" >&5
21092 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21093 echo $ac_n "(cached) $ac_c" 1>&6
21095 cat > conftest.$ac_ext <<EOF
21096 #line 21101 "configure"
21097 #include "confdefs.h"
21098 #include <sys/types.h>
21100 #include <stdlib.h>
21101 #include <stddef.h>
21105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21106 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21108 eval "ac_cv_type_mode_t=yes"
21111 eval "ac_cv_type_mode_t=no"
21116 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21117 echo "$ac_t""yes" 1>&6
21119 echo "$ac_t""no" 1>&6
21120 cat >> confdefs.h <<EOF
21126 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21127 echo "configure:21132: checking for off_t" >&5
21128 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21129 echo $ac_n "(cached) $ac_c" 1>&6
21131 cat > conftest.$ac_ext <<EOF
21132 #line 21137 "configure"
21133 #include "confdefs.h"
21134 #include <sys/types.h>
21136 #include <stdlib.h>
21137 #include <stddef.h>
21141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21142 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21144 eval "ac_cv_type_off_t=yes"
21147 eval "ac_cv_type_off_t=no"
21152 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21153 echo "$ac_t""yes" 1>&6
21155 echo "$ac_t""no" 1>&6
21156 cat >> confdefs.h <<EOF
21162 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21163 echo "configure:21168: checking for pid_t" >&5
21164 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21165 echo $ac_n "(cached) $ac_c" 1>&6
21167 cat > conftest.$ac_ext <<EOF
21168 #line 21173 "configure"
21169 #include "confdefs.h"
21170 #include <sys/types.h>
21172 #include <stdlib.h>
21173 #include <stddef.h>
21177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21178 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21180 eval "ac_cv_type_pid_t=yes"
21183 eval "ac_cv_type_pid_t=no"
21188 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21189 echo "$ac_t""yes" 1>&6
21191 echo "$ac_t""no" 1>&6
21192 cat >> confdefs.h <<EOF
21198 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21199 echo "configure:21204: checking for ptrdiff_t" >&5
21200 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21201 echo $ac_n "(cached) $ac_c" 1>&6
21203 cat > conftest.$ac_ext <<EOF
21204 #line 21209 "configure"
21205 #include "confdefs.h"
21206 #include <stddef.h>
21211 if { (eval echo configure:21216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21213 am_cv_type_ptrdiff_t=yes
21215 echo "configure: failed program was:" >&5
21216 cat conftest.$ac_ext >&5
21218 am_cv_type_ptrdiff_t=no
21223 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21224 if test $am_cv_type_ptrdiff_t = yes; then
21225 cat >> confdefs.h <<\EOF
21226 #define HAVE_PTRDIFF_T 1
21231 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21232 echo "configure:21237: checking return type of signal handlers" >&5
21233 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21234 echo $ac_n "(cached) $ac_c" 1>&6
21236 cat > conftest.$ac_ext <<EOF
21237 #line 21242 "configure"
21238 #include "confdefs.h"
21239 #include <sys/types.h>
21240 #include <signal.h>
21245 extern "C" void (*signal (int, void (*)(int)))(int);
21247 void (*signal ()) ();
21254 if { (eval echo configure:21259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21256 ac_cv_type_signal=void
21258 echo "configure: failed program was:" >&5
21259 cat conftest.$ac_ext >&5
21261 ac_cv_type_signal=int
21266 echo "$ac_t""$ac_cv_type_signal" 1>&6
21267 cat >> confdefs.h <<EOF
21268 #define RETSIGTYPE $ac_cv_type_signal
21272 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21273 echo "configure:21278: checking for size_t" >&5
21274 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21277 cat > conftest.$ac_ext <<EOF
21278 #line 21283 "configure"
21279 #include "confdefs.h"
21280 #include <sys/types.h>
21282 #include <stdlib.h>
21283 #include <stddef.h>
21287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21288 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21290 eval "ac_cv_type_size_t=yes"
21293 eval "ac_cv_type_size_t=no"
21298 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21299 echo "$ac_t""yes" 1>&6
21301 echo "$ac_t""no" 1>&6
21302 cat >> confdefs.h <<EOF
21303 #define size_t unsigned
21309 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21310 echo "configure:21315: checking for ssize_t" >&5
21311 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21312 echo $ac_n "(cached) $ac_c" 1>&6
21314 cat > conftest.$ac_ext <<EOF
21315 #line 21320 "configure"
21316 #include "confdefs.h"
21317 #include <sys/types.h>
21319 #include <stdlib.h>
21320 #include <stddef.h>
21324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21325 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21327 eval "ac_cv_type_ssize_t=yes"
21330 eval "ac_cv_type_ssize_t=no"
21335 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21336 echo "$ac_t""yes" 1>&6
21338 echo "$ac_t""no" 1>&6
21339 cat >> confdefs.h <<EOF
21340 #define ssize_t signed int
21345 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21346 echo "configure:21351: checking for caddr_t" >&5
21347 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21348 echo $ac_n "(cached) $ac_c" 1>&6
21350 cat > conftest.$ac_ext <<EOF
21351 #line 21356 "configure"
21352 #include "confdefs.h"
21353 #include <sys/types.h>
21355 #include <stdlib.h>
21356 #include <stddef.h>
21360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21361 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21363 eval "ac_cv_type_caddr_t=yes"
21366 eval "ac_cv_type_caddr_t=no"
21371 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21372 echo "$ac_t""yes" 1>&6
21374 echo "$ac_t""no" 1>&6
21375 cat >> confdefs.h <<EOF
21376 #define caddr_t char *
21382 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21383 echo "configure:21388: checking for socklen_t" >&5
21384 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21385 echo $ac_n "(cached) $ac_c" 1>&6
21387 cat > conftest.$ac_ext <<EOF
21388 #line 21393 "configure"
21389 #include "confdefs.h"
21391 #ifdef HAVE_SYS_TYPES_H
21392 #include <sys/types.h>
21394 #ifdef HAVE_SYS_SOCKET_H
21395 #include <sys/socket.h>
21402 if { (eval echo configure:21407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21404 ol_cv_type_socklen_t=yes
21406 echo "configure: failed program was:" >&5
21407 cat conftest.$ac_ext >&5
21409 ol_cv_type_socklen_t=no
21414 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21415 if test $ol_cv_type_socklen_t = no; then
21416 cat >> confdefs.h <<\EOF
21417 #define socklen_t int
21422 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21423 echo "configure:21428: checking for member st_blksize in aggregate type struct stat" >&5
21424 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21425 echo $ac_n "(cached) $ac_c" 1>&6
21427 cat > conftest.$ac_ext <<EOF
21428 #line 21433 "configure"
21429 #include "confdefs.h"
21430 #include <sys/types.h>
21431 #include <sys/stat.h>
21433 struct stat foo; foo.st_blksize;
21436 if { (eval echo configure:21441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21438 ac_cv_c_struct_member_st_blksize=yes
21440 echo "configure: failed program was:" >&5
21441 cat conftest.$ac_ext >&5
21443 ac_cv_c_struct_member_st_blksize=no
21448 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21449 st_blksize="$ac_cv_c_struct_member_st_blksize"
21450 if test $ac_cv_c_struct_member_st_blksize = yes; then
21451 cat >> confdefs.h <<\EOF
21452 #define HAVE_ST_BLKSIZE 1
21457 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21458 echo "configure:21463: checking whether time.h and sys/time.h may both be included" >&5
21459 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21460 echo $ac_n "(cached) $ac_c" 1>&6
21462 cat > conftest.$ac_ext <<EOF
21463 #line 21468 "configure"
21464 #include "confdefs.h"
21465 #include <sys/types.h>
21466 #include <sys/time.h>
21472 if { (eval echo configure:21477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21474 ac_cv_header_time=yes
21476 echo "configure: failed program was:" >&5
21477 cat conftest.$ac_ext >&5
21479 ac_cv_header_time=no
21484 echo "$ac_t""$ac_cv_header_time" 1>&6
21485 if test $ac_cv_header_time = yes; then
21486 cat >> confdefs.h <<\EOF
21487 #define TIME_WITH_SYS_TIME 1
21492 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21493 echo "configure:21498: checking whether struct tm is in sys/time.h or time.h" >&5
21494 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21495 echo $ac_n "(cached) $ac_c" 1>&6
21497 cat > conftest.$ac_ext <<EOF
21498 #line 21503 "configure"
21499 #include "confdefs.h"
21500 #include <sys/types.h>
21503 struct tm *tp; tp->tm_sec;
21506 if { (eval echo configure:21511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21508 ac_cv_struct_tm=time.h
21510 echo "configure: failed program was:" >&5
21511 cat conftest.$ac_ext >&5
21513 ac_cv_struct_tm=sys/time.h
21518 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21519 if test $ac_cv_struct_tm = sys/time.h; then
21520 cat >> confdefs.h <<\EOF
21521 #define TM_IN_SYS_TIME 1
21526 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21527 echo "configure:21532: checking for uid_t in sys/types.h" >&5
21528 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21529 echo $ac_n "(cached) $ac_c" 1>&6
21531 cat > conftest.$ac_ext <<EOF
21532 #line 21537 "configure"
21533 #include "confdefs.h"
21534 #include <sys/types.h>
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537 egrep "uid_t" >/dev/null 2>&1; then
21539 ac_cv_type_uid_t=yes
21542 ac_cv_type_uid_t=no
21548 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21549 if test $ac_cv_type_uid_t = no; then
21550 cat >> confdefs.h <<\EOF
21554 cat >> confdefs.h <<\EOF
21560 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21561 echo "configure:21566: checking for sig_atomic_t" >&5
21562 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21563 echo $ac_n "(cached) $ac_c" 1>&6
21565 cat > conftest.$ac_ext <<EOF
21566 #line 21571 "configure"
21567 #include "confdefs.h"
21568 #include <signal.h>
21570 sig_atomic_t atomic;
21573 if { (eval echo configure:21578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21575 ol_cv_type_sig_atomic_t=yes
21577 echo "configure: failed program was:" >&5
21578 cat conftest.$ac_ext >&5
21580 ol_cv_type_sig_atomic_t=no
21585 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21586 if test $ol_cv_type_sig_atomic_t = no; then
21587 cat >> confdefs.h <<\EOF
21588 #define sig_atomic_t int
21595 # test for pw_gecos in struct passwd
21596 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21597 echo "configure:21602: checking struct passwd for pw_gecos" >&5
21598 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21599 echo $ac_n "(cached) $ac_c" 1>&6
21602 cat > conftest.$ac_ext <<EOF
21603 #line 21608 "configure"
21604 #include "confdefs.h"
21609 pwd.pw_gecos = pwd.pw_name;
21613 if { (eval echo configure:21618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21615 ol_cv_struct_passwd_pw_gecos=yes
21617 echo "configure: failed program was:" >&5
21618 cat conftest.$ac_ext >&5
21620 ol_cv_struct_passwd_pw_gecos=no
21625 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21626 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21627 cat >> confdefs.h <<\EOF
21628 #define HAVE_PW_GECOS 1
21633 # test for pw_passwd in struct passwd
21634 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21635 echo "configure:21640: checking struct passwd for pw_passwd" >&5
21636 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21637 echo $ac_n "(cached) $ac_c" 1>&6
21640 cat > conftest.$ac_ext <<EOF
21641 #line 21646 "configure"
21642 #include "confdefs.h"
21647 pwd.pw_passwd = pwd.pw_name;
21651 if { (eval echo configure:21656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21653 ol_cv_struct_passwd_pw_passwd=yes
21655 echo "configure: failed program was:" >&5
21656 cat conftest.$ac_ext >&5
21658 ol_cv_struct_passwd_pw_passwd=no
21663 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21664 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21665 cat >> confdefs.h <<\EOF
21666 #define HAVE_PW_PASSWD 1
21672 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21673 echo "configure:21678: checking if toupper() requires islower()" >&5
21674 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21675 echo $ac_n "(cached) $ac_c" 1>&6
21678 if test "$cross_compiling" = yes; then
21679 ol_cv_c_upper_lower=safe
21681 cat > conftest.$ac_ext <<EOF
21682 #line 21687 "configure"
21683 #include "confdefs.h"
21688 if ('C' == toupper('C'))
21694 if { (eval echo configure:21699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21696 ol_cv_c_upper_lower=no
21698 echo "configure: failed program was:" >&5
21699 cat conftest.$ac_ext >&5
21701 ol_cv_c_upper_lower=yes
21708 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21709 if test $ol_cv_c_upper_lower != no ; then
21710 cat >> confdefs.h <<\EOF
21711 #define C_UPPER_LOWER 1
21716 echo $ac_n "checking for working const""... $ac_c" 1>&6
21717 echo "configure:21722: checking for working const" >&5
21718 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21719 echo $ac_n "(cached) $ac_c" 1>&6
21721 cat > conftest.$ac_ext <<EOF
21722 #line 21727 "configure"
21723 #include "confdefs.h"
21727 /* Ultrix mips cc rejects this. */
21728 typedef int charset[2]; const charset x;
21729 /* SunOS 4.1.1 cc rejects this. */
21730 char const *const *ccp;
21732 /* NEC SVR4.0.2 mips cc rejects this. */
21733 struct point {int x, y;};
21734 static struct point const zero = {0,0};
21735 /* AIX XL C 1.02.0.0 rejects this.
21736 It does not let you subtract one const X* pointer from another in an arm
21737 of an if-expression whose if-part is not a constant expression */
21738 const char *g = "string";
21739 ccp = &g + (g ? g-g : 0);
21740 /* HPUX 7.0 cc rejects these. */
21743 ccp = (char const *const *) p;
21744 { /* SCO 3.2v4 cc rejects this. */
21746 char const *s = 0 ? (char *) 0 : (char const *) 0;
21750 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21751 int x[] = {25, 17};
21752 const int *foo = &x[0];
21755 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21756 typedef const int *iptr;
21760 { /* AIX XL C 1.02.0.0 rejects this saying
21761 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21762 struct s { int j; const int *ap[3]; };
21763 struct s *b; b->j = 5;
21765 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21766 const int foo = 10;
21771 if { (eval echo configure:21776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21775 echo "configure: failed program was:" >&5
21776 cat conftest.$ac_ext >&5
21783 echo "$ac_t""$ac_cv_c_const" 1>&6
21784 if test $ac_cv_c_const = no; then
21785 cat >> confdefs.h <<\EOF
21791 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21792 echo "configure:21797: checking if compiler understands volatile" >&5
21793 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21794 echo $ac_n "(cached) $ac_c" 1>&6
21796 cat > conftest.$ac_ext <<EOF
21797 #line 21802 "configure"
21798 #include "confdefs.h"
21801 volatile int a; int * volatile b = x ? &y : &z;
21802 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21806 if { (eval echo configure:21811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21808 ol_cv_c_volatile=yes
21810 echo "configure: failed program was:" >&5
21811 cat conftest.$ac_ext >&5
21813 ol_cv_c_volatile=no
21818 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21819 if test $ol_cv_c_volatile = yes; then
21822 cat >> confdefs.h <<\EOF
21829 if test $cross_compiling = yes ; then
21830 cat >> confdefs.h <<\EOF
21831 #define CROSS_COMPILING 1
21835 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21836 echo "configure:21841: checking whether byte ordering is bigendian" >&5
21837 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21838 echo $ac_n "(cached) $ac_c" 1>&6
21840 ac_cv_c_bigendian=unknown
21841 # See if sys/param.h defines the BYTE_ORDER macro.
21842 cat > conftest.$ac_ext <<EOF
21843 #line 21848 "configure"
21844 #include "confdefs.h"
21845 #include <sys/types.h>
21846 #include <sys/param.h>
21849 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21850 bogus endian macros
21854 if { (eval echo configure:21859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21856 # It does; now see whether it defined to BIG_ENDIAN or not.
21857 cat > conftest.$ac_ext <<EOF
21858 #line 21863 "configure"
21859 #include "confdefs.h"
21860 #include <sys/types.h>
21861 #include <sys/param.h>
21864 #if BYTE_ORDER != BIG_ENDIAN
21869 if { (eval echo configure:21874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21871 ac_cv_c_bigendian=yes
21873 echo "configure: failed program was:" >&5
21874 cat conftest.$ac_ext >&5
21876 ac_cv_c_bigendian=no
21880 echo "configure: failed program was:" >&5
21881 cat conftest.$ac_ext >&5
21884 if test $ac_cv_c_bigendian = unknown; then
21885 if test "$cross_compiling" = yes; then
21886 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21888 cat > conftest.$ac_ext <<EOF
21889 #line 21894 "configure"
21890 #include "confdefs.h"
21892 /* Are we little or big endian? From Harbison&Steele. */
21896 char c[sizeof (long)];
21899 exit (u.c[sizeof (long) - 1] == 1);
21902 if { (eval echo configure:21907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21904 ac_cv_c_bigendian=no
21906 echo "configure: failed program was:" >&5
21907 cat conftest.$ac_ext >&5
21909 ac_cv_c_bigendian=yes
21917 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21918 if test $ac_cv_c_bigendian = yes; then
21919 cat >> confdefs.h <<\EOF
21920 #define WORDS_BIGENDIAN 1
21927 echo $ac_n "checking size of short""... $ac_c" 1>&6
21928 echo "configure:21933: checking size of short" >&5
21929 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21930 echo $ac_n "(cached) $ac_c" 1>&6
21932 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21933 cat > conftest.$ac_ext <<EOF
21934 #line 21939 "configure"
21935 #include "confdefs.h"
21936 #include "confdefs.h"
21937 #include <sys/types.h>
21941 switch (0) case 0: case (sizeof (short) == $ac_size):;
21944 if { (eval echo configure:21949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21946 ac_cv_sizeof_short=$ac_size
21948 echo "configure: failed program was:" >&5
21949 cat conftest.$ac_ext >&5
21952 if test x$ac_cv_sizeof_short != x ; then break; fi
21957 if test x$ac_cv_sizeof_short = x ; then
21958 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21960 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21961 cat >> confdefs.h <<EOF
21962 #define SIZEOF_SHORT $ac_cv_sizeof_short
21966 echo $ac_n "checking size of int""... $ac_c" 1>&6
21967 echo "configure:21972: checking size of int" >&5
21968 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21969 echo $ac_n "(cached) $ac_c" 1>&6
21971 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21972 cat > conftest.$ac_ext <<EOF
21973 #line 21978 "configure"
21974 #include "confdefs.h"
21975 #include "confdefs.h"
21976 #include <sys/types.h>
21980 switch (0) case 0: case (sizeof (int) == $ac_size):;
21983 if { (eval echo configure:21988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21985 ac_cv_sizeof_int=$ac_size
21987 echo "configure: failed program was:" >&5
21988 cat conftest.$ac_ext >&5
21991 if test x$ac_cv_sizeof_int != x ; then break; fi
21996 if test x$ac_cv_sizeof_int = x ; then
21997 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21999 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22000 cat >> confdefs.h <<EOF
22001 #define SIZEOF_INT $ac_cv_sizeof_int
22005 echo $ac_n "checking size of long""... $ac_c" 1>&6
22006 echo "configure:22011: checking size of long" >&5
22007 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22008 echo $ac_n "(cached) $ac_c" 1>&6
22010 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22011 cat > conftest.$ac_ext <<EOF
22012 #line 22017 "configure"
22013 #include "confdefs.h"
22014 #include "confdefs.h"
22015 #include <sys/types.h>
22019 switch (0) case 0: case (sizeof (long) == $ac_size):;
22022 if { (eval echo configure:22027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22024 ac_cv_sizeof_long=$ac_size
22026 echo "configure: failed program was:" >&5
22027 cat conftest.$ac_ext >&5
22030 if test x$ac_cv_sizeof_long != x ; then break; fi
22035 if test x$ac_cv_sizeof_long = x ; then
22036 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22038 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22039 cat >> confdefs.h <<EOF
22040 #define SIZEOF_LONG $ac_cv_sizeof_long
22045 if test "$ac_cv_sizeof_int" -lt 4 ; then
22046 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22048 cat >> confdefs.h <<\EOF
22049 #define LBER_INT_T long
22053 cat >> confdefs.h <<\EOF
22054 #define LBER_INT_T int
22059 cat >> confdefs.h <<\EOF
22060 #define LBER_LEN_T long
22063 cat >> confdefs.h <<\EOF
22064 #define LBER_SOCKET_T int
22067 cat >> confdefs.h <<\EOF
22068 #define LBER_TAG_T long
22072 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22073 echo "configure:22078: checking for 8-bit clean memcmp" >&5
22074 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22075 echo $ac_n "(cached) $ac_c" 1>&6
22077 if test "$cross_compiling" = yes; then
22078 ac_cv_func_memcmp_clean=no
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22086 "configure"
22082 #include "confdefs.h"
22086 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22087 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22091 if { (eval echo configure:22096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22093 ac_cv_func_memcmp_clean=yes
22095 echo "configure: failed program was:" >&5
22096 cat conftest.$ac_ext >&5
22098 ac_cv_func_memcmp_clean=no
22105 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22106 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22108 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22109 echo "configure:22114: checking for strftime" >&5
22110 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22111 echo $ac_n "(cached) $ac_c" 1>&6
22113 cat > conftest.$ac_ext <<EOF
22114 #line 22119 "configure"
22115 #include "confdefs.h"
22116 /* System header to define __stub macros and hopefully few prototypes,
22117 which can conflict with char strftime(); below. */
22118 #include <assert.h>
22119 /* Override any gcc2 internal prototype to avoid an error. */
22120 /* We use char because int might match the return type of a gcc2
22121 builtin and then its argument prototype would still apply. */
22127 /* The GNU C library defines this for functions which it implements
22128 to always fail with ENOSYS. Some functions are actually named
22129 something starting with __ and the normal name is an alias. */
22130 #if defined (__stub_strftime) || defined (__stub___strftime)
22138 if { (eval echo configure:22143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22140 eval "ac_cv_func_strftime=yes"
22142 echo "configure: failed program was:" >&5
22143 cat conftest.$ac_ext >&5
22145 eval "ac_cv_func_strftime=no"
22150 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22151 echo "$ac_t""yes" 1>&6
22152 cat >> confdefs.h <<\EOF
22153 #define HAVE_STRFTIME 1
22157 echo "$ac_t""no" 1>&6
22158 # strftime is in -lintl on SCO UNIX.
22159 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22160 echo "configure:22165: checking for strftime in -lintl" >&5
22161 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22163 echo $ac_n "(cached) $ac_c" 1>&6
22165 ac_save_LIBS="$LIBS"
22166 LIBS="-lintl $LIBS"
22167 cat > conftest.$ac_ext <<EOF
22168 #line 22173 "configure"
22169 #include "confdefs.h"
22170 /* Override any gcc2 internal prototype to avoid an error. */
22171 /* We use char because int might match the return type of a gcc2
22172 builtin and then its argument prototype would still apply. */
22179 if { (eval echo configure:22184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22181 eval "ac_cv_lib_$ac_lib_var=yes"
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22186 eval "ac_cv_lib_$ac_lib_var=no"
22189 LIBS="$ac_save_LIBS"
22192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22193 echo "$ac_t""yes" 1>&6
22194 cat >> confdefs.h <<\EOF
22195 #define HAVE_STRFTIME 1
22198 LIBS="-lintl $LIBS"
22200 echo "$ac_t""no" 1>&6
22206 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22207 echo "configure:22212: checking for inet_aton()" >&5
22208 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22209 echo $ac_n "(cached) $ac_c" 1>&6
22211 cat > conftest.$ac_ext <<EOF
22212 #line 22217 "configure"
22213 #include "confdefs.h"
22215 #ifdef HAVE_SYS_TYPES_H
22216 # include <sys/types.h>
22218 #ifdef HAVE_SYS_SOCKET_H
22219 # include <sys/socket.h>
22220 # ifdef HAVE_SYS_SELECT_H
22221 # include <sys/select.h>
22223 # include <netinet/in.h>
22224 # ifdef HAVE_ARPA_INET_H
22225 # include <arpa/inet.h>
22231 int rc = inet_aton( "255.255.255.255", &in );
22234 if { (eval echo configure:22239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22236 ol_cv_func_inet_aton=yes
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22241 ol_cv_func_inet_aton=no
22246 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22247 if test $ol_cv_func_inet_aton != no; then
22248 cat >> confdefs.h <<\EOF
22249 #define HAVE_INET_ATON 1
22255 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22256 echo "configure:22261: checking for _spawnlp" >&5
22257 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22258 echo $ac_n "(cached) $ac_c" 1>&6
22260 cat > conftest.$ac_ext <<EOF
22261 #line 22266 "configure"
22262 #include "confdefs.h"
22263 /* System header to define __stub macros and hopefully few prototypes,
22264 which can conflict with char _spawnlp(); below. */
22265 #include <assert.h>
22266 /* Override any gcc2 internal prototype to avoid an error. */
22267 /* We use char because int might match the return type of a gcc2
22268 builtin and then its argument prototype would still apply. */
22274 /* The GNU C library defines this for functions which it implements
22275 to always fail with ENOSYS. Some functions are actually named
22276 something starting with __ and the normal name is an alias. */
22277 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22285 if { (eval echo configure:22290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22287 eval "ac_cv_func__spawnlp=yes"
22289 echo "configure: failed program was:" >&5
22290 cat conftest.$ac_ext >&5
22292 eval "ac_cv_func__spawnlp=no"
22297 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22298 echo "$ac_t""yes" 1>&6
22299 cat >> confdefs.h <<\EOF
22300 #define HAVE_SPAWNLP 1
22304 echo "$ac_t""no" 1>&6
22308 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22309 echo "configure:22314: checking for _snprintf" >&5
22310 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22311 echo $ac_n "(cached) $ac_c" 1>&6
22313 cat > conftest.$ac_ext <<EOF
22314 #line 22319 "configure"
22315 #include "confdefs.h"
22316 /* System header to define __stub macros and hopefully few prototypes,
22317 which can conflict with char _snprintf(); below. */
22318 #include <assert.h>
22319 /* Override any gcc2 internal prototype to avoid an error. */
22320 /* We use char because int might match the return type of a gcc2
22321 builtin and then its argument prototype would still apply. */
22327 /* The GNU C library defines this for functions which it implements
22328 to always fail with ENOSYS. Some functions are actually named
22329 something starting with __ and the normal name is an alias. */
22330 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22338 if { (eval echo configure:22343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22340 eval "ac_cv_func__snprintf=yes"
22342 echo "configure: failed program was:" >&5
22343 cat conftest.$ac_ext >&5
22345 eval "ac_cv_func__snprintf=no"
22350 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22351 echo "$ac_t""yes" 1>&6
22352 ac_cv_func_snprintf=yes
22353 cat >> confdefs.h <<\EOF
22354 #define snprintf _snprintf
22359 echo "$ac_t""no" 1>&6
22363 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22364 echo "configure:22369: checking for _vsnprintf" >&5
22365 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22366 echo $ac_n "(cached) $ac_c" 1>&6
22368 cat > conftest.$ac_ext <<EOF
22369 #line 22374 "configure"
22370 #include "confdefs.h"
22371 /* System header to define __stub macros and hopefully few prototypes,
22372 which can conflict with char _vsnprintf(); below. */
22373 #include <assert.h>
22374 /* Override any gcc2 internal prototype to avoid an error. */
22375 /* We use char because int might match the return type of a gcc2
22376 builtin and then its argument prototype would still apply. */
22382 /* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
22385 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22393 if { (eval echo configure:22398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22395 eval "ac_cv_func__vsnprintf=yes"
22397 echo "configure: failed program was:" >&5
22398 cat conftest.$ac_ext >&5
22400 eval "ac_cv_func__vsnprintf=no"
22405 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22406 echo "$ac_t""yes" 1>&6
22407 ac_cv_func_vsnprintf=yes
22408 cat >> confdefs.h <<\EOF
22409 #define vsnprintf _vsnprintf
22414 echo "$ac_t""no" 1>&6
22418 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22419 echo "configure:22424: checking for vprintf" >&5
22420 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22421 echo $ac_n "(cached) $ac_c" 1>&6
22423 cat > conftest.$ac_ext <<EOF
22424 #line 22429 "configure"
22425 #include "confdefs.h"
22426 /* System header to define __stub macros and hopefully few prototypes,
22427 which can conflict with char vprintf(); below. */
22428 #include <assert.h>
22429 /* Override any gcc2 internal prototype to avoid an error. */
22430 /* We use char because int might match the return type of a gcc2
22431 builtin and then its argument prototype would still apply. */
22437 /* The GNU C library defines this for functions which it implements
22438 to always fail with ENOSYS. Some functions are actually named
22439 something starting with __ and the normal name is an alias. */
22440 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22448 if { (eval echo configure:22453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22450 eval "ac_cv_func_vprintf=yes"
22452 echo "configure: failed program was:" >&5
22453 cat conftest.$ac_ext >&5
22455 eval "ac_cv_func_vprintf=no"
22460 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22461 echo "$ac_t""yes" 1>&6
22462 cat >> confdefs.h <<\EOF
22463 #define HAVE_VPRINTF 1
22467 echo "$ac_t""no" 1>&6
22470 if test "$ac_cv_func_vprintf" != yes; then
22471 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22472 echo "configure:22477: checking for _doprnt" >&5
22473 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22474 echo $ac_n "(cached) $ac_c" 1>&6
22476 cat > conftest.$ac_ext <<EOF
22477 #line 22482 "configure"
22478 #include "confdefs.h"
22479 /* System header to define __stub macros and hopefully few prototypes,
22480 which can conflict with char _doprnt(); below. */
22481 #include <assert.h>
22482 /* Override any gcc2 internal prototype to avoid an error. */
22483 /* We use char because int might match the return type of a gcc2
22484 builtin and then its argument prototype would still apply. */
22490 /* The GNU C library defines this for functions which it implements
22491 to always fail with ENOSYS. Some functions are actually named
22492 something starting with __ and the normal name is an alias. */
22493 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22501 if { (eval echo configure:22506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22503 eval "ac_cv_func__doprnt=yes"
22505 echo "configure: failed program was:" >&5
22506 cat conftest.$ac_ext >&5
22508 eval "ac_cv_func__doprnt=no"
22513 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22514 echo "$ac_t""yes" 1>&6
22515 cat >> confdefs.h <<\EOF
22516 #define HAVE_DOPRNT 1
22520 echo "$ac_t""no" 1>&6
22526 if test $ac_cv_func_vprintf = yes ; then
22527 for ac_func in snprintf vsnprintf
22529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22530 echo "configure:22535: checking for $ac_func" >&5
22531 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22532 echo $ac_n "(cached) $ac_c" 1>&6
22534 cat > conftest.$ac_ext <<EOF
22535 #line 22540 "configure"
22536 #include "confdefs.h"
22537 /* System header to define __stub macros and hopefully few prototypes,
22538 which can conflict with char $ac_func(); below. */
22539 #include <assert.h>
22540 /* Override any gcc2 internal prototype to avoid an error. */
22541 /* We use char because int might match the return type of a gcc2
22542 builtin and then its argument prototype would still apply. */
22548 /* The GNU C library defines this for functions which it implements
22549 to always fail with ENOSYS. Some functions are actually named
22550 something starting with __ and the normal name is an alias. */
22551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22559 if { (eval echo configure:22564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22561 eval "ac_cv_func_$ac_func=yes"
22563 echo "configure: failed program was:" >&5
22564 cat conftest.$ac_ext >&5
22566 eval "ac_cv_func_$ac_func=no"
22571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22572 echo "$ac_t""yes" 1>&6
22573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22574 cat >> confdefs.h <<EOF
22575 #define $ac_tr_func 1
22579 echo "$ac_t""no" 1>&6
22641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22642 echo "configure:22647: checking for $ac_func" >&5
22643 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22644 echo $ac_n "(cached) $ac_c" 1>&6
22646 cat > conftest.$ac_ext <<EOF
22647 #line 22652 "configure"
22648 #include "confdefs.h"
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char $ac_func(); below. */
22651 #include <assert.h>
22652 /* Override any gcc2 internal prototype to avoid an error. */
22653 /* We use char because int might match the return type of a gcc2
22654 builtin and then its argument prototype would still apply. */
22660 /* The GNU C library defines this for functions which it implements
22661 to always fail with ENOSYS. Some functions are actually named
22662 something starting with __ and the normal name is an alias. */
22663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22671 if { (eval echo configure:22676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22673 eval "ac_cv_func_$ac_func=yes"
22675 echo "configure: failed program was:" >&5
22676 cat conftest.$ac_ext >&5
22678 eval "ac_cv_func_$ac_func=no"
22683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22684 echo "$ac_t""yes" 1>&6
22685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22686 cat >> confdefs.h <<EOF
22687 #define $ac_tr_func 1
22691 echo "$ac_t""no" 1>&6
22696 for ac_func in getopt getpeereid
22698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22699 echo "configure:22704: checking for $ac_func" >&5
22700 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22701 echo $ac_n "(cached) $ac_c" 1>&6
22703 cat > conftest.$ac_ext <<EOF
22704 #line 22709 "configure"
22705 #include "confdefs.h"
22706 /* System header to define __stub macros and hopefully few prototypes,
22707 which can conflict with char $ac_func(); below. */
22708 #include <assert.h>
22709 /* Override any gcc2 internal prototype to avoid an error. */
22710 /* We use char because int might match the return type of a gcc2
22711 builtin and then its argument prototype would still apply. */
22717 /* The GNU C library defines this for functions which it implements
22718 to always fail with ENOSYS. Some functions are actually named
22719 something starting with __ and the normal name is an alias. */
22720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22728 if { (eval echo configure:22733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22730 eval "ac_cv_func_$ac_func=yes"
22732 echo "configure: failed program was:" >&5
22733 cat conftest.$ac_ext >&5
22735 eval "ac_cv_func_$ac_func=no"
22740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22741 echo "$ac_t""yes" 1>&6
22742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22743 cat >> confdefs.h <<EOF
22744 #define $ac_tr_func 1
22748 echo "$ac_t""no" 1>&6
22749 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22755 if test "$ac_cv_func_getopt" != yes; then
22756 LIBSRCS="$LIBSRCS getopt.c"
22758 if test "$ac_cv_func_getpeereid" != yes; then
22759 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22760 echo "configure:22765: checking for msg_accrights in msghdr" >&5
22761 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22762 echo $ac_n "(cached) $ac_c" 1>&6
22764 cat > conftest.$ac_ext <<EOF
22765 #line 22770 "configure"
22766 #include "confdefs.h"
22767 #include <sys/socket.h>
22769 struct msghdr m; m.msg_accrightslen=0
22772 if { (eval echo configure:22777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22774 ol_cv_msghdr_msg_accrights=yes
22776 echo "configure: failed program was:" >&5
22777 cat conftest.$ac_ext >&5
22779 ol_cv_msghdr_msg_accrights=no
22785 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22786 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22787 cat >> confdefs.h <<\EOF
22788 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22793 LIBSRCS="$LIBSRCS getpeereid.c"
22795 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22796 if test "$ac_cv_func_snprintf" != yes; then
22797 cat >> confdefs.h <<\EOF
22798 #define snprintf ber_pvt_snprintf
22802 if test "$ac_cv_func_vsnprintf" != yes; then
22803 cat >> confdefs.h <<\EOF
22804 #define vsnprintf ber_pvt_vsnprintf
22810 # Check Configuration
22811 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22812 echo "configure:22817: checking declaration of sys_errlist" >&5
22813 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22814 echo $ac_n "(cached) $ac_c" 1>&6
22817 cat > conftest.$ac_ext <<EOF
22818 #line 22823 "configure"
22819 #include "confdefs.h"
22822 #include <sys/types.h>
22825 #include <stdlib.h>
22828 char *c = (char *) *sys_errlist
22831 if { (eval echo configure:22836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22833 ol_cv_dcl_sys_errlist=yes
22834 ol_cv_have_sys_errlist=yes
22836 echo "configure: failed program was:" >&5
22837 cat conftest.$ac_ext >&5
22839 ol_cv_dcl_sys_errlist=no
22844 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22846 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22847 if test $ol_cv_dcl_sys_errlist = no ; then
22848 cat >> confdefs.h <<\EOF
22849 #define DECL_SYS_ERRLIST 1
22853 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22854 echo "configure:22859: checking existence of sys_errlist" >&5
22855 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22856 echo $ac_n "(cached) $ac_c" 1>&6
22859 cat > conftest.$ac_ext <<EOF
22860 #line 22865 "configure"
22861 #include "confdefs.h"
22864 char *c = (char *) *sys_errlist
22867 if { (eval echo configure:22872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22869 ol_cv_have_sys_errlist=yes
22871 echo "configure: failed program was:" >&5
22872 cat conftest.$ac_ext >&5
22874 ol_cv_have_sys_errlist=no
22879 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22881 if test $ol_cv_have_sys_errlist = yes ; then
22882 cat >> confdefs.h <<\EOF
22883 #define HAVE_SYS_ERRLIST 1
22890 if test "$ol_enable_debug" != no ; then
22891 cat >> confdefs.h <<\EOF
22892 #define LDAP_DEBUG 1
22896 if test "$ol_enable_syslog" = yes ; then
22897 cat >> confdefs.h <<\EOF
22898 #define LDAP_SYSLOG 1
22902 if test "$ol_link_kbind" != no ; then
22903 cat >> confdefs.h <<\EOF
22904 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22908 if test "$ol_enable_proctitle" != no ; then
22909 cat >> confdefs.h <<\EOF
22910 #define LDAP_PROCTITLE 1
22914 if test "$ol_enable_referrals" != no ; then
22915 cat >> confdefs.h <<\EOF
22916 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22920 if test "$ol_enable_local" != no; then
22921 cat >> confdefs.h <<\EOF
22922 #define LDAP_PF_LOCAL 1
22926 if test "$ol_link_ipv6" != no; then
22927 cat >> confdefs.h <<\EOF
22928 #define LDAP_PF_INET6 1
22932 if test "$ol_enable_cleartext" != no ; then
22933 cat >> confdefs.h <<\EOF
22934 #define SLAPD_CLEARTEXT 1
22938 if test "$ol_enable_crypt" != no ; then
22939 cat >> confdefs.h <<\EOF
22940 #define SLAPD_CRYPT 1
22944 if test "$ol_link_kpasswd" != no ; then
22945 cat >> confdefs.h <<\EOF
22946 #define SLAPD_KPASSWD 1
22950 if test "$ol_link_spasswd" != no ; then
22951 cat >> confdefs.h <<\EOF
22952 #define SLAPD_SPASSWD 1
22956 if test "$ol_enable_multimaster" != no ; then
22957 cat >> confdefs.h <<\EOF
22958 #define SLAPD_MULTIMASTER 1
22962 if test "$ol_enable_phonetic" != no ; then
22963 cat >> confdefs.h <<\EOF
22964 #define SLAPD_PHONETIC 1
22968 if test "$ol_enable_rlookups" != no ; then
22969 cat >> confdefs.h <<\EOF
22970 #define SLAPD_RLOOKUPS 1
22974 if test "$ol_enable_aci" != no ; then
22975 cat >> confdefs.h <<\EOF
22976 #define SLAPD_ACI_ENABLED 1
22981 if test "$ol_link_modules" != no ; then
22982 cat >> confdefs.h <<\EOF
22983 #define SLAPD_MODULES 1
22987 SLAPD_MODULES_LDFLAGS="-dlopen self"
22990 if test "$ol_enable_bdb" != no ; then
22991 cat >> confdefs.h <<\EOF
22992 #define SLAPD_BDB 1
22997 if test "$ol_with_bdb_module" != static ; then
22998 cat >> confdefs.h <<\EOF
22999 #define SLAPD_BDB_DYNAMIC 1
23003 BUILD_BDB_DYNAMIC=shared
23004 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23006 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23010 if test "$ol_link_dnssrv" != no ; then
23011 cat >> confdefs.h <<\EOF
23012 #define SLAPD_DNSSRV 1
23017 if test "$ol_with_dnssrv_module" != static ; then
23018 cat >> confdefs.h <<\EOF
23019 #define SLAPD_DNSSRV_DYNAMIC 1
23023 BUILD_DNSSRV_DYNAMIC=shared
23024 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23026 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23030 if test "$ol_enable_ldap" != no ; then
23031 cat >> confdefs.h <<\EOF
23032 #define SLAPD_LDAP 1
23037 if test "$ol_with_ldap_module" != static ; then
23038 cat >> confdefs.h <<\EOF
23039 #define SLAPD_LDAP_DYNAMIC 1
23043 BUILD_LDAP_DYNAMIC=shared
23044 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23046 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23050 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23051 cat >> confdefs.h <<\EOF
23052 #define SLAPD_LDBM 1
23057 if test "$ol_with_ldbm_module" != static ; then
23058 cat >> confdefs.h <<\EOF
23059 #define SLAPD_LDBM_DYNAMIC 1
23063 BUILD_LDBM_DYNAMIC=shared
23064 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23066 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23070 if test "$ol_enable_meta" != no ; then
23071 if test "$ol_enable_ldap" = no ; then
23072 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23074 if test "$ol_enable_rewrite" = no ; then
23075 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23077 cat >> confdefs.h <<\EOF
23078 #define SLAPD_META 1
23084 if test "$ol_with_meta_module" != static ; then
23085 cat >> confdefs.h <<\EOF
23086 #define SLAPD_META_DYNAMIC 1
23090 BUILD_META_DYNAMIC=shared
23091 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23093 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23097 if test "$ol_enable_monitor" != no ; then
23098 cat >> confdefs.h <<\EOF
23099 #define SLAPD_MONITOR 1
23104 if test "$ol_with_monitor_module" != static ; then
23105 cat >> confdefs.h <<\EOF
23106 #define SLAPD_MONITOR_DYNAMIC 1
23110 BUILD_MONITOR_DYNAMIC=shared
23111 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23113 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23117 if test "$ol_enable_null" != no ; then
23118 cat >> confdefs.h <<\EOF
23119 #define SLAPD_NULL 1
23124 if test "$ol_with_null_module" != static ; then
23125 cat >> confdefs.h <<\EOF
23126 #define SLAPD_NULL_DYNAMIC 1
23130 BUILD_NULL_DYNAMIC=shared
23131 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23133 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23137 if test "$ol_enable_passwd" != no ; then
23138 cat >> confdefs.h <<\EOF
23139 #define SLAPD_PASSWD 1
23144 if test "$ol_with_passwd_module" != static ; then
23145 cat >> confdefs.h <<\EOF
23146 #define SLAPD_PASSWD_DYNAMIC 1
23150 BUILD_PASSWD_DYNAMIC=shared
23151 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23153 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23157 if test "$ol_link_perl" != no ; then
23158 cat >> confdefs.h <<\EOF
23159 #define SLAPD_PERL 1
23164 if test "$ol_with_perl_module" != static ; then
23165 cat >> confdefs.h <<\EOF
23166 #define SLAPD_PERL_DYNAMIC 1
23170 BUILD_PERL_DYNAMIC=shared
23171 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23173 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23177 if test "$ol_enable_shell" != no ; then
23178 if test "$ol_link_thread" != no ; then
23179 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23181 cat >> confdefs.h <<\EOF
23182 #define SLAPD_SHELL 1
23187 if test "$ol_with_shell_module" != static ; then
23188 cat >> confdefs.h <<\EOF
23189 #define SLAPD_SHELL_DYNAMIC 1
23193 BUILD_SHELL_DYNAMIC=shared
23194 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23196 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23200 if test "$ol_link_sql" != no ; then
23201 cat >> confdefs.h <<\EOF
23202 #define SLAPD_SQL 1
23207 if test "$ol_with_sql_module" != static; then
23208 cat >> confdefs.h <<\EOF
23209 #define SLAPD_SQL_DYNAMIC 1
23213 BUILD_SQL_DYNAMIC=shared
23214 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23216 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23220 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23221 $BUILD_SLAPD = yes ; then
23225 if test "$ol_enable_rewrite" != no ; then
23226 cat >> confdefs.h <<\EOF
23227 #define ENABLE_REWRITE 1
23235 if test "$ac_cv_mingw32" = yes ; then
23237 SLAPD_MODULES_LDFLAGS=
23242 if test -z "$SLAPD_STATIC_BACKENDS"; then
23243 SLAPD_NO_STATIC='#'
23312 # Check whether --with-xxinstall or --without-xxinstall was given.
23313 if test "${with_xxinstall+set}" = set; then
23314 withval="$with_xxinstall"
23322 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23325 # Let make expand exec_prefix.
23326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23328 # Any assignment to VPATH causes Sun make to only execute
23329 # the first set of double-colon rules, so remove it if not needed.
23330 # If there is a colon in the path, we need to keep it.
23331 if test "x$srcdir" = x.; then
23332 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23335 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23337 DEFS=-DHAVE_CONFIG_H
23339 # Without the "./", some shells look in PATH for config.status.
23340 : ${CONFIG_STATUS=./config.status}
23342 echo creating $CONFIG_STATUS
23343 rm -f $CONFIG_STATUS
23344 cat > $CONFIG_STATUS <<EOF
23346 # Generated automatically by configure.
23347 # Run this file to recreate the current configuration.
23348 # This directory was configured as follows,
23349 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23351 # $0 $ac_configure_args
23353 # Compiler output produced by configure, useful for debugging
23354 # configure, is in ./config.log if it exists.
23356 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23359 case "\$ac_option" in
23360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23361 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23362 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23363 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23364 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23366 -help | --help | --hel | --he | --h)
23367 echo "\$ac_cs_usage"; exit 0 ;;
23368 *) echo "\$ac_cs_usage"; exit 1 ;;
23372 ac_given_srcdir=$srcdir
23373 ac_given_INSTALL="$INSTALL"
23375 trap 'rm -fr `echo "\
23376 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23377 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23378 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23379 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23380 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23381 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23382 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23383 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23384 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23385 include/Makefile:build/top.mk:include/Makefile.in \
23386 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23387 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23388 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23389 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23390 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23391 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23392 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23393 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23394 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23395 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23396 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23397 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23398 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23399 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23400 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23401 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23402 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23403 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23404 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23405 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23406 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23407 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23408 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23409 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23410 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23411 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23412 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23413 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23414 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23416 cat >> $CONFIG_STATUS <<EOF
23418 # Protect against being on the right side of a sed subst in config.status.
23419 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23420 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23424 s%@CFLAGS@%$CFLAGS%g
23425 s%@CPPFLAGS@%$CPPFLAGS%g
23426 s%@CXXFLAGS@%$CXXFLAGS%g
23427 s%@FFLAGS@%$FFLAGS%g
23429 s%@LDFLAGS@%$LDFLAGS%g
23431 s%@exec_prefix@%$exec_prefix%g
23432 s%@prefix@%$prefix%g
23433 s%@program_transform_name@%$program_transform_name%g
23434 s%@bindir@%$bindir%g
23435 s%@sbindir@%$sbindir%g
23436 s%@libexecdir@%$libexecdir%g
23437 s%@datadir@%$datadir%g
23438 s%@sysconfdir@%$sysconfdir%g
23439 s%@sharedstatedir@%$sharedstatedir%g
23440 s%@localstatedir@%$localstatedir%g
23441 s%@libdir@%$libdir%g
23442 s%@includedir@%$includedir%g
23443 s%@oldincludedir@%$oldincludedir%g
23444 s%@infodir@%$infodir%g
23445 s%@mandir@%$mandir%g
23447 s%@host_alias@%$host_alias%g
23448 s%@host_cpu@%$host_cpu%g
23449 s%@host_vendor@%$host_vendor%g
23450 s%@host_os@%$host_os%g
23451 s%@target@%$target%g
23452 s%@target_alias@%$target_alias%g
23453 s%@target_cpu@%$target_cpu%g
23454 s%@target_vendor@%$target_vendor%g
23455 s%@target_os@%$target_os%g
23457 s%@build_alias@%$build_alias%g
23458 s%@build_cpu@%$build_cpu%g
23459 s%@build_vendor@%$build_vendor%g
23460 s%@build_os@%$build_os%g
23461 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23462 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23463 s%@INSTALL_DATA@%$INSTALL_DATA%g
23464 s%@PACKAGE@%$PACKAGE%g
23465 s%@VERSION@%$VERSION%g
23466 s%@ACLOCAL@%$ACLOCAL%g
23467 s%@AUTOCONF@%$AUTOCONF%g
23468 s%@AUTOMAKE@%$AUTOMAKE%g
23469 s%@AUTOHEADER@%$AUTOHEADER%g
23470 s%@MAKEINFO@%$MAKEINFO%g
23471 s%@install_sh@%$install_sh%g
23474 s%@AMTARFLAGS@%$AMTARFLAGS%g
23475 s%@SET_MAKE@%$SET_MAKE%g
23476 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23477 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23478 s%@top_builddir@%$top_builddir%g
23479 s%@ldap_subdir@%$ldap_subdir%g
23483 s%@OBJEXT@%$OBJEXT%g
23484 s%@EXEEXT@%$EXEEXT%g
23486 s%@RANLIB@%$RANLIB%g
23488 s%@DLLTOOL@%$DLLTOOL%g
23490 s%@OBJDUMP@%$OBJDUMP%g
23492 s%@LIBTOOL@%$LIBTOOL%g
23494 s%@PERLBIN@%$PERLBIN%g
23495 s%@OL_MKDEP@%$OL_MKDEP%g
23496 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23497 s%@LTSTATIC@%$LTSTATIC%g
23498 s%@LIBOBJS@%$LIBOBJS%g
23499 s%@LIBSRCS@%$LIBSRCS%g
23501 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23502 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23503 s%@BUILD_BDB@%$BUILD_BDB%g
23504 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23505 s%@BUILD_LDAP@%$BUILD_LDAP%g
23506 s%@BUILD_LDBM@%$BUILD_LDBM%g
23507 s%@BUILD_META@%$BUILD_META%g
23508 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23509 s%@BUILD_NULL@%$BUILD_NULL%g
23510 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23511 s%@BUILD_PERL@%$BUILD_PERL%g
23512 s%@BUILD_SHELL@%$BUILD_SHELL%g
23513 s%@BUILD_SQL@%$BUILD_SQL%g
23514 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23515 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23516 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23517 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23518 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23519 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23520 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23521 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23522 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23523 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23524 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23525 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23526 s%@LDAP_LIBS@%$LDAP_LIBS%g
23527 s%@LDIF_LIBS@%$LDIF_LIBS%g
23528 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23529 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23530 s%@LDBM_LIBS@%$LDBM_LIBS%g
23531 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23532 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23533 s%@WRAP_LIBS@%$WRAP_LIBS%g
23534 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23535 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23536 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23537 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23538 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23539 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23540 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23541 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23542 s%@KRB4_LIBS@%$KRB4_LIBS%g
23543 s%@KRB5_LIBS@%$KRB5_LIBS%g
23544 s%@READLINE_LIBS@%$READLINE_LIBS%g
23545 s%@SASL_LIBS@%$SASL_LIBS%g
23546 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23547 s%@TLS_LIBS@%$TLS_LIBS%g
23548 s%@MODULES_LIBS@%$MODULES_LIBS%g
23549 s%@AUTH_LIBS@%$AUTH_LIBS%g
23550 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23551 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23552 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23553 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23558 cat >> $CONFIG_STATUS <<\EOF
23560 # Split the substitutions into bite-sized pieces for seds with
23561 # small command number limits, like on Digital OSF/1 and HP-UX.
23562 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23563 ac_file=1 # Number of current file.
23564 ac_beg=1 # First line for current file.
23565 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23568 while $ac_more_lines; do
23569 if test $ac_beg -gt 1; then
23570 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23572 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23574 if test ! -s conftest.s$ac_file; then
23575 ac_more_lines=false
23576 rm -f conftest.s$ac_file
23578 if test -z "$ac_sed_cmds"; then
23579 ac_sed_cmds="sed -f conftest.s$ac_file"
23581 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23583 ac_file=`expr $ac_file + 1`
23585 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23588 if test -z "$ac_sed_cmds"; then
23593 cat >> $CONFIG_STATUS <<EOF
23595 CONFIG_FILES=\${CONFIG_FILES-"\
23596 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23597 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23598 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23599 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23600 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23601 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23602 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23603 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23604 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23605 include/Makefile:build/top.mk:include/Makefile.in \
23606 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23607 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23608 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23609 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23610 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23611 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23612 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23613 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23614 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23615 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23616 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23617 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23618 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23619 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23620 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23621 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23622 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23623 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23624 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23625 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23626 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23627 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23628 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23629 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23630 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23631 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23632 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23633 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23636 cat >> $CONFIG_STATUS <<\EOF
23637 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23638 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23640 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23641 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23642 *) ac_file_in="${ac_file}.in" ;;
23645 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23647 # Remove last slash and all that follows it. Not all systems have dirname.
23648 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23649 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23650 # The file is in a subdirectory.
23651 test ! -d "$ac_dir" && mkdir "$ac_dir"
23652 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23653 # A "../" for each directory in $ac_dir_suffix.
23654 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23656 ac_dir_suffix= ac_dots=
23659 case "$ac_given_srcdir" in
23661 if test -z "$ac_dots"; then top_srcdir=.
23662 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23663 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23664 *) # Relative path.
23665 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23666 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23669 case "$ac_given_INSTALL" in
23670 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23671 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23674 echo creating "$ac_file"
23676 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23678 *[Mm]akefile*) ac_comsub="1i\\
23679 # $configure_input" ;;
23683 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23685 s%@configure_input@%$configure_input%g
23686 s%@srcdir@%$srcdir%g
23687 s%@top_srcdir@%$top_srcdir%g
23688 s%@INSTALL@%$INSTALL%g
23689 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23693 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23694 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23696 # ac_d sets the value in "#define NAME VALUE" lines.
23697 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23698 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23701 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23702 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23703 ac_uB='\([ ]\)%\1#\2define\3'
23706 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23707 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23708 ac_eB='$%\1#\2define\3'
23712 if test "${CONFIG_HEADERS+set}" != set; then
23714 cat >> $CONFIG_STATUS <<EOF
23715 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23717 cat >> $CONFIG_STATUS <<\EOF
23719 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23720 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23722 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23723 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23724 *) ac_file_in="${ac_file}.in" ;;
23727 echo creating $ac_file
23729 rm -f conftest.frag conftest.in conftest.out
23730 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23731 cat $ac_file_inputs > conftest.in
23735 # Transform confdefs.h into a sed script conftest.vals that substitutes
23736 # the proper values into config.h.in to produce config.h. And first:
23737 # Protect against being on the right side of a sed subst in config.status.
23738 # Protect against being in an unquoted here document in config.status.
23739 rm -f conftest.vals
23740 cat > conftest.hdr <<\EOF
23743 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23747 sed -n -f conftest.hdr confdefs.h > conftest.vals
23750 # This sed command replaces #undef with comments. This is necessary, for
23751 # example, in the case of _POSIX_SOURCE, which is predefined and required
23752 # on some systems where configure will not decide to define it.
23753 cat >> conftest.vals <<\EOF
23754 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23757 # Break up conftest.vals because some shells have a limit on
23758 # the size of here documents, and old seds have small limits too.
23760 rm -f conftest.tail
23763 ac_lines=`grep -c . conftest.vals`
23764 # grep -c gives empty output for an empty file on some AIX systems.
23765 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23766 # Write a limited-size here document to conftest.frag.
23767 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23768 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23770 sed -f conftest.frag conftest.in > conftest.out
23772 mv conftest.out conftest.in
23773 ' >> $CONFIG_STATUS
23774 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23775 rm -f conftest.vals
23776 mv conftest.tail conftest.vals
23778 rm -f conftest.vals
23780 cat >> $CONFIG_STATUS <<\EOF
23781 rm -f conftest.frag conftest.h
23782 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23783 cat conftest.in >> conftest.h
23785 if cmp -s $ac_file conftest.h 2>/dev/null; then
23786 echo "$ac_file is unchanged"
23789 # Remove last slash and all that follows it. Not all systems have dirname.
23790 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23791 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23792 # The file is in a subdirectory.
23793 test ! -d "$ac_dir" && mkdir "$ac_dir"
23796 mv conftest.h $ac_file
23801 cat >> $CONFIG_STATUS <<EOF
23804 cat >> $CONFIG_STATUS <<\EOF
23807 echo Please run \"make depend\" to build dependencies
23811 chmod +x $CONFIG_STATUS
23812 rm -fr confdefs* $ac_clean_files
23813 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1