3 # from OpenLDAP: pkg/ldap/configure.in,v 1.270 1999/11/01 02:40:57 kdz Exp
5 # Copyright 1998,1999 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-cldap enable connectionless ldap (no)"
44 --enable-x-compile enable cross compiling (no)"
46 --enable-dmalloc enable debug malloc support (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with Kerberos support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads use threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 LDAPD (X.500-to-LDAP Gateway) Options:"
64 --enable-ldapd enable building ldapd (no)"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd (yes)"
70 --enable-cleartext enable cleartext passwords (yes)"
72 --enable-crypt enable crypt(3) passwords (auto)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-quipu build quipu migration tools (no)"
82 --enable-rlookups enable reverse lookups (auto)"
84 --enable-aci enable per-object ACIs (no)"
86 --enable-discreteaci enable discrete rights in ACIs (no)"
88 --enable-wrappers enable tcp wrapper support (no)"
90 --enable-dynamic enable linking built binaries with dynamic libs (no)"
92 --enable-bdb2 enable bdb2 backend (no)"
94 --with-bdb2-module module type (static)"
96 --enable-ldap enable ldap backend (no)"
98 --with-ldap-module module type (static)"
100 --enable-ldbm enable ldbm backend (yes)"
102 --with-ldbm-api use LDBM API (auto)"
104 --with-ldbm-module module type (static)"
106 --with-ldbm-type use LDBM type (auto)"
108 --enable-passwd enable passwd backend (no)"
110 --with-passwd-module module type (static)"
112 --enable-perl enable perl backend (no)"
114 --with-perl-module module type (static)"
116 --enable-shell enable shell backend (no)"
118 --with-shell-module module type (static)"
120 --enable-tcl enable tcl backend (no)"
122 --with-tcl-module module type (static)"
124 SLURPD (Replication Daemon) Options:"
126 --enable-slurpd enable building slurpd (auto)"
128 Library Generation & Linking Options"
130 --enable-static[=PKGS] build static libraries [default=yes]"
132 --enable-shared[=PKGS] build shared libraries [default=yes]"
134 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
136 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
138 --disable-libtool-lock avoid locking (might break parallel builds)"
140 # Initialize some variables set by options.
141 # The variables have the same names as the options, with
142 # dashes changed to underlines.
144 cache_file=./config.cache
153 program_transform_name=s,x,x,
161 bindir='${exec_prefix}/bin'
162 sbindir='${exec_prefix}/sbin'
163 libexecdir='${exec_prefix}/libexec'
164 datadir='${prefix}/share'
165 sysconfdir='${prefix}/etc'
166 sharedstatedir='${prefix}/com'
167 localstatedir='${prefix}/var'
168 libdir='${exec_prefix}/lib'
169 includedir='${prefix}/include'
170 oldincludedir='/usr/include'
171 infodir='${prefix}/info'
172 mandir='${prefix}/man'
174 # Initialize some other variables.
177 SHELL=${CONFIG_SHELL-/bin/sh}
178 # Maximum number of lines to put in a shell here document.
185 # If the previous option needs an argument, assign it.
186 if test -n "$ac_prev"; then
187 eval "$ac_prev=\$ac_option"
193 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
197 # Accept the important Cygnus configure options, so we can diagnose typos.
201 -bindir | --bindir | --bindi | --bind | --bin | --bi)
203 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
204 bindir="$ac_optarg" ;;
206 -build | --build | --buil | --bui | --bu)
208 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
209 build="$ac_optarg" ;;
211 -cache-file | --cache-file | --cache-fil | --cache-fi \
212 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
213 ac_prev=cache_file ;;
214 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
215 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
216 cache_file="$ac_optarg" ;;
218 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
220 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
222 datadir="$ac_optarg" ;;
224 -disable-* | --disable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
231 eval "enable_${ac_feature}=no" ;;
233 -enable-* | --enable-*)
234 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
239 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
244 eval "enable_${ac_feature}='$ac_optarg'" ;;
246 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
247 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
248 | --exec | --exe | --ex)
249 ac_prev=exec_prefix ;;
250 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
251 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
252 | --exec=* | --exe=* | --ex=*)
253 exec_prefix="$ac_optarg" ;;
255 -gas | --gas | --ga | --g)
256 # Obsolete; use --with-gas.
259 -help | --help | --hel | --he)
260 # Omit some internal or obsolete options to make the list less imposing.
261 # This message is too long to be a string in the A/UX 3.1 sh.
263 Usage: configure [options] [host]
264 Options: [defaults in brackets after descriptions]
266 --cache-file=FILE cache test results in FILE
267 --help print this message
268 --no-create do not create output files
269 --quiet, --silent do not print \`checking...' messages
270 --version print the version of autoconf that created configure
271 Directory and file names:
272 --prefix=PREFIX install architecture-independent files in PREFIX
274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
276 --bindir=DIR user executables in DIR [EPREFIX/bin]
277 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
278 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
279 --datadir=DIR read-only architecture-independent data in DIR
281 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
282 --sharedstatedir=DIR modifiable architecture-independent data in DIR
284 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
285 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
286 --includedir=DIR C header files in DIR [PREFIX/include]
287 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
288 --infodir=DIR info documentation in DIR [PREFIX/info]
289 --mandir=DIR man documentation in DIR [PREFIX/man]
290 --srcdir=DIR find the sources in DIR [configure dir or ..]
291 --program-prefix=PREFIX prepend PREFIX to installed program names
292 --program-suffix=SUFFIX append SUFFIX to installed program names
293 --program-transform-name=PROGRAM
294 run sed PROGRAM on installed program names
298 --build=BUILD configure for building on BUILD [BUILD=HOST]
299 --host=HOST configure for HOST [guessed]
300 --target=TARGET configure for TARGET [TARGET=HOST]
301 Features and packages:
302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
306 --x-includes=DIR X include files are in DIR
307 --x-libraries=DIR X library files are in DIR
309 if test -n "$ac_help"; then
310 echo "--enable and --with options recognized:$ac_help"
314 -host | --host | --hos | --ho)
316 -host=* | --host=* | --hos=* | --ho=*)
319 -includedir | --includedir | --includedi | --included | --include \
320 | --includ | --inclu | --incl | --inc)
321 ac_prev=includedir ;;
322 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
323 | --includ=* | --inclu=* | --incl=* | --inc=*)
324 includedir="$ac_optarg" ;;
326 -infodir | --infodir | --infodi | --infod | --info | --inf)
328 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
329 infodir="$ac_optarg" ;;
331 -libdir | --libdir | --libdi | --libd)
333 -libdir=* | --libdir=* | --libdi=* | --libd=*)
334 libdir="$ac_optarg" ;;
336 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
337 | --libexe | --libex | --libe)
338 ac_prev=libexecdir ;;
339 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
340 | --libexe=* | --libex=* | --libe=*)
341 libexecdir="$ac_optarg" ;;
343 -localstatedir | --localstatedir | --localstatedi | --localstated \
344 | --localstate | --localstat | --localsta | --localst \
345 | --locals | --local | --loca | --loc | --lo)
346 ac_prev=localstatedir ;;
347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
348 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
349 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
350 localstatedir="$ac_optarg" ;;
352 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
354 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
355 mandir="$ac_optarg" ;;
358 # Obsolete; use --without-fp.
361 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
365 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
366 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
370 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
371 | --oldin | --oldi | --old | --ol | --o)
372 ac_prev=oldincludedir ;;
373 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
374 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
375 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
376 oldincludedir="$ac_optarg" ;;
378 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
380 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
381 prefix="$ac_optarg" ;;
383 -program-prefix | --program-prefix | --program-prefi | --program-pref \
384 | --program-pre | --program-pr | --program-p)
385 ac_prev=program_prefix ;;
386 -program-prefix=* | --program-prefix=* | --program-prefi=* \
387 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
388 program_prefix="$ac_optarg" ;;
390 -program-suffix | --program-suffix | --program-suffi | --program-suff \
391 | --program-suf | --program-su | --program-s)
392 ac_prev=program_suffix ;;
393 -program-suffix=* | --program-suffix=* | --program-suffi=* \
394 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
395 program_suffix="$ac_optarg" ;;
397 -program-transform-name | --program-transform-name \
398 | --program-transform-nam | --program-transform-na \
399 | --program-transform-n | --program-transform- \
400 | --program-transform | --program-transfor \
401 | --program-transfo | --program-transf \
402 | --program-trans | --program-tran \
403 | --progr-tra | --program-tr | --program-t)
404 ac_prev=program_transform_name ;;
405 -program-transform-name=* | --program-transform-name=* \
406 | --program-transform-nam=* | --program-transform-na=* \
407 | --program-transform-n=* | --program-transform-=* \
408 | --program-transform=* | --program-transfor=* \
409 | --program-transfo=* | --program-transf=* \
410 | --program-trans=* | --program-tran=* \
411 | --progr-tra=* | --program-tr=* | --program-t=*)
412 program_transform_name="$ac_optarg" ;;
414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
415 | -silent | --silent | --silen | --sile | --sil)
418 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
420 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
422 sbindir="$ac_optarg" ;;
424 -sharedstatedir | --sharedstatedir | --sharedstatedi \
425 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
426 | --sharedst | --shareds | --shared | --share | --shar \
428 ac_prev=sharedstatedir ;;
429 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
430 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
431 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
433 sharedstatedir="$ac_optarg" ;;
435 -site | --site | --sit)
437 -site=* | --site=* | --sit=*)
440 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
442 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
443 srcdir="$ac_optarg" ;;
445 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
446 | --syscon | --sysco | --sysc | --sys | --sy)
447 ac_prev=sysconfdir ;;
448 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
449 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
450 sysconfdir="$ac_optarg" ;;
452 -target | --target | --targe | --targ | --tar | --ta | --t)
454 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
455 target="$ac_optarg" ;;
457 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 -version | --version | --versio | --versi | --vers)
461 echo "configure generated by autoconf version 2.13.1"
465 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
466 # Reject names that are not valid shell variable names.
467 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
468 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
470 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}='$ac_optarg'" ;;
477 -without-* | --without-*)
478 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
479 # Reject names that are not valid shell variable names.
480 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
481 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
483 ac_package=`echo $ac_package| sed 's/-/_/g'`
484 eval "with_${ac_package}=no" ;;
487 # Obsolete; use --with-x.
490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
491 | --x-incl | --x-inc | --x-in | --x-i)
492 ac_prev=x_includes ;;
493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
495 x_includes="$ac_optarg" ;;
497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
499 ac_prev=x_libraries ;;
500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
502 x_libraries="$ac_optarg" ;;
504 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
508 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
509 echo "configure: warning: $ac_option: invalid host type" 1>&2
511 if test "x$nonopt" != xNONE; then
512 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
520 if test -n "$ac_prev"; then
521 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
526 # File descriptor usage:
529 # 2 errors and warnings
530 # 3 some systems may open it to /dev/tty
531 # 4 used on the Kubota Titan
532 # 6 checking for... messages and results
533 # 5 compiler messages saved in config.log
534 if test "$silent" = yes; then
542 This file contains any messages produced by compilers while
543 running configure, to aid debugging if configure makes a mistake.
546 # Strip out --no-create and --no-recursion so they do not pile up.
547 # Also quote any args containing shell metacharacters.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 | --no-cr | --no-c) ;;
554 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
555 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
556 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
557 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
558 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
563 # Only set these to C if already set. These must not be set unconditionally
564 # because not all systems understand e.g. LANG=C (notably SCO).
565 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
566 # Non-C LC_CTYPE values break the ctype check.
567 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
568 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
569 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
570 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
572 # confdefs.h avoids OS command line length limits that DEFS can exceed.
573 rm -rf conftest* confdefs.h
574 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
577 # A filename unique to this package, relative to the directory that
578 # configure is in, which we can look for to find out if srcdir is correct.
579 ac_unique_file=build/version
581 # Find the source files, if location was not specified.
582 if test -z "$srcdir"; then
583 ac_srcdir_defaulted=yes
584 # Try the directory containing this script, then its parent.
586 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
587 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
589 if test ! -r $srcdir/$ac_unique_file; then
593 ac_srcdir_defaulted=no
595 if test ! -r $srcdir/$ac_unique_file; then
596 if test "$ac_srcdir_defaulted" = yes; then
597 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
599 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
604 # Prefer explicitly selected file to automatically selected ones.
605 if test -z "$CONFIG_SITE"; then
606 if test "x$prefix" != xNONE; then
607 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
609 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 for ac_site_file in $CONFIG_SITE; do
613 if test -r "$ac_site_file"; then
614 echo "loading site script $ac_site_file"
621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
622 ac_cpp='$CPP $CPPFLAGS'
623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
625 cross_compiling=$ac_cv_prog_cc_cross
629 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
630 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
631 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
638 ac_n= ac_c='\c' ac_t=
642 for ac_dir in build $srcdir/build; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
653 if test -z "$ac_aux_dir"; then
654 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
656 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
657 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
658 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
660 OL_VERSION=`cat $ac_aux_dir/version`
661 if test -z "$OL_VERSION"; then
662 { echo "configure: error: could not determine version" 1>&2; exit 1; }
665 echo "Configuring OpenLDAP $OL_VERSION ..."
668 echo $ac_n "checking host system type""... $ac_c" 1>&6
669 echo "configure:670: checking host system type" >&5
670 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
672 # Make sure we can run config.sub.
673 if $ac_config_sub sun4 >/dev/null 2>&1; then :
674 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
677 ac_cv_host_alias=$host
678 case "$ac_cv_host_alias" in
682 if ac_cv_host_alias=`$ac_config_guess`; then :
683 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
685 *) ac_cv_host_alias=$nonopt ;;
689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
690 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo $ac_n "(cached) $ac_c" 1>&6
697 echo "$ac_t""$ac_cv_host" 1>&6
700 host_alias=$ac_cv_host_alias
701 host_cpu=$ac_cv_host_cpu
702 host_vendor=$ac_cv_host_vendor
703 host_os=$ac_cv_host_os
709 echo $ac_n "checking target system type""... $ac_c" 1>&6
710 echo "configure:711: checking target system type" >&5
711 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
713 # Make sure we can run config.sub.
714 if $ac_config_sub sun4 >/dev/null 2>&1; then :
715 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
718 ac_cv_target_alias=$target
719 case "$ac_cv_target_alias" in
723 ac_cv_target_alias=$host_alias ;;
725 *) ac_cv_target_alias=$nonopt ;;
729 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
730 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
731 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
732 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo $ac_n "(cached) $ac_c" 1>&6
737 echo "$ac_t""$ac_cv_target" 1>&6
740 target_alias=$ac_cv_target_alias
741 target_cpu=$ac_cv_target_cpu
742 target_vendor=$ac_cv_target_vendor
743 target_os=$ac_cv_target_os
749 echo $ac_n "checking build system type""... $ac_c" 1>&6
750 echo "configure:751: checking build system type" >&5
751 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
753 # Make sure we can run config.sub.
754 if $ac_config_sub sun4 >/dev/null 2>&1; then :
755 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
758 ac_cv_build_alias=$build
759 case "$ac_cv_build_alias" in
763 ac_cv_build_alias=$host_alias ;;
765 *) ac_cv_build_alias=$nonopt ;;
769 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
770 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
771 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
772 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
774 echo $ac_n "(cached) $ac_c" 1>&6
777 echo "$ac_t""$ac_cv_build" 1>&6
780 build_alias=$ac_cv_build_alias
781 build_cpu=$ac_cv_build_cpu
782 build_vendor=$ac_cv_build_vendor
783 build_os=$ac_cv_build_os
789 # Do some error checking and defaulting for the host and target type.
791 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
794 # 1. You are not allowed to specify --host, --target, and nonopt at the
796 # 2. Host defaults to nonopt.
797 # 3. If nonopt is not specified, then host defaults to the current host,
798 # as determined by config.guess.
799 # 4. Target and build default to nonopt.
800 # 5. If nonopt is not specified, then target and build default to host.
802 # The aliases save the names the user supplied, while $host etc.
803 # will get canonicalized.
804 case $host---$target---$nonopt in
805 NONE---*---* | *---NONE---* | *---*---NONE) ;;
806 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
809 test "$host_alias" != "$target_alias" &&
810 test "$program_prefix$program_suffix$program_transform_name" = \
812 program_prefix=${target_alias}-
815 # Find a good install program. We prefer a C program (faster),
816 # so one script is as good as another. But avoid the broken or
817 # incompatible versions:
818 # SysV /etc/install, /usr/sbin/install
819 # SunOS /usr/etc/install
822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
825 # ./install, which can be erroneously created by make from ./install.sh.
826 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
827 echo "configure:828: checking for a BSD compatible install" >&5
828 if test -z "$INSTALL"; then
829 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
833 for ac_dir in $PATH; do
834 # Account for people who put trailing slashes in PATH elements.
836 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
838 # OSF1 and SCO ODT 3.0 have their own names for install.
839 # Don't use installbsd from OSF since it installs stuff as root
841 for ac_prog in ginstall scoinst install; do
842 if test -f $ac_dir/$ac_prog; then
843 if test $ac_prog = install &&
844 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
845 # AIX install. It has an incompatible calling convention.
847 elif test $ac_prog = install &&
848 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
849 # program-specific install script used by HP pwplus--don't use.
852 ac_cv_path_install="$ac_dir/$ac_prog -c"
863 if test "${ac_cv_path_install+set}" = set; then
864 INSTALL="$ac_cv_path_install"
866 # As a last resort, use the slow shell script. We don't cache a
867 # path for INSTALL within a source directory, because that will
868 # break other packages using the cache if that directory is
869 # removed, or if the path is relative.
870 INSTALL="$ac_install_sh"
873 echo "$ac_t""$INSTALL" 1>&6
875 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
876 # It thinks the first close brace ends the variable substitution.
877 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
879 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
881 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
883 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
884 echo "configure:885: checking whether build environment is sane" >&5
887 echo timestamp > conftestfile
888 # Do `set' in a subshell so we don't clobber the current shell's
889 # arguments. Must try -L first in case configure is actually a
890 # symlink; some systems play weird games with the mod time of symlinks
891 # (eg FreeBSD returns the mod time of the symlink's containing
894 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
895 if test "$*" = "X"; then
897 set X `ls -t $srcdir/configure conftestfile`
899 if test "$*" != "X $srcdir/configure conftestfile" \
900 && test "$*" != "X conftestfile $srcdir/configure"; then
902 # If neither matched, then we have a broken ls. This can happen
903 # if, for instance, CONFIG_SHELL is bash and it inherits a
904 # broken ls alias from the environment. This has actually
905 # happened. Such a system could not be considered "sane".
906 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
907 alias in your environment" 1>&2; exit 1; }
910 test "$2" = conftestfile
916 { echo "configure: error: newly created file is older than distributed files!
917 Check your system clock" 1>&2; exit 1; }
920 echo "$ac_t""yes" 1>&6
921 if test "$program_transform_name" = s,x,x,; then
922 program_transform_name=
924 # Double any \ or $. echo might interpret backslashes.
925 cat <<\EOF_SED > conftestsed
926 s,\\,\\\\,g; s,\$,$$,g
928 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
931 test "$program_prefix" != NONE &&
932 program_transform_name="s,^,${program_prefix},;$program_transform_name"
933 # Use a double $ so make ignores it.
934 test "$program_suffix" != NONE &&
935 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
937 # sed with no file args requires a program.
938 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
940 for ac_prog in mawk gawk nawk awk
942 # Extract the first word of "$ac_prog", so it can be a program name with args.
943 set dummy $ac_prog; ac_word=$2
944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
945 echo "configure:946: checking for $ac_word" >&5
946 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
949 if test -n "$AWK"; then
950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
954 for ac_dir in $ac_dummy; do
955 test -z "$ac_dir" && ac_dir=.
956 if test -f $ac_dir/$ac_word; then
957 ac_cv_prog_AWK="$ac_prog"
964 AWK="$ac_cv_prog_AWK"
965 if test -n "$AWK"; then
966 echo "$ac_t""$AWK" 1>&6
968 echo "$ac_t""no" 1>&6
971 test -n "$AWK" && break
974 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
975 echo "configure:976: checking whether ${MAKE-make} sets \${MAKE}" >&5
976 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
977 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftestmake <<\EOF
982 @echo 'ac_maketemp="${MAKE}"'
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
986 if test -n "$ac_maketemp"; then
987 eval ac_cv_prog_make_${ac_make}_set=yes
989 eval ac_cv_prog_make_${ac_make}_set=no
993 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
994 echo "$ac_t""yes" 1>&6
997 echo "$ac_t""no" 1>&6
998 SET_MAKE="MAKE=${MAKE-make}"
1007 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1008 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1013 missing_dir=`cd $ac_aux_dir && pwd`
1014 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1015 echo "configure:1016: checking for working aclocal" >&5
1016 # Run test in a subshell; some versions of sh will print an error if
1017 # an executable is not found, even if stderr is redirected.
1018 # Redirect stdin to placate older versions of autoconf. Sigh.
1019 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1021 echo "$ac_t""found" 1>&6
1023 ACLOCAL="$missing_dir/missing aclocal"
1024 echo "$ac_t""missing" 1>&6
1027 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1028 echo "configure:1029: checking for working autoconf" >&5
1029 # Run test in a subshell; some versions of sh will print an error if
1030 # an executable is not found, even if stderr is redirected.
1031 # Redirect stdin to placate older versions of autoconf. Sigh.
1032 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1034 echo "$ac_t""found" 1>&6
1036 AUTOCONF="$missing_dir/missing autoconf"
1037 echo "$ac_t""missing" 1>&6
1040 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1041 echo "configure:1042: checking for working automake" >&5
1042 # Run test in a subshell; some versions of sh will print an error if
1043 # an executable is not found, even if stderr is redirected.
1044 # Redirect stdin to placate older versions of autoconf. Sigh.
1045 if (automake --version) < /dev/null > /dev/null 2>&1; then
1047 echo "$ac_t""found" 1>&6
1049 AUTOMAKE="$missing_dir/missing automake"
1050 echo "$ac_t""missing" 1>&6
1053 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1054 echo "configure:1055: checking for working autoheader" >&5
1055 # Run test in a subshell; some versions of sh will print an error if
1056 # an executable is not found, even if stderr is redirected.
1057 # Redirect stdin to placate older versions of autoconf. Sigh.
1058 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1059 AUTOHEADER=autoheader
1060 echo "$ac_t""found" 1>&6
1062 AUTOHEADER="$missing_dir/missing autoheader"
1063 echo "$ac_t""missing" 1>&6
1066 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1067 echo "configure:1068: checking for working makeinfo" >&5
1068 # Run test in a subshell; some versions of sh will print an error if
1069 # an executable is not found, even if stderr is redirected.
1070 # Redirect stdin to placate older versions of autoconf. Sigh.
1071 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1073 echo "$ac_t""found" 1>&6
1075 MAKEINFO="$missing_dir/missing makeinfo"
1076 echo "$ac_t""missing" 1>&6
1079 install_sh="$missing_dir/install-sh"
1080 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1082 for ac_prog in gnutar gtar tar
1084 # Extract the first word of "$ac_prog", so it can be a program name with args.
1085 set dummy $ac_prog; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 if test -n "$AMTAR"; then
1092 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1096 for ac_dir in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_AMTAR="$ac_prog"
1106 AMTAR="$ac_cv_prog_AMTAR"
1107 if test -n "$AMTAR"; then
1108 echo "$ac_t""$AMTAR" 1>&6
1110 echo "$ac_t""no" 1>&6
1113 test -n "$AMTAR" && break
1118 if test -n "$AMTAR"; then
1119 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1126 cat >> confdefs.h <<EOF
1127 #define OPENLDAP_PACKAGE "$PACKAGE"
1130 cat >> confdefs.h <<EOF
1131 #define OPENLDAP_VERSION "$VERSION"
1137 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1138 echo "configure:1139: checking configure arguments" >&5
1143 ldap_subdir="/openldap"
1145 # Check whether --with-subdir or --without-subdir was given.
1146 if test "${with_subdir+set}" = set; then
1147 withval="$with_subdir"
1154 ldap_subdir="$withval"
1157 ldap_subdir="/$withval"
1164 # OpenLDAP --enable-debug
1165 # Check whether --enable-debug or --disable-debug was given.
1166 if test "${enable_debug+set}" = set; then
1167 enableval="$enable_debug"
1170 for ol_val in auto yes no ; do
1171 if test "$enableval" = "$ol_val" ; then
1175 if test "$ol_arg" = "invalid" ; then
1176 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1178 ol_enable_debug="$ol_arg"
1181 ol_enable_debug="yes"
1183 # end --enable-debug
1184 # OpenLDAP --enable-syslog
1185 # Check whether --enable-syslog or --disable-syslog was given.
1186 if test "${enable_syslog+set}" = set; then
1187 enableval="$enable_syslog"
1190 for ol_val in auto yes no ; do
1191 if test "$enableval" = "$ol_val" ; then
1195 if test "$ol_arg" = "invalid" ; then
1196 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1198 ol_enable_syslog="$ol_arg"
1201 ol_enable_syslog="auto"
1203 # end --enable-syslog
1204 # OpenLDAP --enable-proctitle
1205 # Check whether --enable-proctitle or --disable-proctitle was given.
1206 if test "${enable_proctitle+set}" = set; then
1207 enableval="$enable_proctitle"
1210 for ol_val in auto yes no ; do
1211 if test "$enableval" = "$ol_val" ; then
1215 if test "$ol_arg" = "invalid" ; then
1216 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1218 ol_enable_proctitle="$ol_arg"
1221 ol_enable_proctitle="yes"
1223 # end --enable-proctitle
1224 # OpenLDAP --enable-cache
1225 # Check whether --enable-cache or --disable-cache was given.
1226 if test "${enable_cache+set}" = set; then
1227 enableval="$enable_cache"
1230 for ol_val in auto yes no ; do
1231 if test "$enableval" = "$ol_val" ; then
1235 if test "$ol_arg" = "invalid" ; then
1236 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1238 ol_enable_cache="$ol_arg"
1241 ol_enable_cache="yes"
1243 # end --enable-cache
1244 # OpenLDAP --enable-dns
1245 # Check whether --enable-dns or --disable-dns was given.
1246 if test "${enable_dns+set}" = set; then
1247 enableval="$enable_dns"
1250 for ol_val in auto yes no ; do
1251 if test "$enableval" = "$ol_val" ; then
1255 if test "$ol_arg" = "invalid" ; then
1256 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1258 ol_enable_dns="$ol_arg"
1264 # OpenLDAP --enable-referrals
1265 # Check whether --enable-referrals or --disable-referrals was given.
1266 if test "${enable_referrals+set}" = set; then
1267 enableval="$enable_referrals"
1270 for ol_val in auto yes no ; do
1271 if test "$enableval" = "$ol_val" ; then
1275 if test "$ol_arg" = "invalid" ; then
1276 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1278 ol_enable_referrals="$ol_arg"
1281 ol_enable_referrals="yes"
1283 # end --enable-referrals
1284 # OpenLDAP --enable-cldap
1285 # Check whether --enable-cldap or --disable-cldap was given.
1286 if test "${enable_cldap+set}" = set; then
1287 enableval="$enable_cldap"
1290 for ol_val in auto yes no ; do
1291 if test "$enableval" = "$ol_val" ; then
1295 if test "$ol_arg" = "invalid" ; then
1296 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1298 ol_enable_cldap="$ol_arg"
1301 ol_enable_cldap="no"
1303 # end --enable-cldap
1304 # OpenLDAP --enable-x_compile
1305 # Check whether --enable-x_compile or --disable-x_compile was given.
1306 if test "${enable_x_compile+set}" = set; then
1307 enableval="$enable_x_compile"
1310 for ol_val in yes no ; do
1311 if test "$enableval" = "$ol_val" ; then
1315 if test "$ol_arg" = "invalid" ; then
1316 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1318 ol_enable_x_compile="$ol_arg"
1321 ol_enable_x_compile="no"
1323 # end --enable-x_compile
1325 # OpenLDAP --enable-dmalloc
1326 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1327 if test "${enable_dmalloc+set}" = set; then
1328 enableval="$enable_dmalloc"
1331 for ol_val in auto yes no ; do
1332 if test "$enableval" = "$ol_val" ; then
1336 if test "$ol_arg" = "invalid" ; then
1337 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1339 ol_enable_dmalloc="$ol_arg"
1342 ol_enable_dmalloc="no"
1344 # end --enable-dmalloc
1346 # OpenLDAP --with-cyrus_sasl
1347 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1348 if test "${with_cyrus_sasl+set}" = set; then
1349 withval="$with_cyrus_sasl"
1352 for ol_val in auto yes no ; do
1353 if test "$withval" = "$ol_val" ; then
1357 if test "$ol_arg" = "invalid" ; then
1358 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1360 ol_with_cyrus_sasl="$ol_arg"
1363 ol_with_cyrus_sasl="auto"
1365 # end --with-cyrus_sasl
1367 # OpenLDAP --with-fetch
1368 # Check whether --with-fetch or --without-fetch was given.
1369 if test "${with_fetch+set}" = set; then
1370 withval="$with_fetch"
1373 for ol_val in auto yes no ; do
1374 if test "$withval" = "$ol_val" ; then
1378 if test "$ol_arg" = "invalid" ; then
1379 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1381 ol_with_fetch="$ol_arg"
1384 ol_with_fetch="auto"
1388 # OpenLDAP --with-kerberos
1389 # Check whether --with-kerberos or --without-kerberos was given.
1390 if test "${with_kerberos+set}" = set; then
1391 withval="$with_kerberos"
1394 for ol_val in auto k5 kth k4 afs yes no ; do
1395 if test "$withval" = "$ol_val" ; then
1399 if test "$ol_arg" = "invalid" ; then
1400 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1402 ol_with_kerberos="$ol_arg"
1405 ol_with_kerberos="auto"
1407 # end --with-kerberos
1409 # OpenLDAP --with-readline
1410 # Check whether --with-readline or --without-readline was given.
1411 if test "${with_readline+set}" = set; then
1412 withval="$with_readline"
1415 for ol_val in auto yes no ; do
1416 if test "$withval" = "$ol_val" ; then
1420 if test "$ol_arg" = "invalid" ; then
1421 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1423 ol_with_readline="$ol_arg"
1426 ol_with_readline="auto"
1428 # end --with-readline
1430 # OpenLDAP --with-threads
1431 # Check whether --with-threads or --without-threads was given.
1432 if test "${with_threads+set}" = set; then
1433 withval="$with_threads"
1436 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1437 if test "$withval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1444 ol_with_threads="$ol_arg"
1447 ol_with_threads="auto"
1449 # end --with-threads
1451 # OpenLDAP --with-tls
1452 # Check whether --with-tls or --without-tls was given.
1453 if test "${with_tls+set}" = set; then
1457 for ol_val in auto ssleay openssl yes no ; do
1458 if test "$withval" = "$ol_val" ; then
1462 if test "$ol_arg" = "invalid" ; then
1463 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1465 ol_with_tls="$ol_arg"
1472 # OpenLDAP --with-yielding_select
1473 # Check whether --with-yielding_select or --without-yielding_select was given.
1474 if test "${with_yielding_select+set}" = set; then
1475 withval="$with_yielding_select"
1478 for ol_val in auto yes no manual ; do
1479 if test "$withval" = "$ol_val" ; then
1483 if test "$ol_arg" = "invalid" ; then
1484 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1486 ol_with_yielding_select="$ol_arg"
1489 ol_with_yielding_select="auto"
1491 # end --with-yielding_select
1494 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1495 if test "${with_xxldapdoptions+set}" = set; then
1496 withval="$with_xxldapdoptions"
1500 # OpenLDAP --enable-ldapd
1501 # Check whether --enable-ldapd or --disable-ldapd was given.
1502 if test "${enable_ldapd+set}" = set; then
1503 enableval="$enable_ldapd"
1506 for ol_val in auto yes no ; do
1507 if test "$enableval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1514 ol_enable_ldapd="$ol_arg"
1517 ol_enable_ldapd="no"
1519 # end --enable-ldapd
1521 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1522 if test "${with_xxslapdoptions+set}" = set; then
1523 withval="$with_xxslapdoptions"
1527 # OpenLDAP --enable-slapd
1528 # Check whether --enable-slapd or --disable-slapd was given.
1529 if test "${enable_slapd+set}" = set; then
1530 enableval="$enable_slapd"
1533 for ol_val in auto yes no ; do
1534 if test "$enableval" = "$ol_val" ; then
1538 if test "$ol_arg" = "invalid" ; then
1539 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1541 ol_enable_slapd="$ol_arg"
1544 ol_enable_slapd="yes"
1546 # end --enable-slapd
1547 # OpenLDAP --enable-cleartext
1548 # Check whether --enable-cleartext or --disable-cleartext was given.
1549 if test "${enable_cleartext+set}" = set; then
1550 enableval="$enable_cleartext"
1553 for ol_val in auto yes no ; do
1554 if test "$enableval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1561 ol_enable_cleartext="$ol_arg"
1564 ol_enable_cleartext="yes"
1566 # end --enable-cleartext
1567 # OpenLDAP --enable-crypt
1568 # Check whether --enable-crypt or --disable-crypt was given.
1569 if test "${enable_crypt+set}" = set; then
1570 enableval="$enable_crypt"
1573 for ol_val in auto yes no ; do
1574 if test "$enableval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1581 ol_enable_crypt="$ol_arg"
1584 ol_enable_crypt="auto"
1586 # end --enable-crypt
1587 # OpenLDAP --enable-modules
1588 # Check whether --enable-modules or --disable-modules was given.
1589 if test "${enable_modules+set}" = set; then
1590 enableval="$enable_modules"
1593 for ol_val in auto yes no ; do
1594 if test "$enableval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1601 ol_enable_modules="$ol_arg"
1604 ol_enable_modules="no"
1606 # end --enable-modules
1607 # OpenLDAP --enable-multimaster
1608 # Check whether --enable-multimaster or --disable-multimaster was given.
1609 if test "${enable_multimaster+set}" = set; then
1610 enableval="$enable_multimaster"
1613 for ol_val in auto yes no ; do
1614 if test "$enableval" = "$ol_val" ; then
1618 if test "$ol_arg" = "invalid" ; then
1619 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1621 ol_enable_multimaster="$ol_arg"
1624 ol_enable_multimaster="no"
1626 # end --enable-multimaster
1627 # OpenLDAP --enable-phonetic
1628 # Check whether --enable-phonetic or --disable-phonetic was given.
1629 if test "${enable_phonetic+set}" = set; then
1630 enableval="$enable_phonetic"
1633 for ol_val in auto yes no ; do
1634 if test "$enableval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1641 ol_enable_phonetic="$ol_arg"
1644 ol_enable_phonetic="no"
1646 # end --enable-phonetic
1647 # OpenLDAP --enable-quipu
1648 # Check whether --enable-quipu or --disable-quipu was given.
1649 if test "${enable_quipu+set}" = set; then
1650 enableval="$enable_quipu"
1653 for ol_val in auto yes no ; do
1654 if test "$enableval" = "$ol_val" ; then
1658 if test "$ol_arg" = "invalid" ; then
1659 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1661 ol_enable_quipu="$ol_arg"
1664 ol_enable_quipu="no"
1666 # end --enable-quipu
1667 # OpenLDAP --enable-rlookups
1668 # Check whether --enable-rlookups or --disable-rlookups was given.
1669 if test "${enable_rlookups+set}" = set; then
1670 enableval="$enable_rlookups"
1673 for ol_val in auto yes no ; do
1674 if test "$enableval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1681 ol_enable_rlookups="$ol_arg"
1684 ol_enable_rlookups="auto"
1686 # end --enable-rlookups
1687 # OpenLDAP --enable-aci
1688 # Check whether --enable-aci or --disable-aci was given.
1689 if test "${enable_aci+set}" = set; then
1690 enableval="$enable_aci"
1693 for ol_val in auto yes no ; do
1694 if test "$enableval" = "$ol_val" ; then
1698 if test "$ol_arg" = "invalid" ; then
1699 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1701 ol_enable_aci="$ol_arg"
1707 # OpenLDAP --enable-discreteaci
1708 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1709 if test "${enable_discreteaci+set}" = set; then
1710 enableval="$enable_discreteaci"
1713 for ol_val in auto yes no ; do
1714 if test "$enableval" = "$ol_val" ; then
1718 if test "$ol_arg" = "invalid" ; then
1719 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1721 ol_enable_discreteaci="$ol_arg"
1724 ol_enable_discreteaci="no"
1726 # end --enable-discreteaci
1727 # OpenLDAP --enable-wrappers
1728 # Check whether --enable-wrappers or --disable-wrappers was given.
1729 if test "${enable_wrappers+set}" = set; then
1730 enableval="$enable_wrappers"
1733 for ol_val in auto yes no ; do
1734 if test "$enableval" = "$ol_val" ; then
1738 if test "$ol_arg" = "invalid" ; then
1739 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1741 ol_enable_wrappers="$ol_arg"
1744 ol_enable_wrappers="no"
1746 # end --enable-wrappers
1747 # OpenLDAP --enable-dynamic
1748 # Check whether --enable-dynamic or --disable-dynamic was given.
1749 if test "${enable_dynamic+set}" = set; then
1750 enableval="$enable_dynamic"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1761 ol_enable_dynamic="$ol_arg"
1764 ol_enable_dynamic="no"
1766 # end --enable-dynamic
1768 # OpenLDAP --enable-bdb2
1769 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1770 if test "${enable_bdb2+set}" = set; then
1771 enableval="$enable_bdb2"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1782 ol_enable_bdb2="$ol_arg"
1788 # OpenLDAP --with-bdb2_module
1789 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1790 if test "${with_bdb2_module+set}" = set; then
1791 withval="$with_bdb2_module"
1794 for ol_val in static dynamic ; do
1795 if test "$withval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1802 ol_with_bdb2_module="$ol_arg"
1805 ol_with_bdb2_module="static"
1807 # end --with-bdb2_module
1809 # OpenLDAP --enable-ldap
1810 # Check whether --enable-ldap or --disable-ldap was given.
1811 if test "${enable_ldap+set}" = set; then
1812 enableval="$enable_ldap"
1815 for ol_val in auto yes no ; do
1816 if test "$enableval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1823 ol_enable_ldap="$ol_arg"
1829 # OpenLDAP --with-ldap_module
1830 # Check whether --with-ldap_module or --without-ldap_module was given.
1831 if test "${with_ldap_module+set}" = set; then
1832 withval="$with_ldap_module"
1835 for ol_val in static dynamic ; do
1836 if test "$withval" = "$ol_val" ; then
1840 if test "$ol_arg" = "invalid" ; then
1841 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1843 ol_with_ldap_module="$ol_arg"
1846 ol_with_ldap_module="static"
1848 # end --with-ldap_module
1850 # OpenLDAP --enable-ldbm
1851 # Check whether --enable-ldbm or --disable-ldbm was given.
1852 if test "${enable_ldbm+set}" = set; then
1853 enableval="$enable_ldbm"
1856 for ol_val in auto yes no ; do
1857 if test "$enableval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1864 ol_enable_ldbm="$ol_arg"
1867 ol_enable_ldbm="yes"
1870 # OpenLDAP --with-ldbm_api
1871 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1872 if test "${with_ldbm_api+set}" = set; then
1873 withval="$with_ldbm_api"
1876 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1877 if test "$withval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1884 ol_with_ldbm_api="$ol_arg"
1887 ol_with_ldbm_api="auto"
1889 # end --with-ldbm_api
1891 # OpenLDAP --with-ldbm_module
1892 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1893 if test "${with_ldbm_module+set}" = set; then
1894 withval="$with_ldbm_module"
1897 for ol_val in static dynamic ; do
1898 if test "$withval" = "$ol_val" ; then
1902 if test "$ol_arg" = "invalid" ; then
1903 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1905 ol_with_ldbm_module="$ol_arg"
1908 ol_with_ldbm_module="static"
1910 # end --with-ldbm_module
1912 # OpenLDAP --with-ldbm_type
1913 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1914 if test "${with_ldbm_type+set}" = set; then
1915 withval="$with_ldbm_type"
1918 for ol_val in auto btree hash ; do
1919 if test "$withval" = "$ol_val" ; then
1923 if test "$ol_arg" = "invalid" ; then
1924 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1926 ol_with_ldbm_type="$ol_arg"
1929 ol_with_ldbm_type="auto"
1931 # end --with-ldbm_type
1934 # OpenLDAP --enable-passwd
1935 # Check whether --enable-passwd or --disable-passwd was given.
1936 if test "${enable_passwd+set}" = set; then
1937 enableval="$enable_passwd"
1940 for ol_val in auto yes no ; do
1941 if test "$enableval" = "$ol_val" ; then
1945 if test "$ol_arg" = "invalid" ; then
1946 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1948 ol_enable_passwd="$ol_arg"
1951 ol_enable_passwd="no"
1953 # end --enable-passwd
1954 # OpenLDAP --with-passwd_module
1955 # Check whether --with-passwd_module or --without-passwd_module was given.
1956 if test "${with_passwd_module+set}" = set; then
1957 withval="$with_passwd_module"
1960 for ol_val in static dynamic ; do
1961 if test "$withval" = "$ol_val" ; then
1965 if test "$ol_arg" = "invalid" ; then
1966 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1968 ol_with_passwd_module="$ol_arg"
1971 ol_with_passwd_module="static"
1973 # end --with-passwd_module
1975 # OpenLDAP --enable-perl
1976 # Check whether --enable-perl or --disable-perl was given.
1977 if test "${enable_perl+set}" = set; then
1978 enableval="$enable_perl"
1981 for ol_val in auto yes no ; do
1982 if test "$enableval" = "$ol_val" ; then
1986 if test "$ol_arg" = "invalid" ; then
1987 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1989 ol_enable_perl="$ol_arg"
1995 # OpenLDAP --with-perl_module
1996 # Check whether --with-perl_module or --without-perl_module was given.
1997 if test "${with_perl_module+set}" = set; then
1998 withval="$with_perl_module"
2001 for ol_val in static dynamic ; do
2002 if test "$withval" = "$ol_val" ; then
2006 if test "$ol_arg" = "invalid" ; then
2007 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2009 ol_with_perl_module="$ol_arg"
2012 ol_with_perl_module="static"
2014 # end --with-perl_module
2016 # OpenLDAP --enable-shell
2017 # Check whether --enable-shell or --disable-shell was given.
2018 if test "${enable_shell+set}" = set; then
2019 enableval="$enable_shell"
2022 for ol_val in auto yes no ; do
2023 if test "$enableval" = "$ol_val" ; then
2027 if test "$ol_arg" = "invalid" ; then
2028 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2030 ol_enable_shell="$ol_arg"
2033 ol_enable_shell="no"
2035 # end --enable-shell
2036 # OpenLDAP --with-shell_module
2037 # Check whether --with-shell_module or --without-shell_module was given.
2038 if test "${with_shell_module+set}" = set; then
2039 withval="$with_shell_module"
2042 for ol_val in static dynamic ; do
2043 if test "$withval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2050 ol_with_shell_module="$ol_arg"
2053 ol_with_shell_module="static"
2055 # end --with-shell_module
2057 # OpenLDAP --enable-tcl
2058 # Check whether --enable-tcl or --disable-tcl was given.
2059 if test "${enable_tcl+set}" = set; then
2060 enableval="$enable_tcl"
2063 for ol_val in auto yes no ; do
2064 if test "$enableval" = "$ol_val" ; then
2068 if test "$ol_arg" = "invalid" ; then
2069 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2071 ol_enable_tcl="$ol_arg"
2077 # OpenLDAP --with-tcl_module
2078 # Check whether --with-tcl_module or --without-tcl_module was given.
2079 if test "${with_tcl_module+set}" = set; then
2080 withval="$with_tcl_module"
2083 for ol_val in static dynamic ; do
2084 if test "$withval" = "$ol_val" ; then
2088 if test "$ol_arg" = "invalid" ; then
2089 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2091 ol_with_tcl_module="$ol_arg"
2094 ol_with_tcl_module="static"
2096 # end --with-tcl_module
2099 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2100 if test "${with_xxslurpdoptions+set}" = set; then
2101 withval="$with_xxslurpdoptions"
2105 # OpenLDAP --enable-slurpd
2106 # Check whether --enable-slurpd or --disable-slurpd was given.
2107 if test "${enable_slurpd+set}" = set; then
2108 enableval="$enable_slurpd"
2111 for ol_val in auto yes no ; do
2112 if test "$enableval" = "$ol_val" ; then
2116 if test "$ol_arg" = "invalid" ; then
2117 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2119 ol_enable_slurpd="$ol_arg"
2122 ol_enable_slurpd="auto"
2124 # end --enable-slurpd
2126 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2127 if test "${with_xxliboptions+set}" = set; then
2128 withval="$with_xxliboptions"
2132 # Check whether --enable-static or --disable-static was given.
2133 if test "${enable_static+set}" = set; then
2134 enableval="$enable_static"
2135 p=${PACKAGE-default}
2136 case "$enableval" in
2137 yes) enable_static=yes ;;
2138 no) enable_static=no ;;
2141 # Look at the argument we got. We use all the common list separators.
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2143 for pkg in $enableval; do
2144 if test "X$pkg" = "X$p"; then
2155 # Check whether --enable-shared or --disable-shared was given.
2156 if test "${enable_shared+set}" = set; then
2157 enableval="$enable_shared"
2158 p=${PACKAGE-default}
2159 case "$enableval" in
2160 yes) enable_shared=yes ;;
2161 no) enable_shared=no ;;
2164 # Look at the argument we got. We use all the common list separators.
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2166 for pkg in $enableval; do
2167 if test "X$pkg" = "X$p"; then
2181 if test $ol_enable_dns = yes ; then
2182 if test $ol_enable_referrals = no ; then
2183 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2185 if test $ol_enable_referrals = auto ; then
2186 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2187 ol_enable_referrals=yes
2191 if test $ol_enable_slapd = no ; then
2192 if test $ol_enable_bdb2 = yes ; then
2193 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2195 if test $ol_enable_ldap = yes ; then
2196 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2198 if test $ol_enable_ldbm = yes ; then
2199 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2201 if test $ol_enable_passwd = yes ; then
2202 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2204 if test $ol_enable_perl = yes ; then
2205 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2207 if test $ol_enable_shell = yes ; then
2208 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2210 if test $ol_enable_tcl = yes ; then
2211 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2213 if test $ol_enable_modules = yes ; then
2214 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2216 if test $ol_enable_multimaster = yes ; then
2217 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2219 if test $ol_enable_wrappers = yes ; then
2220 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2222 if test $ol_enable_phonetic = yes ; then
2223 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2225 if test $ol_enable_quipu = yes ; then
2226 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2228 if test $ol_enable_rlookups = yes ; then
2229 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2231 if test $ol_enable_aci = yes ; then
2232 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2234 if test $ol_enable_discreteaci = yes ; then
2235 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2237 if test $ol_with_ldbm_api != auto ; then
2238 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2240 if test $ol_with_ldbm_type != auto ; then
2241 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2243 if test $ol_with_bdb2_module != static ; then
2244 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2246 if test $ol_with_ldap_module != static ; then
2247 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2249 if test $ol_with_ldbm_module != static ; then
2250 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2252 if test $ol_with_passwd_module != static ; then
2253 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2255 if test $ol_with_perl_module != static ; then
2256 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2258 if test $ol_with_shell_module != static ; then
2259 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2261 if test $ol_with_tcl_module != static ; then
2262 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2264 if test $ol_enable_slurpd = yes ; then
2265 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2268 # force settings to no
2277 ol_enable_modules=no
2278 ol_enable_multimaster=no
2279 ol_enable_phonetic=no
2281 ol_enable_rlookups=no
2283 ol_enable_discreteaci=no
2284 ol_enable_wrappers=no
2285 ol_enable_dynamic=no
2288 ol_with_ldbm_type=no
2290 ol_with_bdb2_module=static
2291 ol_with_ldap_module=static
2292 ol_with_ldbm_module=static
2293 ol_with_passwd_module=static
2294 ol_with_perl_module=static
2295 ol_with_shell_module=static
2296 ol_with_tcl_module=static
2300 elif test $ol_enable_ldbm = no ; then
2302 if test $ol_with_ldbm_api != auto ; then
2303 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2306 if test $ol_with_ldbm_type != auto ; then
2307 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2310 if test $ol_with_ldbm_module != static ; then
2311 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2314 if test $ol_enable_bdb2 = yes ; then
2315 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2318 if test $ol_enable_modules != yes -a \
2319 $ol_enable_ldap = no -a \
2320 $ol_enable_passwd = no -a \
2321 $ol_enable_perl = no -a \
2322 $ol_enable_shell = no -a \
2323 $ol_enable_tcl = no ; then
2324 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2328 ol_with_ldbm_type=no
2329 ol_with_ldbm_module=static
2331 elif test $ol_enable_bdb2 = yes ; then
2333 if test $ol_with_ldbm_api != auto -a \
2334 $ol_with_ldbm_api != db2 ; then
2335 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2338 ol_with_ldbm_api=db2
2342 if test $ol_enable_bdb2 != no ; then
2343 if test $ol_with_ldbm_api != auto -a \
2344 $ol_with_ldbm_api != db2 ; then
2345 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2350 if test $ol_with_ldbm_api = gdbm -a \
2351 $ol_with_ldbm_type = btree ; then
2352 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2354 if test $ol_with_ldbm_api = mdbm -a \
2355 $ol_with_ldbm_type = btree ; then
2356 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2358 if test $ol_with_ldbm_api = ndbm -a \
2359 $ol_with_ldbm_type = btree ; then
2360 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2364 if test $ol_enable_slurpd = yes ; then
2365 if test $ol_with_threads = no ; then
2366 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2370 echo "$ac_t""done" 1>&6
2396 BUILD_BDB2_DYNAMIC=static
2397 BUILD_LDAP_DYNAMIC=static
2398 BUILD_LDBM_DYNAMIC=static
2399 BUILD_PASSWD_DYNAMIC=static
2400 BUILD_PERL_DYNAMIC=static
2401 BUILD_SHELL_DYNAMIC=static
2402 BUILD_TCL_DYNAMIC=static
2404 SLAPD_MODULES_LDFLAGS=
2405 SLAPD_MODULES_CPPFLAGS=
2422 cat >> confdefs.h <<\EOF
2423 #define HAVE_MKVERSION 1
2431 *-*-aix*) if test -z "$CC" ; then
2432 case "$ol_with_threads" in
2433 auto | yes | posix) ol_aix_threads=yes ;;
2439 if test $ol_aix_threads = yes ; then
2440 if test -z "${CC}" ; then
2441 for ac_prog in cc_r xlc_r cc
2443 # Extract the first word of "$ac_prog", so it can be a program name with args.
2444 set dummy $ac_prog; ac_word=$2
2445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2446 echo "configure:2447: checking for $ac_word" >&5
2447 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2455 for ac_dir in $ac_dummy; do
2456 test -z "$ac_dir" && ac_dir=.
2457 if test -f $ac_dir/$ac_word; then
2458 ac_cv_prog_CC="$ac_prog"
2466 if test -n "$CC"; then
2467 echo "$ac_t""$CC" 1>&6
2469 echo "$ac_t""no" 1>&6
2472 test -n "$CC" && break
2476 if test "$CC" = cc ; then
2477 if test $ol_with_threads != auto ; then
2478 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2480 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2486 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2487 ol_with_threads=posix
2488 ol_cv_pthread_create=yes
2492 if test -z "${CC}"; then
2495 # Extract the first word of "$ac_prog", so it can be a program name with args.
2496 set dummy $ac_prog; ac_word=$2
2497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2498 echo "configure:2499: checking for $ac_word" >&5
2499 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2507 for ac_dir in $ac_dummy; do
2508 test -z "$ac_dir" && ac_dir=.
2509 if test -f $ac_dir/$ac_word; then
2510 ac_cv_prog_CC="$ac_prog"
2518 if test -n "$CC"; then
2519 echo "$ac_t""$CC" 1>&6
2521 echo "$ac_t""no" 1>&6
2524 test -n "$CC" && break
2532 # Check whether --enable-fast-install or --disable-fast-install was given.
2533 if test "${enable_fast_install+set}" = set; then
2534 enableval="$enable_fast_install"
2535 p=${PACKAGE-default}
2536 case "$enableval" in
2537 yes) enable_fast_install=yes ;;
2538 no) enable_fast_install=no ;;
2540 enable_fast_install=no
2541 # Look at the argument we got. We use all the common list separators.
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2543 for pkg in $enableval; do
2544 if test "X$pkg" = "X$p"; then
2545 enable_fast_install=yes
2552 enable_fast_install=yes
2555 # Extract the first word of "ranlib", so it can be a program name with args.
2556 set dummy ranlib; ac_word=$2
2557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2558 echo "configure:2559: checking for $ac_word" >&5
2559 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 if test -n "$RANLIB"; then
2563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2567 for ac_dir in $ac_dummy; do
2568 test -z "$ac_dir" && ac_dir=.
2569 if test -f $ac_dir/$ac_word; then
2570 ac_cv_prog_RANLIB="ranlib"
2575 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2578 RANLIB="$ac_cv_prog_RANLIB"
2579 if test -n "$RANLIB"; then
2580 echo "$ac_t""$RANLIB" 1>&6
2582 echo "$ac_t""no" 1>&6
2585 # Extract the first word of "gcc", so it can be a program name with args.
2586 set dummy gcc; ac_word=$2
2587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_word" >&5
2589 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 if test -n "$CC"; then
2593 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2597 for ac_dir in $ac_dummy; do
2598 test -z "$ac_dir" && ac_dir=.
2599 if test -f $ac_dir/$ac_word; then
2608 if test -n "$CC"; then
2609 echo "$ac_t""$CC" 1>&6
2611 echo "$ac_t""no" 1>&6
2614 if test -z "$CC"; then
2615 # Extract the first word of "cc", so it can be a program name with args.
2616 set dummy cc; ac_word=$2
2617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2618 echo "configure:2619: checking for $ac_word" >&5
2619 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2628 for ac_dir in $ac_dummy; do
2629 test -z "$ac_dir" && ac_dir=.
2630 if test -f $ac_dir/$ac_word; then
2631 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2632 ac_prog_rejected=yes
2640 if test $ac_prog_rejected = yes; then
2641 # We found a bogon in the path, so make sure we never use it.
2642 set dummy $ac_cv_prog_CC
2644 if test $# -gt 0; then
2645 # We chose a different compiler from the bogus one.
2646 # However, it has the same basename, so the bogon will be chosen
2647 # first if we set CC to just the basename; use the full file name.
2649 set dummy "$ac_dir/$ac_word" "$@"
2657 if test -n "$CC"; then
2658 echo "$ac_t""$CC" 1>&6
2660 echo "$ac_t""no" 1>&6
2663 if test -z "$CC"; then
2664 case "`uname -s`" in
2665 *win32* | *WIN32* | *CYGWIN*)
2666 # Extract the first word of "cl", so it can be a program name with args.
2667 set dummy cl; ac_word=$2
2668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_word" >&5
2670 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2678 for ac_dir in $ac_dummy; do
2679 test -z "$ac_dir" && ac_dir=.
2680 if test -f $ac_dir/$ac_word; then
2689 if test -n "$CC"; then
2690 echo "$ac_t""$CC" 1>&6
2692 echo "$ac_t""no" 1>&6
2697 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2700 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2701 echo "configure:2702: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2704 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2707 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2708 cross_compiling=$ac_cv_prog_cc_cross
2710 cat > conftest.$ac_ext << EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2718 ac_cv_prog_cc_works=yes
2719 # If we can't run a trivial program, we are probably using a cross compiler.
2720 if (./conftest; exit) 2>/dev/null; then
2721 ac_cv_prog_cc_cross=no
2723 ac_cv_prog_cc_cross=yes
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2728 ac_cv_prog_cc_works=no
2732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2736 cross_compiling=$ac_cv_prog_cc_cross
2738 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2739 if test $ac_cv_prog_cc_works = no; then
2740 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2742 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2743 echo "configure:2744: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2744 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2745 cross_compiling=$ac_cv_prog_cc_cross
2747 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2748 echo "configure:2749: checking whether we are using GNU C" >&5
2749 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 cat > conftest.c <<EOF
2757 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2764 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2766 if test $ac_cv_prog_gcc = yes; then
2772 ac_test_CFLAGS="${CFLAGS+set}"
2773 ac_save_CFLAGS="$CFLAGS"
2775 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2776 echo "configure:2777: checking whether ${CC-cc} accepts -g" >&5
2777 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 echo 'void f(){}' > conftest.c
2781 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2790 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2791 if test "$ac_test_CFLAGS" = set; then
2792 CFLAGS="$ac_save_CFLAGS"
2793 elif test $ac_cv_prog_cc_g = yes; then
2794 if test "$GCC" = yes; then
2800 if test "$GCC" = yes; then
2807 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2808 if test "${with_gnu_ld+set}" = set; then
2809 withval="$with_gnu_ld"
2810 test "$withval" = no || with_gnu_ld=yes
2816 if test "$ac_cv_prog_gcc" = yes; then
2817 # Check if gcc -print-prog-name=ld gives a path.
2818 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2819 echo "configure:2820: checking for ld used by GCC" >&5
2820 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2822 # Accept absolute paths.
2823 [\\/]* | [A-Za-z]:[\\/]*)
2824 re_direlt='/[^/][^/]*/\.\./'
2825 # Canonicalize the path of ld
2826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2830 test -z "$LD" && LD="$ac_prog"
2833 # If it fails, then pretend we aren't using GCC.
2837 # If it is relative, then search for the first ld in PATH.
2841 elif test "$with_gnu_ld" = yes; then
2842 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2843 echo "configure:2844: checking for GNU ld" >&5
2845 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2846 echo "configure:2847: checking for non-GNU ld" >&5
2848 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 if test -z "$LD"; then
2852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2853 for ac_dir in $PATH; do
2854 test -z "$ac_dir" && ac_dir=.
2855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2856 ac_cv_path_LD="$ac_dir/$ac_prog"
2857 # Check to see if the program is GNU ld. I'd rather use --version,
2858 # but apparently some GNU ld's only accept -v.
2859 # Break only if it was the GNU/non-GNU ld that we prefer.
2860 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2861 test "$with_gnu_ld" != no && break
2863 test "$with_gnu_ld" != yes && break
2869 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2874 if test -n "$LD"; then
2875 echo "$ac_t""$LD" 1>&6
2877 echo "$ac_t""no" 1>&6
2879 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2881 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2882 echo "configure:2883: checking if the linker ($LD) is GNU ld" >&5
2883 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2887 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2888 ac_cv_prog_gnu_ld=yes
2890 ac_cv_prog_gnu_ld=no
2894 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2897 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2898 echo "configure:2899: checking for BSD-compatible nm" >&5
2899 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 if test -n "$NM"; then
2903 # Let the user override the test.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2907 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2908 test -z "$ac_dir" && ac_dir=.
2909 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2910 # Check to see if the nm accepts a BSD-compat flag.
2911 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2912 # nm: unknown option "B" ignored
2913 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2914 ac_cv_path_NM="$ac_dir/nm -B"
2916 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2917 ac_cv_path_NM="$ac_dir/nm -p"
2920 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2921 continue # so that we can try to find one that supports BSD flags
2926 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2931 echo "$ac_t""$NM" 1>&6
2934 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2935 echo "configure:2936: checking whether ln -s works" >&5
2936 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2940 if ln -s X conftestdata 2>/dev/null
2943 ac_cv_prog_LN_S="ln -s"
2948 LN_S="$ac_cv_prog_LN_S"
2949 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2950 echo "$ac_t""yes" 1>&6
2952 echo "$ac_t""no" 1>&6
2955 if test $host != $build; then
2956 ac_tool_prefix=${host_alias}-
2962 # Check for any special flags to pass to ltconfig.
2963 libtool_flags="--cache-file=$cache_file"
2964 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2965 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2966 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2967 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2968 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2969 libtool_flags="$libtool_flags --enable-dlopen"
2970 libtool_flags="$libtool_flags --enable-win32-dll"
2971 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2972 if test "${enable_libtool_lock+set}" = set; then
2973 enableval="$enable_libtool_lock"
2977 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2978 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2980 # Some flags need to be propagated to the compiler or linker for good
2984 # Find out which ABI we are using.
2985 echo '#line 2986 "configure"' > conftest.$ac_ext
2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2987 case "`/usr/bin/file conftest.o`" in
3003 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3004 SAVE_CFLAGS="$CFLAGS"
3005 CFLAGS="$CFLAGS -belf"
3006 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3007 echo "configure:3008: checking whether the C compiler needs -belf" >&5
3008 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3011 cat > conftest.$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021 lt_cv_cc_needs_belf=yes
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3026 lt_cv_cc_needs_belf=no
3031 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3034 CFLAGS="$SAVE_CFLAGS"
3038 *-*-cygwin* | *-*-mingw*)
3039 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3042 echo "configure:3043: checking for $ac_word" >&5
3043 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 if test -n "$DLLTOOL"; then
3047 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3051 for ac_dir in $ac_dummy; do
3052 test -z "$ac_dir" && ac_dir=.
3053 if test -f $ac_dir/$ac_word; then
3054 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3061 DLLTOOL="$ac_cv_prog_DLLTOOL"
3062 if test -n "$DLLTOOL"; then
3063 echo "$ac_t""$DLLTOOL" 1>&6
3065 echo "$ac_t""no" 1>&6
3069 if test -z "$ac_cv_prog_DLLTOOL"; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "dlltool", so it can be a program name with args.
3072 set dummy dlltool; ac_word=$2
3073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_word" >&5
3075 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 if test -n "$DLLTOOL"; then
3079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3083 for ac_dir in $ac_dummy; do
3084 test -z "$ac_dir" && ac_dir=.
3085 if test -f $ac_dir/$ac_word; then
3086 ac_cv_prog_DLLTOOL="dlltool"
3091 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3094 DLLTOOL="$ac_cv_prog_DLLTOOL"
3095 if test -n "$DLLTOOL"; then
3096 echo "$ac_t""$DLLTOOL" 1>&6
3098 echo "$ac_t""no" 1>&6
3106 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}as; ac_word=$2
3108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_word" >&5
3110 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 if test -n "$AS"; then
3114 ac_cv_prog_AS="$AS" # Let the user override the test.
3116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3118 for ac_dir in $ac_dummy; do
3119 test -z "$ac_dir" && ac_dir=.
3120 if test -f $ac_dir/$ac_word; then
3121 ac_cv_prog_AS="${ac_tool_prefix}as"
3129 if test -n "$AS"; then
3130 echo "$ac_t""$AS" 1>&6
3132 echo "$ac_t""no" 1>&6
3136 if test -z "$ac_cv_prog_AS"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "as", so it can be a program name with args.
3139 set dummy as; ac_word=$2
3140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_word" >&5
3142 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 if test -n "$AS"; then
3146 ac_cv_prog_AS="$AS" # Let the user override the test.
3148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3150 for ac_dir in $ac_dummy; do
3151 test -z "$ac_dir" && ac_dir=.
3152 if test -f $ac_dir/$ac_word; then
3158 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3162 if test -n "$AS"; then
3163 echo "$ac_t""$AS" 1>&6
3165 echo "$ac_t""no" 1>&6
3173 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3174 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_word" >&5
3177 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 if test -n "$OBJDUMP"; then
3181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3185 for ac_dir in $ac_dummy; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3195 OBJDUMP="$ac_cv_prog_OBJDUMP"
3196 if test -n "$OBJDUMP"; then
3197 echo "$ac_t""$OBJDUMP" 1>&6
3199 echo "$ac_t""no" 1>&6
3203 if test -z "$ac_cv_prog_OBJDUMP"; then
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "objdump", so it can be a program name with args.
3206 set dummy objdump; ac_word=$2
3207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3208 echo "configure:3209: checking for $ac_word" >&5
3209 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 if test -n "$OBJDUMP"; then
3213 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3217 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 if test -f $ac_dir/$ac_word; then
3220 ac_cv_prog_OBJDUMP="objdump"
3225 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3228 OBJDUMP="$ac_cv_prog_OBJDUMP"
3229 if test -n "$OBJDUMP"; then
3230 echo "$ac_t""$OBJDUMP" 1>&6
3232 echo "$ac_t""no" 1>&6
3245 # Save cache, so that ltconfig can load it
3248 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3249 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3250 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3251 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3252 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3253 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3254 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3255 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3257 # Reload cache, that may have been modified by ltconfig
3260 # This can be used to rebuild libtool when needed
3261 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3263 # Always use our own libtool.
3264 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3266 # Redirect the config.log output again, so that the ltconfig log is not
3267 # clobbered by the next message.
3268 exec 5>>./config.log
3271 for ac_prog in mawk gawk nawk awk
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_word" >&5
3277 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 if test -n "$AWK"; then
3281 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3285 for ac_dir in $ac_dummy; do
3286 test -z "$ac_dir" && ac_dir=.
3287 if test -f $ac_dir/$ac_word; then
3288 ac_cv_prog_AWK="$ac_prog"
3295 AWK="$ac_cv_prog_AWK"
3296 if test -n "$AWK"; then
3297 echo "$ac_t""$AWK" 1>&6
3299 echo "$ac_t""no" 1>&6
3302 test -n "$AWK" && break
3305 # test for ln hardlink support
3306 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3307 echo "configure:3308: checking whether ln works" >&5
3308 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 rm -f conftest.src conftest.dst
3312 echo "conftest" > conftest.src
3313 if ln conftest.src conftest.dst 2>/dev/null
3315 ol_cv_prog_LN_H="ln"
3317 ol_cv_prog_LN_H="cp"
3319 rm -f conftest.src conftest.dst
3322 LN_H="$ol_cv_prog_LN_H"
3323 if test "$ol_cv_prog_LN_H" = "ln"; then
3324 echo "$ac_t""yes" 1>&6
3326 echo "$ac_t""no" 1>&6
3329 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3330 echo "configure:3331: checking whether ln -s works" >&5
3331 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3332 echo $ac_n "(cached) $ac_c" 1>&6
3335 if ln -s X conftestdata 2>/dev/null
3338 ac_cv_prog_LN_S="ln -s"
3343 LN_S="$ac_cv_prog_LN_S"
3344 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3345 echo "$ac_t""yes" 1>&6
3347 echo "$ac_t""no" 1>&6
3351 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3355 # Extract the first word of "sendmail", so it can be a program name with args.
3356 set dummy sendmail; ac_word=$2
3357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3358 echo "configure:3359: checking for $ac_word" >&5
3359 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3364 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3367 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3371 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3372 for ac_dir in $ac_dummy; do
3373 test -z "$ac_dir" && ac_dir=.
3374 if test -f $ac_dir/$ac_word; then
3375 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3380 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3384 SENDMAIL="$ac_cv_path_SENDMAIL"
3385 if test -n "$SENDMAIL"; then
3386 echo "$ac_t""$SENDMAIL" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 # Extract the first word of "vi", so it can be a program name with args.
3392 set dummy vi; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3400 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3403 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3407 ac_dummy="$PATH:/usr/ucb"
3408 for ac_dir in $ac_dummy; do
3409 test -z "$ac_dir" && ac_dir=.
3410 if test -f $ac_dir/$ac_word; then
3411 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3416 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3420 EDITOR="$ac_cv_path_EDITOR"
3421 if test -n "$EDITOR"; then
3422 echo "$ac_t""$EDITOR" 1>&6
3424 echo "$ac_t""no" 1>&6
3427 # Extract the first word of "finger", so it can be a program name with args.
3428 set dummy finger; ac_word=$2
3429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3430 echo "configure:3431: checking for $ac_word" >&5
3431 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3436 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3439 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3443 ac_dummy="$PATH:/usr/ucb"
3444 for ac_dir in $ac_dummy; do
3445 test -z "$ac_dir" && ac_dir=.
3446 if test -f $ac_dir/$ac_word; then
3447 ac_cv_path_FINGER="$ac_dir/$ac_word"
3452 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3456 FINGER="$ac_cv_path_FINGER"
3457 if test -n "$FINGER"; then
3458 echo "$ac_t""$FINGER" 1>&6
3460 echo "$ac_t""no" 1>&6
3465 if test $ol_enable_perl != no ; then
3466 # Extract the first word of "perl", so it can be a program name with args.
3467 set dummy perl; ac_word=$2
3468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3469 echo "configure:3470: checking for $ac_word" >&5
3470 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3475 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3478 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3483 for ac_dir in $ac_dummy; do
3484 test -z "$ac_dir" && ac_dir=.
3485 if test -f $ac_dir/$ac_word; then
3486 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3491 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3495 PERLBIN="$ac_cv_path_PERLBIN"
3496 if test -n "$PERLBIN"; then
3497 echo "$ac_t""$PERLBIN" 1>&6
3499 echo "$ac_t""no" 1>&6
3503 if test "no$PERLBIN" = "no" ; then
3504 if test $ol_enable_perl = yes ; then
3505 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3509 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3510 if test x"$ol_with_perl_module" == "xstatic" ; then
3511 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3513 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3519 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3520 echo "configure:3521: checking how to run the C preprocessor" >&5
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3525 if test -z "$CPP"; then
3526 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 # This must be in double quotes, not single quotes, because CPP may get
3530 # substituted into the Makefile and "${CC-cc}" will confuse make.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp.
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3541 { (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3543 if test -z "$ac_err"; then
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 CPP="${CC-cc} -E -traditional-cpp"
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3558 { (eval echo configure:3559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3560 if test -z "$ac_err"; then
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 CPP="${CC-cc} -nologo -E"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3575 { (eval echo configure:3576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3577 if test -z "$ac_err"; then
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3591 ac_cv_prog_CPP="$CPP"
3593 CPP="$ac_cv_prog_CPP"
3595 ac_cv_prog_CPP="$CPP"
3597 echo "$ac_t""$CPP" 1>&6
3600 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3601 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3603 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3604 echo "configure: warning: programs compiled here do run here..." 1>&2
3605 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3607 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3608 echo "configure: warning: programs compiled here do not run here..." 1>&2
3609 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3612 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3613 echo "configure:3614: checking for AIX" >&5
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623 egrep "yes" >/dev/null 2>&1; then
3625 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3626 #define _ALL_SOURCE 1
3631 echo "$ac_t""no" 1>&6
3636 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3637 echo "configure:3638: checking for POSIXized ISC" >&5
3638 if test -d /etc/conf/kconfig.d &&
3639 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3641 echo "$ac_t""yes" 1>&6
3642 ISC=yes # If later tests want to check for ISC.
3643 cat >> confdefs.h <<\EOF
3644 #define _POSIX_SOURCE 1
3647 if test "$GCC" = yes; then
3653 echo "$ac_t""no" 1>&6
3657 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3658 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3659 echo "configure:3660: checking for minix/config.h" >&5
3660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <minix/config.h>
3668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3669 { (eval echo configure:3670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3671 if test -z "$ac_err"; then
3673 eval "ac_cv_header_$ac_safe=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 eval "ac_cv_header_$ac_safe=no"
3683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3687 echo "$ac_t""no" 1>&6
3691 if test "$MINIX" = yes; then
3692 cat >> confdefs.h <<\EOF
3693 #define _POSIX_SOURCE 1
3696 cat >> confdefs.h <<\EOF
3697 #define _POSIX_1_SOURCE 2
3700 cat >> confdefs.h <<\EOF
3707 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3708 echo "configure:3709: checking for Cygwin environment" >&5
3709 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3719 #define __CYGWIN__ __CYGWIN32__
3724 if { (eval echo configure:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3736 echo "$ac_t""$ac_cv_cygwin" 1>&6
3738 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3739 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3740 echo "configure:3741: checking for mingw32 environment" >&5
3741 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3752 if { (eval echo configure:3753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3764 echo "$ac_t""$ac_cv_mingw32" 1>&6
3766 test "$ac_cv_mingw32" = yes && MINGW32=yes
3767 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3768 echo "configure:3769: checking for EMX OS/2 environment" >&5
3769 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3792 echo "$ac_t""$ac_cv_emxos2" 1>&6
3794 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3798 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3799 echo "configure:3800: checking for executable suffix" >&5
3800 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3807 echo 'int main () { return 0; }' > conftest.$ac_ext
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3810 for file in conftest.*; do
3812 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3813 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3817 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3820 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3825 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3826 echo "$ac_t""${ac_cv_exeext}" 1>&6
3829 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3830 echo "configure:3831: checking for object suffix" >&5
3831 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3835 echo 'int i = 1;' > conftest.$ac_ext
3836 if { (eval echo configure:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 for ac_file in conftest.*; do
3840 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3844 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3849 echo "$ac_t""$ac_cv_objext" 1>&6
3850 OBJEXT=$ac_cv_objext
3851 ac_objext=$ac_cv_objext
3854 cat >> confdefs.h <<EOF
3855 #define EXEEXT "${EXEEXT}"
3859 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3860 echo "configure:3861: checking for be_app in -lbe" >&5
3861 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS="$LIBS"
3866 LIBS="-lbe -lroot -lnet $LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 LIBS="$LIBS -lbe -lroot -lnet"
3896 echo "$ac_t""no" 1>&6
3904 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3905 echo "configure:3906: checking for ${CC-cc} option to accept ANSI C" >&5
3906 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 am_cv_prog_cc_stdc=no
3911 # Don't try gcc -ansi; that turns off useful extensions and
3912 # breaks some systems' header files.
3913 # AIX -qlanglvl=ansi
3914 # Ultrix and OSF/1 -std1
3915 # HP-UX 10.20 and later -Ae
3916 # HP-UX older versions -Aa -D_HPUX_SOURCE
3917 # SVR4 -Xc -D__EXTENSIONS__
3918 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 CC="$ac_save_CC $ac_arg"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3926 #include <sys/types.h>
3927 #include <sys/stat.h>
3928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929 struct buf { int x; };
3930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931 static char *e (p, i)
3937 static char *f (char * (*g) (char **, int), char **p, ...)
3942 s = g (p, va_arg (v,int));
3946 int test (int i, double x);
3947 struct s1 {int (*f) (int a);};
3948 struct s2 {int (*f) (double a);};
3949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3959 if { (eval echo configure:3960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3961 am_cv_prog_cc_stdc="$ac_arg"; break
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3972 if test -z "$am_cv_prog_cc_stdc"; then
3973 echo "$ac_t""none needed" 1>&6
3975 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3977 case "x$am_cv_prog_cc_stdc" in
3979 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3982 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3983 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3986 # test for make depend flag
3989 if test -z "${MKDEP}"; then
3991 if test -z "${MKDEP_FLAGS}"; then
3992 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3993 echo "configure:3994: checking for ${OL_MKDEP} depend flag" >&5
3994 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3999 for flag in "-M" "-xM"; do
4000 cat > conftest.c <<EOF
4003 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4004 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4006 if test ! -f conftest."${ac_object}" ; then
4008 OL_MKDEP_FLAGS="$flag"
4017 echo "$ac_t""$ol_cv_mkdep" 1>&6
4020 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4025 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4030 if test "${ol_cv_mkdep}" = no ; then
4031 # this will soon become an error
4032 echo "configure: warning: do not know how to generate dependencies" 1>&2
4036 if test $ol_enable_modules != no ; then
4037 for ac_hdr in ltdl.h
4039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_hdr" >&5
4042 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4051 { (eval echo configure:4052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4053 if test -z "$ac_err"; then
4055 eval "ac_cv_header_$ac_safe=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 eval "ac_cv_header_$ac_safe=no"
4065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4068 cat >> confdefs.h <<EOF
4069 #define $ac_tr_hdr 1
4073 echo "$ac_t""no" 1>&6
4078 if test $ac_cv_header_ltdl_h = no ; then
4079 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4082 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4083 echo "configure:4084: checking for lt_dlinit in -lltdl" >&5
4084 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 ac_save_LIBS="$LIBS"
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4109 eval "ac_cv_lib_$ac_lib_var=no"
4112 LIBS="$ac_save_LIBS"
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4119 cat >> confdefs.h <<\EOF
4120 #define HAVE_LIBLTDL 1
4125 echo "$ac_t""no" 1>&6
4129 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4130 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4134 ol_with_bdb2_module=static
4135 ol_with_ldap_module=static
4136 ol_with_ldbm_module=static
4137 ol_with_passwd_module=static
4138 ol_with_perl_module=static
4139 ol_with_shell_module=static
4140 ol_with_tcl_module=static
4144 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4145 echo "configure:4146: checking for EBCDIC" >&5
4146 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4155 #include <__ASCII__/generate_error.h>
4159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4160 { (eval echo configure:4161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4162 if test -z "$ac_err"; then
4164 ol_cv_cpp_ebcdic=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4175 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4176 if test $ol_cv_cpp_ebcdic = yes ; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_EBCDIC 1
4183 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4184 echo "configure:4185: checking for ANSI C header files" >&5
4185 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4197 { (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4199 if test -z "$ac_err"; then
4201 ol_cv_header_stdc=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 ol_cv_header_stdc=no
4211 if test $ol_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 egrep "memchr" >/dev/null 2>&1; then
4223 ol_cv_header_stdc=no
4229 if test $ol_cv_header_stdc = yes; then
4230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 egrep "free" >/dev/null 2>&1; then
4241 ol_cv_header_stdc=no
4247 if test $ol_cv_header_stdc = yes; then
4248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4249 if test "$cross_compiling" = yes; then
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4260 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266 int main () { int i; for (i = 0; i < 256; i++)
4267 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4278 ol_cv_header_stdc=no
4286 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4287 if test $ol_cv_header_stdc = yes; then
4288 cat >> confdefs.h <<\EOF
4289 #define STDC_HEADERS 1
4293 ac_cv_header_stdc=disable
4296 if test $ol_cv_header_stdc != yes; then
4297 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4304 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_hdr that defines DIR" >&5
4306 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 #include <sys/types.h>
4318 if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4320 eval "ac_cv_header_dirent_$ac_safe=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 eval "ac_cv_header_dirent_$ac_safe=no"
4329 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_hdr 1
4335 ac_header_dirent=$ac_hdr; break
4337 echo "$ac_t""no" 1>&6
4340 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4341 if test $ac_header_dirent = dirent.h; then
4342 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4343 echo "configure:4344: checking for opendir in -ldir" >&5
4344 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 ac_save_LIBS="$LIBS"
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364 eval "ac_cv_lib_$ac_lib_var=yes"
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 eval "ac_cv_lib_$ac_lib_var=no"
4372 LIBS="$ac_save_LIBS"
4375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4379 echo "$ac_t""no" 1>&6
4383 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4384 echo "configure:4385: checking for opendir in -lx" >&5
4385 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 ac_save_LIBS="$LIBS"
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4405 eval "ac_cv_lib_$ac_lib_var=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_lib_$ac_lib_var=no"
4413 LIBS="$ac_save_LIBS"
4416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4417 echo "$ac_t""yes" 1>&6
4420 echo "$ac_t""no" 1>&6
4425 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4426 echo "configure:4427: checking for sys/wait.h that is POSIX.1 compatible" >&5
4427 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4434 #include <sys/wait.h>
4436 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4439 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4444 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4447 if { (eval echo configure:4448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4449 ac_cv_header_sys_wait_h=yes
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 ac_cv_header_sys_wait_h=no
4459 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4460 if test $ac_cv_header_sys_wait_h = yes; then
4461 cat >> confdefs.h <<\EOF
4462 #define HAVE_SYS_WAIT_H 1
4467 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4468 echo "configure:4469: checking POSIX termios" >&5
4469 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 #include <sys/types.h>
4477 #include <termios.h>
4479 /* SunOS 4.0.3 has termios.h but not the library calls. */
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 am_cv_sys_posix_termios=yes
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 am_cv_sys_posix_termios=no
4495 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4498 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4499 echo "configure:4500: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4500 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4505 gwinsz_in_termios_h=no
4506 if test $am_cv_sys_posix_termios = yes; then
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 #include <sys/types.h>
4511 # include <termios.h>
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 egrep "yes" >/dev/null 2>&1; then
4520 gwinsz_in_termios_h=yes
4526 if test $gwinsz_in_termios_h = no; then
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 #include <sys/types.h>
4531 # include <sys/ioctl.h>
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 egrep "yes" >/dev/null 2>&1; then
4540 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4548 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4549 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4550 cat >> confdefs.h <<\EOF
4551 #define GWINSZ_IN_SYS_IOCTL 1
4556 if test $am_cv_sys_posix_termios = yes ; then
4557 cat >> confdefs.h <<\EOF
4558 #define HAVE_POSIX_TERMIOS 1
4609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4611 echo "configure:4612: checking for $ac_hdr" >&5
4612 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4621 { (eval echo configure:4622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4623 if test -z "$ac_err"; then
4625 eval "ac_cv_header_$ac_safe=yes"
4628 echo "configure: failed program was:" >&5
4629 cat conftest.$ac_ext >&5
4631 eval "ac_cv_header_$ac_safe=no"
4635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4636 echo "$ac_t""yes" 1>&6
4637 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4638 cat >> confdefs.h <<EOF
4639 #define $ac_tr_hdr 1
4643 echo "$ac_t""no" 1>&6
4650 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4651 echo "configure:4652: checking for sigset in -lV3" >&5
4652 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4653 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 ac_save_LIBS="$LIBS"
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 /* Override any gcc2 internal prototype to avoid an error. */
4662 /* We use char because int might match the return type of a gcc2
4663 builtin and then its argument prototype would still apply. */
4670 if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4672 eval "ac_cv_lib_$ac_lib_var=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.$ac_ext >&5
4677 eval "ac_cv_lib_$ac_lib_var=no"
4680 LIBS="$ac_save_LIBS"
4683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4686 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4687 cat >> confdefs.h <<EOF
4688 #define $ac_tr_lib 1
4694 echo "$ac_t""no" 1>&6
4698 if test "${ac_cv_header_winsock_h}" = yes; then
4699 echo $ac_n "checking for winsock support""... $ac_c" 1>&6
4700 echo "configure:4701: checking for winsock support" >&5
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4705 #include <winsock.h>
4710 select(0,NULL,NULL,NULL,NULL);
4712 gethostname(NULL,0);
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4719 echo "$ac_t""yes" 1>&6
4720 cat >> confdefs.h <<\EOF
4721 #define HAVE_WINSOCK 1
4724 ac_cv_func_socket=yes
4725 ac_cv_func_select=yes
4726 ac_cv_func_closesocket=yes
4727 ac_cv_func_gethostname=yes
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4734 echo "$ac_t""no" 1>&6
4741 echo $ac_n "checking for socket""... $ac_c" 1>&6
4742 echo "configure:4743: checking for socket" >&5
4743 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4749 /* System header to define __stub macros and hopefully few prototypes,
4750 which can conflict with char socket(); below. */
4752 /* Override any gcc2 internal prototype to avoid an error. */
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4760 /* The GNU C library defines this for functions which it implements
4761 to always fail with ENOSYS. Some functions are actually named
4762 something starting with __ and the normal name is an alias. */
4763 #if defined (__stub_socket) || defined (__stub___socket)
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4773 eval "ac_cv_func_socket=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_func_socket=no"
4783 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4787 echo "$ac_t""no" 1>&6
4789 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4790 echo "configure:4791: checking for main in -lsocket" >&5
4791 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 ac_save_LIBS="$LIBS"
4796 LIBS="-lsocket $LIBS"
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4807 eval "ac_cv_lib_$ac_lib_var=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 eval "ac_cv_lib_$ac_lib_var=no"
4815 LIBS="$ac_save_LIBS"
4818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4822 cat >> confdefs.h <<EOF
4823 #define $ac_tr_lib 1
4826 LIBS="-lsocket $LIBS"
4829 echo "$ac_t""no" 1>&6
4832 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4833 echo "configure:4834: checking for main in -lnet" >&5
4834 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 ac_save_LIBS="$LIBS"
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4850 eval "ac_cv_lib_$ac_lib_var=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 eval "ac_cv_lib_$ac_lib_var=no"
4858 LIBS="$ac_save_LIBS"
4861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4865 cat >> confdefs.h <<EOF
4866 #define $ac_tr_lib 1
4872 echo "$ac_t""no" 1>&6
4875 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4876 echo "configure:4877: checking for socket in -lnet" >&5
4877 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 ac_save_LIBS="$LIBS"
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 eval "ac_cv_lib_$ac_lib_var=yes"
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 eval "ac_cv_lib_$ac_lib_var=no"
4905 LIBS="$ac_save_LIBS"
4908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4909 echo "$ac_t""yes" 1>&6
4910 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4912 cat >> confdefs.h <<EOF
4913 #define $ac_tr_lib 1
4919 echo "$ac_t""no" 1>&6
4922 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4923 echo "configure:4924: checking for main in -lnsl_s" >&5
4924 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 ac_save_LIBS="$LIBS"
4929 LIBS="-lnsl_s $LIBS"
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4938 if { (eval echo configure:4939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4940 eval "ac_cv_lib_$ac_lib_var=yes"
4942 echo "configure: failed program was:" >&5
4943 cat conftest.$ac_ext >&5
4945 eval "ac_cv_lib_$ac_lib_var=no"
4948 LIBS="$ac_save_LIBS"
4951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4955 cat >> confdefs.h <<EOF
4956 #define $ac_tr_lib 1
4959 LIBS="-lnsl_s $LIBS"
4962 echo "$ac_t""no" 1>&6
4965 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4966 echo "configure:4967: checking for main in -lnsl" >&5
4967 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 ac_save_LIBS="$LIBS"
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4983 eval "ac_cv_lib_$ac_lib_var=yes"
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4988 eval "ac_cv_lib_$ac_lib_var=no"
4991 LIBS="$ac_save_LIBS"
4994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4995 echo "$ac_t""yes" 1>&6
4996 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4997 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4998 cat >> confdefs.h <<EOF
4999 #define $ac_tr_lib 1
5005 echo "$ac_t""no" 1>&6
5008 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5009 echo "configure:5010: checking for socket in -linet" >&5
5010 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 ac_save_LIBS="$LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5028 if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 eval "ac_cv_lib_$ac_lib_var=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 eval "ac_cv_lib_$ac_lib_var=no"
5038 LIBS="$ac_save_LIBS"
5041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_lib 1
5052 echo "$ac_t""no" 1>&6
5055 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5056 echo "configure:5057: checking for main in -lgen" >&5
5057 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 ac_save_LIBS="$LIBS"
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5073 eval "ac_cv_lib_$ac_lib_var=yes"
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 eval "ac_cv_lib_$ac_lib_var=no"
5081 LIBS="$ac_save_LIBS"
5084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5088 cat >> confdefs.h <<EOF
5089 #define $ac_tr_lib 1
5095 echo "$ac_t""no" 1>&6
5102 echo $ac_n "checking for select""... $ac_c" 1>&6
5103 echo "configure:5104: checking for select" >&5
5104 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5110 /* System header to define __stub macros and hopefully few prototypes,
5111 which can conflict with char select(); below. */
5113 /* Override any gcc2 internal prototype to avoid an error. */
5114 /* We use char because int might match the return type of a gcc2
5115 builtin and then its argument prototype would still apply. */
5121 /* The GNU C library defines this for functions which it implements
5122 to always fail with ENOSYS. Some functions are actually named
5123 something starting with __ and the normal name is an alias. */
5124 #if defined (__stub_select) || defined (__stub___select)
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5134 eval "ac_cv_func_select=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_func_select=no"
5144 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5148 echo "$ac_t""no" 1>&6
5149 { echo "configure: error: select() required." 1>&2; exit 1; }
5153 if test "${ac_cv_header_winsock_h}" != yes; then
5154 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5155 echo "configure:5156: checking types of arguments for select()" >&5
5156 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5166 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5167 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 #ifdef HAVE_SYS_TYPES_H
5172 #include <sys/types.h>
5174 #ifdef HAVE_SYS_TIME_H
5175 #include <sys/time.h>
5177 #ifdef HAVE_SYS_SELECT_H
5178 #include <sys/select.h>
5180 #ifdef HAVE_SYS_SOCKET_H
5181 #include <sys/socket.h>
5183 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);
5188 if { (eval echo configure:5189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5190 ac_not_found=no ; break 3
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5207 if test "$ac_not_found" = yes; then
5208 ac_cv_func_select_arg1=int
5209 ac_cv_func_select_arg234='int *'
5210 ac_cv_func_select_arg5='struct timeval *'
5212 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5213 cat >> confdefs.h <<EOF
5214 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5217 cat >> confdefs.h <<EOF
5218 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5221 cat >> confdefs.h <<EOF
5222 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5229 for ac_hdr in regex.h
5231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5233 echo "configure:5234: checking for $ac_hdr" >&5
5234 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5243 { (eval echo configure:5244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5245 if test -z "$ac_err"; then
5247 eval "ac_cv_header_$ac_safe=yes"
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5253 eval "ac_cv_header_$ac_safe=no"
5257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5260 cat >> confdefs.h <<EOF
5261 #define $ac_tr_hdr 1
5265 echo "$ac_t""no" 1>&6
5269 if test "$ac_cv_header_regex_h" != yes ; then
5270 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5272 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5273 echo "configure:5274: checking for regfree" >&5
5274 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5275 echo $ac_n "(cached) $ac_c" 1>&6
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* System header to define __stub macros and hopefully few prototypes,
5281 which can conflict with char regfree(); below. */
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_regfree) || defined (__stub___regfree)
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 eval "ac_cv_func_regfree=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 eval "ac_cv_func_regfree=no"
5314 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5318 echo "$ac_t""no" 1>&6
5319 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5324 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5325 echo "configure:5326: checking for compatible POSIX regex" >&5
5326 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5330 if test "$cross_compiling" = yes; then
5331 ol_cv_c_posix_regex=cross
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5337 #include <sys/types.h>
5339 static char *pattern, *string;
5347 if(regcomp(&re, pattern, 0)) {
5351 string = "ALL MATCH";
5353 rc = regexec(&re, string, 0, (void*)0, 0);
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5362 ol_cv_c_posix_regex=yes
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 ol_cv_c_posix_regex=no
5374 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5376 if test "$ol_cv_c_posix_regex" = no ; then
5377 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5380 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5381 echo "configure:5382: checking for res_search" >&5
5382 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* System header to define __stub macros and hopefully few prototypes,
5389 which can conflict with char res_search(); below. */
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5399 /* The GNU C library defines this for functions which it implements
5400 to always fail with ENOSYS. Some functions are actually named
5401 something starting with __ and the normal name is an alias. */
5402 #if defined (__stub_res_search) || defined (__stub___res_search)
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5412 eval "ac_cv_func_res_search=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_func_res_search=no"
5422 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5423 echo "$ac_t""yes" 1>&6
5426 echo "$ac_t""no" 1>&6
5429 if test $ac_cv_func_res_search = no ; then
5430 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5431 echo "configure:5432: checking for res_search in -lbind" >&5
5432 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 ac_save_LIBS="$LIBS"
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 eval "ac_cv_lib_$ac_lib_var=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 eval "ac_cv_lib_$ac_lib_var=no"
5460 LIBS="$ac_save_LIBS"
5463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5467 cat >> confdefs.h <<EOF
5468 #define $ac_tr_lib 1
5474 echo "$ac_t""no" 1>&6
5477 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5480 if test $ac_cv_func_res_search = no ; then
5481 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5482 echo "configure:5483: checking for __res_search in -lbind" >&5
5483 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5484 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 ac_save_LIBS="$LIBS"
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5495 char __res_search();
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5503 eval "ac_cv_lib_$ac_lib_var=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 eval "ac_cv_lib_$ac_lib_var=no"
5511 LIBS="$ac_save_LIBS"
5514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5515 echo "$ac_t""yes" 1>&6
5516 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5518 cat >> confdefs.h <<EOF
5519 #define $ac_tr_lib 1
5525 echo "$ac_t""no" 1>&6
5528 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5531 if test $ac_cv_func_res_search = no ; then
5532 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5533 echo "configure:5534: checking for res_search in -lresolv" >&5
5534 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5535 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 ac_save_LIBS="$LIBS"
5539 LIBS="-lresolv $LIBS"
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5554 eval "ac_cv_lib_$ac_lib_var=yes"
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5559 eval "ac_cv_lib_$ac_lib_var=no"
5562 LIBS="$ac_save_LIBS"
5565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5568 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5569 cat >> confdefs.h <<EOF
5570 #define $ac_tr_lib 1
5573 LIBS="-lresolv $LIBS"
5576 echo "$ac_t""no" 1>&6
5579 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5582 if test "$ac_cv_func_res_search" = yes ; then
5583 cat >> confdefs.h <<\EOF
5584 #define HAVE_RES_SEARCH 1
5587 elif test $ol_enable_dns = yes ; then
5588 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5589 elif test $ol_enable_dns != no ; then
5590 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5595 if test $ol_enable_ldapd != no ; then
5596 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5598 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5599 echo "configure:5600: checking for main in -lxtpp" >&5
5600 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5601 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 ac_save_LIBS="$LIBS"
5605 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 eval "ac_cv_lib_$ac_lib_var=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 eval "ac_cv_lib_$ac_lib_var=no"
5624 LIBS="$ac_save_LIBS"
5627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5628 echo "$ac_t""yes" 1>&6
5631 cat >> confdefs.h <<\EOF
5635 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5638 echo "$ac_t""no" 1>&6
5642 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5643 echo "configure:5644: checking for main in -ldsap" >&5
5644 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 ac_save_LIBS="$LIBS"
5649 LIBS="-ldsap -lisode $LIBS"
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 eval "ac_cv_lib_$ac_lib_var=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_lib_$ac_lib_var=no"
5668 LIBS="$ac_save_LIBS"
5671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5672 echo "$ac_t""yes" 1>&6
5675 cat >> confdefs.h <<\EOF
5679 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5682 echo "$ac_t""no" 1>&6
5686 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5687 echo "configure:5688: checking for main in -lisode" >&5
5688 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 ac_save_LIBS="$LIBS"
5693 LIBS="-lisode $LIBS"
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5704 eval "ac_cv_lib_$ac_lib_var=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 eval "ac_cv_lib_$ac_lib_var=no"
5712 LIBS="$ac_save_LIBS"
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5719 cat >> confdefs.h <<\EOF
5720 #define HAVE_ISODE 1
5723 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5726 echo "$ac_t""no" 1>&6
5732 if test $ol_link_isode != no; then
5733 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5734 echo "configure:5735: checking for main in -lpp" >&5
5735 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5736 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 ac_save_LIBS="$LIBS"
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 eval "ac_cv_lib_$ac_lib_var=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_lib_$ac_lib_var=no"
5759 LIBS="$ac_save_LIBS"
5762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5765 cat >> confdefs.h <<\EOF
5769 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5772 echo "$ac_t""no" 1>&6
5777 # Extract the first word of "pepsy", so it can be a program name with args.
5778 set dummy pepsy; ac_word=$2
5779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_word" >&5
5781 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5786 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5789 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5794 for ac_dir in $ac_dummy; do
5795 test -z "$ac_dir" && ac_dir=.
5796 if test -f $ac_dir/$ac_word; then
5797 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5805 PEPSY="$ac_cv_path_PEPSY"
5806 if test -n "$PEPSY"; then
5807 echo "$ac_t""$PEPSY" 1>&6
5809 echo "$ac_t""no" 1>&6
5814 if test $ol_enable_quipu != no ; then
5815 for ac_hdr in quipu/commonarg.h
5817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_hdr" >&5
5820 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5829 { (eval echo configure:5830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5831 if test -z "$ac_err"; then
5833 eval "ac_cv_header_$ac_safe=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_header_$ac_safe=no"
5843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5844 echo "$ac_t""yes" 1>&6
5845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5846 cat >> confdefs.h <<EOF
5847 #define $ac_tr_hdr 1
5851 echo "$ac_t""no" 1>&6
5856 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5858 elif test $ol_enable_quipu = auto ; then
5859 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5861 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5867 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5868 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_hdr" >&5
5873 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5882 { (eval echo configure:5883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5884 if test -z "$ac_err"; then
5886 eval "ac_cv_header_$ac_safe=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.$ac_ext >&5
5892 eval "ac_cv_header_$ac_safe=no"
5896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5897 echo "$ac_t""yes" 1>&6
5898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5899 cat >> confdefs.h <<EOF
5900 #define $ac_tr_hdr 1
5904 echo "$ac_t""no" 1>&6
5909 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5910 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5911 echo "configure:5912: checking for main in -lkrb4" >&5
5912 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5913 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 ac_save_LIBS="$LIBS"
5917 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5926 if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 eval "ac_cv_lib_$ac_lib_var=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_lib_$ac_lib_var=no"
5936 LIBS="$ac_save_LIBS"
5939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5940 echo "$ac_t""yes" 1>&6
5943 echo "$ac_t""no" 1>&6
5948 if test $have_k5 = yes ; then
5949 ol_with_kerberos=found
5950 ol_link_kerberos=yes
5952 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5954 LIBS="$KRB_LIBS $LIBS"
5956 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5957 echo "configure:5958: checking for des_debug in Kerberos libraries" >&5
5958 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5963 LIBS="$KRB_LIBS $LIBS"
5964 cat > conftest.$ac_ext <<EOF
5965 #line 5966 "configure"
5966 #include "confdefs.h"
5968 #include <kerberosIV/krb.h>
5969 #include <kerberosIV/des.h>
5970 extern int des_debug;
5978 if { (eval echo configure:5979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5980 ol_cv_var_des_debug=yes
5982 echo "configure: failed program was:" >&5
5983 cat conftest.$ac_ext >&5
5985 ol_cv_var_des_debug=no
5992 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5994 if test $ol_cv_var_des_debug = yes ; then
5995 cat >> confdefs.h <<\EOF
5996 #define HAVE_DES_DEBUG 1
6006 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6007 -o $ol_with_kerberos = kth ; then
6009 for ac_hdr in krb.h des.h krb-archaeology.h
6011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6013 echo "configure:6014: checking for $ac_hdr" >&5
6014 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6015 echo $ac_n "(cached) $ac_c" 1>&6
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6023 { (eval echo configure:6024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6025 if test -z "$ac_err"; then
6027 eval "ac_cv_header_$ac_safe=yes"
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 eval "ac_cv_header_$ac_safe=no"
6037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_hdr 1
6045 echo "$ac_t""no" 1>&6
6050 if test $ac_cv_header_krb_h = yes ; then
6051 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6052 echo "configure:6053: checking for main in -lkrb" >&5
6053 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6054 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 ac_save_LIBS="$LIBS"
6058 LIBS="-lkrb -ldes $LIBS"
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 eval "ac_cv_lib_$ac_lib_var=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 eval "ac_cv_lib_$ac_lib_var=no"
6077 LIBS="$ac_save_LIBS"
6080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6081 echo "$ac_t""yes" 1>&6
6084 echo "$ac_t""no" 1>&6
6089 if test $have_k4 = yes ; then
6090 ol_with_kerberos=found
6091 ol_link_kerberos=yes
6093 KRB_LIBS="-lkrb -ldes"
6095 if test $ac_cv_header_krb_archaeology_h = yes ; then
6096 cat >> confdefs.h <<\EOF
6097 #define HAVE_KTH_KERBEROS 1
6105 if test $ol_link_kerberos = yes ; then
6106 cat >> confdefs.h <<\EOF
6107 #define HAVE_KERBEROS 1
6111 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6112 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6116 if test $ol_with_tls != no ; then
6118 for ac_hdr in openssl/ssl.h ssl.h
6120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6122 echo "configure:6123: checking for $ac_hdr" >&5
6123 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6132 { (eval echo configure:6133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6134 if test -z "$ac_err"; then
6136 eval "ac_cv_header_$ac_safe=yes"
6139 echo "configure: failed program was:" >&5
6140 cat conftest.$ac_ext >&5
6142 eval "ac_cv_header_$ac_safe=no"
6146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6149 cat >> confdefs.h <<EOF
6150 #define $ac_tr_hdr 1
6154 echo "$ac_t""no" 1>&6
6159 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6160 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6161 echo "configure:6162: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6162 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 ac_save_LIBS="$LIBS"
6167 LIBS="-lssl -lcrypto $LIBS"
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6174 char SSLeay_add_ssl_algorithms();
6177 SSLeay_add_ssl_algorithms()
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 eval "ac_cv_lib_$ac_lib_var=yes"
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 eval "ac_cv_lib_$ac_lib_var=no"
6190 LIBS="$ac_save_LIBS"
6193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6198 echo "$ac_t""no" 1>&6
6203 if test $have_ssleay = no ; then
6204 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6205 echo "configure:6206: checking for SSL_library_init in -lssl" >&5
6206 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 ac_save_LIBS="$LIBS"
6211 LIBS="-lssl -lcrypto $LIBS"
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6218 char SSL_library_init();
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6226 eval "ac_cv_lib_$ac_lib_var=yes"
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6231 eval "ac_cv_lib_$ac_lib_var=no"
6234 LIBS="$ac_save_LIBS"
6237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6242 echo "$ac_t""no" 1>&6
6248 if test $have_ssleay = no ; then
6249 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6250 echo "configure:6251: checking for ssl3_accept in -lssl" >&5
6251 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 ac_save_LIBS="$LIBS"
6256 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6257 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure"
6259 #include "confdefs.h"
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6271 eval "ac_cv_lib_$ac_lib_var=yes"
6273 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 eval "ac_cv_lib_$ac_lib_var=no"
6279 LIBS="$ac_save_LIBS"
6282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6283 echo "$ac_t""yes" 1>&6
6287 echo "$ac_t""no" 1>&6
6293 if test $have_ssleay = yes ; then
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_SSLEAY 1
6302 if test $need_rsaref = yes; then
6303 cat >> confdefs.h <<\EOF
6304 #define HAVE_RSAREF 1
6308 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6310 TLS_LIBS="-lssl -lcrypto"
6316 if test $ol_link_tls = yes ; then
6317 cat >> confdefs.h <<\EOF
6325 gethostbyname_r gethostbyaddr_r \
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 eval "ac_cv_func_$ac_func=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_func_$ac_func=no"
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6378 echo "$ac_t""no" 1>&6
6383 if test "$ac_cv_func_ctime_r" = no ; then
6384 ol_cv_func_ctime_r_nargs=0
6386 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6387 echo "configure:6388: checking number of arguments of ctime_r" >&5
6388 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6396 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6399 if { (eval echo configure:6400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6401 ol_cv_func_ctime_r_nargs3=yes
6403 echo "configure: failed program was:" >&5
6404 cat conftest.$ac_ext >&5
6406 ol_cv_func_ctime_r_nargs3=no
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6415 time_t ti; char *buffer; ctime_r(&ti,buffer);
6418 if { (eval echo configure:6419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6420 ol_cv_func_ctime_r_nargs2=yes
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 ol_cv_func_ctime_r_nargs2=no
6429 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6430 $ol_cv_func_ctime_r_nargs2 = no ; then
6432 ol_cv_func_ctime_r_nargs=3
6434 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6435 $ol_cv_func_ctime_r_nargs2 = yes ; then
6437 ol_cv_func_ctime_r_nargs=2
6440 ol_cv_func_ctime_r_nargs=0
6445 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6447 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6448 cat >> confdefs.h <<EOF
6449 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6456 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6457 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6458 echo "configure:6459: checking number of arguments of gethostbyname_r" >&5
6459 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6460 echo $ac_n "(cached) $ac_c" 1>&6
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 #include <sys/types.h>
6466 #include <sys/socket.h>
6467 #include <netinet/in.h>
6469 #define BUFSIZE (sizeof(struct hostent)+10)
6471 struct hostent hent; char buffer[BUFSIZE];
6472 int bufsize=BUFSIZE;int h_errno;
6473 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6474 buffer, bufsize, &h_errno);
6477 if { (eval echo configure:6478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6479 ol_cv_func_gethostbyname_r_nargs5=yes
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 ol_cv_func_gethostbyname_r_nargs5=no
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 #include <sys/types.h>
6492 #include <sys/socket.h>
6493 #include <netinet/in.h>
6495 #define BUFSIZE (sizeof(struct hostent)+10)
6497 struct hostent hent;struct hostent *rhent;
6498 char buffer[BUFSIZE];
6499 int bufsize=BUFSIZE;int h_errno;
6500 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6504 if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6506 ol_cv_func_gethostbyname_r_nargs6=yes
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 ol_cv_func_gethostbyname_r_nargs6=no
6515 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6516 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6518 ol_cv_func_gethostbyname_r_nargs=5
6520 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6521 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6523 ol_cv_func_gethostbyname_r_nargs=6
6526 ol_cv_func_gethostbyname_r_nargs=0
6531 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6532 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6533 cat >> confdefs.h <<EOF
6534 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6540 ol_cv_func_gethostbyname_r_nargs=0
6543 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6544 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6545 echo "configure:6546: checking number of arguments of gethostbyaddr_r" >&5
6546 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 #include <sys/types.h>
6553 #include <sys/socket.h>
6554 #include <netinet/in.h>
6556 #define BUFSIZE (sizeof(struct hostent)+10)
6558 struct hostent hent; char buffer[BUFSIZE];
6560 size_t alen=sizeof(struct in_addr);
6561 int bufsize=BUFSIZE;int h_errno;
6562 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6563 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6566 if { (eval echo configure:6567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6568 ol_cv_func_gethostbyaddr_r_nargs7=yes
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 ol_cv_func_gethostbyaddr_r_nargs7=no
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 #include <sys/types.h>
6581 #include <sys/socket.h>
6582 #include <netinet/in.h>
6584 #define BUFSIZE (sizeof(struct hostent)+10)
6586 struct hostent hent;
6587 struct hostent *rhent; char buffer[BUFSIZE];
6589 size_t alen=sizeof(struct in_addr);
6590 int bufsize=BUFSIZE;int h_errno;
6591 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6592 alen, AF_INET, &hent, buffer, bufsize,
6596 if { (eval echo configure:6597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598 ol_cv_func_gethostbyaddr_r_nargs8=yes
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 ol_cv_func_gethostbyaddr_r_nargs8=no
6607 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6608 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6610 ol_cv_func_gethostbyaddr_r_nargs=7
6612 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6613 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6615 ol_cv_func_gethostbyaddr_r_nargs=8
6618 ol_cv_func_gethostbyaddr_r_nargs=0
6623 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6624 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6625 cat >> confdefs.h <<EOF
6626 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6632 ol_cv_func_gethostbyaddr_r_nargs=0
6635 if test "$ac_cv_func_ctime_r" = yes \
6636 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6637 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6638 -a "$ac_cv_func_gethostbyname_r" = yes \
6639 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6640 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6641 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6642 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6643 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6646 cat >> confdefs.h <<\EOF
6647 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6654 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6655 -o $ol_with_threads = nt ; then
6657 if test "$ac_cv_mingw32" = yes ; then
6659 ol_with_threads=found
6660 ol_with_yielding_select=yes
6661 echo $ac_n "checking for NT threads""... $ac_c" 1>&6
6662 echo "configure:6663: checking for NT threads" >&5
6663 echo "$ac_t""yes" 1>&6
6664 cat >> confdefs.h <<\EOF
6665 #define HAVE_NT_THREADS 1
6671 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6672 -o $ol_with_threads = posix ; then
6674 for ac_hdr in pthread.h
6676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6678 echo "configure:6679: checking for $ac_hdr" >&5
6679 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6688 { (eval echo configure:6689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6690 if test -z "$ac_err"; then
6692 eval "ac_cv_header_$ac_safe=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_header_$ac_safe=no"
6702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6705 cat >> confdefs.h <<EOF
6706 #define $ac_tr_hdr 1
6710 echo "$ac_t""no" 1>&6
6715 if test $ac_cv_header_pthread_h = yes ; then
6716 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6717 echo "configure:6718: checking POSIX thread version" >&5
6718 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6722 cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6726 # include <pthread.h>
6727 /* this check could be improved */
6728 # ifdef PTHREAD_ONCE_INIT
6729 pthread_version_final;
6733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6734 egrep "pthread_version_final" >/dev/null 2>&1; then
6736 ol_pthread_final=yes
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6748 # include <pthread.h>
6749 /* this check could be improved */
6750 # ifdef pthread_once_init
6751 pthread_version_draft4;
6755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6758 ol_pthread_draft4=yes
6761 ol_pthread_draft4=no
6766 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6767 ol_cv_pthread_version=final
6768 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6769 ol_cv_pthread_version=draft4
6771 ol_cv_pthread_version=unknown
6776 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6779 if test $ol_cv_pthread_version = final ; then
6780 cat >> confdefs.h <<\EOF
6781 #define HAVE_PTHREADS_FINAL 1
6784 elif test $ol_cv_pthread_version = draft4 ; then
6785 cat >> confdefs.h <<\EOF
6786 #define HAVE_PTHREADS_D4 1
6790 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6793 # consider threads found
6794 ol_with_threads=found
6797 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6798 echo "configure:6799: checking for LinuxThreads pthread.h" >&5
6799 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6800 echo $ac_n "(cached) $ac_c" 1>&6
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6805 #include <pthread.h>
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6810 ol_cv_header_linux_threads=yes
6813 ol_cv_header_linux_threads=no
6820 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6821 if test $ol_cv_header_linux_threads = yes; then
6822 cat >> confdefs.h <<\EOF
6823 #define HAVE_LINUX_THREADS 1
6829 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6830 echo "configure:6831: checking for GNU Pth pthread.h" >&5
6831 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 #include <pthread.h>
6838 #ifdef _POSIX_THREAD_IS_GNU_PTH
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 egrep "__gnu_pth__" >/dev/null 2>&1; then
6846 ol_cv_header_gnu_pth_pthread_h=yes
6849 ol_cv_header_gnu_pth_pthread_h=no
6856 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6859 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6860 for ac_hdr in sched.h
6862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6864 echo "configure:6865: checking for $ac_hdr" >&5
6865 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6874 { (eval echo configure:6875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6876 if test -z "$ac_err"; then
6878 eval "ac_cv_header_$ac_safe=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_header_$ac_safe=no"
6888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6891 cat >> confdefs.h <<EOF
6892 #define $ac_tr_hdr 1
6896 echo "$ac_t""no" 1>&6
6903 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6904 echo "configure:6905: checking for pthread_create in default libraries" >&5
6905 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6906 echo $ac_n "(cached) $ac_c" 1>&6
6909 if test "$cross_compiling" = yes; then
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* pthread test headers */
6914 #include <pthread.h>
6916 #define NULL (void*)0
6919 static void *task(p)
6922 return (void *) (p == NULL);
6927 /* pthread test function */
6931 /* make sure pthread_create() isn't just a stub */
6932 #if HAVE_PTHREADS_D4
6933 status = pthread_create(&t, pthread_attr_default, task, NULL);
6935 status = pthread_create(&t, NULL, task, NULL);
6938 if( status ) exit( status );
6940 /* make sure pthread_detach() isn't just a stub */
6941 #if HAVE_PTHREADS_D4
6942 status = pthread_detach( &t );
6944 status = pthread_detach( t );
6947 #ifdef HAVE_LINUX_THREADS
6948 pthread_kill_other_threads_np();
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 ol_cv_pthread_create=yes
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 ol_cv_pthread_create=no
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* pthread test headers */
6970 #include <pthread.h>
6972 #define NULL (void*)0
6975 static void *task(p)
6978 return (void *) (p == NULL);
6982 int main(argc, argv)
6987 /* pthread test function */
6991 /* make sure pthread_create() isn't just a stub */
6992 #if HAVE_PTHREADS_D4
6993 status = pthread_create(&t, pthread_attr_default, task, NULL);
6995 status = pthread_create(&t, NULL, task, NULL);
6998 if( status ) exit( status );
7000 /* make sure pthread_detach() isn't just a stub */
7001 #if HAVE_PTHREADS_D4
7002 status = pthread_detach( &t );
7004 status = pthread_detach( t );
7007 #ifdef HAVE_LINUX_THREADS
7008 pthread_kill_other_threads_np();
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7018 ol_cv_pthread_create=yes
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7023 ol_cv_pthread_create=no
7030 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7032 if test $ol_cv_pthread_create != no ; then
7033 ol_link_threads=posix
7037 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7038 if test "$ol_link_threads" = no ; then
7040 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7041 echo "configure:7042: checking for pthread link with -kthread" >&5
7042 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7048 LIBS="-kthread $LIBS"
7050 if test "$cross_compiling" = yes; then
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7054 /* pthread test headers */
7055 #include <pthread.h>
7057 #define NULL (void*)0
7060 static void *task(p)
7063 return (void *) (p == NULL);
7068 /* pthread test function */
7072 /* make sure pthread_create() isn't just a stub */
7073 #if HAVE_PTHREADS_D4
7074 status = pthread_create(&t, pthread_attr_default, task, NULL);
7076 status = pthread_create(&t, NULL, task, NULL);
7079 if( status ) exit( status );
7081 /* make sure pthread_detach() isn't just a stub */
7082 #if HAVE_PTHREADS_D4
7083 status = pthread_detach( &t );
7085 status = pthread_detach( t );
7088 #ifdef HAVE_LINUX_THREADS
7089 pthread_kill_other_threads_np();
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7098 ol_cv_pthread_kthread=yes
7100 echo "configure: failed program was:" >&5
7101 cat conftest.$ac_ext >&5
7103 ol_cv_pthread_kthread=no
7107 cat > conftest.$ac_ext <<EOF
7108 #line 7109 "configure"
7109 #include "confdefs.h"
7110 /* pthread test headers */
7111 #include <pthread.h>
7113 #define NULL (void*)0
7116 static void *task(p)
7119 return (void *) (p == NULL);
7123 int main(argc, argv)
7128 /* pthread test function */
7132 /* make sure pthread_create() isn't just a stub */
7133 #if HAVE_PTHREADS_D4
7134 status = pthread_create(&t, pthread_attr_default, task, NULL);
7136 status = pthread_create(&t, NULL, task, NULL);
7139 if( status ) exit( status );
7141 /* make sure pthread_detach() isn't just a stub */
7142 #if HAVE_PTHREADS_D4
7143 status = pthread_detach( &t );
7145 status = pthread_detach( t );
7148 #ifdef HAVE_LINUX_THREADS
7149 pthread_kill_other_threads_np();
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7159 ol_cv_pthread_kthread=yes
7161 echo "configure: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7164 ol_cv_pthread_kthread=no
7175 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7177 if test $ol_cv_pthread_kthread = yes ; then
7178 ol_link_pthreads="-kthread"
7179 ol_link_threads=posix
7183 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7184 if test "$ol_link_threads" = no ; then
7186 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7187 echo "configure:7188: checking for pthread link with -pthread" >&5
7188 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7194 LIBS="-pthread $LIBS"
7196 if test "$cross_compiling" = yes; then
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 /* pthread test headers */
7201 #include <pthread.h>
7203 #define NULL (void*)0
7206 static void *task(p)
7209 return (void *) (p == NULL);
7214 /* pthread test function */
7218 /* make sure pthread_create() isn't just a stub */
7219 #if HAVE_PTHREADS_D4
7220 status = pthread_create(&t, pthread_attr_default, task, NULL);
7222 status = pthread_create(&t, NULL, task, NULL);
7225 if( status ) exit( status );
7227 /* make sure pthread_detach() isn't just a stub */
7228 #if HAVE_PTHREADS_D4
7229 status = pthread_detach( &t );
7231 status = pthread_detach( t );
7234 #ifdef HAVE_LINUX_THREADS
7235 pthread_kill_other_threads_np();
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244 ol_cv_pthread_pthread=yes
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 ol_cv_pthread_pthread=no
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7256 /* pthread test headers */
7257 #include <pthread.h>
7259 #define NULL (void*)0
7262 static void *task(p)
7265 return (void *) (p == NULL);
7269 int main(argc, argv)
7274 /* pthread test function */
7278 /* make sure pthread_create() isn't just a stub */
7279 #if HAVE_PTHREADS_D4
7280 status = pthread_create(&t, pthread_attr_default, task, NULL);
7282 status = pthread_create(&t, NULL, task, NULL);
7285 if( status ) exit( status );
7287 /* make sure pthread_detach() isn't just a stub */
7288 #if HAVE_PTHREADS_D4
7289 status = pthread_detach( &t );
7291 status = pthread_detach( t );
7294 #ifdef HAVE_LINUX_THREADS
7295 pthread_kill_other_threads_np();
7303 if { (eval echo configure:7304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7305 ol_cv_pthread_pthread=yes
7307 echo "configure: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7310 ol_cv_pthread_pthread=no
7321 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7323 if test $ol_cv_pthread_pthread = yes ; then
7324 ol_link_pthreads="-pthread"
7325 ol_link_threads=posix
7329 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7330 if test "$ol_link_threads" = no ; then
7332 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7333 echo "configure:7334: checking for pthread link with -pthreads" >&5
7334 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7340 LIBS="-pthreads $LIBS"
7342 if test "$cross_compiling" = yes; then
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* pthread test headers */
7347 #include <pthread.h>
7349 #define NULL (void*)0
7352 static void *task(p)
7355 return (void *) (p == NULL);
7360 /* pthread test function */
7364 /* make sure pthread_create() isn't just a stub */
7365 #if HAVE_PTHREADS_D4
7366 status = pthread_create(&t, pthread_attr_default, task, NULL);
7368 status = pthread_create(&t, NULL, task, NULL);
7371 if( status ) exit( status );
7373 /* make sure pthread_detach() isn't just a stub */
7374 #if HAVE_PTHREADS_D4
7375 status = pthread_detach( &t );
7377 status = pthread_detach( t );
7380 #ifdef HAVE_LINUX_THREADS
7381 pthread_kill_other_threads_np();
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7390 ol_cv_pthread_pthreads=yes
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7395 ol_cv_pthread_pthreads=no
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7402 /* pthread test headers */
7403 #include <pthread.h>
7405 #define NULL (void*)0
7408 static void *task(p)
7411 return (void *) (p == NULL);
7415 int main(argc, argv)
7420 /* pthread test function */
7424 /* make sure pthread_create() isn't just a stub */
7425 #if HAVE_PTHREADS_D4
7426 status = pthread_create(&t, pthread_attr_default, task, NULL);
7428 status = pthread_create(&t, NULL, task, NULL);
7431 if( status ) exit( status );
7433 /* make sure pthread_detach() isn't just a stub */
7434 #if HAVE_PTHREADS_D4
7435 status = pthread_detach( &t );
7437 status = pthread_detach( t );
7440 #ifdef HAVE_LINUX_THREADS
7441 pthread_kill_other_threads_np();
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7451 ol_cv_pthread_pthreads=yes
7453 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5
7456 ol_cv_pthread_pthreads=no
7467 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7469 if test $ol_cv_pthread_pthreads = yes ; then
7470 ol_link_pthreads="-pthreads"
7471 ol_link_threads=posix
7475 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7476 if test "$ol_link_threads" = no ; then
7478 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7479 echo "configure:7480: checking for pthread link with -mthreads" >&5
7480 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7486 LIBS="-mthreads $LIBS"
7488 if test "$cross_compiling" = yes; then
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7492 /* pthread test headers */
7493 #include <pthread.h>
7495 #define NULL (void*)0
7498 static void *task(p)
7501 return (void *) (p == NULL);
7506 /* pthread test function */
7510 /* make sure pthread_create() isn't just a stub */
7511 #if HAVE_PTHREADS_D4
7512 status = pthread_create(&t, pthread_attr_default, task, NULL);
7514 status = pthread_create(&t, NULL, task, NULL);
7517 if( status ) exit( status );
7519 /* make sure pthread_detach() isn't just a stub */
7520 #if HAVE_PTHREADS_D4
7521 status = pthread_detach( &t );
7523 status = pthread_detach( t );
7526 #ifdef HAVE_LINUX_THREADS
7527 pthread_kill_other_threads_np();
7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7536 ol_cv_pthread_mthreads=yes
7538 echo "configure: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7541 ol_cv_pthread_mthreads=no
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7548 /* pthread test headers */
7549 #include <pthread.h>
7551 #define NULL (void*)0
7554 static void *task(p)
7557 return (void *) (p == NULL);
7561 int main(argc, argv)
7566 /* pthread test function */
7570 /* make sure pthread_create() isn't just a stub */
7571 #if HAVE_PTHREADS_D4
7572 status = pthread_create(&t, pthread_attr_default, task, NULL);
7574 status = pthread_create(&t, NULL, task, NULL);
7577 if( status ) exit( status );
7579 /* make sure pthread_detach() isn't just a stub */
7580 #if HAVE_PTHREADS_D4
7581 status = pthread_detach( &t );
7583 status = pthread_detach( t );
7586 #ifdef HAVE_LINUX_THREADS
7587 pthread_kill_other_threads_np();
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7597 ol_cv_pthread_mthreads=yes
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 ol_cv_pthread_mthreads=no
7613 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7615 if test $ol_cv_pthread_mthreads = yes ; then
7616 ol_link_pthreads="-mthreads"
7617 ol_link_threads=posix
7621 # Pthread try link: -thread (ol_cv_pthread_thread)
7622 if test "$ol_link_threads" = no ; then
7624 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7625 echo "configure:7626: checking for pthread link with -thread" >&5
7626 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7632 LIBS="-thread $LIBS"
7634 if test "$cross_compiling" = yes; then
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7638 /* pthread test headers */
7639 #include <pthread.h>
7641 #define NULL (void*)0
7644 static void *task(p)
7647 return (void *) (p == NULL);
7652 /* pthread test function */
7656 /* make sure pthread_create() isn't just a stub */
7657 #if HAVE_PTHREADS_D4
7658 status = pthread_create(&t, pthread_attr_default, task, NULL);
7660 status = pthread_create(&t, NULL, task, NULL);
7663 if( status ) exit( status );
7665 /* make sure pthread_detach() isn't just a stub */
7666 #if HAVE_PTHREADS_D4
7667 status = pthread_detach( &t );
7669 status = pthread_detach( t );
7672 #ifdef HAVE_LINUX_THREADS
7673 pthread_kill_other_threads_np();
7680 if { (eval echo configure:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7682 ol_cv_pthread_thread=yes
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7687 ol_cv_pthread_thread=no
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* pthread test headers */
7695 #include <pthread.h>
7697 #define NULL (void*)0
7700 static void *task(p)
7703 return (void *) (p == NULL);
7707 int main(argc, argv)
7712 /* pthread test function */
7716 /* make sure pthread_create() isn't just a stub */
7717 #if HAVE_PTHREADS_D4
7718 status = pthread_create(&t, pthread_attr_default, task, NULL);
7720 status = pthread_create(&t, NULL, task, NULL);
7723 if( status ) exit( status );
7725 /* make sure pthread_detach() isn't just a stub */
7726 #if HAVE_PTHREADS_D4
7727 status = pthread_detach( &t );
7729 status = pthread_detach( t );
7732 #ifdef HAVE_LINUX_THREADS
7733 pthread_kill_other_threads_np();
7741 if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7743 ol_cv_pthread_thread=yes
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7748 ol_cv_pthread_thread=no
7759 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7761 if test $ol_cv_pthread_thread = yes ; then
7762 ol_link_pthreads="-thread"
7763 ol_link_threads=posix
7768 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7769 if test "$ol_link_threads" = no ; then
7770 # try -lpthread -lmach -lexc -lc_r
7771 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7772 echo "configure:7773: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7773 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7779 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7781 if test "$cross_compiling" = yes; then
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* pthread test headers */
7786 #include <pthread.h>
7788 #define NULL (void*)0
7791 static void *task(p)
7794 return (void *) (p == NULL);
7799 /* pthread test function */
7803 /* make sure pthread_create() isn't just a stub */
7804 #if HAVE_PTHREADS_D4
7805 status = pthread_create(&t, pthread_attr_default, task, NULL);
7807 status = pthread_create(&t, NULL, task, NULL);
7810 if( status ) exit( status );
7812 /* make sure pthread_detach() isn't just a stub */
7813 #if HAVE_PTHREADS_D4
7814 status = pthread_detach( &t );
7816 status = pthread_detach( t );
7819 #ifdef HAVE_LINUX_THREADS
7820 pthread_kill_other_threads_np();
7827 if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7831 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7834 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* pthread test headers */
7842 #include <pthread.h>
7844 #define NULL (void*)0
7847 static void *task(p)
7850 return (void *) (p == NULL);
7854 int main(argc, argv)
7859 /* pthread test function */
7863 /* make sure pthread_create() isn't just a stub */
7864 #if HAVE_PTHREADS_D4
7865 status = pthread_create(&t, pthread_attr_default, task, NULL);
7867 status = pthread_create(&t, NULL, task, NULL);
7870 if( status ) exit( status );
7872 /* make sure pthread_detach() isn't just a stub */
7873 #if HAVE_PTHREADS_D4
7874 status = pthread_detach( &t );
7876 status = pthread_detach( t );
7879 #ifdef HAVE_LINUX_THREADS
7880 pthread_kill_other_threads_np();
7888 if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7890 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7895 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7906 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7908 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7909 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7910 ol_link_threads=posix
7914 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7915 if test "$ol_link_threads" = no ; then
7916 # try -lpthread -lmach -lexc
7917 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7918 echo "configure:7919: checking for pthread link with -lpthread -lmach -lexc" >&5
7919 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7920 echo $ac_n "(cached) $ac_c" 1>&6
7925 LIBS="-lpthread -lmach -lexc $LIBS"
7927 if test "$cross_compiling" = yes; then
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 /* pthread test headers */
7932 #include <pthread.h>
7934 #define NULL (void*)0
7937 static void *task(p)
7940 return (void *) (p == NULL);
7945 /* pthread test function */
7949 /* make sure pthread_create() isn't just a stub */
7950 #if HAVE_PTHREADS_D4
7951 status = pthread_create(&t, pthread_attr_default, task, NULL);
7953 status = pthread_create(&t, NULL, task, NULL);
7956 if( status ) exit( status );
7958 /* make sure pthread_detach() isn't just a stub */
7959 #if HAVE_PTHREADS_D4
7960 status = pthread_detach( &t );
7962 status = pthread_detach( t );
7965 #ifdef HAVE_LINUX_THREADS
7966 pthread_kill_other_threads_np();
7973 if { (eval echo configure:7974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7975 ol_cv_pthread_lpthread_lmach_lexc=yes
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 ol_cv_pthread_lpthread_lmach_lexc=no
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7987 /* pthread test headers */
7988 #include <pthread.h>
7990 #define NULL (void*)0
7993 static void *task(p)
7996 return (void *) (p == NULL);
8000 int main(argc, argv)
8005 /* pthread test function */
8009 /* make sure pthread_create() isn't just a stub */
8010 #if HAVE_PTHREADS_D4
8011 status = pthread_create(&t, pthread_attr_default, task, NULL);
8013 status = pthread_create(&t, NULL, task, NULL);
8016 if( status ) exit( status );
8018 /* make sure pthread_detach() isn't just a stub */
8019 #if HAVE_PTHREADS_D4
8020 status = pthread_detach( &t );
8022 status = pthread_detach( t );
8025 #ifdef HAVE_LINUX_THREADS
8026 pthread_kill_other_threads_np();
8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8036 ol_cv_pthread_lpthread_lmach_lexc=yes
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 ol_cv_pthread_lpthread_lmach_lexc=no
8052 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8054 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8055 ol_link_pthreads="-lpthread -lmach -lexc"
8056 ol_link_threads=posix
8061 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8062 if test "$ol_link_threads" = no ; then
8063 # try -lpthread -Wl,-woff,85
8064 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8065 echo "configure:8066: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8066 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8072 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8074 if test "$cross_compiling" = yes; then
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 /* pthread test headers */
8079 #include <pthread.h>
8081 #define NULL (void*)0
8084 static void *task(p)
8087 return (void *) (p == NULL);
8092 /* pthread test function */
8096 /* make sure pthread_create() isn't just a stub */
8097 #if HAVE_PTHREADS_D4
8098 status = pthread_create(&t, pthread_attr_default, task, NULL);
8100 status = pthread_create(&t, NULL, task, NULL);
8103 if( status ) exit( status );
8105 /* make sure pthread_detach() isn't just a stub */
8106 #if HAVE_PTHREADS_D4
8107 status = pthread_detach( &t );
8109 status = pthread_detach( t );
8112 #ifdef HAVE_LINUX_THREADS
8113 pthread_kill_other_threads_np();
8120 if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8122 ol_cv_pthread_lib_lpthread_woff=yes
8124 echo "configure: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8127 ol_cv_pthread_lib_lpthread_woff=no
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 /* pthread test headers */
8135 #include <pthread.h>
8137 #define NULL (void*)0
8140 static void *task(p)
8143 return (void *) (p == NULL);
8147 int main(argc, argv)
8152 /* pthread test function */
8156 /* make sure pthread_create() isn't just a stub */
8157 #if HAVE_PTHREADS_D4
8158 status = pthread_create(&t, pthread_attr_default, task, NULL);
8160 status = pthread_create(&t, NULL, task, NULL);
8163 if( status ) exit( status );
8165 /* make sure pthread_detach() isn't just a stub */
8166 #if HAVE_PTHREADS_D4
8167 status = pthread_detach( &t );
8169 status = pthread_detach( t );
8172 #ifdef HAVE_LINUX_THREADS
8173 pthread_kill_other_threads_np();
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8183 ol_cv_pthread_lib_lpthread_woff=yes
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 ol_cv_pthread_lib_lpthread_woff=no
8199 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8201 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8202 ol_link_pthreads="-lpthread -Wl,-woff,85"
8203 ol_link_threads=posix
8208 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8209 if test "$ol_link_threads" = no ; then
8211 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8212 echo "configure:8213: checking for pthread link with -lpthread" >&5
8213 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8219 LIBS="-lpthread $LIBS"
8221 if test "$cross_compiling" = yes; then
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8225 /* pthread test headers */
8226 #include <pthread.h>
8228 #define NULL (void*)0
8231 static void *task(p)
8234 return (void *) (p == NULL);
8239 /* pthread test function */
8243 /* make sure pthread_create() isn't just a stub */
8244 #if HAVE_PTHREADS_D4
8245 status = pthread_create(&t, pthread_attr_default, task, NULL);
8247 status = pthread_create(&t, NULL, task, NULL);
8250 if( status ) exit( status );
8252 /* make sure pthread_detach() isn't just a stub */
8253 #if HAVE_PTHREADS_D4
8254 status = pthread_detach( &t );
8256 status = pthread_detach( t );
8259 #ifdef HAVE_LINUX_THREADS
8260 pthread_kill_other_threads_np();
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 ol_cv_pthread_lpthread=yes
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 ol_cv_pthread_lpthread=no
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure"
8280 #include "confdefs.h"
8281 /* pthread test headers */
8282 #include <pthread.h>
8284 #define NULL (void*)0
8287 static void *task(p)
8290 return (void *) (p == NULL);
8294 int main(argc, argv)
8299 /* pthread test function */
8303 /* make sure pthread_create() isn't just a stub */
8304 #if HAVE_PTHREADS_D4
8305 status = pthread_create(&t, pthread_attr_default, task, NULL);
8307 status = pthread_create(&t, NULL, task, NULL);
8310 if( status ) exit( status );
8312 /* make sure pthread_detach() isn't just a stub */
8313 #if HAVE_PTHREADS_D4
8314 status = pthread_detach( &t );
8316 status = pthread_detach( t );
8319 #ifdef HAVE_LINUX_THREADS
8320 pthread_kill_other_threads_np();
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8330 ol_cv_pthread_lpthread=yes
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 ol_cv_pthread_lpthread=no
8346 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8348 if test $ol_cv_pthread_lpthread = yes ; then
8349 ol_link_pthreads="-lpthread"
8350 ol_link_threads=posix
8354 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8355 if test "$ol_link_threads" = no ; then
8357 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8358 echo "configure:8359: checking for pthread link with -lc_r" >&5
8359 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8367 if test "$cross_compiling" = yes; then
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 /* pthread test headers */
8372 #include <pthread.h>
8374 #define NULL (void*)0
8377 static void *task(p)
8380 return (void *) (p == NULL);
8385 /* pthread test function */
8389 /* make sure pthread_create() isn't just a stub */
8390 #if HAVE_PTHREADS_D4
8391 status = pthread_create(&t, pthread_attr_default, task, NULL);
8393 status = pthread_create(&t, NULL, task, NULL);
8396 if( status ) exit( status );
8398 /* make sure pthread_detach() isn't just a stub */
8399 #if HAVE_PTHREADS_D4
8400 status = pthread_detach( &t );
8402 status = pthread_detach( t );
8405 #ifdef HAVE_LINUX_THREADS
8406 pthread_kill_other_threads_np();
8413 if { (eval echo configure:8414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415 ol_cv_pthread_lc_r=yes
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 ol_cv_pthread_lc_r=no
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8427 /* pthread test headers */
8428 #include <pthread.h>
8430 #define NULL (void*)0
8433 static void *task(p)
8436 return (void *) (p == NULL);
8440 int main(argc, argv)
8445 /* pthread test function */
8449 /* make sure pthread_create() isn't just a stub */
8450 #if HAVE_PTHREADS_D4
8451 status = pthread_create(&t, pthread_attr_default, task, NULL);
8453 status = pthread_create(&t, NULL, task, NULL);
8456 if( status ) exit( status );
8458 /* make sure pthread_detach() isn't just a stub */
8459 #if HAVE_PTHREADS_D4
8460 status = pthread_detach( &t );
8462 status = pthread_detach( t );
8465 #ifdef HAVE_LINUX_THREADS
8466 pthread_kill_other_threads_np();
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8476 ol_cv_pthread_lc_r=yes
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 ol_cv_pthread_lc_r=no
8492 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8494 if test $ol_cv_pthread_lc_r = yes ; then
8495 ol_link_pthreads="-lc_r"
8496 ol_link_threads=posix
8501 # Pthread try link: -threads (ol_cv_pthread_threads)
8502 if test "$ol_link_threads" = no ; then
8504 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8505 echo "configure:8506: checking for pthread link with -threads" >&5
8506 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8512 LIBS="-threads $LIBS"
8514 if test "$cross_compiling" = yes; then
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8518 /* pthread test headers */
8519 #include <pthread.h>
8521 #define NULL (void*)0
8524 static void *task(p)
8527 return (void *) (p == NULL);
8532 /* pthread test function */
8536 /* make sure pthread_create() isn't just a stub */
8537 #if HAVE_PTHREADS_D4
8538 status = pthread_create(&t, pthread_attr_default, task, NULL);
8540 status = pthread_create(&t, NULL, task, NULL);
8543 if( status ) exit( status );
8545 /* make sure pthread_detach() isn't just a stub */
8546 #if HAVE_PTHREADS_D4
8547 status = pthread_detach( &t );
8549 status = pthread_detach( t );
8552 #ifdef HAVE_LINUX_THREADS
8553 pthread_kill_other_threads_np();
8560 if { (eval echo configure:8561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8562 ol_cv_pthread_threads=yes
8564 echo "configure: failed program was:" >&5
8565 cat conftest.$ac_ext >&5
8567 ol_cv_pthread_threads=no
8571 cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8574 /* pthread test headers */
8575 #include <pthread.h>
8577 #define NULL (void*)0
8580 static void *task(p)
8583 return (void *) (p == NULL);
8587 int main(argc, argv)
8592 /* pthread test function */
8596 /* make sure pthread_create() isn't just a stub */
8597 #if HAVE_PTHREADS_D4
8598 status = pthread_create(&t, pthread_attr_default, task, NULL);
8600 status = pthread_create(&t, NULL, task, NULL);
8603 if( status ) exit( status );
8605 /* make sure pthread_detach() isn't just a stub */
8606 #if HAVE_PTHREADS_D4
8607 status = pthread_detach( &t );
8609 status = pthread_detach( t );
8612 #ifdef HAVE_LINUX_THREADS
8613 pthread_kill_other_threads_np();
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8623 ol_cv_pthread_threads=yes
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 ol_cv_pthread_threads=no
8639 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8641 if test $ol_cv_pthread_threads = yes ; then
8642 ol_link_pthreads="-threads"
8643 ol_link_threads=posix
8648 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8649 if test "$ol_link_threads" = no ; then
8650 # try -lpthreads -lmach -lexc -lc_r
8651 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8652 echo "configure:8653: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8653 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8659 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8661 if test "$cross_compiling" = yes; then
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 /* pthread test headers */
8666 #include <pthread.h>
8668 #define NULL (void*)0
8671 static void *task(p)
8674 return (void *) (p == NULL);
8679 /* pthread test function */
8683 /* make sure pthread_create() isn't just a stub */
8684 #if HAVE_PTHREADS_D4
8685 status = pthread_create(&t, pthread_attr_default, task, NULL);
8687 status = pthread_create(&t, NULL, task, NULL);
8690 if( status ) exit( status );
8692 /* make sure pthread_detach() isn't just a stub */
8693 #if HAVE_PTHREADS_D4
8694 status = pthread_detach( &t );
8696 status = pthread_detach( t );
8699 #ifdef HAVE_LINUX_THREADS
8700 pthread_kill_other_threads_np();
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 /* pthread test headers */
8722 #include <pthread.h>
8724 #define NULL (void*)0
8727 static void *task(p)
8730 return (void *) (p == NULL);
8734 int main(argc, argv)
8739 /* pthread test function */
8743 /* make sure pthread_create() isn't just a stub */
8744 #if HAVE_PTHREADS_D4
8745 status = pthread_create(&t, pthread_attr_default, task, NULL);
8747 status = pthread_create(&t, NULL, task, NULL);
8750 if( status ) exit( status );
8752 /* make sure pthread_detach() isn't just a stub */
8753 #if HAVE_PTHREADS_D4
8754 status = pthread_detach( &t );
8756 status = pthread_detach( t );
8759 #ifdef HAVE_LINUX_THREADS
8760 pthread_kill_other_threads_np();
8768 if { (eval echo configure:8769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8770 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8786 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8788 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8789 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8790 ol_link_threads=posix
8794 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8795 if test "$ol_link_threads" = no ; then
8796 # try -lpthreads -lmach -lexc
8797 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8798 echo "configure:8799: checking for pthread link with -lpthreads -lmach -lexc" >&5
8799 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8805 LIBS="-lpthreads -lmach -lexc $LIBS"
8807 if test "$cross_compiling" = yes; then
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 /* pthread test headers */
8812 #include <pthread.h>
8814 #define NULL (void*)0
8817 static void *task(p)
8820 return (void *) (p == NULL);
8825 /* pthread test function */
8829 /* make sure pthread_create() isn't just a stub */
8830 #if HAVE_PTHREADS_D4
8831 status = pthread_create(&t, pthread_attr_default, task, NULL);
8833 status = pthread_create(&t, NULL, task, NULL);
8836 if( status ) exit( status );
8838 /* make sure pthread_detach() isn't just a stub */
8839 #if HAVE_PTHREADS_D4
8840 status = pthread_detach( &t );
8842 status = pthread_detach( t );
8845 #ifdef HAVE_LINUX_THREADS
8846 pthread_kill_other_threads_np();
8853 if { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8855 ol_cv_pthread_lpthreads_lmach_lexc=yes
8857 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8860 ol_cv_pthread_lpthreads_lmach_lexc=no
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
8866 #include "confdefs.h"
8867 /* pthread test headers */
8868 #include <pthread.h>
8870 #define NULL (void*)0
8873 static void *task(p)
8876 return (void *) (p == NULL);
8880 int main(argc, argv)
8885 /* pthread test function */
8889 /* make sure pthread_create() isn't just a stub */
8890 #if HAVE_PTHREADS_D4
8891 status = pthread_create(&t, pthread_attr_default, task, NULL);
8893 status = pthread_create(&t, NULL, task, NULL);
8896 if( status ) exit( status );
8898 /* make sure pthread_detach() isn't just a stub */
8899 #if HAVE_PTHREADS_D4
8900 status = pthread_detach( &t );
8902 status = pthread_detach( t );
8905 #ifdef HAVE_LINUX_THREADS
8906 pthread_kill_other_threads_np();
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8916 ol_cv_pthread_lpthreads_lmach_lexc=yes
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 ol_cv_pthread_lpthreads_lmach_lexc=no
8932 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8934 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8935 ol_link_pthreads="-lpthreads -lmach -lexc"
8936 ol_link_threads=posix
8940 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8941 if test "$ol_link_threads" = no ; then
8942 # try -lpthreads -lexc
8943 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8944 echo "configure:8945: checking for pthread link with -lpthreads -lexc" >&5
8945 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8951 LIBS="-lpthreads -lexc $LIBS"
8953 if test "$cross_compiling" = yes; then
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 /* pthread test headers */
8958 #include <pthread.h>
8960 #define NULL (void*)0
8963 static void *task(p)
8966 return (void *) (p == NULL);
8971 /* pthread test function */
8975 /* make sure pthread_create() isn't just a stub */
8976 #if HAVE_PTHREADS_D4
8977 status = pthread_create(&t, pthread_attr_default, task, NULL);
8979 status = pthread_create(&t, NULL, task, NULL);
8982 if( status ) exit( status );
8984 /* make sure pthread_detach() isn't just a stub */
8985 #if HAVE_PTHREADS_D4
8986 status = pthread_detach( &t );
8988 status = pthread_detach( t );
8991 #ifdef HAVE_LINUX_THREADS
8992 pthread_kill_other_threads_np();
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9001 ol_cv_pthread_lpthreads_lexc=yes
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 ol_cv_pthread_lpthreads_lexc=no
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9013 /* pthread test headers */
9014 #include <pthread.h>
9016 #define NULL (void*)0
9019 static void *task(p)
9022 return (void *) (p == NULL);
9026 int main(argc, argv)
9031 /* pthread test function */
9035 /* make sure pthread_create() isn't just a stub */
9036 #if HAVE_PTHREADS_D4
9037 status = pthread_create(&t, pthread_attr_default, task, NULL);
9039 status = pthread_create(&t, NULL, task, NULL);
9042 if( status ) exit( status );
9044 /* make sure pthread_detach() isn't just a stub */
9045 #if HAVE_PTHREADS_D4
9046 status = pthread_detach( &t );
9048 status = pthread_detach( t );
9051 #ifdef HAVE_LINUX_THREADS
9052 pthread_kill_other_threads_np();
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9062 ol_cv_pthread_lpthreads_lexc=yes
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9067 ol_cv_pthread_lpthreads_lexc=no
9078 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9080 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9081 ol_link_pthreads="-lpthreads -lexc"
9082 ol_link_threads=posix
9087 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9088 if test "$ol_link_threads" = no ; then
9090 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9091 echo "configure:9092: checking for pthread link with -lpthreads" >&5
9092 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9098 LIBS="-lpthreads $LIBS"
9100 if test "$cross_compiling" = yes; then
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9104 /* pthread test headers */
9105 #include <pthread.h>
9107 #define NULL (void*)0
9110 static void *task(p)
9113 return (void *) (p == NULL);
9118 /* pthread test function */
9122 /* make sure pthread_create() isn't just a stub */
9123 #if HAVE_PTHREADS_D4
9124 status = pthread_create(&t, pthread_attr_default, task, NULL);
9126 status = pthread_create(&t, NULL, task, NULL);
9129 if( status ) exit( status );
9131 /* make sure pthread_detach() isn't just a stub */
9132 #if HAVE_PTHREADS_D4
9133 status = pthread_detach( &t );
9135 status = pthread_detach( t );
9138 #ifdef HAVE_LINUX_THREADS
9139 pthread_kill_other_threads_np();
9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9148 ol_cv_pthread_lib_lpthreads=yes
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 ol_cv_pthread_lib_lpthreads=no
9157 cat > conftest.$ac_ext <<EOF
9158 #line 9159 "configure"
9159 #include "confdefs.h"
9160 /* pthread test headers */
9161 #include <pthread.h>
9163 #define NULL (void*)0
9166 static void *task(p)
9169 return (void *) (p == NULL);
9173 int main(argc, argv)
9178 /* pthread test function */
9182 /* make sure pthread_create() isn't just a stub */
9183 #if HAVE_PTHREADS_D4
9184 status = pthread_create(&t, pthread_attr_default, task, NULL);
9186 status = pthread_create(&t, NULL, task, NULL);
9189 if( status ) exit( status );
9191 /* make sure pthread_detach() isn't just a stub */
9192 #if HAVE_PTHREADS_D4
9193 status = pthread_detach( &t );
9195 status = pthread_detach( t );
9198 #ifdef HAVE_LINUX_THREADS
9199 pthread_kill_other_threads_np();
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9209 ol_cv_pthread_lib_lpthreads=yes
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 ol_cv_pthread_lib_lpthreads=no
9225 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9227 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9228 ol_link_pthreads="-lpthreads"
9229 ol_link_threads=posix
9234 if test $ol_link_threads != no ; then
9235 cat >> confdefs.h <<\EOF
9236 #define HAVE_PTHREADS 1
9240 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9242 save_CPPFLAGS="$CPPFLAGS"
9244 LIBS="$LTHREAD_LIBS $LIBS"
9246 for ac_func in sched_yield pthread_yield
9248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9249 echo "configure:9250: checking for $ac_func" >&5
9250 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 /* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char $ac_func(); below. */
9259 /* Override any gcc2 internal prototype to avoid an error. */
9260 /* We use char because int might match the return type of a gcc2
9261 builtin and then its argument prototype would still apply. */
9267 /* The GNU C library defines this for functions which it implements
9268 to always fail with ENOSYS. Some functions are actually named
9269 something starting with __ and the normal name is an alias. */
9270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280 eval "ac_cv_func_$ac_func=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_func_$ac_func=no"
9290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9291 echo "$ac_t""yes" 1>&6
9292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9293 cat >> confdefs.h <<EOF
9294 #define $ac_tr_func 1
9298 echo "$ac_t""no" 1>&6
9303 if test $ac_cv_func_sched_yield = no -a \
9304 $ac_cv_func_pthread_yield = no ; then
9305 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9306 echo "configure:9307: checking for sched_yield in -lrt" >&5
9307 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9308 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9311 ac_save_LIBS="$LIBS"
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9316 /* Override any gcc2 internal prototype to avoid an error. */
9317 /* We use char because int might match the return type of a gcc2
9318 builtin and then its argument prototype would still apply. */
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9327 eval "ac_cv_lib_$ac_lib_var=yes"
9329 echo "configure: failed program was:" >&5
9330 cat conftest.$ac_ext >&5
9332 eval "ac_cv_lib_$ac_lib_var=no"
9335 LIBS="$ac_save_LIBS"
9338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9339 echo "$ac_t""yes" 1>&6
9340 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9341 cat >> confdefs.h <<\EOF
9342 #define HAVE_SCHED_YIELD 1
9345 ac_cv_func_sched_yield=yes
9347 echo "$ac_t""no" 1>&6
9348 ac_cv_func_sched_yield=no
9352 if test $ac_cv_func_sched_yield = no -a \
9353 $ac_cv_func_pthread_yield = no ; then
9354 for ac_func in thr_yield
9356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9357 echo "configure:9358: checking for $ac_func" >&5
9358 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364 /* System header to define __stub macros and hopefully few prototypes,
9365 which can conflict with char $ac_func(); below. */
9367 /* Override any gcc2 internal prototype to avoid an error. */
9368 /* We use char because int might match the return type of a gcc2
9369 builtin and then its argument prototype would still apply. */
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9388 eval "ac_cv_func_$ac_func=yes"
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9393 eval "ac_cv_func_$ac_func=no"
9398 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9401 cat >> confdefs.h <<EOF
9402 #define $ac_tr_func 1
9406 echo "$ac_t""no" 1>&6
9411 if test $ac_cv_func_sched_yield = no -a \
9412 $ac_cv_func_pthread_yield = no -a \
9413 "$ac_cv_func_thr_yield" = no ; then
9414 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9417 for ac_func in pthread_kill
9419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9420 echo "configure:9421: checking for $ac_func" >&5
9421 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9424 cat > conftest.$ac_ext <<EOF
9425 #line 9426 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9438 /* The GNU C library defines this for functions which it implements
9439 to always fail with ENOSYS. Some functions are actually named
9440 something starting with __ and the normal name is an alias. */
9441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9449 if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9451 eval "ac_cv_func_$ac_func=yes"
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 eval "ac_cv_func_$ac_func=no"
9461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9462 echo "$ac_t""yes" 1>&6
9463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9464 cat >> confdefs.h <<EOF
9465 #define $ac_tr_func 1
9469 echo "$ac_t""no" 1>&6
9474 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9475 echo "configure:9476: checking for pthread_detach with <pthread.h>" >&5
9476 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9484 #include <pthread.h>
9486 #define NULL (void*)0
9490 pthread_detach(NULL);
9493 if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9495 ol_cv_func_pthread_detach=yes
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9500 ol_cv_func_pthread_detach=no
9506 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9508 if test $ol_cv_func_pthread_detach = no ; then
9509 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9512 cat >> confdefs.h <<\EOF
9513 #define HAVE_PTHREAD_DETACH 1
9518 pthread_setconcurrency \
9519 pthread_getconcurrency \
9520 thr_setconcurrency \
9521 thr_getconcurrency \
9524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9525 echo "configure:9526: checking for $ac_func" >&5
9526 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func(); below. */
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9543 /* The GNU C library defines this for functions which it implements
9544 to always fail with ENOSYS. Some functions are actually named
9545 something starting with __ and the normal name is an alias. */
9546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556 eval "ac_cv_func_$ac_func=yes"
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9561 eval "ac_cv_func_$ac_func=no"
9566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9567 echo "$ac_t""yes" 1>&6
9568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9569 cat >> confdefs.h <<EOF
9570 #define $ac_tr_func 1
9574 echo "$ac_t""no" 1>&6
9580 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9581 echo "configure:9582: checking for pthread_kill_other_threads_np" >&5
9582 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char pthread_kill_other_threads_np(); below. */
9591 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */
9594 char pthread_kill_other_threads_np();
9599 /* The GNU C library defines this for functions which it implements
9600 to always fail with ENOSYS. Some functions are actually named
9601 something starting with __ and the normal name is an alias. */
9602 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9605 f = pthread_kill_other_threads_np;
9610 if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9612 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9622 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
9626 echo "$ac_t""no" 1>&6
9629 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9630 echo "configure:9631: checking for LinuxThreads implementation" >&5
9631 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9634 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9637 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9642 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9643 echo "configure:9644: checking for LinuxThreads consistency" >&5
9644 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9648 if test $ol_cv_header_linux_threads = yes -a \
9649 $ol_cv_sys_linux_threads = yes; then
9650 ol_cv_linux_threads=yes
9651 elif test $ol_cv_header_linux_threads = no -a \
9652 $ol_cv_sys_linux_threads = no; then
9653 ol_cv_linux_threads=no
9655 ol_cv_linux_threads=error
9660 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9663 if test $ol_cv_linux_threads = error; then
9664 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9667 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9668 echo "configure:9669: checking if pthread_create() works" >&5
9669 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9673 if test "$cross_compiling" = yes; then
9674 ol_cv_pthread_create_works=yes
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 /* pthread test headers */
9680 #include <pthread.h>
9682 #define NULL (void*)0
9685 static void *task(p)
9688 return (void *) (p == NULL);
9692 int main(argc, argv)
9697 /* pthread test function */
9701 /* make sure pthread_create() isn't just a stub */
9702 #if HAVE_PTHREADS_D4
9703 status = pthread_create(&t, pthread_attr_default, task, NULL);
9705 status = pthread_create(&t, NULL, task, NULL);
9708 if( status ) exit( status );
9710 /* make sure pthread_detach() isn't just a stub */
9711 #if HAVE_PTHREADS_D4
9712 status = pthread_detach( &t );
9714 status = pthread_detach( t );
9717 #ifdef HAVE_LINUX_THREADS
9718 pthread_kill_other_threads_np();
9726 if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9728 ol_cv_pthread_create_works=yes
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 ol_cv_pthread_create_works=no
9740 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9742 if test $ol_cv_pthread_create_works = no ; then
9743 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9746 if test $ol_with_yielding_select = auto ; then
9747 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9748 echo "configure:9749: checking if select yields when using pthreads" >&5
9749 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9753 if test "$cross_compiling" = yes; then
9754 ol_cv_pthread_select_yields=cross
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9760 #include <sys/types.h>
9761 #include <sys/time.h>
9763 #include <pthread.h>
9765 #define NULL (void*) 0
9768 static int fildes[2];
9770 static void *task(p)
9782 FD_SET(fildes[0], &rfds);
9784 /* we're not interested in any fds */
9785 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9792 exit(0); /* if we exit here, the select blocked the whole process */
9795 int main(argc, argv)
9801 /* create a pipe to select */
9802 if(pipe(&fildes[0])) {
9807 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9808 (void) pthread_setconcurrency(2);
9810 #ifdef HAVE_THR_SETCONCURRENCY
9811 /* Set Solaris LWP concurrency to 2 */
9812 thr_setconcurrency(2);
9816 #if HAVE_PTHREADS_D4
9817 pthread_create(&t, pthread_attr_default, task, NULL);
9819 pthread_create(&t, NULL, task, NULL);
9822 #if HAVE_SCHED_YIELD
9823 sched_yield(); /* make sure task runs first */
9825 #ifdef HAVE_PTHREAD_YIELD
9826 pthread_yield(); /* make sure task runs first */
9833 if { (eval echo configure:9834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9835 ol_cv_pthread_select_yields=no
9837 echo "configure: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9840 ol_cv_pthread_select_yields=yes
9847 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9849 if test $ol_cv_pthread_select_yields = cross ; then
9850 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9853 if test $ol_cv_pthread_select_yields = yes ; then
9854 ol_with_yielding_select=yes
9858 CPPFLAGS="$save_CPPFLAGS"
9861 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9865 if test $ol_with_threads = posix ; then
9866 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9870 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9871 -o $ol_with_threads = mach ; then
9873 for ac_hdr in mach/cthreads.h
9875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9877 echo "configure:9878: checking for $ac_hdr" >&5
9878 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9887 { (eval echo configure:9888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9889 if test -z "$ac_err"; then
9891 eval "ac_cv_header_$ac_safe=yes"
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9897 eval "ac_cv_header_$ac_safe=no"
9901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9902 echo "$ac_t""yes" 1>&6
9903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9904 cat >> confdefs.h <<EOF
9905 #define $ac_tr_hdr 1
9909 echo "$ac_t""no" 1>&6
9913 if test $ac_cv_header_mach_cthreads_h = yes ; then
9914 ol_with_threads=found
9916 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9917 echo "configure:9918: checking for cthread_fork" >&5
9918 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9919 echo $ac_n "(cached) $ac_c" 1>&6
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 /* System header to define __stub macros and hopefully few prototypes,
9925 which can conflict with char cthread_fork(); below. */
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9930 char cthread_fork();
9935 /* The GNU C library defines this for functions which it implements
9936 to always fail with ENOSYS. Some functions are actually named
9937 something starting with __ and the normal name is an alias. */
9938 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9946 if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948 eval "ac_cv_func_cthread_fork=yes"
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9953 eval "ac_cv_func_cthread_fork=no"
9958 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9962 echo "$ac_t""no" 1>&6
9966 if test $ol_link_threads = no ; then
9967 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9968 echo "configure:9969: checking for cthread_fork with -all_load" >&5
9969 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9974 LIBS="-all_load $LIBS"
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <mach/cthreads.h>
9981 cthread_fork((void *)0, (void *)0);
9985 if { (eval echo configure:9986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 ol_cv_cthread_all_load=yes
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9992 ol_cv_cthread_all_load=no
9999 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10001 if test $ol_cv_cthread_all_load = yes ; then
10002 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10003 ol_link_threads=mach
10007 if test $ol_link_threads != no ; then
10008 : check for cthread specific functionality here
10009 cat >> confdefs.h <<\EOF
10010 #define HAVE_MACH_CTHREADS 1
10014 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10018 if test $ol_with_threads = mach ; then
10019 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10023 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10024 -o $ol_with_threads = pth ; then
10026 for ac_hdr in pth.h
10028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10030 echo "configure:10031: checking for $ac_hdr" >&5
10031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10040 { (eval echo configure:10041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10042 if test -z "$ac_err"; then
10044 eval "ac_cv_header_$ac_safe=yes"
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10050 eval "ac_cv_header_$ac_safe=no"
10054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10055 echo "$ac_t""yes" 1>&6
10056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10057 cat >> confdefs.h <<EOF
10058 #define $ac_tr_hdr 1
10062 echo "$ac_t""no" 1>&6
10067 if test $ac_cv_header_pth_h = yes ; then
10068 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10069 echo "configure:10070: checking for pth_version in -lpth" >&5
10070 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10074 ac_save_LIBS="$LIBS"
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10079 /* Override any gcc2 internal prototype to avoid an error. */
10080 /* We use char because int might match the return type of a gcc2
10081 builtin and then its argument prototype would still apply. */
10082 char pth_version();
10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 eval "ac_cv_lib_$ac_lib_var=yes"
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 eval "ac_cv_lib_$ac_lib_var=no"
10098 LIBS="$ac_save_LIBS"
10101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10102 echo "$ac_t""yes" 1>&6
10105 echo "$ac_t""no" 1>&6
10110 if test $have_pth = yes ; then
10111 cat >> confdefs.h <<\EOF
10112 #define HAVE_GNU_PTH 1
10115 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10116 ol_link_threads=pth
10118 if test $ol_with_yielding_select = auto ; then
10119 ol_with_yielding_select=yes
10125 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10126 -o $ol_with_threads = lwp ; then
10128 for ac_hdr in thread.h synch.h
10130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10132 echo "configure:10133: checking for $ac_hdr" >&5
10133 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10134 echo $ac_n "(cached) $ac_c" 1>&6
10136 cat > conftest.$ac_ext <<EOF
10137 #line 10138 "configure"
10138 #include "confdefs.h"
10141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10142 { (eval echo configure:10143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10144 if test -z "$ac_err"; then
10146 eval "ac_cv_header_$ac_safe=yes"
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 eval "ac_cv_header_$ac_safe=no"
10156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10157 echo "$ac_t""yes" 1>&6
10158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10159 cat >> confdefs.h <<EOF
10160 #define $ac_tr_hdr 1
10164 echo "$ac_t""no" 1>&6
10168 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10169 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10170 echo "configure:10171: checking for thr_create in -lthread" >&5
10171 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10172 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10175 ac_save_LIBS="$LIBS"
10176 LIBS="-lthread $LIBS"
10177 cat > conftest.$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191 eval "ac_cv_lib_$ac_lib_var=yes"
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 eval "ac_cv_lib_$ac_lib_var=no"
10199 LIBS="$ac_save_LIBS"
10202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10203 echo "$ac_t""yes" 1>&6
10206 echo "$ac_t""no" 1>&6
10211 if test $have_thr = yes ; then
10212 cat >> confdefs.h <<\EOF
10216 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10217 ol_link_threads=thr
10219 if test $ol_with_yielding_select = auto ; then
10220 ol_with_yielding_select=yes
10224 thr_setconcurrency \
10225 thr_getconcurrency \
10228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10229 echo "configure:10230: checking for $ac_func" >&5
10230 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func(); below. */
10238 #include <assert.h>
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10247 /* The GNU C library defines this for functions which it implements
10248 to always fail with ENOSYS. Some functions are actually named
10249 something starting with __ and the normal name is an alias. */
10250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10258 if { (eval echo configure:10259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 eval "ac_cv_func_$ac_func=yes"
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10265 eval "ac_cv_func_$ac_func=no"
10270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10273 cat >> confdefs.h <<EOF
10274 #define $ac_tr_func 1
10278 echo "$ac_t""no" 1>&6
10285 for ac_hdr in lwp/lwp.h
10287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10289 echo "configure:10290: checking for $ac_hdr" >&5
10290 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10299 { (eval echo configure:10300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10301 if test -z "$ac_err"; then
10303 eval "ac_cv_header_$ac_safe=yes"
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 eval "ac_cv_header_$ac_safe=no"
10313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10314 echo "$ac_t""yes" 1>&6
10315 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10316 cat >> confdefs.h <<EOF
10317 #define $ac_tr_hdr 1
10321 echo "$ac_t""no" 1>&6
10325 if test $ac_cv_header_lwp_lwp_h = yes ; then
10326 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10327 echo "configure:10328: checking for lwp_create in -llwp" >&5
10328 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10329 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10332 ac_save_LIBS="$LIBS"
10334 cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337 /* Override any gcc2 internal prototype to avoid an error. */
10338 /* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10346 if { (eval echo configure:10347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10348 eval "ac_cv_lib_$ac_lib_var=yes"
10350 echo "configure: failed program was:" >&5
10351 cat conftest.$ac_ext >&5
10353 eval "ac_cv_lib_$ac_lib_var=no"
10356 LIBS="$ac_save_LIBS"
10359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10363 echo "$ac_t""no" 1>&6
10368 if test $have_lwp = yes ; then
10369 cat >> confdefs.h <<\EOF
10373 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10374 ol_link_threads=lwp
10376 if test $ol_with_yielding_select = auto ; then
10377 ol_with_yielding_select=no
10383 if test $ol_with_yielding_select = yes ; then
10384 cat >> confdefs.h <<\EOF
10385 #define HAVE_YIELDING_SELECT 1
10390 if test $ol_with_threads = manual ; then
10391 ol_link_threads=yes
10393 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10395 for ac_hdr in pthread.h sched.h
10397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10399 echo "configure:10400: checking for $ac_hdr" >&5
10400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10409 { (eval echo configure:10410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10411 if test -z "$ac_err"; then
10413 eval "ac_cv_header_$ac_safe=yes"
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10419 eval "ac_cv_header_$ac_safe=no"
10423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10424 echo "$ac_t""yes" 1>&6
10425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10426 cat >> confdefs.h <<EOF
10427 #define $ac_tr_hdr 1
10431 echo "$ac_t""no" 1>&6
10435 for ac_func in sched_yield pthread_yield
10437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10438 echo "configure:10439: checking for $ac_func" >&5
10439 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 /* System header to define __stub macros and hopefully few prototypes,
10446 which can conflict with char $ac_func(); below. */
10447 #include <assert.h>
10448 /* Override any gcc2 internal prototype to avoid an error. */
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10456 /* The GNU C library defines this for functions which it implements
10457 to always fail with ENOSYS. Some functions are actually named
10458 something starting with __ and the normal name is an alias. */
10459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10467 if { (eval echo configure:10468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10469 eval "ac_cv_func_$ac_func=yes"
10471 echo "configure: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10474 eval "ac_cv_func_$ac_func=no"
10479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10480 echo "$ac_t""yes" 1>&6
10481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10482 cat >> confdefs.h <<EOF
10483 #define $ac_tr_func 1
10487 echo "$ac_t""no" 1>&6
10492 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10493 echo "configure:10494: checking for LinuxThreads pthread.h" >&5
10494 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10500 #include <pthread.h>
10502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10503 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10505 ol_cv_header_linux_threads=yes
10508 ol_cv_header_linux_threads=no
10515 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10516 if test $ol_cv_header_linux_threads = yes; then
10517 cat >> confdefs.h <<\EOF
10518 #define HAVE_LINUX_THREADS 1
10524 for ac_hdr in mach/cthreads.h
10526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10528 echo "configure:10529: checking for $ac_hdr" >&5
10529 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10538 { (eval echo configure:10539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10540 if test -z "$ac_err"; then
10542 eval "ac_cv_header_$ac_safe=yes"
10545 echo "configure: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10548 eval "ac_cv_header_$ac_safe=no"
10552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10553 echo "$ac_t""yes" 1>&6
10554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10555 cat >> confdefs.h <<EOF
10556 #define $ac_tr_hdr 1
10560 echo "$ac_t""no" 1>&6
10564 for ac_hdr in lwp/lwp.h
10566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10568 echo "configure:10569: checking for $ac_hdr" >&5
10569 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10578 { (eval echo configure:10579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10580 if test -z "$ac_err"; then
10582 eval "ac_cv_header_$ac_safe=yes"
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10588 eval "ac_cv_header_$ac_safe=no"
10592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10593 echo "$ac_t""yes" 1>&6
10594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10595 cat >> confdefs.h <<EOF
10596 #define $ac_tr_hdr 1
10600 echo "$ac_t""no" 1>&6
10604 for ac_hdr in thread.h synch.h
10606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10608 echo "configure:10609: checking for $ac_hdr" >&5
10609 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10610 echo $ac_n "(cached) $ac_c" 1>&6
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10618 { (eval echo configure:10619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10620 if test -z "$ac_err"; then
10622 eval "ac_cv_header_$ac_safe=yes"
10625 echo "configure: failed program was:" >&5
10626 cat conftest.$ac_ext >&5
10628 eval "ac_cv_header_$ac_safe=no"
10632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10633 echo "$ac_t""yes" 1>&6
10634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10635 cat >> confdefs.h <<EOF
10636 #define $ac_tr_hdr 1
10640 echo "$ac_t""no" 1>&6
10646 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
10647 cat >> confdefs.h <<\EOF
10648 #define REENTRANT 1
10651 cat >> confdefs.h <<\EOF
10652 #define _REENTRANT 1
10655 cat >> confdefs.h <<\EOF
10656 #define THREAD_SAFE 1
10659 cat >> confdefs.h <<\EOF
10660 #define _THREAD_SAFE 1
10663 cat >> confdefs.h <<\EOF
10664 #define THREADSAFE 1
10667 cat >> confdefs.h <<\EOF
10668 #define _THREADSAFE 1
10671 cat >> confdefs.h <<\EOF
10672 #define _SGI_MP_SOURCE 1
10676 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10677 echo "configure:10678: checking for thread specific errno" >&5
10678 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10690 if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10692 ol_cv_errno_thread_specific=yes
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 ol_cv_errno_thread_specific=no
10703 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10705 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10706 echo "configure:10707: checking for thread specific h_errno" >&5
10707 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure"
10713 #include "confdefs.h"
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 ol_cv_h_errno_thread_specific=yes
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 ol_cv_h_errno_thread_specific=no
10732 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10734 if test $ol_cv_errno_thread_specific != yes \
10735 -o $ol_cv_h_errno_thread_specific != yes ; then
10736 LIBS="$LTHREAD_LIBS $LIBS"
10742 if test $ol_link_threads = no ; then
10743 if test $ol_with_threads = yes ; then
10744 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10747 if test $ol_with_threads = auto ; then
10748 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10752 cat >> confdefs.h <<\EOF
10753 #define NO_THREADS 1
10759 if test $ol_link_threads != no ; then
10760 cat >> confdefs.h <<\EOF
10761 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10768 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10769 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10770 echo "configure:10771: checking for DB2 library" >&5
10771 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10772 echo $ac_n "(cached) $ac_c" 1>&6
10775 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
10776 echo "configure:10777: checking for db_appexit in -ldb" >&5
10777 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
10778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10781 ac_save_LIBS="$LIBS"
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 /* Override any gcc2 internal prototype to avoid an error. */
10787 /* We use char because int might match the return type of a gcc2
10788 builtin and then its argument prototype would still apply. */
10795 if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10797 eval "ac_cv_lib_$ac_lib_var=yes"
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10802 eval "ac_cv_lib_$ac_lib_var=no"
10805 LIBS="$ac_save_LIBS"
10808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10809 echo "$ac_t""yes" 1>&6
10812 echo "$ac_t""no" 1>&6
10820 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10826 echo "configure:10827: checking for $ac_hdr" >&5
10827 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10836 { (eval echo configure:10837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10838 if test -z "$ac_err"; then
10840 eval "ac_cv_header_$ac_safe=yes"
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10846 eval "ac_cv_header_$ac_safe=no"
10850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10851 echo "$ac_t""yes" 1>&6
10852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10853 cat >> confdefs.h <<EOF
10854 #define $ac_tr_hdr 1
10858 echo "$ac_t""no" 1>&6
10862 if test $ac_cv_header_db_h = yes ; then
10863 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10864 echo "configure:10865: checking if db.h is DB2" >&5
10865 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10869 cat > conftest.$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10874 /* this check could be improved */
10875 # ifdef DB_VERSION_MAJOR
10876 # if DB_VERSION_MAJOR == 2
10882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10883 egrep "__db_version_2" >/dev/null 2>&1; then
10885 ol_cv_header_db2=yes
10888 ol_cv_header_db2=no
10894 echo "$ac_t""$ol_cv_header_db2" 1>&6
10896 ol_cv_header_db2=no
10901 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10902 echo "configure:10903: checking for Berkeley DB2" >&5
10903 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10907 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10908 ol_cv_berkeley_db2=no
10910 ol_cv_berkeley_db2=yes
10915 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10916 if test $ol_cv_berkeley_db2 = yes ; then
10917 cat >> confdefs.h <<\EOF
10918 #define HAVE_BERKELEY_DB2 1
10924 if test $ol_cv_berkeley_db2 = yes ; then
10926 ol_with_ldbm_api=db2
10928 if test $ol_with_ldbm_type = hash ; then
10929 cat >> confdefs.h <<\EOF
10930 #define LDBM_USE_DBHASH 1
10934 cat >> confdefs.h <<\EOF
10935 #define LDBM_USE_DBBTREE 1
10940 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
10941 echo "configure:10942: checking for DB_THREAD support" >&5
10942 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10947 if test $ol_cv_lib_db2 != yes ; then
10948 LIBS="$ol_cv_lib_db2"
10951 if test "$cross_compiling" = yes; then
10952 ol_cv_berkeley_db2_db_thread=cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10960 #define NULL ((void *)0)
10966 u_int32_t flags = DB_CREATE | DB_THREAD;
10968 memset( &env, '\0', sizeof(env) );
10970 rc = db_appinit( NULL, NULL, &env, flags );
10973 db_appexit( &env );
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10981 ol_cv_berkeley_db2_db_thread=yes
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10986 ol_cv_berkeley_db2_db_thread=no
10994 if test $ol_cv_berkeley_db2_db_thread != no ; then
10995 cat >> confdefs.h <<\EOF
10996 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11003 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11005 if test $ol_cv_lib_db2 != yes ; then
11006 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11012 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11013 if test $ol_cv_berkeley_db2_db_thread != no ; then
11016 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11020 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11021 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11022 echo "configure:11023: checking for Berkeley DB library" >&5
11023 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11027 for ac_hdr in db1/db.h
11029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11031 echo "configure:11032: checking for $ac_hdr" >&5
11032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11035 cat > conftest.$ac_ext <<EOF
11036 #line 11037 "configure"
11037 #include "confdefs.h"
11040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11041 { (eval echo configure:11042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11043 if test -z "$ac_err"; then
11045 eval "ac_cv_header_$ac_safe=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_header_$ac_safe=no"
11055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11056 echo "$ac_t""yes" 1>&6
11057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11058 cat >> confdefs.h <<EOF
11059 #define $ac_tr_hdr 1
11063 echo "$ac_t""no" 1>&6
11068 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11069 echo "configure:11070: checking for dbopen" >&5
11070 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 /* System header to define __stub macros and hopefully few prototypes,
11077 which can conflict with char dbopen(); below. */
11078 #include <assert.h>
11079 /* Override any gcc2 internal prototype to avoid an error. */
11080 /* We use char because int might match the return type of a gcc2
11081 builtin and then its argument prototype would still apply. */
11087 /* The GNU C library defines this for functions which it implements
11088 to always fail with ENOSYS. Some functions are actually named
11089 something starting with __ and the normal name is an alias. */
11090 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11100 eval "ac_cv_func_dbopen=yes"
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11105 eval "ac_cv_func_dbopen=no"
11110 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11111 echo "$ac_t""yes" 1>&6
11114 echo "$ac_t""no" 1>&6
11116 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11117 echo "configure:11118: checking for dbopen in -ldb1" >&5
11118 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11120 echo $ac_n "(cached) $ac_c" 1>&6
11122 ac_save_LIBS="$LIBS"
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 eval "ac_cv_lib_$ac_lib_var=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_lib_$ac_lib_var=no"
11146 LIBS="$ac_save_LIBS"
11149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11153 echo "$ac_t""no" 1>&6
11155 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11156 echo "configure:11157: checking for dbopen in -ldb" >&5
11157 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11159 echo $ac_n "(cached) $ac_c" 1>&6
11161 ac_save_LIBS="$LIBS"
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11166 /* Override any gcc2 internal prototype to avoid an error. */
11167 /* We use char because int might match the return type of a gcc2
11168 builtin and then its argument prototype would still apply. */
11175 if { (eval echo configure:11176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11177 eval "ac_cv_lib_$ac_lib_var=yes"
11179 echo "configure: failed program was:" >&5
11180 cat conftest.$ac_ext >&5
11182 eval "ac_cv_lib_$ac_lib_var=no"
11185 LIBS="$ac_save_LIBS"
11188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11189 echo "$ac_t""yes" 1>&6
11192 echo "$ac_t""no" 1>&6
11206 echo "$ac_t""$ol_cv_lib_db" 1>&6
11209 for ac_hdr in db_185.h
11211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11213 echo "configure:11214: checking for $ac_hdr" >&5
11214 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11223 { (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11225 if test -z "$ac_err"; then
11227 eval "ac_cv_header_$ac_safe=yes"
11230 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11233 eval "ac_cv_header_$ac_safe=no"
11237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11240 cat >> confdefs.h <<EOF
11241 #define $ac_tr_hdr 1
11245 echo "$ac_t""no" 1>&6
11249 if test "$ol_cv_header_db2" = yes ; then
11251 ol_cv_header_db=$ac_cv_header_db_185_h
11253 ol_cv_header_db=$ac_cv_header_db_h
11258 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11259 echo "configure:11260: checking for Berkeley DB" >&5
11260 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11264 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11265 ol_cv_berkeley_db=no
11267 ol_cv_berkeley_db=yes
11272 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11273 if test $ol_cv_berkeley_db = yes ; then
11274 cat >> confdefs.h <<\EOF
11275 #define HAVE_BERKELEY_DB 1
11281 if test $ol_cv_berkeley_db = yes ; then
11283 ol_with_ldbm_api=db
11285 if test $ol_with_ldbm_type = hash ; then
11286 cat >> confdefs.h <<\EOF
11287 #define LDBM_USE_DBHASH 1
11291 cat >> confdefs.h <<\EOF
11292 #define LDBM_USE_DBBTREE 1
11297 if test $ol_cv_lib_db != yes ; then
11298 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11303 if test $ol_with_ldbm_api = manual ; then
11306 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11308 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11310 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11311 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11312 echo "configure:11313: checking for $ac_hdr" >&5
11313 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11314 echo $ac_n "(cached) $ac_c" 1>&6
11316 cat > conftest.$ac_ext <<EOF
11317 #line 11318 "configure"
11318 #include "confdefs.h"
11321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11322 { (eval echo configure:11323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11324 if test -z "$ac_err"; then
11326 eval "ac_cv_header_$ac_safe=yes"
11329 echo "configure: failed program was:" >&5
11330 cat conftest.$ac_ext >&5
11332 eval "ac_cv_header_$ac_safe=no"
11336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11337 echo "$ac_t""yes" 1>&6
11338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11339 cat >> confdefs.h <<EOF
11340 #define $ac_tr_hdr 1
11344 echo "$ac_t""no" 1>&6
11350 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11351 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11352 ol_with_ldbm_api=none
11355 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11356 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11357 echo "configure:11358: checking for MDBM library" >&5
11358 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11359 echo $ac_n "(cached) $ac_c" 1>&6
11362 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11363 echo "configure:11364: checking for mdbm_set_chain" >&5
11364 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11367 cat > conftest.$ac_ext <<EOF
11368 #line 11369 "configure"
11369 #include "confdefs.h"
11370 /* System header to define __stub macros and hopefully few prototypes,
11371 which can conflict with char mdbm_set_chain(); below. */
11372 #include <assert.h>
11373 /* Override any gcc2 internal prototype to avoid an error. */
11374 /* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */
11376 char mdbm_set_chain();
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11387 f = mdbm_set_chain;
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11394 eval "ac_cv_func_mdbm_set_chain=yes"
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11399 eval "ac_cv_func_mdbm_set_chain=no"
11404 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11408 echo "$ac_t""no" 1>&6
11410 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11411 echo "configure:11412: checking for mdbm_set_chain in -lmdbm" >&5
11412 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11413 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11416 ac_save_LIBS="$LIBS"
11417 LIBS="-lmdbm $LIBS"
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 /* Override any gcc2 internal prototype to avoid an error. */
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424 char mdbm_set_chain();
11430 if { (eval echo configure:11431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11432 eval "ac_cv_lib_$ac_lib_var=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_lib_$ac_lib_var=no"
11440 LIBS="$ac_save_LIBS"
11443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11444 echo "$ac_t""yes" 1>&6
11445 ol_cv_lib_mdbm=-lmdbm
11447 echo "$ac_t""no" 1>&6
11458 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11461 for ac_hdr in mdbm.h
11463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11465 echo "configure:11466: checking for $ac_hdr" >&5
11466 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11475 { (eval echo configure:11476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11477 if test -z "$ac_err"; then
11479 eval "ac_cv_header_$ac_safe=yes"
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 eval "ac_cv_header_$ac_safe=no"
11489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11490 echo "$ac_t""yes" 1>&6
11491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11492 cat >> confdefs.h <<EOF
11493 #define $ac_tr_hdr 1
11497 echo "$ac_t""no" 1>&6
11501 echo $ac_n "checking for db""... $ac_c" 1>&6
11502 echo "configure:11503: checking for db" >&5
11503 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11504 echo $ac_n "(cached) $ac_c" 1>&6
11507 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11515 echo "$ac_t""$ol_cv_mdbm" 1>&6
11516 if test $ol_cv_mdbm = yes ; then
11517 cat >> confdefs.h <<\EOF
11518 #define HAVE_MDBM 1
11524 if test $ol_cv_mdbm = yes ; then
11526 ol_with_ldbm_api=mdbm
11527 if test $ol_cv_lib_mdbm != yes ; then
11528 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11533 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11534 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11535 echo "configure:11536: checking for GDBM library" >&5
11536 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11537 echo $ac_n "(cached) $ac_c" 1>&6
11540 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11541 echo "configure:11542: checking for gdbm_open" >&5
11542 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11545 cat > conftest.$ac_ext <<EOF
11546 #line 11547 "configure"
11547 #include "confdefs.h"
11548 /* System header to define __stub macros and hopefully few prototypes,
11549 which can conflict with char gdbm_open(); below. */
11550 #include <assert.h>
11551 /* Override any gcc2 internal prototype to avoid an error. */
11552 /* We use char because int might match the return type of a gcc2
11553 builtin and then its argument prototype would still apply. */
11559 /* The GNU C library defines this for functions which it implements
11560 to always fail with ENOSYS. Some functions are actually named
11561 something starting with __ and the normal name is an alias. */
11562 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11570 if { (eval echo configure:11571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11572 eval "ac_cv_func_gdbm_open=yes"
11574 echo "configure: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11577 eval "ac_cv_func_gdbm_open=no"
11582 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11583 echo "$ac_t""yes" 1>&6
11586 echo "$ac_t""no" 1>&6
11588 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11589 echo "configure:11590: checking for gdbm_open in -lgdbm" >&5
11590 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11594 ac_save_LIBS="$LIBS"
11595 LIBS="-lgdbm $LIBS"
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 /* Override any gcc2 internal prototype to avoid an error. */
11600 /* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11608 if { (eval echo configure:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610 eval "ac_cv_lib_$ac_lib_var=yes"
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11615 eval "ac_cv_lib_$ac_lib_var=no"
11618 LIBS="$ac_save_LIBS"
11621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11622 echo "$ac_t""yes" 1>&6
11623 ol_cv_lib_gdbm=-lgdbm
11625 echo "$ac_t""no" 1>&6
11636 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11639 for ac_hdr in gdbm.h
11641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11643 echo "configure:11644: checking for $ac_hdr" >&5
11644 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11653 { (eval echo configure:11654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11655 if test -z "$ac_err"; then
11657 eval "ac_cv_header_$ac_safe=yes"
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11663 eval "ac_cv_header_$ac_safe=no"
11667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11668 echo "$ac_t""yes" 1>&6
11669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11670 cat >> confdefs.h <<EOF
11671 #define $ac_tr_hdr 1
11675 echo "$ac_t""no" 1>&6
11679 echo $ac_n "checking for db""... $ac_c" 1>&6
11680 echo "configure:11681: checking for db" >&5
11681 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11685 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11693 echo "$ac_t""$ol_cv_gdbm" 1>&6
11694 if test $ol_cv_gdbm = yes ; then
11695 cat >> confdefs.h <<\EOF
11696 #define HAVE_GDBM 1
11702 if test $ol_cv_gdbm = yes ; then
11704 ol_with_ldbm_api=gdbm
11706 if test $ol_cv_lib_gdbm != yes ; then
11707 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11712 if test $ol_with_ldbm_api = auto ; then
11713 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11714 elif test $ol_with_ldbm_api = ndbm ; then
11715 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11716 echo "configure:11717: checking for NDBM library" >&5
11717 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11718 echo $ac_n "(cached) $ac_c" 1>&6
11721 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11722 echo "configure:11723: checking for dbm_open" >&5
11723 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char dbm_open(); below. */
11731 #include <assert.h>
11732 /* Override any gcc2 internal prototype to avoid an error. */
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11753 eval "ac_cv_func_dbm_open=yes"
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11758 eval "ac_cv_func_dbm_open=no"
11763 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11767 echo "$ac_t""no" 1>&6
11769 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11770 echo "configure:11771: checking for dbm_open in -lndbm" >&5
11771 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11772 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11775 ac_save_LIBS="$LIBS"
11776 LIBS="-lndbm $LIBS"
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 /* Override any gcc2 internal prototype to avoid an error. */
11781 /* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11791 eval "ac_cv_lib_$ac_lib_var=yes"
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11796 eval "ac_cv_lib_$ac_lib_var=no"
11799 LIBS="$ac_save_LIBS"
11802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11803 echo "$ac_t""yes" 1>&6
11804 ol_cv_lib_ndbm=-lndbm
11806 echo "$ac_t""no" 1>&6
11808 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11809 echo "configure:11810: checking for dbm_open in -ldbm" >&5
11810 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11814 ac_save_LIBS="$LIBS"
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11830 eval "ac_cv_lib_$ac_lib_var=yes"
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 eval "ac_cv_lib_$ac_lib_var=no"
11838 LIBS="$ac_save_LIBS"
11841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11843 ol_cv_lib_ndbm=-ldbm
11845 echo "$ac_t""no" 1>&6
11858 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11861 for ac_hdr in ndbm.h
11863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11865 echo "configure:11866: checking for $ac_hdr" >&5
11866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11875 { (eval echo configure:11876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11877 if test -z "$ac_err"; then
11879 eval "ac_cv_header_$ac_safe=yes"
11882 echo "configure: failed program was:" >&5
11883 cat conftest.$ac_ext >&5
11885 eval "ac_cv_header_$ac_safe=no"
11889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11890 echo "$ac_t""yes" 1>&6
11891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11892 cat >> confdefs.h <<EOF
11893 #define $ac_tr_hdr 1
11897 echo "$ac_t""no" 1>&6
11901 echo $ac_n "checking for db""... $ac_c" 1>&6
11902 echo "configure:11903: checking for db" >&5
11903 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11904 echo $ac_n "(cached) $ac_c" 1>&6
11907 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11915 echo "$ac_t""$ol_cv_ndbm" 1>&6
11916 if test $ol_cv_ndbm = yes ; then
11917 cat >> confdefs.h <<\EOF
11918 #define HAVE_NDBM 1
11924 if test $ol_cv_ndbm = yes ; then
11926 ol_with_ldbm_api=ndbm
11928 if test $ol_cv_lib_ndbm != yes ; then
11929 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11934 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11935 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11936 if test $ol_enable_ldbm = yes ; then
11937 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11940 echo "configure: warning: disabling LDBM" 1>&2
11944 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
11945 LINK_BINS_DYNAMIC="yes"
11947 LINK_BINS_DYNAMIC="no"
11950 if test $ol_enable_wrappers != no ; then
11951 for ac_hdr in tcpd.h
11953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11955 echo "configure:11956: checking for $ac_hdr" >&5
11956 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11957 echo $ac_n "(cached) $ac_c" 1>&6
11959 cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11965 { (eval echo configure:11966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11967 if test -z "$ac_err"; then
11969 eval "ac_cv_header_$ac_safe=yes"
11972 echo "configure: failed program was:" >&5
11973 cat conftest.$ac_ext >&5
11975 eval "ac_cv_header_$ac_safe=no"
11979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11980 echo "$ac_t""yes" 1>&6
11981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11982 cat >> confdefs.h <<EOF
11983 #define $ac_tr_hdr 1
11987 echo "$ac_t""no" 1>&6
11992 if test $ac_cv_header_tcpd_h != yes ; then
11995 cat > conftest.$ac_ext <<EOF
11996 #line 11997 "configure"
11997 #include "confdefs.h"
11999 int allow_severity = 0;
12000 int deny_severity = 0;
12006 if { (eval echo configure:12007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12010 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5
12018 if test $have_wrappers = yes ; then
12019 cat >> confdefs.h <<\EOF
12020 #define HAVE_TCPD 1
12025 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12026 echo "configure:12027: checking for main in -lnsl" >&5
12027 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
12031 ac_save_LIBS="$LIBS"
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12041 if { (eval echo configure:12042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12043 eval "ac_cv_lib_$ac_lib_var=yes"
12045 echo "configure: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12048 eval "ac_cv_lib_$ac_lib_var=no"
12051 LIBS="$ac_save_LIBS"
12054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12055 echo "$ac_t""yes" 1>&6
12056 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12058 cat >> confdefs.h <<EOF
12059 #define $ac_tr_lib 1
12065 echo "$ac_t""no" 1>&6
12069 echo "configure: warning: could not find -lwrap" 1>&2
12070 if test $ol_enable_wrappers = yes ; then
12071 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12074 echo "configure: warning: disabling wrappers support" 1>&2
12075 ol_enable_wrappers=no
12080 if test $ol_enable_syslog != no ; then
12081 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12082 echo "configure:12083: checking for openlog" >&5
12083 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12084 echo $ac_n "(cached) $ac_c" 1>&6
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 /* System header to define __stub macros and hopefully few prototypes,
12090 which can conflict with char openlog(); below. */
12091 #include <assert.h>
12092 /* Override any gcc2 internal prototype to avoid an error. */
12093 /* We use char because int might match the return type of a gcc2
12094 builtin and then its argument prototype would still apply. */
12100 /* The GNU C library defines this for functions which it implements
12101 to always fail with ENOSYS. Some functions are actually named
12102 something starting with __ and the normal name is an alias. */
12103 #if defined (__stub_openlog) || defined (__stub___openlog)
12111 if { (eval echo configure:12112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12113 eval "ac_cv_func_openlog=yes"
12115 echo "configure: failed program was:" >&5
12116 cat conftest.$ac_ext >&5
12118 eval "ac_cv_func_openlog=no"
12123 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12127 echo "$ac_t""no" 1>&6
12130 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12131 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12133 ol_enable_syslog=$ac_cv_func_openlog
12136 if test $ol_enable_dmalloc != no ; then
12137 for ac_hdr in dmalloc.h
12139 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12141 echo "configure:12142: checking for $ac_hdr" >&5
12142 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12151 { (eval echo configure:12152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12153 if test -z "$ac_err"; then
12155 eval "ac_cv_header_$ac_safe=yes"
12158 echo "configure: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12161 eval "ac_cv_header_$ac_safe=no"
12165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12166 echo "$ac_t""yes" 1>&6
12167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12168 cat >> confdefs.h <<EOF
12169 #define $ac_tr_hdr 1
12173 echo "$ac_t""no" 1>&6
12177 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12178 echo "configure:12179: checking for dmalloc_shutdown in -ldmalloc" >&5
12179 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12180 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12181 echo $ac_n "(cached) $ac_c" 1>&6
12183 ac_save_LIBS="$LIBS"
12184 LIBS="-ldmalloc $LIBS"
12185 cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 /* We use char because int might match the return type of a gcc2
12190 builtin and then its argument prototype would still apply. */
12191 char dmalloc_shutdown();
12197 if { (eval echo configure:12198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12199 eval "ac_cv_lib_$ac_lib_var=yes"
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12204 eval "ac_cv_lib_$ac_lib_var=no"
12207 LIBS="$ac_save_LIBS"
12210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12211 echo "$ac_t""yes" 1>&6
12212 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12214 cat >> confdefs.h <<EOF
12215 #define $ac_tr_lib 1
12218 LIBS="-ldmalloc $LIBS"
12221 echo "$ac_t""no" 1>&6
12226 if test $ol_enable_tcl != no ; then
12227 for ac_hdr in tcl.h
12229 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12231 echo "configure:12232: checking for $ac_hdr" >&5
12232 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12233 echo $ac_n "(cached) $ac_c" 1>&6
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12241 { (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12243 if test -z "$ac_err"; then
12245 eval "ac_cv_header_$ac_safe=yes"
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12251 eval "ac_cv_header_$ac_safe=no"
12255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12256 echo "$ac_t""yes" 1>&6
12257 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12258 cat >> confdefs.h <<EOF
12259 #define $ac_tr_hdr 1
12263 echo "$ac_t""no" 1>&6
12268 if test $ac_cv_header_tcl_h != yes ; then
12271 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12272 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12273 echo "configure:12274: checking for main in -l$lib" >&5
12274 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12275 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12276 echo $ac_n "(cached) $ac_c" 1>&6
12278 ac_save_LIBS="$LIBS"
12279 LIBS="-l$lib $LIBS"
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12288 if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12290 eval "ac_cv_lib_$ac_lib_var=yes"
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12295 eval "ac_cv_lib_$ac_lib_var=no"
12298 LIBS="$ac_save_LIBS"
12301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
12304 if test x"$ol_with_tcl_module" == "xstatic" ; then
12305 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12307 MOD_TCL_LIB="-l${lib}"
12310 echo "$ac_t""no" 1>&6
12317 if test $have_tcl != yes ; then
12318 echo "configure: warning: could not find -ltcl" 1>&2
12319 if test $ol_enable_tcl = yes ; then
12320 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12328 for ac_hdr in termcap.h ncurses.h
12330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12332 echo "configure:12333: checking for $ac_hdr" >&5
12333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12334 echo $ac_n "(cached) $ac_c" 1>&6
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12342 { (eval echo configure:12343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12344 if test -z "$ac_err"; then
12346 eval "ac_cv_header_$ac_safe=yes"
12349 echo "configure: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12352 eval "ac_cv_header_$ac_safe=no"
12356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12357 echo "$ac_t""yes" 1>&6
12358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12359 cat >> confdefs.h <<EOF
12360 #define $ac_tr_hdr 1
12364 echo "$ac_t""no" 1>&6
12369 if test $ol_link_termcap = no ; then
12370 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12371 echo "configure:12372: checking for tputs in -ltermcap" >&5
12372 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12374 echo $ac_n "(cached) $ac_c" 1>&6
12376 ac_save_LIBS="$LIBS"
12377 LIBS="-ltermcap $LIBS"
12378 cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381 /* Override any gcc2 internal prototype to avoid an error. */
12382 /* We use char because int might match the return type of a gcc2
12383 builtin and then its argument prototype would still apply. */
12390 if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12392 eval "ac_cv_lib_$ac_lib_var=yes"
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12397 eval "ac_cv_lib_$ac_lib_var=no"
12400 LIBS="$ac_save_LIBS"
12403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12404 echo "$ac_t""yes" 1>&6
12407 echo "$ac_t""no" 1>&6
12411 if test $have_termcap = yes ; then
12412 cat >> confdefs.h <<\EOF
12413 #define HAVE_TERMCAP 1
12416 ol_link_termcap=yes
12417 TERMCAP_LIBS=-ltermcap
12421 if test $ol_link_termcap = no ; then
12422 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12423 echo "configure:12424: checking for initscr in -lncurses" >&5
12424 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12425 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12426 echo $ac_n "(cached) $ac_c" 1>&6
12428 ac_save_LIBS="$LIBS"
12429 LIBS="-lncurses $LIBS"
12430 cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 /* Override any gcc2 internal prototype to avoid an error. */
12434 /* We use char because int might match the return type of a gcc2
12435 builtin and then its argument prototype would still apply. */
12442 if { (eval echo configure:12443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12444 eval "ac_cv_lib_$ac_lib_var=yes"
12446 echo "configure: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12449 eval "ac_cv_lib_$ac_lib_var=no"
12452 LIBS="$ac_save_LIBS"
12455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12456 echo "$ac_t""yes" 1>&6
12459 echo "$ac_t""no" 1>&6
12463 if test $have_ncurses = yes ; then
12464 cat >> confdefs.h <<\EOF
12465 #define HAVE_NCURSES 1
12468 ol_link_termcap=yes
12469 TERMCAP_LIBS=-lncurses
12473 if test $ol_link_termcap = no ; then
12474 cat >> confdefs.h <<\EOF
12475 #define NO_TERMCAP 1
12482 if test $ol_with_cyrus_sasl != no ; then
12483 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12484 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12485 echo "configure:12486: checking for sasl.h" >&5
12486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12495 { (eval echo configure:12496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12497 if test -z "$ac_err"; then
12499 eval "ac_cv_header_$ac_safe=yes"
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12505 eval "ac_cv_header_$ac_safe=no"
12509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12513 echo "$ac_t""no" 1>&6
12517 if test $ac_cv_header_sasl_h = yes ; then
12518 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12519 echo "configure:12520: checking for sasl_client_init in -lsasl" >&5
12520 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12524 ac_save_LIBS="$LIBS"
12525 LIBS="-lsasl $LIBS"
12526 cat > conftest.$ac_ext <<EOF
12527 #line 12528 "configure"
12528 #include "confdefs.h"
12529 /* Override any gcc2 internal prototype to avoid an error. */
12530 /* We use char because int might match the return type of a gcc2
12531 builtin and then its argument prototype would still apply. */
12532 char sasl_client_init();
12538 if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12540 eval "ac_cv_lib_$ac_lib_var=yes"
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12545 eval "ac_cv_lib_$ac_lib_var=no"
12548 LIBS="$ac_save_LIBS"
12551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12552 echo "$ac_t""yes" 1>&6
12553 have_cyrus_sasl=yes
12555 echo "$ac_t""no" 1>&6
12560 if test $have_cyrus_sasl != no ; then
12562 cat >> confdefs.h <<\EOF
12563 #define HAVE_CYRUS_SASL 1
12570 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12571 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12575 if test $cross_compiling != yes ; then
12577 if test -r /dev/urandom ; then
12578 dev="/dev/urandom";
12579 elif test -r /idev/urandom ; then
12580 dev="/idev/urandom";
12581 elif test -r /dev/srandom ; then
12582 dev="/dev/srandom";
12583 elif test -r /dev/random ; then
12585 elif test -r /idev/random ; then
12586 dev="/idev/random";
12589 if test $dev != no ; then
12590 cat >> confdefs.h <<EOF
12591 #define URANDOM_DEVICE "$dev"
12598 if test $ol_with_fetch != no ; then
12600 LIBS="-lfetch -lcom_err $LIBS"
12601 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12602 echo "configure:12603: checking fetch(3) library" >&5
12603 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12607 cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12611 #include <sys/param.h>
12615 struct url *u = fetchParseURL("file:///");
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 ol_cv_lib_fetch=yes
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12630 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12632 if test $ol_cv_lib_fetch != no ; then
12633 ol_link_fetch="-lfetch -lcom_err"
12634 cat >> confdefs.h <<\EOF
12635 #define HAVE_FETCH 1
12641 if test $ol_cv_lib_fetch != no ; then
12642 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12643 ol_link_fetch=freebsd
12645 elif test $ol_with_fetch != auto ; then
12646 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12650 ol_link_readline=no
12651 if test $ol_with_readline != no ; then
12652 for ac_hdr in readline/readline.h readline/history.h
12654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12656 echo "configure:12657: checking for $ac_hdr" >&5
12657 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12658 echo $ac_n "(cached) $ac_c" 1>&6
12660 cat > conftest.$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12666 { (eval echo configure:12667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12668 if test -z "$ac_err"; then
12670 eval "ac_cv_header_$ac_safe=yes"
12673 echo "configure: failed program was:" >&5
12674 cat conftest.$ac_ext >&5
12676 eval "ac_cv_header_$ac_safe=no"
12680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12681 echo "$ac_t""yes" 1>&6
12682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12683 cat >> confdefs.h <<EOF
12684 #define $ac_tr_hdr 1
12688 echo "$ac_t""no" 1>&6
12693 if test $ac_cv_header_readline_readline_h = yes ; then
12695 LIBS="$TERMCAP_LIBS $LIBS"
12696 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12697 echo "configure:12698: checking for readline in -lreadline" >&5
12698 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12700 echo $ac_n "(cached) $ac_c" 1>&6
12702 ac_save_LIBS="$LIBS"
12703 LIBS="-lreadline $LIBS"
12704 cat > conftest.$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 /* Override any gcc2 internal prototype to avoid an error. */
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 eval "ac_cv_lib_$ac_lib_var=yes"
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 eval "ac_cv_lib_$ac_lib_var=no"
12726 LIBS="$ac_save_LIBS"
12729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12730 echo "$ac_t""yes" 1>&6
12733 echo "$ac_t""no" 1>&6
12739 if test $have_readline = yes ; then
12740 ol_with_readline=found
12741 ol_link_readline=yes
12743 READLINE_LIBS="-lreadline"
12748 if test $ol_link_readline = yes ; then
12749 cat >> confdefs.h <<\EOF
12750 #define HAVE_READLINE 1
12756 if test $ol_enable_crypt != no ; then
12757 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12758 echo "configure:12759: checking for crypt" >&5
12759 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12760 echo $ac_n "(cached) $ac_c" 1>&6
12762 cat > conftest.$ac_ext <<EOF
12763 #line 12764 "configure"
12764 #include "confdefs.h"
12765 /* System header to define __stub macros and hopefully few prototypes,
12766 which can conflict with char crypt(); below. */
12767 #include <assert.h>
12768 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12776 /* The GNU C library defines this for functions which it implements
12777 to always fail with ENOSYS. Some functions are actually named
12778 something starting with __ and the normal name is an alias. */
12779 #if defined (__stub_crypt) || defined (__stub___crypt)
12787 if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12789 eval "ac_cv_func_crypt=yes"
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12794 eval "ac_cv_func_crypt=no"
12799 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12800 echo "$ac_t""yes" 1>&6
12803 echo "$ac_t""no" 1>&6
12805 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12806 echo "configure:12807: checking for crypt in -lcrypt" >&5
12807 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12811 ac_save_LIBS="$LIBS"
12812 LIBS="-lcrypt $LIBS"
12813 cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12816 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12827 eval "ac_cv_lib_$ac_lib_var=yes"
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 eval "ac_cv_lib_$ac_lib_var=no"
12835 LIBS="$ac_save_LIBS"
12838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12839 echo "$ac_t""yes" 1>&6
12840 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12843 echo "$ac_t""no" 1>&6
12850 if test $have_crypt = yes ; then
12851 cat >> confdefs.h <<\EOF
12852 #define HAVE_CRYPT 1
12856 echo "configure: warning: could not find crypt" 1>&2
12857 if test $ol_enable_crypt = yes ; then
12858 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12861 echo "configure: warning: disabling crypt support" 1>&2
12866 if test $ol_enable_proctitle != no ; then
12867 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12868 echo "configure:12869: checking for setproctitle" >&5
12869 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12870 echo $ac_n "(cached) $ac_c" 1>&6
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure"
12874 #include "confdefs.h"
12875 /* System header to define __stub macros and hopefully few prototypes,
12876 which can conflict with char setproctitle(); below. */
12877 #include <assert.h>
12878 /* Override any gcc2 internal prototype to avoid an error. */
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12881 char setproctitle();
12886 /* The GNU C library defines this for functions which it implements
12887 to always fail with ENOSYS. Some functions are actually named
12888 something starting with __ and the normal name is an alias. */
12889 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 eval "ac_cv_func_setproctitle=yes"
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12904 eval "ac_cv_func_setproctitle=no"
12909 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12910 echo "$ac_t""yes" 1>&6
12911 have_setproctitle=yes
12913 echo "$ac_t""no" 1>&6
12915 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12916 echo "configure:12917: checking for setproctitle in -lutil" >&5
12917 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12919 echo $ac_n "(cached) $ac_c" 1>&6
12921 ac_save_LIBS="$LIBS"
12922 LIBS="-lutil $LIBS"
12923 cat > conftest.$ac_ext <<EOF
12924 #line 12925 "configure"
12925 #include "confdefs.h"
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 /* We use char because int might match the return type of a gcc2
12928 builtin and then its argument prototype would still apply. */
12929 char setproctitle();
12935 if { (eval echo configure:12936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12937 eval "ac_cv_lib_$ac_lib_var=yes"
12939 echo "configure: failed program was:" >&5
12940 cat conftest.$ac_ext >&5
12942 eval "ac_cv_lib_$ac_lib_var=no"
12945 LIBS="$ac_save_LIBS"
12948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12949 echo "$ac_t""yes" 1>&6
12950 have_setproctitle=yes
12951 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12953 echo "$ac_t""no" 1>&6
12954 have_setproctitle=no
12955 LIBOBJS="$LIBOBJS setproctitle.o"
12956 LIBSRCS="$LIBSRCS setproctitle.c"
12962 if test $have_setproctitle = yes ; then
12963 cat >> confdefs.h <<\EOF
12964 #define HAVE_SETPROCTITLE 1
12970 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12971 echo "configure:12972: checking for ANSI C header files" >&5
12972 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12975 cat > conftest.$ac_ext <<EOF
12976 #line 12977 "configure"
12977 #include "confdefs.h"
12978 #include <stdlib.h>
12979 #include <stdarg.h>
12980 #include <string.h>
12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12986 if test -z "$ac_err"; then
12988 ac_cv_header_stdc=yes
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12994 ac_cv_header_stdc=no
12998 if test $ac_cv_header_stdc = yes; then
12999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13000 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure"
13002 #include "confdefs.h"
13003 #include <string.h>
13005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13006 egrep "memchr" >/dev/null 2>&1; then
13010 ac_cv_header_stdc=no
13016 if test $ac_cv_header_stdc = yes; then
13017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13021 #include <stdlib.h>
13023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13024 egrep "free" >/dev/null 2>&1; then
13028 ac_cv_header_stdc=no
13034 if test $ac_cv_header_stdc = yes; then
13035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13036 if test "$cross_compiling" = yes; then
13039 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure"
13041 #include "confdefs.h"
13043 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13044 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13046 int main () { int i; for (i = 0; i < 256; i++)
13047 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13058 ac_cv_header_stdc=no
13066 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13067 if test $ac_cv_header_stdc = yes; then
13068 cat >> confdefs.h <<\EOF
13069 #define STDC_HEADERS 1
13074 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13075 echo "configure:13076: checking for mode_t" >&5
13076 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13079 cat > conftest.$ac_ext <<EOF
13080 #line 13081 "configure"
13081 #include "confdefs.h"
13082 #include <sys/types.h>
13084 #include <stdlib.h>
13085 #include <stddef.h>
13088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13089 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13091 eval "ac_cv_type_mode_t=yes"
13094 eval "ac_cv_type_mode_t=no"
13099 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13100 echo "$ac_t""yes" 1>&6
13102 echo "$ac_t""no" 1>&6
13103 cat >> confdefs.h <<EOF
13109 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13110 echo "configure:13111: checking for off_t" >&5
13111 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13114 cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 #include <sys/types.h>
13119 #include <stdlib.h>
13120 #include <stddef.h>
13123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13126 eval "ac_cv_type_off_t=yes"
13129 eval "ac_cv_type_off_t=no"
13134 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13135 echo "$ac_t""yes" 1>&6
13137 echo "$ac_t""no" 1>&6
13138 cat >> confdefs.h <<EOF
13144 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13145 echo "configure:13146: checking for pid_t" >&5
13146 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13147 echo $ac_n "(cached) $ac_c" 1>&6
13149 cat > conftest.$ac_ext <<EOF
13150 #line 13151 "configure"
13151 #include "confdefs.h"
13152 #include <sys/types.h>
13154 #include <stdlib.h>
13155 #include <stddef.h>
13158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13159 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13161 eval "ac_cv_type_pid_t=yes"
13164 eval "ac_cv_type_pid_t=no"
13169 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13172 echo "$ac_t""no" 1>&6
13173 cat >> confdefs.h <<EOF
13179 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13180 echo "configure:13181: checking for ptrdiff_t" >&5
13181 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 #include <stddef.h>
13192 if { (eval echo configure:13193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13194 am_cv_type_ptrdiff_t=yes
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13199 am_cv_type_ptrdiff_t=no
13204 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13205 if test $am_cv_type_ptrdiff_t = yes; then
13206 cat >> confdefs.h <<\EOF
13207 #define HAVE_PTRDIFF_T 1
13212 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13213 echo "configure:13214: checking return type of signal handlers" >&5
13214 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13215 echo $ac_n "(cached) $ac_c" 1>&6
13217 cat > conftest.$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13220 #include <sys/types.h>
13221 #include <signal.h>
13226 extern "C" void (*signal (int, void (*)(int)))(int);
13228 void (*signal ()) ();
13235 if { (eval echo configure:13236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13237 ac_cv_type_signal=void
13239 echo "configure: failed program was:" >&5
13240 cat conftest.$ac_ext >&5
13242 ac_cv_type_signal=int
13247 echo "$ac_t""$ac_cv_type_signal" 1>&6
13248 cat >> confdefs.h <<EOF
13249 #define RETSIGTYPE $ac_cv_type_signal
13253 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13254 echo "configure:13255: checking for size_t" >&5
13255 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13256 echo $ac_n "(cached) $ac_c" 1>&6
13258 cat > conftest.$ac_ext <<EOF
13259 #line 13260 "configure"
13260 #include "confdefs.h"
13261 #include <sys/types.h>
13263 #include <stdlib.h>
13264 #include <stddef.h>
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13270 eval "ac_cv_type_size_t=yes"
13273 eval "ac_cv_type_size_t=no"
13278 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13279 echo "$ac_t""yes" 1>&6
13281 echo "$ac_t""no" 1>&6
13282 cat >> confdefs.h <<EOF
13283 #define size_t unsigned
13288 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13289 echo "configure:13290: checking for socklen_t" >&5
13290 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13297 #ifdef HAVE_SYS_TYPES_H
13298 #include <sys/types.h>
13300 #ifdef HAVE_SYS_SOCKET_H
13301 #include <sys/socket.h>
13308 if { (eval echo configure:13309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13310 ol_cv_type_socklen_t=yes
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13315 ol_cv_type_socklen_t=no
13320 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13321 if test $ol_cv_type_socklen_t = no; then
13322 cat >> confdefs.h <<\EOF
13323 #define socklen_t int
13328 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13329 echo "configure:13330: checking for member st_blksize in aggregate type struct stat" >&5
13330 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13331 echo $ac_n "(cached) $ac_c" 1>&6
13333 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 #include <sys/types.h>
13337 #include <sys/stat.h>
13339 struct stat foo; foo.st_blksize;
13342 if { (eval echo configure:13343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13344 ac_cv_c_struct_member_st_blksize=yes
13346 echo "configure: failed program was:" >&5
13347 cat conftest.$ac_ext >&5
13349 ac_cv_c_struct_member_st_blksize=no
13354 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13355 st_blksize="$ac_cv_c_struct_member_st_blksize"
13356 if test $ac_cv_c_struct_member_st_blksize = yes; then
13357 cat >> confdefs.h <<\EOF
13358 #define HAVE_ST_BLKSIZE 1
13363 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13364 echo "configure:13365: checking whether time.h and sys/time.h may both be included" >&5
13365 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13366 echo $ac_n "(cached) $ac_c" 1>&6
13368 cat > conftest.$ac_ext <<EOF
13369 #line 13370 "configure"
13370 #include "confdefs.h"
13371 #include <sys/types.h>
13372 #include <sys/time.h>
13378 if { (eval echo configure:13379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13380 ac_cv_header_time=yes
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 ac_cv_header_time=no
13390 echo "$ac_t""$ac_cv_header_time" 1>&6
13391 if test $ac_cv_header_time = yes; then
13392 cat >> confdefs.h <<\EOF
13393 #define TIME_WITH_SYS_TIME 1
13398 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13399 echo "configure:13400: checking whether struct tm is in sys/time.h or time.h" >&5
13400 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 #include <sys/types.h>
13409 struct tm *tp; tp->tm_sec;
13412 if { (eval echo configure:13413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13414 ac_cv_struct_tm=time.h
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13419 ac_cv_struct_tm=sys/time.h
13424 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13425 if test $ac_cv_struct_tm = sys/time.h; then
13426 cat >> confdefs.h <<\EOF
13427 #define TM_IN_SYS_TIME 1
13432 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13433 echo "configure:13434: checking for uid_t in sys/types.h" >&5
13434 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13435 echo $ac_n "(cached) $ac_c" 1>&6
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 #include <sys/types.h>
13442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13443 egrep "uid_t" >/dev/null 2>&1; then
13445 ac_cv_type_uid_t=yes
13448 ac_cv_type_uid_t=no
13454 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13455 if test $ac_cv_type_uid_t = no; then
13456 cat >> confdefs.h <<\EOF
13460 cat >> confdefs.h <<\EOF
13466 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13467 echo "configure:13468: checking for sig_atomic_t" >&5
13468 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13469 echo $ac_n "(cached) $ac_c" 1>&6
13471 cat > conftest.$ac_ext <<EOF
13472 #line 13473 "configure"
13473 #include "confdefs.h"
13474 #include <signal.h>
13476 sig_atomic_t atomic;
13479 if { (eval echo configure:13480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13481 ol_cv_type_sig_atomic_t=yes
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 ol_cv_type_sig_atomic_t=no
13491 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13492 if test $ol_cv_type_sig_atomic_t = no; then
13493 cat >> confdefs.h <<\EOF
13494 #define sig_atomic_t int
13500 if test "$ac_cv_mingw32" != yes ; then
13501 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
13502 echo "configure:13503: checking type of array argument to getgroups" >&5
13503 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
13504 echo $ac_n "(cached) $ac_c" 1>&6
13506 if test "$cross_compiling" = yes; then
13507 ac_cv_type_getgroups=cross
13509 cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13513 /* Thanks to Mike Rendell for this test. */
13514 #include <sys/types.h>
13517 #define MAX(x, y) ((x) > (y) ? (x) : (y))
13520 gid_t gidset[NGID];
13522 union { gid_t gval; long lval; } val;
13525 for (i = 0; i < NGID; i++)
13526 gidset[i] = val.gval;
13527 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
13529 /* Exit non-zero if getgroups seems to require an array of ints. This
13530 happens when gid_t is short but getgroups modifies an array of ints. */
13531 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
13535 if { (eval echo configure:13536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13537 ac_cv_type_getgroups=gid_t
13539 echo "configure: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13542 ac_cv_type_getgroups=int
13547 if test $ac_cv_type_getgroups = cross; then
13548 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 #include <unistd.h>
13553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13554 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
13556 ac_cv_type_getgroups=gid_t
13559 ac_cv_type_getgroups=int
13566 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
13567 cat >> confdefs.h <<EOF
13568 #define GETGROUPS_T $ac_cv_type_getgroups
13572 # test for pw_gecos in struct passwd
13573 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13574 echo "configure:13575: checking struct passwd for pw_gecos" >&5
13575 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13576 echo $ac_n "(cached) $ac_c" 1>&6
13579 cat > conftest.$ac_ext <<EOF
13580 #line 13581 "configure"
13581 #include "confdefs.h"
13586 pwd.pw_gecos = pwd.pw_name;
13590 if { (eval echo configure:13591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13592 ol_cv_struct_passwd_pw_gecos=yes
13594 echo "configure: failed program was:" >&5
13595 cat conftest.$ac_ext >&5
13597 ol_cv_struct_passwd_pw_gecos=no
13602 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13603 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13604 cat >> confdefs.h <<\EOF
13605 #define HAVE_PW_GECOS 1
13610 # test for pw_passwd in struct passwd
13611 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13612 echo "configure:13613: checking struct passwd for pw_passwd" >&5
13613 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13614 echo $ac_n "(cached) $ac_c" 1>&6
13617 cat > conftest.$ac_ext <<EOF
13618 #line 13619 "configure"
13619 #include "confdefs.h"
13624 pwd.pw_passwd = pwd.pw_name;
13628 if { (eval echo configure:13629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13630 ol_cv_struct_passwd_pw_passwd=yes
13632 echo "configure: failed program was:" >&5
13633 cat conftest.$ac_ext >&5
13635 ol_cv_struct_passwd_pw_passwd=no
13640 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13641 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13642 cat >> confdefs.h <<\EOF
13643 #define HAVE_PW_PASSWD 1
13650 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13651 echo "configure:13652: checking if toupper() requires islower()" >&5
13652 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13653 echo $ac_n "(cached) $ac_c" 1>&6
13656 if test "$cross_compiling" = yes; then
13657 ol_cv_c_upper_lower=safe
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13666 if ('C' == toupper('C'))
13672 if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13674 ol_cv_c_upper_lower=no
13676 echo "configure: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13679 ol_cv_c_upper_lower=yes
13686 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13687 if test $ol_cv_c_upper_lower != no ; then
13688 cat >> confdefs.h <<\EOF
13689 #define C_UPPER_LOWER 1
13694 echo $ac_n "checking for working const""... $ac_c" 1>&6
13695 echo "configure:13696: checking for working const" >&5
13696 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13697 echo $ac_n "(cached) $ac_c" 1>&6
13699 cat > conftest.$ac_ext <<EOF
13700 #line 13701 "configure"
13701 #include "confdefs.h"
13705 /* Ultrix mips cc rejects this. */
13706 typedef int charset[2]; const charset x;
13707 /* SunOS 4.1.1 cc rejects this. */
13708 char const *const *ccp;
13710 /* NEC SVR4.0.2 mips cc rejects this. */
13711 struct point {int x, y;};
13712 static struct point const zero = {0,0};
13713 /* AIX XL C 1.02.0.0 rejects this.
13714 It does not let you subtract one const X* pointer from another in an arm
13715 of an if-expression whose if-part is not a constant expression */
13716 const char *g = "string";
13717 ccp = &g + (g ? g-g : 0);
13718 /* HPUX 7.0 cc rejects these. */
13721 ccp = (char const *const *) p;
13722 { /* SCO 3.2v4 cc rejects this. */
13724 char const *s = 0 ? (char *) 0 : (char const *) 0;
13728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13729 int x[] = {25, 17};
13730 const int *foo = &x[0];
13733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13734 typedef const int *iptr;
13738 { /* AIX XL C 1.02.0.0 rejects this saying
13739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13740 struct s { int j; const int *ap[3]; };
13741 struct s *b; b->j = 5;
13743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13744 const int foo = 10;
13749 if { (eval echo configure:13750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13753 echo "configure: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13761 echo "$ac_t""$ac_cv_c_const" 1>&6
13762 if test $ac_cv_c_const = no; then
13763 cat >> confdefs.h <<\EOF
13769 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13770 echo "configure:13771: checking if compiler understands volatile" >&5
13771 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13779 volatile int a; int * volatile b = x ? &y : &z;
13780 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13784 if { (eval echo configure:13785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13786 ol_cv_c_volatile=yes
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13791 ol_cv_c_volatile=no
13796 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13797 if test $ol_cv_c_volatile = yes; then
13800 cat >> confdefs.h <<\EOF
13807 if test $cross_compiling = yes ; then
13808 cat >> confdefs.h <<\EOF
13809 #define CROSS_COMPILING 1
13813 cat >> confdefs.h <<\EOF
13814 #define LBER_INT_T long
13817 cat >> confdefs.h <<\EOF
13818 #define LBER_TAG_T long
13821 cat >> confdefs.h <<\EOF
13822 #define LBER_SOCKET_T int
13827 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13828 echo "configure:13829: checking whether byte ordering is bigendian" >&5
13829 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13830 echo $ac_n "(cached) $ac_c" 1>&6
13832 ac_cv_c_bigendian=unknown
13833 # See if sys/param.h defines the BYTE_ORDER macro.
13834 cat > conftest.$ac_ext <<EOF
13835 #line 13836 "configure"
13836 #include "confdefs.h"
13837 #include <sys/types.h>
13838 #include <sys/param.h>
13841 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13842 bogus endian macros
13846 if { (eval echo configure:13847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13848 # It does; now see whether it defined to BIG_ENDIAN or not.
13849 cat > conftest.$ac_ext <<EOF
13850 #line 13851 "configure"
13851 #include "confdefs.h"
13852 #include <sys/types.h>
13853 #include <sys/param.h>
13856 #if BYTE_ORDER != BIG_ENDIAN
13861 if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13863 ac_cv_c_bigendian=yes
13865 echo "configure: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13868 ac_cv_c_bigendian=no
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13876 if test $ac_cv_c_bigendian = unknown; then
13877 if test "$cross_compiling" = yes; then
13878 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13884 /* Are we little or big endian? From Harbison&Steele. */
13888 char c[sizeof (long)];
13891 exit (u.c[sizeof (long) - 1] == 1);
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13896 ac_cv_c_bigendian=no
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 ac_cv_c_bigendian=yes
13909 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13910 if test $ac_cv_c_bigendian = yes; then
13911 cat >> confdefs.h <<\EOF
13912 #define WORDS_BIGENDIAN 1
13917 echo $ac_n "checking size of short""... $ac_c" 1>&6
13918 echo "configure:13919: checking size of short" >&5
13919 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13922 if test "$cross_compiling" = yes; then
13923 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13931 FILE *f=fopen("conftestval", "w");
13933 fprintf(f, "%d\n", sizeof(short));
13937 if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13939 ac_cv_sizeof_short=`cat conftestval`
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13944 ac_cv_sizeof_short=0
13950 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13951 cat >> confdefs.h <<EOF
13952 #define SIZEOF_SHORT $ac_cv_sizeof_short
13956 echo $ac_n "checking size of int""... $ac_c" 1>&6
13957 echo "configure:13958: checking size of int" >&5
13958 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13959 echo $ac_n "(cached) $ac_c" 1>&6
13961 if test "$cross_compiling" = yes; then
13962 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13970 FILE *f=fopen("conftestval", "w");
13972 fprintf(f, "%d\n", sizeof(int));
13976 if { (eval echo configure:13977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13978 ac_cv_sizeof_int=`cat conftestval`
13980 echo "configure: failed program was:" >&5
13981 cat conftest.$ac_ext >&5
13989 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13990 cat >> confdefs.h <<EOF
13991 #define SIZEOF_INT $ac_cv_sizeof_int
13995 echo $ac_n "checking size of long""... $ac_c" 1>&6
13996 echo "configure:13997: checking size of long" >&5
13997 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13998 echo $ac_n "(cached) $ac_c" 1>&6
14000 if test "$cross_compiling" = yes; then
14001 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14009 FILE *f=fopen("conftestval", "w");
14011 fprintf(f, "%d\n", sizeof(long));
14015 if { (eval echo configure:14016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14017 ac_cv_sizeof_long=`cat conftestval`
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14022 ac_cv_sizeof_long=0
14028 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14029 cat >> confdefs.h <<EOF
14030 #define SIZEOF_LONG $ac_cv_sizeof_long
14035 if test "$ac_cv_sizeof_int" -lt 4 ; then
14036 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14038 cat >> confdefs.h <<\EOF
14039 #define LBER_INT_T long
14042 cat >> confdefs.h <<\EOF
14043 #define LBER_TAG_T long
14046 cat >> confdefs.h <<\EOF
14047 #define LBER_SOCKET_T int
14051 cat >> confdefs.h <<\EOF
14052 #define LBER_INT_T int
14055 cat >> confdefs.h <<\EOF
14056 #define LBER_TAG_T long
14059 cat >> confdefs.h <<\EOF
14060 #define LBER_SOCKET_T int
14066 cat >> confdefs.h <<\EOF
14067 #define LBER_LEN_T long
14071 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14072 echo "configure:14073: checking for 8-bit clean memcmp" >&5
14073 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14074 echo $ac_n "(cached) $ac_c" 1>&6
14076 if test "$cross_compiling" = yes; then
14077 ac_cv_func_memcmp_clean=no
14079 cat > conftest.$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14085 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14086 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14090 if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14092 ac_cv_func_memcmp_clean=yes
14094 echo "configure: failed program was:" >&5
14095 cat conftest.$ac_ext >&5
14097 ac_cv_func_memcmp_clean=no
14104 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14105 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14107 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14108 echo "configure:14109: checking for strftime" >&5
14109 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14110 echo $ac_n "(cached) $ac_c" 1>&6
14112 cat > conftest.$ac_ext <<EOF
14113 #line 14114 "configure"
14114 #include "confdefs.h"
14115 /* System header to define __stub macros and hopefully few prototypes,
14116 which can conflict with char strftime(); below. */
14117 #include <assert.h>
14118 /* Override any gcc2 internal prototype to avoid an error. */
14119 /* We use char because int might match the return type of a gcc2
14120 builtin and then its argument prototype would still apply. */
14126 /* The GNU C library defines this for functions which it implements
14127 to always fail with ENOSYS. Some functions are actually named
14128 something starting with __ and the normal name is an alias. */
14129 #if defined (__stub_strftime) || defined (__stub___strftime)
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14139 eval "ac_cv_func_strftime=yes"
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 eval "ac_cv_func_strftime=no"
14149 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14150 echo "$ac_t""yes" 1>&6
14151 cat >> confdefs.h <<\EOF
14152 #define HAVE_STRFTIME 1
14156 echo "$ac_t""no" 1>&6
14157 # strftime is in -lintl on SCO UNIX.
14158 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14159 echo "configure:14160: checking for strftime in -lintl" >&5
14160 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14161 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14162 echo $ac_n "(cached) $ac_c" 1>&6
14164 ac_save_LIBS="$LIBS"
14165 LIBS="-lintl $LIBS"
14166 cat > conftest.$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14169 /* Override any gcc2 internal prototype to avoid an error. */
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14178 if { (eval echo configure:14179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14180 eval "ac_cv_lib_$ac_lib_var=yes"
14182 echo "configure: failed program was:" >&5
14183 cat conftest.$ac_ext >&5
14185 eval "ac_cv_lib_$ac_lib_var=no"
14188 LIBS="$ac_save_LIBS"
14191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14192 echo "$ac_t""yes" 1>&6
14193 cat >> confdefs.h <<\EOF
14194 #define HAVE_STRFTIME 1
14197 LIBS="-lintl $LIBS"
14199 echo "$ac_t""no" 1>&6
14205 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14206 echo "configure:14207: checking for inet_aton()" >&5
14207 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14214 #ifdef HAVE_SYS_TYPES_H
14215 # include <sys/types.h>
14217 #ifdef HAVE_SYS_SOCKET_H
14218 # include <sys/socket.h>
14219 # ifdef HAVE_SYS_SELECT_H
14220 # include <sys/select.h>
14222 # include <netinet/in.h>
14223 # ifdef HAVE_ARPA_INET_H
14224 # include <arpa/inet.h>
14230 int rc = inet_aton( "255.255.255.255", &in );
14233 if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14235 ol_cv_func_inet_aton=yes
14237 echo "configure: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14240 ol_cv_func_inet_aton=no
14245 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14246 if test $ol_cv_func_inet_aton != no; then
14247 cat >> confdefs.h <<\EOF
14248 #define HAVE_INET_ATON 1
14254 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14255 echo "configure:14256: checking for _spawnlp" >&5
14256 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
14259 cat > conftest.$ac_ext <<EOF
14260 #line 14261 "configure"
14261 #include "confdefs.h"
14262 /* System header to define __stub macros and hopefully few prototypes,
14263 which can conflict with char _spawnlp(); below. */
14264 #include <assert.h>
14265 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14273 /* The GNU C library defines this for functions which it implements
14274 to always fail with ENOSYS. Some functions are actually named
14275 something starting with __ and the normal name is an alias. */
14276 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14284 if { (eval echo configure:14285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14286 eval "ac_cv_func__spawnlp=yes"
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14291 eval "ac_cv_func__spawnlp=no"
14296 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14297 echo "$ac_t""yes" 1>&6
14298 cat >> confdefs.h <<\EOF
14299 #define HAVE_SPAWNLP 1
14303 echo "$ac_t""no" 1>&6
14307 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14308 echo "configure:14309: checking for _snprintf" >&5
14309 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 /* System header to define __stub macros and hopefully few prototypes,
14316 which can conflict with char _snprintf(); below. */
14317 #include <assert.h>
14318 /* Override any gcc2 internal prototype to avoid an error. */
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14326 /* The GNU C library defines this for functions which it implements
14327 to always fail with ENOSYS. Some functions are actually named
14328 something starting with __ and the normal name is an alias. */
14329 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14337 if { (eval echo configure:14338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14339 eval "ac_cv_func__snprintf=yes"
14341 echo "configure: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14344 eval "ac_cv_func__snprintf=no"
14349 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14350 echo "$ac_t""yes" 1>&6
14351 ac_cv_func_snprintf=yes
14352 cat >> confdefs.h <<\EOF
14353 #define snprintf _snprintf
14358 echo "$ac_t""no" 1>&6
14362 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14363 echo "configure:14364: checking for _vsnprintf" >&5
14364 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14365 echo $ac_n "(cached) $ac_c" 1>&6
14367 cat > conftest.$ac_ext <<EOF
14368 #line 14369 "configure"
14369 #include "confdefs.h"
14370 /* System header to define __stub macros and hopefully few prototypes,
14371 which can conflict with char _vsnprintf(); below. */
14372 #include <assert.h>
14373 /* Override any gcc2 internal prototype to avoid an error. */
14374 /* We use char because int might match the return type of a gcc2
14375 builtin and then its argument prototype would still apply. */
14381 /* The GNU C library defines this for functions which it implements
14382 to always fail with ENOSYS. Some functions are actually named
14383 something starting with __ and the normal name is an alias. */
14384 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394 eval "ac_cv_func__vsnprintf=yes"
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14399 eval "ac_cv_func__vsnprintf=no"
14404 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14405 echo "$ac_t""yes" 1>&6
14406 ac_cv_func_vsnprintf=yes
14407 cat >> confdefs.h <<\EOF
14408 #define vsnprintf _vsnprintf
14413 echo "$ac_t""no" 1>&6
14417 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14418 echo "configure:14419: checking for vprintf" >&5
14419 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14420 echo $ac_n "(cached) $ac_c" 1>&6
14422 cat > conftest.$ac_ext <<EOF
14423 #line 14424 "configure"
14424 #include "confdefs.h"
14425 /* System header to define __stub macros and hopefully few prototypes,
14426 which can conflict with char vprintf(); below. */
14427 #include <assert.h>
14428 /* Override any gcc2 internal prototype to avoid an error. */
14429 /* We use char because int might match the return type of a gcc2
14430 builtin and then its argument prototype would still apply. */
14436 /* The GNU C library defines this for functions which it implements
14437 to always fail with ENOSYS. Some functions are actually named
14438 something starting with __ and the normal name is an alias. */
14439 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14449 eval "ac_cv_func_vprintf=yes"
14451 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14454 eval "ac_cv_func_vprintf=no"
14459 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14460 echo "$ac_t""yes" 1>&6
14461 cat >> confdefs.h <<\EOF
14462 #define HAVE_VPRINTF 1
14466 echo "$ac_t""no" 1>&6
14469 if test "$ac_cv_func_vprintf" != yes; then
14470 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14471 echo "configure:14472: checking for _doprnt" >&5
14472 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14475 cat > conftest.$ac_ext <<EOF
14476 #line 14477 "configure"
14477 #include "confdefs.h"
14478 /* System header to define __stub macros and hopefully few prototypes,
14479 which can conflict with char _doprnt(); below. */
14480 #include <assert.h>
14481 /* Override any gcc2 internal prototype to avoid an error. */
14482 /* We use char because int might match the return type of a gcc2
14483 builtin and then its argument prototype would still apply. */
14489 /* The GNU C library defines this for functions which it implements
14490 to always fail with ENOSYS. Some functions are actually named
14491 something starting with __ and the normal name is an alias. */
14492 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14500 if { (eval echo configure:14501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14502 eval "ac_cv_func__doprnt=yes"
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14507 eval "ac_cv_func__doprnt=no"
14512 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14513 echo "$ac_t""yes" 1>&6
14514 cat >> confdefs.h <<\EOF
14515 #define HAVE_DOPRNT 1
14519 echo "$ac_t""no" 1>&6
14525 if test $ac_cv_func_vprintf = yes ; then
14526 for ac_func in vsnprintf vsprintf
14528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14529 echo "configure:14530: checking for $ac_func" >&5
14530 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14533 cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14536 /* System header to define __stub macros and hopefully few prototypes,
14537 which can conflict with char $ac_func(); below. */
14538 #include <assert.h>
14539 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */
14547 /* The GNU C library defines this for functions which it implements
14548 to always fail with ENOSYS. Some functions are actually named
14549 something starting with __ and the normal name is an alias. */
14550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14560 eval "ac_cv_func_$ac_func=yes"
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 eval "ac_cv_func_$ac_func=no"
14570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14571 echo "$ac_t""yes" 1>&6
14572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14573 cat >> confdefs.h <<EOF
14574 #define $ac_tr_func 1
14578 echo "$ac_t""no" 1>&6
14634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14635 echo "configure:14636: checking for $ac_func" >&5
14636 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14637 echo $ac_n "(cached) $ac_c" 1>&6
14639 cat > conftest.$ac_ext <<EOF
14640 #line 14641 "configure"
14641 #include "confdefs.h"
14642 /* System header to define __stub macros and hopefully few prototypes,
14643 which can conflict with char $ac_func(); below. */
14644 #include <assert.h>
14645 /* Override any gcc2 internal prototype to avoid an error. */
14646 /* We use char because int might match the return type of a gcc2
14647 builtin and then its argument prototype would still apply. */
14653 /* The GNU C library defines this for functions which it implements
14654 to always fail with ENOSYS. Some functions are actually named
14655 something starting with __ and the normal name is an alias. */
14656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14664 if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14666 eval "ac_cv_func_$ac_func=yes"
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14671 eval "ac_cv_func_$ac_func=no"
14676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14677 echo "$ac_t""yes" 1>&6
14678 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14679 cat >> confdefs.h <<EOF
14680 #define $ac_tr_func 1
14684 echo "$ac_t""no" 1>&6
14689 for ac_func in getopt tempnam
14691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14692 echo "configure:14693: checking for $ac_func" >&5
14693 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14696 cat > conftest.$ac_ext <<EOF
14697 #line 14698 "configure"
14698 #include "confdefs.h"
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func(); below. */
14701 #include <assert.h>
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 /* We use char because int might match the return type of a gcc2
14704 builtin and then its argument prototype would still apply. */
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14721 if { (eval echo configure:14722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14723 eval "ac_cv_func_$ac_func=yes"
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14728 eval "ac_cv_func_$ac_func=no"
14733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14734 echo "$ac_t""yes" 1>&6
14735 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14736 cat >> confdefs.h <<EOF
14737 #define $ac_tr_func 1
14741 echo "$ac_t""no" 1>&6
14742 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14748 if test "$ac_cv_func_getopt" != yes; then
14749 LIBSRCS="$LIBSRCS getopt.c"
14752 if test "$ac_cv_func_tempnam" != yes; then
14753 LIBSRCS="$LIBSRCS tempnam.c"
14756 # Check Configuration
14757 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14758 echo "configure:14759: checking declaration of sys_errlist" >&5
14759 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14763 cat > conftest.$ac_ext <<EOF
14764 #line 14765 "configure"
14765 #include "confdefs.h"
14768 #include <sys/types.h>
14771 #include <stdlib.h>
14774 char *c = (char *) *sys_errlist
14777 if { (eval echo configure:14778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14779 ol_cv_dcl_sys_errlist=yes
14780 ol_cv_have_sys_errlist=yes
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14785 ol_cv_dcl_sys_errlist=no
14790 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14792 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14793 if test $ol_cv_dcl_sys_errlist = no ; then
14794 cat >> confdefs.h <<\EOF
14795 #define DECL_SYS_ERRLIST 1
14799 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14800 echo "configure:14801: checking existence of sys_errlist" >&5
14801 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14802 echo $ac_n "(cached) $ac_c" 1>&6
14805 cat > conftest.$ac_ext <<EOF
14806 #line 14807 "configure"
14807 #include "confdefs.h"
14810 char *c = (char *) *sys_errlist
14813 if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14815 ol_cv_have_sys_errlist=yes
14817 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14820 ol_cv_have_sys_errlist=no
14825 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14827 if test $ol_cv_have_sys_errlist = yes ; then
14828 cat >> confdefs.h <<\EOF
14829 #define HAVE_SYS_ERRLIST 1
14836 if test "$ol_enable_debug" != no ; then
14837 cat >> confdefs.h <<\EOF
14838 #define LDAP_DEBUG 1
14842 if test "$ol_enable_syslog" = yes ; then
14843 cat >> confdefs.h <<\EOF
14844 #define LDAP_SYSLOG 1
14848 if test "$ol_enable_libui" = yes ; then
14849 cat >> confdefs.h <<\EOF
14850 #define LDAP_LIBUI 1
14854 if test "$ol_enable_cache" = no ; then
14855 cat >> confdefs.h <<\EOF
14856 #define LDAP_NOCACHE 1
14860 if test "$ol_enable_dns" != no ; then
14861 cat >> confdefs.h <<\EOF
14862 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14866 if test "$ol_enable_proctitle" != no ; then
14867 cat >> confdefs.h <<\EOF
14868 #define LDAP_PROCTITLE 1
14872 if test "$ol_enable_referrals" != no ; then
14873 cat >> confdefs.h <<\EOF
14874 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14878 if test "$ol_enable_cldap" != no ; then
14879 cat >> confdefs.h <<\EOF
14880 #define LDAP_CONNECTIONLESS 1
14885 if test "$ol_enable_crypt" != no ; then
14886 cat >> confdefs.h <<\EOF
14887 #define SLAPD_CRYPT 1
14891 if test "$ol_enable_cleartext" != no ; then
14892 cat >> confdefs.h <<\EOF
14893 #define SLAPD_CLEARTEXT 1
14897 if test "$ol_enable_multimaster" != no ; then
14898 cat >> confdefs.h <<\EOF
14899 #define SLAPD_MULTIMASTER 1
14903 if test "$ol_enable_phonetic" != no ; then
14904 cat >> confdefs.h <<\EOF
14905 #define SLAPD_PHONETIC 1
14909 if test "$ol_enable_rlookups" != no ; then
14910 cat >> confdefs.h <<\EOF
14911 #define SLAPD_RLOOKUPS 1
14915 if test "$ol_enable_aci" != no ; then
14916 cat >> confdefs.h <<\EOF
14917 #define SLAPD_ACI_ENABLED 1
14921 if test "$ol_enable_discreteaci" != no ; then
14922 cat >> confdefs.h <<\EOF
14923 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14928 if test "$ol_link_modules" != no ; then
14929 cat >> confdefs.h <<\EOF
14930 #define SLAPD_MODULES 1
14934 SLAPD_MODULES_LDFLAGS="-dlopen self"
14937 if test "$ol_link_bdb2" != no ; then
14938 cat >> confdefs.h <<\EOF
14939 #define SLAPD_BDB2 1
14944 if test "$ol_with_bdb2_module" != static ; then
14945 cat >> confdefs.h <<\EOF
14946 #define SLAPD_BDB2_DYNAMIC 1
14950 BUILD_BDB2_DYNAMIC=shared
14951 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14955 if test "$ol_enable_ldap" != no ; then
14956 cat >> confdefs.h <<\EOF
14957 #define SLAPD_LDAP 1
14962 if test "$ol_with_ldap_module" != static ; then
14963 cat >> confdefs.h <<\EOF
14964 #define SLAPD_LDAP_DYNAMIC 1
14968 BUILD_LDAP_DYNAMIC=shared
14969 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14973 if test "$ol_link_ldbm" != no ; then
14974 cat >> confdefs.h <<\EOF
14975 #define SLAPD_LDBM 1
14980 if test "$ol_with_ldbm_module" != static ; then
14981 cat >> confdefs.h <<\EOF
14982 #define SLAPD_LDBM_DYNAMIC 1
14986 BUILD_LDBM_DYNAMIC=shared
14987 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14991 if test "$ol_enable_passwd" != no ; then
14992 cat >> confdefs.h <<\EOF
14993 #define SLAPD_PASSWD 1
14998 if test "$ol_with_passwd_module" != static ; then
14999 cat >> confdefs.h <<\EOF
15000 #define SLAPD_PASSWD_DYNAMIC 1
15004 BUILD_PASSWD_DYNAMIC=shared
15005 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15009 if test "$ol_link_perl" != no ; then
15010 cat >> confdefs.h <<\EOF
15011 #define SLAPD_PERL 1
15016 if test "$ol_with_perl_module" != static ; then
15017 cat >> confdefs.h <<\EOF
15018 #define SLAPD_PERL_DYNAMIC 1
15022 BUILD_PERL_DYNAMIC=shared
15023 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15027 if test "$ol_enable_shell" != no ; then
15028 cat >> confdefs.h <<\EOF
15029 #define SLAPD_SHELL 1
15034 if test "$ol_with_shell_module" != static ; then
15035 cat >> confdefs.h <<\EOF
15036 #define SLAPD_SHELL_DYNAMIC 1
15040 BUILD_SHELL_DYNAMIC=shared
15041 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15045 if test "$ol_enable_tcl" != no ; then
15046 cat >> confdefs.h <<\EOF
15047 #define SLAPD_TCL 1
15052 if test "$ol_with_tcl_module" != static; then
15053 cat >> confdefs.h <<\EOF
15054 #define SLAPD_TCL_DYNAMIC 1
15058 BUILD_TCL_DYNAMIC=shared
15059 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15063 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15064 $BUILD_SLAPD = yes ; then
15068 if test "$ol_link_isode" != no ; then
15073 if test "$LINK_BINS_DYNAMIC" = yes; then
15075 LT_LIB_LINKAGE=shared
15078 LT_LIB_LINKAGE=static
15081 if test "$ac_cv_mingw32" = yes ; then
15145 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15147 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15148 # Let make expand exec_prefix.
15149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15151 # Any assignment to VPATH causes Sun make to only execute
15152 # the first set of double-colon rules, so remove it if not needed.
15153 # If there is a colon in the path, we need to keep it.
15154 if test "x$srcdir" = x.; then
15155 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15158 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15160 DEFS=-DHAVE_CONFIG_H
15162 # Without the "./", some shells look in PATH for config.status.
15163 : ${CONFIG_STATUS=./config.status}
15165 echo creating $CONFIG_STATUS
15166 rm -f $CONFIG_STATUS
15167 cat > $CONFIG_STATUS <<EOF
15169 # Generated automatically by configure.
15170 # Run this file to recreate the current configuration.
15171 # This directory was configured as follows,
15172 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15174 # $0 $ac_configure_args
15176 # Compiler output produced by configure, useful for debugging
15177 # configure, is in ./config.log if it exists.
15179 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15182 case "\$ac_option" in
15183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15184 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15185 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15186 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15187 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15189 -help | --help | --hel | --he | --h)
15190 echo "\$ac_cs_usage"; exit 0 ;;
15191 *) echo "\$ac_cs_usage"; exit 1 ;;
15195 ac_given_srcdir=$srcdir
15196 ac_given_INSTALL="$INSTALL"
15198 trap 'rm -fr `echo "\
15199 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15200 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15201 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15202 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15203 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15204 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15205 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15206 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15207 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15208 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15209 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15210 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15211 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15212 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15213 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15214 include/Makefile:build/top.mk:include/Makefile.in \
15215 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15216 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15217 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15218 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15219 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15220 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15221 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15222 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15223 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15224 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15225 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15226 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15227 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15228 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15229 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15230 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15231 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15232 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15233 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15234 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15235 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15236 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15237 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15238 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15239 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15240 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15241 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15243 cat >> $CONFIG_STATUS <<EOF
15245 # Protect against being on the right side of a sed subst in config.status.
15246 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15247 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15251 s%@CFLAGS@%$CFLAGS%g
15252 s%@CPPFLAGS@%$CPPFLAGS%g
15253 s%@CXXFLAGS@%$CXXFLAGS%g
15254 s%@FFLAGS@%$FFLAGS%g
15256 s%@LDFLAGS@%$LDFLAGS%g
15258 s%@exec_prefix@%$exec_prefix%g
15259 s%@prefix@%$prefix%g
15260 s%@program_transform_name@%$program_transform_name%g
15261 s%@bindir@%$bindir%g
15262 s%@sbindir@%$sbindir%g
15263 s%@libexecdir@%$libexecdir%g
15264 s%@datadir@%$datadir%g
15265 s%@sysconfdir@%$sysconfdir%g
15266 s%@sharedstatedir@%$sharedstatedir%g
15267 s%@localstatedir@%$localstatedir%g
15268 s%@libdir@%$libdir%g
15269 s%@includedir@%$includedir%g
15270 s%@oldincludedir@%$oldincludedir%g
15271 s%@infodir@%$infodir%g
15272 s%@mandir@%$mandir%g
15274 s%@host_alias@%$host_alias%g
15275 s%@host_cpu@%$host_cpu%g
15276 s%@host_vendor@%$host_vendor%g
15277 s%@host_os@%$host_os%g
15278 s%@target@%$target%g
15279 s%@target_alias@%$target_alias%g
15280 s%@target_cpu@%$target_cpu%g
15281 s%@target_vendor@%$target_vendor%g
15282 s%@target_os@%$target_os%g
15284 s%@build_alias@%$build_alias%g
15285 s%@build_cpu@%$build_cpu%g
15286 s%@build_vendor@%$build_vendor%g
15287 s%@build_os@%$build_os%g
15288 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15289 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15290 s%@INSTALL_DATA@%$INSTALL_DATA%g
15291 s%@PACKAGE@%$PACKAGE%g
15292 s%@VERSION@%$VERSION%g
15293 s%@ACLOCAL@%$ACLOCAL%g
15294 s%@AUTOCONF@%$AUTOCONF%g
15295 s%@AUTOMAKE@%$AUTOMAKE%g
15296 s%@AUTOHEADER@%$AUTOHEADER%g
15297 s%@MAKEINFO@%$MAKEINFO%g
15298 s%@install_sh@%$install_sh%g
15301 s%@AMTARFLAGS@%$AMTARFLAGS%g
15302 s%@SET_MAKE@%$SET_MAKE%g
15303 s%@top_builddir@%$top_builddir%g
15304 s%@ldap_subdir@%$ldap_subdir%g
15306 s%@RANLIB@%$RANLIB%g
15310 s%@DLLTOOL@%$DLLTOOL%g
15312 s%@OBJDUMP@%$OBJDUMP%g
15313 s%@LIBTOOL@%$LIBTOOL%g
15315 s%@SENDMAIL@%$SENDMAIL%g
15316 s%@EDITOR@%$EDITOR%g
15317 s%@FINGER@%$FINGER%g
15318 s%@PERLBIN@%$PERLBIN%g
15320 s%@EXEEXT@%$EXEEXT%g
15321 s%@OBJEXT@%$OBJEXT%g
15322 s%@OL_MKDEP@%$OL_MKDEP%g
15323 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15325 s%@LIBOBJS@%$LIBOBJS%g
15326 s%@LIBSRCS@%$LIBSRCS%g
15328 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15329 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15330 s%@DYN_EXT@%$DYN_EXT%g
15331 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15332 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15333 s%@BUILD_BDB2@%$BUILD_BDB2%g
15334 s%@BUILD_LDAP@%$BUILD_LDAP%g
15335 s%@BUILD_LDBM@%$BUILD_LDBM%g
15336 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15337 s%@BUILD_PERL@%$BUILD_PERL%g
15338 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15339 s%@BUILD_SHELL@%$BUILD_SHELL%g
15340 s%@BUILD_TCL@%$BUILD_TCL%g
15341 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15342 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15343 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15344 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15345 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15346 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15347 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15348 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15349 s%@LDAP_LIBS@%$LDAP_LIBS%g
15350 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15351 s%@LDIF_LIBS@%$LDIF_LIBS%g
15352 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15353 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15354 s%@LDBM_LIBS@%$LDBM_LIBS%g
15355 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15356 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15357 s%@WRAP_LIBS@%$WRAP_LIBS%g
15358 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15359 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15360 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15361 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15362 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15363 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15364 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15365 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15366 s%@KRB_LIBS@%$KRB_LIBS%g
15367 s%@READLINE_LIBS@%$READLINE_LIBS%g
15368 s%@SASL_LIBS@%$SASL_LIBS%g
15369 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15370 s%@TLS_LIBS@%$TLS_LIBS%g
15371 s%@MODULES_LIBS@%$MODULES_LIBS%g
15376 cat >> $CONFIG_STATUS <<\EOF
15378 # Split the substitutions into bite-sized pieces for seds with
15379 # small command number limits, like on Digital OSF/1 and HP-UX.
15380 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15381 ac_file=1 # Number of current file.
15382 ac_beg=1 # First line for current file.
15383 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15386 while $ac_more_lines; do
15387 if test $ac_beg -gt 1; then
15388 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15390 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15392 if test ! -s conftest.s$ac_file; then
15393 ac_more_lines=false
15394 rm -f conftest.s$ac_file
15396 if test -z "$ac_sed_cmds"; then
15397 ac_sed_cmds="sed -f conftest.s$ac_file"
15399 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15401 ac_file=`expr $ac_file + 1`
15403 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15406 if test -z "$ac_sed_cmds"; then
15411 cat >> $CONFIG_STATUS <<EOF
15413 CONFIG_FILES=\${CONFIG_FILES-"\
15414 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15415 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15416 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15417 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15418 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15419 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15420 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15421 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15422 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15423 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15424 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15425 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15426 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15427 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15428 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15429 include/Makefile:build/top.mk:include/Makefile.in \
15430 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15431 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15432 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15433 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15434 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15435 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15436 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15437 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15438 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15439 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15440 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15441 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15442 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15443 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15444 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15445 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15446 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15447 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15448 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15449 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15450 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15451 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15452 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15453 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15454 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15455 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15458 cat >> $CONFIG_STATUS <<\EOF
15459 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15462 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15463 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15464 *) ac_file_in="${ac_file}.in" ;;
15467 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15469 # Remove last slash and all that follows it. Not all systems have dirname.
15470 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15471 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15472 # The file is in a subdirectory.
15473 test ! -d "$ac_dir" && mkdir "$ac_dir"
15474 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15475 # A "../" for each directory in $ac_dir_suffix.
15476 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15478 ac_dir_suffix= ac_dots=
15481 case "$ac_given_srcdir" in
15483 if test -z "$ac_dots"; then top_srcdir=.
15484 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15485 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15486 *) # Relative path.
15487 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15488 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15491 case "$ac_given_INSTALL" in
15492 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15493 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15496 echo creating "$ac_file"
15498 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15500 *Makefile*) ac_comsub="1i\\
15501 # $configure_input" ;;
15505 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15507 s%@configure_input@%$configure_input%g
15508 s%@srcdir@%$srcdir%g
15509 s%@top_srcdir@%$top_srcdir%g
15510 s%@INSTALL@%$INSTALL%g
15511 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15515 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15516 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15518 # ac_d sets the value in "#define NAME VALUE" lines.
15519 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15520 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15523 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15524 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15525 ac_uB='\([ ]\)%\1#\2define\3'
15528 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15529 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15530 ac_eB='$%\1#\2define\3'
15534 if test "${CONFIG_HEADERS+set}" != set; then
15536 cat >> $CONFIG_STATUS <<EOF
15537 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15539 cat >> $CONFIG_STATUS <<\EOF
15541 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15542 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15544 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15545 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15546 *) ac_file_in="${ac_file}.in" ;;
15549 echo creating $ac_file
15551 rm -f conftest.frag conftest.in conftest.out
15552 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15553 cat $ac_file_inputs > conftest.in
15557 # Transform confdefs.h into a sed script conftest.vals that substitutes
15558 # the proper values into config.h.in to produce config.h. And first:
15559 # Protect against being on the right side of a sed subst in config.status.
15560 # Protect against being in an unquoted here document in config.status.
15561 rm -f conftest.vals
15562 cat > conftest.hdr <<\EOF
15565 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15569 sed -n -f conftest.hdr confdefs.h > conftest.vals
15572 # This sed command replaces #undef with comments. This is necessary, for
15573 # example, in the case of _POSIX_SOURCE, which is predefined and required
15574 # on some systems where configure will not decide to define it.
15575 cat >> conftest.vals <<\EOF
15576 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15579 # Break up conftest.vals because some shells have a limit on
15580 # the size of here documents, and old seds have small limits too.
15582 rm -f conftest.tail
15585 ac_lines=`grep -c . conftest.vals`
15586 # grep -c gives empty output for an empty file on some AIX systems.
15587 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15588 # Write a limited-size here document to conftest.frag.
15589 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15590 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15592 sed -f conftest.frag conftest.in > conftest.out
15594 mv conftest.out conftest.in
15595 ' >> $CONFIG_STATUS
15596 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15597 rm -f conftest.vals
15598 mv conftest.tail conftest.vals
15600 rm -f conftest.vals
15602 cat >> $CONFIG_STATUS <<\EOF
15603 rm -f conftest.frag conftest.h
15604 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15605 cat conftest.in >> conftest.h
15607 if cmp -s $ac_file conftest.h 2>/dev/null; then
15608 echo "$ac_file is unchanged"
15611 # Remove last slash and all that follows it. Not all systems have dirname.
15612 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15613 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15614 # The file is in a subdirectory.
15615 test ! -d "$ac_dir" && mkdir "$ac_dir"
15618 mv conftest.h $ac_file
15623 cat >> $CONFIG_STATUS <<EOF
15626 cat >> $CONFIG_STATUS <<\EOF
15629 echo Please \"make depend\" to build dependencies
15633 chmod +x $CONFIG_STATUS
15634 rm -fr confdefs* $ac_clean_files
15635 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1