3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-ldapd enable building ldapd (no)"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-wrappers enable tcp wrapper support (no)"
74 --enable-bdb2 enable bdb2 backend (no)"
76 --with-bdb2-module module type (static)"
78 --enable-ldap enable ldap backend (no)"
80 --with-ldap-module module type (static)"
82 --enable-ldbm enable ldbm backend (yes)"
84 --with-ldbm-module module type (static)"
86 --with-ldbm-api use LDBM API (auto)"
88 --with-ldbm-type use LDBM type (auto)"
90 --enable-passwd enable passwd backend (no)"
92 --with-passwd-module module type (static)"
94 --enable-perl enable perl backend (no)"
96 --with-perl-module module type (static)"
98 --enable-shell enable shell backend (no)"
100 --with-shell-module module type (static)"
102 --enable-tcl enable tcl backend (no)"
104 --with-tcl-module module type (static)"
108 --enable-slurpd enable building slurpd (auto)"
110 Library Generation & Linking Options"
112 --enable-static[=PKGS] build static libraries [default=yes]"
114 --enable-shared[=PKGS] build shared libraries [default=yes]"
116 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
118 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
120 --disable-libtool-lock avoid locking (might break parallel builds)"
122 # Initialize some variables set by options.
123 # The variables have the same names as the options, with
124 # dashes changed to underlines.
126 cache_file=./config.cache
135 program_transform_name=s,x,x,
143 bindir='${exec_prefix}/bin'
144 sbindir='${exec_prefix}/sbin'
145 libexecdir='${exec_prefix}/libexec'
146 datadir='${prefix}/share'
147 sysconfdir='${prefix}/etc'
148 sharedstatedir='${prefix}/com'
149 localstatedir='${prefix}/var'
150 libdir='${exec_prefix}/lib'
151 includedir='${prefix}/include'
152 oldincludedir='/usr/include'
153 infodir='${prefix}/info'
154 mandir='${prefix}/man'
156 # Initialize some other variables.
159 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Maximum number of lines to put in a shell here document.
167 # If the previous option needs an argument, assign it.
168 if test -n "$ac_prev"; then
169 eval "$ac_prev=\$ac_option"
175 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
179 # Accept the important Cygnus configure options, so we can diagnose typos.
183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
186 bindir="$ac_optarg" ;;
188 -build | --build | --buil | --bui | --bu)
190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
191 build="$ac_optarg" ;;
193 -cache-file | --cache-file | --cache-fil | --cache-fi \
194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
195 ac_prev=cache_file ;;
196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
198 cache_file="$ac_optarg" ;;
200 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
202 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
204 datadir="$ac_optarg" ;;
206 -disable-* | --disable-*)
207 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
208 # Reject names that are not valid shell variable names.
209 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
210 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
212 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}=no" ;;
215 -enable-* | --enable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
226 eval "enable_${ac_feature}='$ac_optarg'" ;;
228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
230 | --exec | --exe | --ex)
231 ac_prev=exec_prefix ;;
232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
234 | --exec=* | --exe=* | --ex=*)
235 exec_prefix="$ac_optarg" ;;
237 -gas | --gas | --ga | --g)
238 # Obsolete; use --with-gas.
241 -help | --help | --hel | --he)
242 # Omit some internal or obsolete options to make the list less imposing.
243 # This message is too long to be a string in the A/UX 3.1 sh.
245 Usage: configure [options] [host]
246 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
253 Directory and file names:
254 --prefix=PREFIX install architecture-independent files in PREFIX
256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
258 --bindir=DIR user executables in DIR [EPREFIX/bin]
259 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
260 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
261 --datadir=DIR read-only architecture-independent data in DIR
263 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
264 --sharedstatedir=DIR modifiable architecture-independent data in DIR
266 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
267 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
268 --includedir=DIR C header files in DIR [PREFIX/include]
269 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
270 --infodir=DIR info documentation in DIR [PREFIX/info]
271 --mandir=DIR man documentation in DIR [PREFIX/man]
272 --srcdir=DIR find the sources in DIR [configure dir or ..]
273 --program-prefix=PREFIX prepend PREFIX to installed program names
274 --program-suffix=SUFFIX append SUFFIX to installed program names
275 --program-transform-name=PROGRAM
276 run sed PROGRAM on installed program names
280 --build=BUILD configure for building on BUILD [BUILD=HOST]
281 --host=HOST configure for HOST [guessed]
282 --target=TARGET configure for TARGET [TARGET=HOST]
283 Features and packages:
284 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
285 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
288 --x-includes=DIR X include files are in DIR
289 --x-libraries=DIR X library files are in DIR
291 if test -n "$ac_help"; then
292 echo "--enable and --with options recognized:$ac_help"
296 -host | --host | --hos | --ho)
298 -host=* | --host=* | --hos=* | --ho=*)
301 -includedir | --includedir | --includedi | --included | --include \
302 | --includ | --inclu | --incl | --inc)
303 ac_prev=includedir ;;
304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
305 | --includ=* | --inclu=* | --incl=* | --inc=*)
306 includedir="$ac_optarg" ;;
308 -infodir | --infodir | --infodi | --infod | --info | --inf)
310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
311 infodir="$ac_optarg" ;;
313 -libdir | --libdir | --libdi | --libd)
315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
316 libdir="$ac_optarg" ;;
318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
319 | --libexe | --libex | --libe)
320 ac_prev=libexecdir ;;
321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
322 | --libexe=* | --libex=* | --libe=*)
323 libexecdir="$ac_optarg" ;;
325 -localstatedir | --localstatedir | --localstatedi | --localstated \
326 | --localstate | --localstat | --localsta | --localst \
327 | --locals | --local | --loca | --loc | --lo)
328 ac_prev=localstatedir ;;
329 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
330 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
331 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
332 localstatedir="$ac_optarg" ;;
334 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
336 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
337 mandir="$ac_optarg" ;;
340 # Obsolete; use --without-fp.
343 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
347 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
348 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
351 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
352 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
353 | --oldin | --oldi | --old | --ol | --o)
354 ac_prev=oldincludedir ;;
355 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
356 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
357 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
358 oldincludedir="$ac_optarg" ;;
360 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
362 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
363 prefix="$ac_optarg" ;;
365 -program-prefix | --program-prefix | --program-prefi | --program-pref \
366 | --program-pre | --program-pr | --program-p)
367 ac_prev=program_prefix ;;
368 -program-prefix=* | --program-prefix=* | --program-prefi=* \
369 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
370 program_prefix="$ac_optarg" ;;
372 -program-suffix | --program-suffix | --program-suffi | --program-suff \
373 | --program-suf | --program-su | --program-s)
374 ac_prev=program_suffix ;;
375 -program-suffix=* | --program-suffix=* | --program-suffi=* \
376 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
377 program_suffix="$ac_optarg" ;;
379 -program-transform-name | --program-transform-name \
380 | --program-transform-nam | --program-transform-na \
381 | --program-transform-n | --program-transform- \
382 | --program-transform | --program-transfor \
383 | --program-transfo | --program-transf \
384 | --program-trans | --program-tran \
385 | --progr-tra | --program-tr | --program-t)
386 ac_prev=program_transform_name ;;
387 -program-transform-name=* | --program-transform-name=* \
388 | --program-transform-nam=* | --program-transform-na=* \
389 | --program-transform-n=* | --program-transform-=* \
390 | --program-transform=* | --program-transfor=* \
391 | --program-transfo=* | --program-transf=* \
392 | --program-trans=* | --program-tran=* \
393 | --progr-tra=* | --program-tr=* | --program-t=*)
394 program_transform_name="$ac_optarg" ;;
396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
397 | -silent | --silent | --silen | --sile | --sil)
400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
404 sbindir="$ac_optarg" ;;
406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
408 | --sharedst | --shareds | --shared | --share | --shar \
410 ac_prev=sharedstatedir ;;
411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
415 sharedstatedir="$ac_optarg" ;;
417 -site | --site | --sit)
419 -site=* | --site=* | --sit=*)
422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
425 srcdir="$ac_optarg" ;;
427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
428 | --syscon | --sysco | --sysc | --sys | --sy)
429 ac_prev=sysconfdir ;;
430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
432 sysconfdir="$ac_optarg" ;;
434 -target | --target | --targe | --targ | --tar | --ta | --t)
436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
437 target="$ac_optarg" ;;
439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
442 -version | --version | --versio | --versi | --vers)
443 echo "configure generated by autoconf version 2.13"
447 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package=`echo $ac_package| sed 's/-/_/g'`
457 eval "with_${ac_package}='$ac_optarg'" ;;
459 -without-* | --without-*)
460 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
465 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}=no" ;;
469 # Obsolete; use --with-x.
472 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
473 | --x-incl | --x-inc | --x-in | --x-i)
474 ac_prev=x_includes ;;
475 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
476 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
477 x_includes="$ac_optarg" ;;
479 -x-libraries | --x-libraries | --x-librarie | --x-librari \
480 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
481 ac_prev=x_libraries ;;
482 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
483 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
484 x_libraries="$ac_optarg" ;;
486 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
490 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
491 echo "configure: warning: $ac_option: invalid host type" 1>&2
493 if test "x$nonopt" != xNONE; then
494 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
502 if test -n "$ac_prev"; then
503 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
506 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
508 # File descriptor usage:
511 # 2 errors and warnings
512 # 3 some systems may open it to /dev/tty
513 # 4 used on the Kubota Titan
514 # 6 checking for... messages and results
515 # 5 compiler messages saved in config.log
516 if test "$silent" = yes; then
524 This file contains any messages produced by compilers while
525 running configure, to aid debugging if configure makes a mistake.
528 # Strip out --no-create and --no-recursion so they do not pile up.
529 # Also quote any args containing shell metacharacters.
534 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
535 | --no-cr | --no-c) ;;
536 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
537 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
538 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
539 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
540 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
545 # Only set these to C if already set. These must not be set unconditionally
546 # because not all systems understand e.g. LANG=C (notably SCO).
547 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
548 # Non-C LC_CTYPE values break the ctype check.
549 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
550 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
551 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
552 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
554 # confdefs.h avoids OS command line length limits that DEFS can exceed.
555 rm -rf conftest* confdefs.h
556 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
559 # A filename unique to this package, relative to the directory that
560 # configure is in, which we can look for to find out if srcdir is correct.
561 ac_unique_file=build/version
563 # Find the source files, if location was not specified.
564 if test -z "$srcdir"; then
565 ac_srcdir_defaulted=yes
566 # Try the directory containing this script, then its parent.
568 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
569 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
571 if test ! -r $srcdir/$ac_unique_file; then
575 ac_srcdir_defaulted=no
577 if test ! -r $srcdir/$ac_unique_file; then
578 if test "$ac_srcdir_defaulted" = yes; then
579 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
581 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
584 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
586 # Prefer explicitly selected file to automatically selected ones.
587 if test -z "$CONFIG_SITE"; then
588 if test "x$prefix" != xNONE; then
589 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
591 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
594 for ac_site_file in $CONFIG_SITE; do
595 if test -r "$ac_site_file"; then
596 echo "loading site script $ac_site_file"
603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
604 ac_cpp='$CPP $CPPFLAGS'
605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
607 cross_compiling=$ac_cv_prog_cc_cross
611 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
612 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
613 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
620 ac_n= ac_c='\c' ac_t=
624 for ac_dir in build $srcdir/build; do
625 if test -f $ac_dir/install-sh; then
627 ac_install_sh="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh; then
631 ac_install_sh="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
638 ac_config_guess=$ac_aux_dir/config.guess
639 ac_config_sub=$ac_aux_dir/config.sub
640 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
642 OL_VERSION=`cat $ac_aux_dir/version`
643 if test -z "$OL_VERSION"; then
644 { echo "configure: error: could not determine version" 1>&2; exit 1; }
648 # Do some error checking and defaulting for the host and target type.
650 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
653 # 1. You are not allowed to specify --host, --target, and nonopt at the
655 # 2. Host defaults to nonopt.
656 # 3. If nonopt is not specified, then host defaults to the current host,
657 # as determined by config.guess.
658 # 4. Target and build default to nonopt.
659 # 5. If nonopt is not specified, then target and build default to host.
661 # The aliases save the names the user supplied, while $host etc.
662 # will get canonicalized.
663 case $host---$target---$nonopt in
664 NONE---*---* | *---NONE---* | *---*---NONE) ;;
665 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
669 # Make sure we can run config.sub.
670 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
671 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
678 case "$host_alias" in
682 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
683 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
685 *) host_alias=$nonopt ;;
689 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
690 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693 echo "$ac_t""$host" 1>&6
695 echo $ac_n "checking target system type""... $ac_c" 1>&6
696 echo "configure:697: checking target system type" >&5
699 case "$target_alias" in
702 NONE) target_alias=$host_alias ;;
703 *) target_alias=$nonopt ;;
707 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
708 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$target" 1>&6
713 echo $ac_n "checking build system type""... $ac_c" 1>&6
714 echo "configure:715: checking build system type" >&5
717 case "$build_alias" in
720 NONE) build_alias=$host_alias ;;
721 *) build_alias=$nonopt ;;
725 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
726 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$build" 1>&6
731 test "$host_alias" != "$target_alias" &&
732 test "$program_prefix$program_suffix$program_transform_name" = \
734 program_prefix=${target_alias}-
737 # Find a good install program. We prefer a C program (faster),
738 # so one script is as good as another. But avoid the broken or
739 # incompatible versions:
740 # SysV /etc/install, /usr/sbin/install
741 # SunOS /usr/etc/install
744 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
745 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
746 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
747 # ./install, which can be erroneously created by make from ./install.sh.
748 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
749 echo "configure:750: checking for a BSD compatible install" >&5
750 if test -z "$INSTALL"; then
751 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
755 for ac_dir in $PATH; do
756 # Account for people who put trailing slashes in PATH elements.
758 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
760 # OSF1 and SCO ODT 3.0 have their own names for install.
761 # Don't use installbsd from OSF since it installs stuff as root
763 for ac_prog in ginstall scoinst install; do
764 if test -f $ac_dir/$ac_prog; then
765 if test $ac_prog = install &&
766 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
767 # AIX install. It has an incompatible calling convention.
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
799 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
801 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
802 echo "configure:803: checking whether build environment is sane" >&5
805 echo timestamp > conftestfile
806 # Do `set' in a subshell so we don't clobber the current shell's
807 # arguments. Must try -L first in case configure is actually a
808 # symlink; some systems play weird games with the mod time of symlinks
809 # (eg FreeBSD returns the mod time of the symlink's containing
812 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
813 if test "$*" = "X"; then
815 set X `ls -t $srcdir/configure conftestfile`
817 if test "$*" != "X $srcdir/configure conftestfile" \
818 && test "$*" != "X conftestfile $srcdir/configure"; then
820 # If neither matched, then we have a broken ls. This can happen
821 # if, for instance, CONFIG_SHELL is bash and it inherits a
822 # broken ls alias from the environment. This has actually
823 # happened. Such a system could not be considered "sane".
824 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
825 alias in your environment" 1>&2; exit 1; }
828 test "$2" = conftestfile
834 { echo "configure: error: newly created file is older than distributed files!
835 Check your system clock" 1>&2; exit 1; }
838 echo "$ac_t""yes" 1>&6
839 if test "$program_transform_name" = s,x,x,; then
840 program_transform_name=
842 # Double any \ or $. echo might interpret backslashes.
843 cat <<\EOF_SED > conftestsed
844 s,\\,\\\\,g; s,\$,$$,g
846 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
849 test "$program_prefix" != NONE &&
850 program_transform_name="s,^,${program_prefix},; $program_transform_name"
851 # Use a double $ so make ignores it.
852 test "$program_suffix" != NONE &&
853 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
855 # sed with no file args requires a program.
856 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
858 for ac_prog in mawk gawk nawk awk
860 # Extract the first word of "$ac_prog", so it can be a program name with args.
861 set dummy $ac_prog; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$AWK"; then
868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
875 ac_cv_prog_AWK="$ac_prog"
882 AWK="$ac_cv_prog_AWK"
883 if test -n "$AWK"; then
884 echo "$ac_t""$AWK" 1>&6
886 echo "$ac_t""no" 1>&6
889 test -n "$AWK" && break
892 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
893 echo "configure:894: checking whether ${MAKE-make} sets \${MAKE}" >&5
894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftestmake <<\EOF
900 @echo 'ac_maketemp="${MAKE}"'
902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
903 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
904 if test -n "$ac_maketemp"; then
905 eval ac_cv_prog_make_${ac_make}_set=yes
907 eval ac_cv_prog_make_${ac_make}_set=no
911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
912 echo "$ac_t""yes" 1>&6
915 echo "$ac_t""no" 1>&6
916 SET_MAKE="MAKE=${MAKE-make}"
925 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
926 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
931 missing_dir=`cd $ac_aux_dir && pwd`
932 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
933 echo "configure:934: checking for working aclocal" >&5
934 # Run test in a subshell; some versions of sh will print an error if
935 # an executable is not found, even if stderr is redirected.
936 # Redirect stdin to placate older versions of autoconf. Sigh.
937 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
939 echo "$ac_t""found" 1>&6
941 ACLOCAL="$missing_dir/missing aclocal"
942 echo "$ac_t""missing" 1>&6
945 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
946 echo "configure:947: checking for working autoconf" >&5
947 # Run test in a subshell; some versions of sh will print an error if
948 # an executable is not found, even if stderr is redirected.
949 # Redirect stdin to placate older versions of autoconf. Sigh.
950 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
952 echo "$ac_t""found" 1>&6
954 AUTOCONF="$missing_dir/missing autoconf"
955 echo "$ac_t""missing" 1>&6
958 echo $ac_n "checking for working automake""... $ac_c" 1>&6
959 echo "configure:960: checking for working automake" >&5
960 # Run test in a subshell; some versions of sh will print an error if
961 # an executable is not found, even if stderr is redirected.
962 # Redirect stdin to placate older versions of autoconf. Sigh.
963 if (automake --version) < /dev/null > /dev/null 2>&1; then
965 echo "$ac_t""found" 1>&6
967 AUTOMAKE="$missing_dir/missing automake"
968 echo "$ac_t""missing" 1>&6
971 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
972 echo "configure:973: checking for working autoheader" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
977 AUTOHEADER=autoheader
978 echo "$ac_t""found" 1>&6
980 AUTOHEADER="$missing_dir/missing autoheader"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
985 echo "configure:986: checking for working makeinfo" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
991 echo "$ac_t""found" 1>&6
993 MAKEINFO="$missing_dir/missing makeinfo"
994 echo "$ac_t""missing" 1>&6
997 install_sh="$missing_dir/install-sh"
998 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1000 for ac_prog in gnutar gtar tar
1002 # Extract the first word of "$ac_prog", so it can be a program name with args.
1003 set dummy $ac_prog; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_AMTAR'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 if test -n "$AMTAR"; then
1010 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1014 for ac_dir in $ac_dummy; do
1015 test -z "$ac_dir" && ac_dir=.
1016 if test -f $ac_dir/$ac_word; then
1017 ac_cv_prog_AMTAR="$ac_prog"
1024 AMTAR="$ac_cv_prog_AMTAR"
1025 if test -n "$AMTAR"; then
1026 echo "$ac_t""$AMTAR" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 test -n "$AMTAR" && break
1036 if test -n "$AMTAR"; then
1037 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1044 cat >> confdefs.h <<EOF
1045 #define OPENLDAP_PACKAGE "$PACKAGE"
1048 cat >> confdefs.h <<EOF
1049 #define OPENLDAP_VERSION "$VERSION"
1055 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1056 echo "configure:1057: checking configure arguments" >&5
1061 ldap_subdir="openldap"
1063 # Check whether --with-subdir or --without-subdir was given.
1064 if test "${with_subdir+set}" = set; then
1065 withval="$with_subdir"
1067 if test "$withval" = "no"; then
1069 elif test "$withval" != "yes"; then
1070 ldap_subdir="$withval"
1076 # OpenLDAP --enable-debug
1077 # Check whether --enable-debug or --disable-debug was given.
1078 if test "${enable_debug+set}" = set; then
1079 enableval="$enable_debug"
1082 for ol_val in auto yes no ; do
1083 if test "$enableval" = "$ol_val" ; then
1087 if test "$ol_arg" = "invalid" ; then
1088 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1090 ol_enable_debug="$ol_arg"
1093 ol_enable_debug="yes"
1095 # end --enable-debug
1096 # OpenLDAP --enable-syslog
1097 # Check whether --enable-syslog or --disable-syslog was given.
1098 if test "${enable_syslog+set}" = set; then
1099 enableval="$enable_syslog"
1102 for ol_val in auto yes no ; do
1103 if test "$enableval" = "$ol_val" ; then
1107 if test "$ol_arg" = "invalid" ; then
1108 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1110 ol_enable_syslog="$ol_arg"
1113 ol_enable_syslog="auto"
1115 # end --enable-syslog
1116 # OpenLDAP --enable-proctitle
1117 # Check whether --enable-proctitle or --disable-proctitle was given.
1118 if test "${enable_proctitle+set}" = set; then
1119 enableval="$enable_proctitle"
1122 for ol_val in auto yes no ; do
1123 if test "$enableval" = "$ol_val" ; then
1127 if test "$ol_arg" = "invalid" ; then
1128 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1130 ol_enable_proctitle="$ol_arg"
1133 ol_enable_proctitle="yes"
1135 # end --enable-proctitle
1136 # OpenLDAP --enable-cache
1137 # Check whether --enable-cache or --disable-cache was given.
1138 if test "${enable_cache+set}" = set; then
1139 enableval="$enable_cache"
1142 for ol_val in auto yes no ; do
1143 if test "$enableval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1150 ol_enable_cache="$ol_arg"
1153 ol_enable_cache="yes"
1155 # end --enable-cache
1156 # OpenLDAP --enable-dns
1157 # Check whether --enable-dns or --disable-dns was given.
1158 if test "${enable_dns+set}" = set; then
1159 enableval="$enable_dns"
1162 for ol_val in auto yes no ; do
1163 if test "$enableval" = "$ol_val" ; then
1167 if test "$ol_arg" = "invalid" ; then
1168 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1170 ol_enable_dns="$ol_arg"
1176 # OpenLDAP --enable-referrals
1177 # Check whether --enable-referrals or --disable-referrals was given.
1178 if test "${enable_referrals+set}" = set; then
1179 enableval="$enable_referrals"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1190 ol_enable_referrals="$ol_arg"
1193 ol_enable_referrals="yes"
1195 # end --enable-referrals
1196 # OpenLDAP --enable-cldap
1197 # Check whether --enable-cldap or --disable-cldap was given.
1198 if test "${enable_cldap+set}" = set; then
1199 enableval="$enable_cldap"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1210 ol_enable_cldap="$ol_arg"
1213 ol_enable_cldap="no"
1215 # end --enable-cldap
1216 # OpenLDAP --enable-x_compile
1217 # Check whether --enable-x_compile or --disable-x_compile was given.
1218 if test "${enable_x_compile+set}" = set; then
1219 enableval="$enable_x_compile"
1222 for ol_val in yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1230 ol_enable_x_compile="$ol_arg"
1233 ol_enable_x_compile="no"
1235 # end --enable-x_compile
1237 # OpenLDAP --enable-dmalloc
1238 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1239 if test "${enable_dmalloc+set}" = set; then
1240 enableval="$enable_dmalloc"
1243 for ol_val in auto yes no ; do
1244 if test "$enableval" = "$ol_val" ; then
1248 if test "$ol_arg" = "invalid" ; then
1249 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1251 ol_enable_dmalloc="$ol_arg"
1254 ol_enable_dmalloc="no"
1256 # end --enable-dmalloc
1258 # OpenLDAP --with-cyrus_sasl
1259 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1260 if test "${with_cyrus_sasl+set}" = set; then
1261 withval="$with_cyrus_sasl"
1264 for ol_val in auto yes no ; do
1265 if test "$withval" = "$ol_val" ; then
1269 if test "$ol_arg" = "invalid" ; then
1270 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1272 ol_with_cyrus_sasl="$ol_arg"
1275 ol_with_cyrus_sasl="auto"
1277 # end --with-cyrus_sasl
1279 # OpenLDAP --with-fetch
1280 # Check whether --with-fetch or --without-fetch was given.
1281 if test "${with_fetch+set}" = set; then
1282 withval="$with_fetch"
1285 for ol_val in auto yes no ; do
1286 if test "$withval" = "$ol_val" ; then
1290 if test "$ol_arg" = "invalid" ; then
1291 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1293 ol_with_fetch="$ol_arg"
1296 ol_with_fetch="auto"
1300 # OpenLDAP --with-kerberos
1301 # Check whether --with-kerberos or --without-kerberos was given.
1302 if test "${with_kerberos+set}" = set; then
1303 withval="$with_kerberos"
1306 for ol_val in auto k5 k4 afs yes no ; do
1307 if test "$withval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1314 ol_with_kerberos="$ol_arg"
1317 ol_with_kerberos="auto"
1319 # end --with-kerberos
1321 # OpenLDAP --with-readline
1322 # Check whether --with-readline or --without-readline was given.
1323 if test "${with_readline+set}" = set; then
1324 withval="$with_readline"
1327 for ol_val in auto yes no ; do
1328 if test "$withval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1335 ol_with_readline="$ol_arg"
1338 ol_with_readline="auto"
1340 # end --with-readline
1342 # OpenLDAP --with-threads
1343 # Check whether --with-threads or --without-threads was given.
1344 if test "${with_threads+set}" = set; then
1345 withval="$with_threads"
1348 for ol_val in auto posix mach lwp yes no manual ; do
1349 if test "$withval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1356 ol_with_threads="$ol_arg"
1359 ol_with_threads="auto"
1361 # end --with-threads
1363 # OpenLDAP --with-tls
1364 # Check whether --with-tls or --without-tls was given.
1365 if test "${with_tls+set}" = set; then
1369 for ol_val in auto ssleay openssl yes no ; do
1370 if test "$withval" = "$ol_val" ; then
1374 if test "$ol_arg" = "invalid" ; then
1375 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1377 ol_with_tls="$ol_arg"
1384 # OpenLDAP --with-yielding_select
1385 # Check whether --with-yielding_select or --without-yielding_select was given.
1386 if test "${with_yielding_select+set}" = set; then
1387 withval="$with_yielding_select"
1390 for ol_val in auto yes no manual ; do
1391 if test "$withval" = "$ol_val" ; then
1395 if test "$ol_arg" = "invalid" ; then
1396 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1398 ol_with_yielding_select="$ol_arg"
1401 ol_with_yielding_select="auto"
1403 # end --with-yielding_select
1407 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1408 if test "${with_xxldapdoptions+set}" = set; then
1409 withval="$with_xxldapdoptions"
1413 # OpenLDAP --enable-ldapd
1414 # Check whether --enable-ldapd or --disable-ldapd was given.
1415 if test "${enable_ldapd+set}" = set; then
1416 enableval="$enable_ldapd"
1419 for ol_val in auto yes no ; do
1420 if test "$enableval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1427 ol_enable_ldapd="$ol_arg"
1430 ol_enable_ldapd="no"
1432 # end --enable-ldapd
1434 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1435 if test "${with_xxslapdoptions+set}" = set; then
1436 withval="$with_xxslapdoptions"
1440 # OpenLDAP --enable-slapd
1441 # Check whether --enable-slapd or --disable-slapd was given.
1442 if test "${enable_slapd+set}" = set; then
1443 enableval="$enable_slapd"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1454 ol_enable_slapd="$ol_arg"
1457 ol_enable_slapd="yes"
1459 # end --enable-slapd
1460 # OpenLDAP --enable-cleartext
1461 # Check whether --enable-cleartext or --disable-cleartext was given.
1462 if test "${enable_cleartext+set}" = set; then
1463 enableval="$enable_cleartext"
1466 for ol_val in auto yes no ; do
1467 if test "$enableval" = "$ol_val" ; then
1471 if test "$ol_arg" = "invalid" ; then
1472 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1474 ol_enable_cleartext="$ol_arg"
1477 ol_enable_cleartext="yes"
1479 # end --enable-cleartext
1480 # OpenLDAP --enable-crypt
1481 # Check whether --enable-crypt or --disable-crypt was given.
1482 if test "${enable_crypt+set}" = set; then
1483 enableval="$enable_crypt"
1486 for ol_val in auto yes no ; do
1487 if test "$enableval" = "$ol_val" ; then
1491 if test "$ol_arg" = "invalid" ; then
1492 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1494 ol_enable_crypt="$ol_arg"
1497 ol_enable_crypt="auto"
1499 # end --enable-crypt
1500 # OpenLDAP --enable-modules
1501 # Check whether --enable-modules or --disable-modules was given.
1502 if test "${enable_modules+set}" = set; then
1503 enableval="$enable_modules"
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-modules" 1>&2; exit 1; }
1514 ol_enable_modules="$ol_arg"
1517 ol_enable_modules="no"
1519 # end --enable-modules
1520 # OpenLDAP --enable-multimaster
1521 # Check whether --enable-multimaster or --disable-multimaster was given.
1522 if test "${enable_multimaster+set}" = set; then
1523 enableval="$enable_multimaster"
1526 for ol_val in auto yes no ; do
1527 if test "$enableval" = "$ol_val" ; then
1531 if test "$ol_arg" = "invalid" ; then
1532 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1534 ol_enable_multimaster="$ol_arg"
1537 ol_enable_multimaster="no"
1539 # end --enable-multimaster
1540 # OpenLDAP --enable-phonetic
1541 # Check whether --enable-phonetic or --disable-phonetic was given.
1542 if test "${enable_phonetic+set}" = set; then
1543 enableval="$enable_phonetic"
1546 for ol_val in auto yes no ; do
1547 if test "$enableval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1554 ol_enable_phonetic="$ol_arg"
1557 ol_enable_phonetic="no"
1559 # end --enable-phonetic
1560 # OpenLDAP --enable-quipu
1561 # Check whether --enable-quipu or --disable-quipu was given.
1562 if test "${enable_quipu+set}" = set; then
1563 enableval="$enable_quipu"
1566 for ol_val in auto yes no ; do
1567 if test "$enableval" = "$ol_val" ; then
1571 if test "$ol_arg" = "invalid" ; then
1572 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1574 ol_enable_quipu="$ol_arg"
1577 ol_enable_quipu="no"
1579 # end --enable-quipu
1580 # OpenLDAP --enable-rlookups
1581 # Check whether --enable-rlookups or --disable-rlookups was given.
1582 if test "${enable_rlookups+set}" = set; then
1583 enableval="$enable_rlookups"
1586 for ol_val in auto yes no ; do
1587 if test "$enableval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1594 ol_enable_rlookups="$ol_arg"
1597 ol_enable_rlookups="auto"
1599 # end --enable-rlookups
1600 # OpenLDAP --enable-wrappers
1601 # Check whether --enable-wrappers or --disable-wrappers was given.
1602 if test "${enable_wrappers+set}" = set; then
1603 enableval="$enable_wrappers"
1606 for ol_val in auto yes no ; do
1607 if test "$enableval" = "$ol_val" ; then
1611 if test "$ol_arg" = "invalid" ; then
1612 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1614 ol_enable_wrappers="$ol_arg"
1617 ol_enable_wrappers="no"
1619 # end --enable-wrappers
1621 # OpenLDAP --enable-bdb2
1622 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1623 if test "${enable_bdb2+set}" = set; then
1624 enableval="$enable_bdb2"
1627 for ol_val in auto yes no ; do
1628 if test "$enableval" = "$ol_val" ; then
1632 if test "$ol_arg" = "invalid" ; then
1633 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1635 ol_enable_bdb2="$ol_arg"
1641 # OpenLDAP --with-bdb2_module
1642 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1643 if test "${with_bdb2_module+set}" = set; then
1644 withval="$with_bdb2_module"
1647 for ol_val in static dynamic ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1655 ol_with_bdb2_module="$ol_arg"
1658 ol_with_bdb2_module="static"
1660 # end --with-bdb2_module
1662 # OpenLDAP --enable-ldap
1663 # Check whether --enable-ldap or --disable-ldap was given.
1664 if test "${enable_ldap+set}" = set; then
1665 enableval="$enable_ldap"
1668 for ol_val in auto yes no ; do
1669 if test "$enableval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1676 ol_enable_ldap="$ol_arg"
1682 # OpenLDAP --with-ldap_module
1683 # Check whether --with-ldap_module or --without-ldap_module was given.
1684 if test "${with_ldap_module+set}" = set; then
1685 withval="$with_ldap_module"
1688 for ol_val in static dynamic ; do
1689 if test "$withval" = "$ol_val" ; then
1693 if test "$ol_arg" = "invalid" ; then
1694 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1696 ol_with_ldap_module="$ol_arg"
1699 ol_with_ldap_module="static"
1701 # end --with-ldap_module
1703 # OpenLDAP --enable-ldbm
1704 # Check whether --enable-ldbm or --disable-ldbm was given.
1705 if test "${enable_ldbm+set}" = set; then
1706 enableval="$enable_ldbm"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1717 ol_enable_ldbm="$ol_arg"
1720 ol_enable_ldbm="yes"
1723 # OpenLDAP --with-ldbm_module
1724 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1725 if test "${with_ldbm_module+set}" = set; then
1726 withval="$with_ldbm_module"
1729 for ol_val in static dynamic ; do
1730 if test "$withval" = "$ol_val" ; then
1734 if test "$ol_arg" = "invalid" ; then
1735 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1737 ol_with_ldbm_module="$ol_arg"
1740 ol_with_ldbm_module="static"
1742 # end --with-ldbm_module
1744 # OpenLDAP --with-ldbm_api
1745 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1746 if test "${with_ldbm_api+set}" = set; then
1747 withval="$with_ldbm_api"
1750 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1751 if test "$withval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1758 ol_with_ldbm_api="$ol_arg"
1761 ol_with_ldbm_api="auto"
1763 # end --with-ldbm_api
1765 # OpenLDAP --with-ldbm_type
1766 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1767 if test "${with_ldbm_type+set}" = set; then
1768 withval="$with_ldbm_type"
1771 for ol_val in auto btree hash ; do
1772 if test "$withval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1779 ol_with_ldbm_type="$ol_arg"
1782 ol_with_ldbm_type="auto"
1784 # end --with-ldbm_type
1787 # OpenLDAP --enable-passwd
1788 # Check whether --enable-passwd or --disable-passwd was given.
1789 if test "${enable_passwd+set}" = set; then
1790 enableval="$enable_passwd"
1793 for ol_val in auto yes no ; do
1794 if test "$enableval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1801 ol_enable_passwd="$ol_arg"
1804 ol_enable_passwd="no"
1806 # end --enable-passwd
1807 # OpenLDAP --with-passwd_module
1808 # Check whether --with-passwd_module or --without-passwd_module was given.
1809 if test "${with_passwd_module+set}" = set; then
1810 withval="$with_passwd_module"
1813 for ol_val in static dynamic ; do
1814 if test "$withval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1821 ol_with_passwd_module="$ol_arg"
1824 ol_with_passwd_module="static"
1826 # end --with-passwd_module
1828 # OpenLDAP --enable-perl
1829 # Check whether --enable-perl or --disable-perl was given.
1830 if test "${enable_perl+set}" = set; then
1831 enableval="$enable_perl"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1842 ol_enable_perl="$ol_arg"
1848 # OpenLDAP --with-perl_module
1849 # Check whether --with-perl_module or --without-perl_module was given.
1850 if test "${with_perl_module+set}" = set; then
1851 withval="$with_perl_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1862 ol_with_perl_module="$ol_arg"
1865 ol_with_perl_module="static"
1867 # end --with-perl_module
1869 # OpenLDAP --enable-shell
1870 # Check whether --enable-shell or --disable-shell was given.
1871 if test "${enable_shell+set}" = set; then
1872 enableval="$enable_shell"
1875 for ol_val in auto yes no ; do
1876 if test "$enableval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1883 ol_enable_shell="$ol_arg"
1886 ol_enable_shell="no"
1888 # end --enable-shell
1889 # OpenLDAP --with-shell_module
1890 # Check whether --with-shell_module or --without-shell_module was given.
1891 if test "${with_shell_module+set}" = set; then
1892 withval="$with_shell_module"
1895 for ol_val in static dynamic ; do
1896 if test "$withval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1903 ol_with_shell_module="$ol_arg"
1906 ol_with_shell_module="static"
1908 # end --with-shell_module
1910 # OpenLDAP --enable-tcl
1911 # Check whether --enable-tcl or --disable-tcl was given.
1912 if test "${enable_tcl+set}" = set; then
1913 enableval="$enable_tcl"
1916 for ol_val in auto yes no ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1924 ol_enable_tcl="$ol_arg"
1930 # OpenLDAP --with-tcl_module
1931 # Check whether --with-tcl_module or --without-tcl_module was given.
1932 if test "${with_tcl_module+set}" = set; then
1933 withval="$with_tcl_module"
1936 for ol_val in static dynamic ; do
1937 if test "$withval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1944 ol_with_tcl_module="$ol_arg"
1947 ol_with_tcl_module="static"
1949 # end --with-tcl_module
1952 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1953 if test "${with_xxslurpdoptions+set}" = set; then
1954 withval="$with_xxslurpdoptions"
1958 # OpenLDAP --enable-slurpd
1959 # Check whether --enable-slurpd or --disable-slurpd was given.
1960 if test "${enable_slurpd+set}" = set; then
1961 enableval="$enable_slurpd"
1964 for ol_val in auto yes no ; do
1965 if test "$enableval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1972 ol_enable_slurpd="$ol_arg"
1975 ol_enable_slurpd="auto"
1977 # end --enable-slurpd
1979 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1980 if test "${with_xxliboptions+set}" = set; then
1981 withval="$with_xxliboptions"
1985 # Check whether --enable-static or --disable-static was given.
1986 if test "${enable_static+set}" = set; then
1987 enableval="$enable_static"
1988 p=${PACKAGE-default}
1989 case "$enableval" in
1990 yes) enable_static=yes ;;
1991 no) enable_static=no ;;
1994 # Look at the argument we got. We use all the common list separators.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1996 for pkg in $enableval; do
1997 if test "X$pkg" = "X$p"; then
2008 # Check whether --enable-shared or --disable-shared was given.
2009 if test "${enable_shared+set}" = set; then
2010 enableval="$enable_shared"
2011 p=${PACKAGE-default}
2012 case "$enableval" in
2013 yes) enable_shared=yes ;;
2014 no) enable_shared=no ;;
2017 # Look at the argument we got. We use all the common list separators.
2018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2019 for pkg in $enableval; do
2020 if test "X$pkg" = "X$p"; then
2033 if test $ol_enable_dns = yes ; then
2034 if test $ol_enable_referrals = no ; then
2035 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2037 if test $ol_enable_referrals = auto ; then
2038 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2039 ol_enable_referrals=yes
2043 if test $ol_enable_slapd = no ; then
2044 if test $ol_enable_bdb2 = yes ; then
2045 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2047 if test $ol_enable_ldap = yes ; then
2048 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2050 if test $ol_enable_ldbm = yes ; then
2051 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2053 if test $ol_enable_passwd = yes ; then
2054 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2056 if test $ol_enable_perl = yes ; then
2057 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2059 if test $ol_enable_shell = yes ; then
2060 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2062 if test $ol_enable_tcl = yes ; then
2063 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2065 if test $ol_enable_modules = yes ; then
2066 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2068 if test $ol_enable_multimaster = yes ; then
2069 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2071 if test $ol_enable_wrappers = yes ; then
2072 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2074 if test $ol_enable_phonetic = yes ; then
2075 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2077 if test $ol_enable_quipu = yes ; then
2078 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2080 if test $ol_enable_rlookups = yes ; then
2081 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2083 if test $ol_with_ldbm_api != auto ; then
2084 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2086 if test $ol_with_ldbm_type != auto ; then
2087 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2089 if test $ol_with_bdb2_module != static ; then
2090 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2092 if test $ol_with_ldap_module != static ; then
2093 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2095 if test $ol_with_ldbm_module != static ; then
2096 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2098 if test $ol_with_passwd_module != static ; then
2099 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2101 if test $ol_with_perl_module != static ; then
2102 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2104 if test $ol_with_shell_module != static ; then
2105 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2107 if test $ol_with_tcl_module != static ; then
2108 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2110 if test $ol_enable_slurpd = yes ; then
2111 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2114 # force settings to no
2123 ol_enable_modules=no
2124 ol_enable_multimaster=no
2125 ol_enable_phonetic=no
2127 ol_enable_rlookups=no
2128 ol_enable_wrappers=no
2131 ol_with_ldbm_type=no
2133 ol_with_bdb2_module=static
2134 ol_with_ldap_module=static
2135 ol_with_ldbm_module=static
2136 ol_with_passwd_module=static
2137 ol_with_perl_module=static
2138 ol_with_shell_module=static
2139 ol_with_tcl_module=static
2143 elif test $ol_enable_ldbm = no ; then
2145 if test $ol_with_ldbm_api != auto ; then
2146 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2149 if test $ol_with_ldbm_type != auto ; then
2150 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2153 if test $ol_with_ldbm_module != static ; then
2154 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2157 if test $ol_enable_bdb2 = yes ; then
2158 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2161 if test $ol_enable_modules != yes -a \
2162 $ol_enable_ldap = no -a \
2163 $ol_enable_passwd = no -a \
2164 $ol_enable_perl = no -a \
2165 $ol_enable_shell = no -a \
2166 $ol_enable_tcl = no ; then
2167 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2171 ol_with_ldbm_type=no
2172 ol_with_ldbm_module=static
2174 elif test $ol_enable_bdb2 = yes ; then
2176 if test $ol_with_ldbm_api != auto -a \
2177 $ol_with_ldbm_api != db2 ; then
2178 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2181 ol_with_ldbm_api=db2
2185 if test $ol_enable_bdb2 != no ; then
2186 if test $ol_with_ldbm_api != auto -a \
2187 $ol_with_ldbm_api != db2 ; then
2188 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2193 if test $ol_with_ldbm_api = gdbm -a \
2194 $ol_with_ldbm_type = btree ; then
2195 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2197 if test $ol_with_ldbm_api = mdbm -a \
2198 $ol_with_ldbm_type = btree ; then
2199 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2201 if test $ol_with_ldbm_api = ndbm -a \
2202 $ol_with_ldbm_type = btree ; then
2203 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2207 if test $ol_enable_slurpd = yes ; then
2208 if test $ol_with_threads = no ; then
2209 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2213 echo "$ac_t""done" 1>&6
2240 BUILD_BDB2_DYNAMIC=static
2241 BUILD_LDAP_DYNAMIC=static
2242 BUILD_LDBM_DYNAMIC=static
2243 BUILD_PASSWD_DYNAMIC=static
2244 BUILD_PERL_DYNAMIC=static
2245 BUILD_SHELL_DYNAMIC=static
2246 BUILD_TCL_DYNAMIC=static
2248 SLAPD_MODULES_LDFLAGS=
2249 SLAPD_MODULES_CPPFLAGS=
2253 SLAPD_PERL_CPPFLAGS=
2264 cat >> confdefs.h <<\EOF
2265 #define HAVE_MKVERSION 1
2274 *-*-aix*) if test -z "$CC" ; then
2275 case "$ol_with_threads" in
2276 auto | yes | posix) ol_aix_threads=yes ;;
2282 if test $ol_aix_threads = yes ; then
2283 if test -z "${CC}" ; then
2284 for ac_prog in cc_r xlc_r cc
2286 # Extract the first word of "$ac_prog", so it can be a program name with args.
2287 set dummy $ac_prog; ac_word=$2
2288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289 echo "configure:2290: checking for $ac_word" >&5
2290 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2298 for ac_dir in $ac_dummy; do
2299 test -z "$ac_dir" && ac_dir=.
2300 if test -f $ac_dir/$ac_word; then
2301 ac_cv_prog_CC="$ac_prog"
2309 if test -n "$CC"; then
2310 echo "$ac_t""$CC" 1>&6
2312 echo "$ac_t""no" 1>&6
2315 test -n "$CC" && break
2319 if test "$CC" = cc ; then
2320 if test $ol_with_threads != auto ; then
2321 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2323 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2329 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2330 ol_with_threads=posix
2331 ol_cv_pthread_create=yes
2335 if test -z "${CC}"; then
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2350 for ac_dir in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir=.
2352 if test -f $ac_dir/$ac_word; then
2353 ac_cv_prog_CC="$ac_prog"
2361 if test -n "$CC"; then
2362 echo "$ac_t""$CC" 1>&6
2364 echo "$ac_t""no" 1>&6
2367 test -n "$CC" && break
2374 # Check whether --enable-fast-install or --disable-fast-install was given.
2375 if test "${enable_fast_install+set}" = set; then
2376 enableval="$enable_fast_install"
2377 p=${PACKAGE-default}
2378 case "$enableval" in
2379 yes) enable_fast_install=yes ;;
2380 no) enable_fast_install=no ;;
2382 enable_fast_install=no
2383 # Look at the argument we got. We use all the common list separators.
2384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2385 for pkg in $enableval; do
2386 if test "X$pkg" = "X$p"; then
2387 enable_fast_install=yes
2394 enable_fast_install=yes
2397 # Extract the first word of "ranlib", so it can be a program name with args.
2398 set dummy ranlib; ac_word=$2
2399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2400 echo "configure:2401: checking for $ac_word" >&5
2401 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 if test -n "$RANLIB"; then
2405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2409 for ac_dir in $ac_dummy; do
2410 test -z "$ac_dir" && ac_dir=.
2411 if test -f $ac_dir/$ac_word; then
2412 ac_cv_prog_RANLIB="ranlib"
2417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2420 RANLIB="$ac_cv_prog_RANLIB"
2421 if test -n "$RANLIB"; then
2422 echo "$ac_t""$RANLIB" 1>&6
2424 echo "$ac_t""no" 1>&6
2427 # Extract the first word of "gcc", so it can be a program name with args.
2428 set dummy gcc; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2450 if test -n "$CC"; then
2451 echo "$ac_t""$CC" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_word" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2474 ac_prog_rejected=yes
2482 if test $ac_prog_rejected = yes; then
2483 # We found a bogon in the path, so make sure we never use it.
2484 set dummy $ac_cv_prog_CC
2486 if test $# -gt 0; then
2487 # We chose a different compiler from the bogus one.
2488 # However, it has the same basename, so the bogon will be chosen
2489 # first if we set CC to just the basename; use the full file name.
2491 set dummy "$ac_dir/$ac_word" "$@"
2499 if test -n "$CC"; then
2500 echo "$ac_t""$CC" 1>&6
2502 echo "$ac_t""no" 1>&6
2505 if test -z "$CC"; then
2506 case "`uname -s`" in
2508 # Extract the first word of "cl", so it can be a program name with args.
2509 set dummy cl; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2520 for ac_dir in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir=.
2522 if test -f $ac_dir/$ac_word; then
2531 if test -n "$CC"; then
2532 echo "$ac_t""$CC" 1>&6
2534 echo "$ac_t""no" 1>&6
2539 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2549 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2550 cross_compiling=$ac_cv_prog_cc_cross
2552 cat > conftest.$ac_ext << EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 ac_cv_prog_cc_works=yes
2561 # If we can't run a trivial program, we are probably using a cross compiler.
2562 if (./conftest; exit) 2>/dev/null; then
2563 ac_cv_prog_cc_cross=no
2565 ac_cv_prog_cc_cross=yes
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2570 ac_cv_prog_cc_works=no
2574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2578 cross_compiling=$ac_cv_prog_cc_cross
2580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2581 if test $ac_cv_prog_cc_works = no; then
2582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2585 echo "configure:2586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2587 cross_compiling=$ac_cv_prog_cc_cross
2589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether we are using GNU C" >&5
2591 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 cat > conftest.c <<EOF
2599 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2606 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2608 if test $ac_cv_prog_gcc = yes; then
2614 ac_test_CFLAGS="${CFLAGS+set}"
2615 ac_save_CFLAGS="$CFLAGS"
2617 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2618 echo "configure:2619: checking whether ${CC-cc} accepts -g" >&5
2619 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 echo 'void f(){}' > conftest.c
2623 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2632 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2633 if test "$ac_test_CFLAGS" = set; then
2634 CFLAGS="$ac_save_CFLAGS"
2635 elif test $ac_cv_prog_cc_g = yes; then
2636 if test "$GCC" = yes; then
2642 if test "$GCC" = yes; then
2649 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2650 if test "${with_gnu_ld+set}" = set; then
2651 withval="$with_gnu_ld"
2652 test "$withval" = no || with_gnu_ld=yes
2658 if test "$ac_cv_prog_gcc" = yes; then
2659 # Check if gcc -print-prog-name=ld gives a path.
2660 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2661 echo "configure:2662: checking for ld used by GCC" >&5
2662 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2664 # Accept absolute paths.
2665 [\\/]* | [A-Za-z]:[\\/]*)
2666 re_direlt='/[^/][^/]*/\.\./'
2667 # Canonicalize the path of ld
2668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2672 test -z "$LD" && LD="$ac_prog"
2675 # If it fails, then pretend we aren't using GCC.
2679 # If it is relative, then search for the first ld in PATH.
2683 elif test "$with_gnu_ld" = yes; then
2684 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2685 echo "configure:2686: checking for GNU ld" >&5
2687 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2688 echo "configure:2689: checking for non-GNU ld" >&5
2690 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 if test -z "$LD"; then
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2698 ac_cv_path_LD="$ac_dir/$ac_prog"
2699 # Check to see if the program is GNU ld. I'd rather use --version,
2700 # but apparently some GNU ld's only accept -v.
2701 # Break only if it was the GNU/non-GNU ld that we prefer.
2702 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2703 test "$with_gnu_ld" != no && break
2705 test "$with_gnu_ld" != yes && break
2711 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2716 if test -n "$LD"; then
2717 echo "$ac_t""$LD" 1>&6
2719 echo "$ac_t""no" 1>&6
2721 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2723 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2724 echo "configure:2725: checking if the linker ($LD) is GNU ld" >&5
2725 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2729 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2730 ac_cv_prog_gnu_ld=yes
2732 ac_cv_prog_gnu_ld=no
2736 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2739 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2740 echo "configure:2741: checking for BSD-compatible nm" >&5
2741 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 if test -n "$NM"; then
2745 # Let the user override the test.
2748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2749 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2750 test -z "$ac_dir" && ac_dir=.
2751 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2752 # Check to see if the nm accepts a BSD-compat flag.
2753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2754 # nm: unknown option "B" ignored
2755 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2756 ac_cv_path_NM="$ac_dir/nm -B"
2758 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2759 ac_cv_path_NM="$ac_dir/nm -p"
2762 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2763 continue # so that we can try to find one that supports BSD flags
2768 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2773 echo "$ac_t""$NM" 1>&6
2776 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2777 echo "configure:2778: checking whether ln -s works" >&5
2778 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2782 if ln -s X conftestdata 2>/dev/null
2785 ac_cv_prog_LN_S="ln -s"
2790 LN_S="$ac_cv_prog_LN_S"
2791 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2792 echo "$ac_t""yes" 1>&6
2794 echo "$ac_t""no" 1>&6
2798 # Check for any special flags to pass to ltconfig.
2799 libtool_flags="--cache-file=$cache_file"
2800 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2801 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2802 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2803 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2804 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2805 libtool_flags="$libtool_flags --enable-dlopen"
2807 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2808 if test "${enable_libtool_lock+set}" = set; then
2809 enableval="$enable_libtool_lock"
2813 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2814 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2816 # Some flags need to be propagated to the compiler or linker for good
2820 # Find out which ABI we are using.
2821 echo '#line 11 "configure/Which_ABI"' > conftest.$ac_ext
2822 if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 case "`/usr/bin/file conftest.o`" in
2839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2840 SAVE_CFLAGS="$CFLAGS"
2841 CFLAGS="$CFLAGS -belf"
2842 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2843 echo "configure:2844: checking whether the C compiler needs -belf" >&5
2844 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 lt_cv_cc_needs_belf=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_cc_needs_belf=no
2867 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2870 CFLAGS="$SAVE_CFLAGS"
2878 # Save cache, so that ltconfig can load it
2881 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2882 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2883 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2884 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2885 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2886 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2887 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2888 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2890 # Reload cache, that may have been modified by ltconfig
2893 # This can be used to rebuild libtool when needed
2894 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2896 # Always use our own libtool.
2897 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2899 # Redirect the config.log output again, so that the ltconfig log is not
2900 # clobbered by the next message.
2901 exec 5>>./config.log
2904 for ac_prog in mawk gawk nawk awk
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2909 echo "configure:2910: checking for $ac_word" >&5
2910 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2918 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 if test -f $ac_dir/$ac_word; then
2921 ac_cv_prog_AWK="$ac_prog"
2928 AWK="$ac_cv_prog_AWK"
2929 if test -n "$AWK"; then
2930 echo "$ac_t""$AWK" 1>&6
2932 echo "$ac_t""no" 1>&6
2935 test -n "$AWK" && break
2938 # test for ln hardlink support
2939 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2940 echo "configure:2941: checking whether ln works" >&5
2941 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 rm -f conftest.src conftest.dst
2945 echo "conftest" > conftest.src
2946 if ln conftest.src conftest.dst 2>/dev/null
2948 ol_cv_prog_LN_H="ln"
2950 ol_cv_prog_LN_H="cp"
2952 rm -f conftest.src conftest.dst
2955 LN_H="$ol_cv_prog_LN_H"
2956 if test "$ol_cv_prog_LN_H" = "ln"; then
2957 echo "$ac_t""yes" 1>&6
2959 echo "$ac_t""no" 1>&6
2962 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether ln -s works" >&5
2964 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2968 if ln -s X conftestdata 2>/dev/null
2971 ac_cv_prog_LN_S="ln -s"
2976 LN_S="$ac_cv_prog_LN_S"
2977 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2978 echo "$ac_t""yes" 1>&6
2980 echo "$ac_t""no" 1>&6
2984 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2988 # Extract the first word of "sendmail", so it can be a program name with args.
2989 set dummy sendmail; ac_word=$2
2990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2991 echo "configure:2992: checking for $ac_word" >&5
2992 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2997 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3000 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3013 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3017 SENDMAIL="$ac_cv_path_SENDMAIL"
3018 if test -n "$SENDMAIL"; then
3019 echo "$ac_t""$SENDMAIL" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 # Extract the first word of "vi", so it can be a program name with args.
3025 set dummy vi; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3036 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3040 ac_dummy="$PATH:/usr/ucb"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3049 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3053 EDITOR="$ac_cv_path_EDITOR"
3054 if test -n "$EDITOR"; then
3055 echo "$ac_t""$EDITOR" 1>&6
3057 echo "$ac_t""no" 1>&6
3060 # Extract the first word of "finger", so it can be a program name with args.
3061 set dummy finger; ac_word=$2
3062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_word" >&5
3064 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3069 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3072 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3076 ac_dummy="$PATH:/usr/ucb"
3077 for ac_dir in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_path_FINGER="$ac_dir/$ac_word"
3085 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3089 FINGER="$ac_cv_path_FINGER"
3090 if test -n "$FINGER"; then
3091 echo "$ac_t""$FINGER" 1>&6
3093 echo "$ac_t""no" 1>&6
3098 if test $ol_enable_perl != no ; then
3099 # Extract the first word of "perl", so it can be a program name with args.
3100 set dummy perl; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3108 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3111 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3116 for ac_dir in $ac_dummy; do
3117 test -z "$ac_dir" && ac_dir=.
3118 if test -f $ac_dir/$ac_word; then
3119 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3124 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3128 PERLBIN="$ac_cv_path_PERLBIN"
3129 if test -n "$PERLBIN"; then
3130 echo "$ac_t""$PERLBIN" 1>&6
3132 echo "$ac_t""no" 1>&6
3136 if test "no$PERLBIN" = "no" ; then
3137 if test $ol_enable_perl = yes ; then
3138 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3142 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3143 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3149 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3150 echo "configure:3151: checking how to run the C preprocessor" >&5
3151 # On Suns, sometimes $CPP names a directory.
3152 if test -n "$CPP" && test -d "$CPP"; then
3155 if test -z "$CPP"; then
3156 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 # This must be in double quotes, not single quotes, because CPP may get
3160 # substituted into the Makefile and "${CC-cc}" will confuse make.
3162 # On the NeXT, cc -E runs the code through the compiler's parser,
3163 # not just through cpp.
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3171 { (eval echo configure:3172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3173 if test -z "$ac_err"; then
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 CPP="${CC-cc} -E -traditional-cpp"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3188 { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3190 if test -z "$ac_err"; then
3194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
3197 CPP="${CC-cc} -nologo -E"
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3205 { (eval echo configure:3206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3207 if test -z "$ac_err"; then
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3221 ac_cv_prog_CPP="$CPP"
3223 CPP="$ac_cv_prog_CPP"
3225 ac_cv_prog_CPP="$CPP"
3227 echo "$ac_t""$CPP" 1>&6
3230 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3231 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3233 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3234 echo "configure: warning: programs compiled here do run here..." 1>&2
3235 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3237 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3238 echo "configure: warning: programs compiled here do not run here..." 1>&2
3239 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3242 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3243 echo "configure:3244: checking for AIX" >&5
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253 egrep "yes" >/dev/null 2>&1; then
3255 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3256 #define _ALL_SOURCE 1
3261 echo "$ac_t""no" 1>&6
3266 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3267 echo "configure:3268: checking for POSIXized ISC" >&5
3268 if test -d /etc/conf/kconfig.d &&
3269 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3271 echo "$ac_t""yes" 1>&6
3272 ISC=yes # If later tests want to check for ISC.
3273 cat >> confdefs.h <<\EOF
3274 #define _POSIX_SOURCE 1
3277 if test "$GCC" = yes; then
3283 echo "$ac_t""no" 1>&6
3287 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3288 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3289 echo "configure:3290: checking for minix/config.h" >&5
3290 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <minix/config.h>
3298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3299 { (eval echo configure:3300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3301 if test -z "$ac_err"; then
3303 eval "ac_cv_header_$ac_safe=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 eval "ac_cv_header_$ac_safe=no"
3313 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3317 echo "$ac_t""no" 1>&6
3321 if test "$MINIX" = yes; then
3322 cat >> confdefs.h <<\EOF
3323 #define _POSIX_SOURCE 1
3326 cat >> confdefs.h <<\EOF
3327 #define _POSIX_1_SOURCE 2
3330 cat >> confdefs.h <<\EOF
3337 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3338 echo "configure:3339: checking for Cygwin environment" >&5
3339 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3349 #define __CYGWIN__ __CYGWIN32__
3354 if { (eval echo configure:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3367 echo "$ac_t""$ac_cv_cygwin" 1>&6
3369 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3370 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3371 echo "configure:3372: checking for mingw32 environment" >&5
3372 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3383 if { (eval echo configure:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3396 echo "$ac_t""$ac_cv_mingw32" 1>&6
3398 test "$ac_cv_mingw32" = yes && MINGW32=yes
3401 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3402 echo "configure:3403: checking for executable suffix" >&5
3403 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3410 echo 'int main () { return 0; }' > conftest.$ac_ext
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3413 for file in conftest.*; do
3415 *.c | *.o | *.obj) ;;
3416 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3420 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3423 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3428 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3429 echo "$ac_t""${ac_cv_exeext}" 1>&6
3432 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3433 echo "configure:3434: checking for object suffix" >&5
3434 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3438 echo 'int i = 1;' > conftest.$ac_ext
3439 if { (eval echo configure:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3440 for ac_file in conftest.*; do
3443 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3447 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3452 echo "$ac_t""$ac_cv_objext" 1>&6
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$ac_cv_objext
3457 cat >> confdefs.h <<EOF
3458 #define EXEEXT "${EXEEXT}"
3462 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3463 echo "configure:3464: checking for be_app in -lbe" >&5
3464 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS="$LIBS"
3469 LIBS="-lbe -lroot -lnet $LIBS"
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 LIBS="$LIBS -lbe -lroot -lnet"
3499 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3508 echo "configure:3509: checking for ${CC-cc} option to accept ANSI C" >&5
3509 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 am_cv_prog_cc_stdc=no
3514 # Don't try gcc -ansi; that turns off useful extensions and
3515 # breaks some systems' header files.
3516 # AIX -qlanglvl=ansi
3517 # Ultrix and OSF/1 -std1
3518 # HP-UX 10.20 and later -Ae
3519 # HP-UX older versions -Aa -D_HPUX_SOURCE
3520 # SVR4 -Xc -D__EXTENSIONS__
3521 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3523 CC="$ac_save_CC $ac_arg"
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3545 s = g (p, va_arg (v,int));
3549 int test (int i, double x);
3550 struct s1 {int (*f) (int a);};
3551 struct s2 {int (*f) (double a);};
3552 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3558 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 if { (eval echo configure:3563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3564 am_cv_prog_cc_stdc="$ac_arg"; break
3566 echo "configure: failed program was:" >&5
3567 cat conftest.$ac_ext >&5
3575 if test -z "$am_cv_prog_cc_stdc"; then
3576 echo "$ac_t""none needed" 1>&6
3578 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3580 case "x$am_cv_prog_cc_stdc" in
3582 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3585 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3586 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3589 # test for make depend flag
3592 if test -z "${MKDEP}"; then
3594 if test -z "${MKDEP_FLAGS}"; then
3595 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ${OL_MKDEP} depend flag" >&5
3597 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3602 for flag in "-M" "-xM"; do
3603 cat > conftest.c <<EOF
3606 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3607 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3609 if test ! -f conftest."${ac_object}" ; then
3611 OL_MKDEP_FLAGS="$flag"
3620 echo "$ac_t""$ol_cv_mkdep" 1>&6
3623 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3628 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3633 if test "${ol_cv_mkdep}" = no ; then
3634 # this will soon become an error
3635 echo "configure: warning: do not know how to generate dependencies" 1>&2
3639 if test $ol_enable_modules != no ; then
3640 for ac_hdr in ltdl.h
3642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3644 echo "configure:3645: checking for $ac_hdr" >&5
3645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3654 { (eval echo configure:3655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3656 if test -z "$ac_err"; then
3658 eval "ac_cv_header_$ac_safe=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 eval "ac_cv_header_$ac_safe=no"
3668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3671 cat >> confdefs.h <<EOF
3672 #define $ac_tr_hdr 1
3676 echo "$ac_t""no" 1>&6
3681 if test $ac_cv_header_ltdl_h = no ; then
3682 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3686 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3687 echo "configure:3688: checking for lt_dlinit in -lltdl" >&5
3688 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
3689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_save_LIBS="$LIBS"
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_lib_$ac_lib_var=no"
3716 LIBS="$ac_save_LIBS"
3719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_lib 1
3730 echo "$ac_t""no" 1>&6
3733 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3734 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3738 ol_with_bdb2_module=static
3739 ol_with_ldap_module=static
3740 ol_with_ldbm_module=static
3741 ol_with_passwd_module=static
3742 ol_with_perl_module=static
3743 ol_with_shell_module=static
3744 ol_with_tcl_module=static
3748 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3749 echo "configure:3750: checking for EBCDIC" >&5
3750 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
3751 echo $ac_n "(cached) $ac_c" 1>&6
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3759 #include <__ASCII__/generate_error.h>
3763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3764 { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3766 if test -z "$ac_err"; then
3768 ol_cv_cpp_ebcdic=yes
3771 echo "configure: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3779 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3780 if test $ol_cv_cpp_ebcdic = yes ; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_EBCDIC 1
3787 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3788 echo "configure:3789: checking for ANSI C header files" >&5
3789 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3801 { (eval echo configure:3802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3803 if test -z "$ac_err"; then
3805 ol_cv_header_stdc=yes
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 ol_cv_header_stdc=no
3815 if test $ol_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 egrep "memchr" >/dev/null 2>&1; then
3827 ol_cv_header_stdc=no
3833 if test $ol_cv_header_stdc = yes; then
3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "free" >/dev/null 2>&1; then
3845 ol_cv_header_stdc=no
3851 if test $ol_cv_header_stdc = yes; then
3852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3853 if test "$cross_compiling" = yes; then
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3861 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3862 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3864 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3865 || ('j' <= (c) && (c) <= 'r') \
3866 || ('s' <= (c) && (c) <= 'z'))
3867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3870 int main () { int i; for (i = 0; i < 256; i++)
3871 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3882 ol_cv_header_stdc=no
3890 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3891 if test $ol_cv_header_stdc = yes; then
3892 cat >> confdefs.h <<\EOF
3893 #define STDC_HEADERS 1
3897 ac_cv_header_stdc=disable
3900 if test $ol_cv_header_stdc != yes; then
3901 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3905 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3908 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3909 echo "configure:3910: checking for $ac_hdr that defines DIR" >&5
3910 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 #include <sys/types.h>
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 eval "ac_cv_header_dirent_$ac_safe=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 eval "ac_cv_header_dirent_$ac_safe=no"
3933 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3936 cat >> confdefs.h <<EOF
3937 #define $ac_tr_hdr 1
3939 ac_header_dirent=$ac_hdr; break
3941 echo "$ac_t""no" 1>&6
3944 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3945 if test $ac_header_dirent = dirent.h; then
3946 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3947 echo "configure:3948: checking for opendir in -ldir" >&5
3948 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_save_LIBS="$LIBS"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 eval "ac_cv_lib_$ac_lib_var=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_lib_$ac_lib_var=no"
3976 LIBS="$ac_save_LIBS"
3979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3983 echo "$ac_t""no" 1>&6
3987 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3988 echo "configure:3989: checking for opendir in -lx" >&5
3989 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
3990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 ac_save_LIBS="$LIBS"
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 eval "ac_cv_lib_$ac_lib_var=no"
4017 LIBS="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4024 echo "$ac_t""no" 1>&6
4029 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4030 echo "configure:4031: checking for sys/wait.h that is POSIX.1 compatible" >&5
4031 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 #include <sys/types.h>
4038 #include <sys/wait.h>
4040 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4043 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4051 if { (eval echo configure:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 ac_cv_header_sys_wait_h=yes
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 ac_cv_header_sys_wait_h=no
4063 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4064 if test $ac_cv_header_sys_wait_h = yes; then
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_SYS_WAIT_H 1
4071 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4072 echo "configure:4073: checking POSIX termios" >&5
4073 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <sys/types.h>
4081 #include <termios.h>
4083 /* SunOS 4.0.3 has termios.h but not the library calls. */
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4089 am_cv_sys_posix_termios=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 am_cv_sys_posix_termios=no
4099 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4102 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4103 echo "configure:4104: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4104 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4109 gwinsz_in_termios_h=no
4110 if test $am_cv_sys_posix_termios = yes; then
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <sys/types.h>
4115 # include <termios.h>
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 egrep "yes" >/dev/null 2>&1; then
4124 gwinsz_in_termios_h=yes
4130 if test $gwinsz_in_termios_h = no; then
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4134 #include <sys/types.h>
4135 # include <sys/ioctl.h>
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 egrep "yes" >/dev/null 2>&1; then
4144 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4152 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4153 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4154 cat >> confdefs.h <<\EOF
4155 #define GWINSZ_IN_SYS_IOCTL 1
4160 if test $am_cv_sys_posix_termios = yes ; then
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_POSIX_TERMIOS 1
4209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4211 echo "configure:4212: checking for $ac_hdr" >&5
4212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4221 { (eval echo configure:4222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4223 if test -z "$ac_err"; then
4225 eval "ac_cv_header_$ac_safe=yes"
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4231 eval "ac_cv_header_$ac_safe=no"
4235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4238 cat >> confdefs.h <<EOF
4239 #define $ac_tr_hdr 1
4243 echo "$ac_t""no" 1>&6
4250 echo $ac_n "checking for socket""... $ac_c" 1>&6
4251 echo "configure:4252: checking for socket" >&5
4252 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* System header to define __stub macros and hopefully few prototypes,
4259 which can conflict with char socket(); below. */
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_socket) || defined (__stub___socket)
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_func_socket=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_func_socket=no"
4291 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4295 echo "$ac_t""no" 1>&6
4297 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4298 echo "configure:4299: checking for main in -lsocket" >&5
4299 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 ac_save_LIBS="$LIBS"
4304 LIBS="-lsocket $LIBS"
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 eval "ac_cv_lib_$ac_lib_var=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_lib_$ac_lib_var=no"
4323 LIBS="$ac_save_LIBS"
4326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4327 echo "$ac_t""yes" 1>&6
4328 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4330 cat >> confdefs.h <<EOF
4331 #define $ac_tr_lib 1
4334 LIBS="-lsocket $LIBS"
4337 echo "$ac_t""no" 1>&6
4340 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4341 echo "configure:4342: checking for main in -lnet" >&5
4342 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS="$LIBS"
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 eval "ac_cv_lib_$ac_lib_var=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 eval "ac_cv_lib_$ac_lib_var=no"
4366 LIBS="$ac_save_LIBS"
4369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4371 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4372 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_lib 1
4380 echo "$ac_t""no" 1>&6
4383 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4384 echo "configure:4385: checking for socket in -lnet" >&5
4385 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
4386 if eval "test \"`echo '$''{'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
4418 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4420 cat >> confdefs.h <<EOF
4421 #define $ac_tr_lib 1
4427 echo "$ac_t""no" 1>&6
4430 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4431 echo "configure:4432: checking for main in -lnsl_s" >&5
4432 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
4433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_save_LIBS="$LIBS"
4437 LIBS="-lnsl_s $LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4463 cat >> confdefs.h <<EOF
4464 #define $ac_tr_lib 1
4467 LIBS="-lnsl_s $LIBS"
4470 echo "$ac_t""no" 1>&6
4473 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4474 echo "configure:4475: checking for main in -lnsl" >&5
4475 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4479 ac_save_LIBS="$LIBS"
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 eval "ac_cv_lib_$ac_lib_var=no"
4499 LIBS="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4506 cat >> confdefs.h <<EOF
4507 #define $ac_tr_lib 1
4513 echo "$ac_t""no" 1>&6
4516 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4517 echo "configure:4518: checking for socket in -linet" >&5
4518 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
4519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 ac_save_LIBS="$LIBS"
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* Override any gcc2 internal prototype to avoid an error. */
4528 /* We use char because int might match the return type of a gcc2
4529 builtin and then its argument prototype would still apply. */
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4538 eval "ac_cv_lib_$ac_lib_var=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 eval "ac_cv_lib_$ac_lib_var=no"
4546 LIBS="$ac_save_LIBS"
4549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4553 cat >> confdefs.h <<EOF
4554 #define $ac_tr_lib 1
4560 echo "$ac_t""no" 1>&6
4563 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4564 echo "configure:4565: checking for main in -lgen" >&5
4565 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
4566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 ac_save_LIBS="$LIBS"
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 eval "ac_cv_lib_$ac_lib_var=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4586 eval "ac_cv_lib_$ac_lib_var=no"
4589 LIBS="$ac_save_LIBS"
4592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4594 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4596 cat >> confdefs.h <<EOF
4597 #define $ac_tr_lib 1
4603 echo "$ac_t""no" 1>&6
4610 echo $ac_n "checking for select""... $ac_c" 1>&6
4611 echo "configure:4612: checking for select" >&5
4612 if eval "test \"`echo '$''{'ac_cv_func_select'+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"
4618 /* System header to define __stub macros and hopefully few prototypes,
4619 which can conflict with char select(); below. */
4621 /* Override any gcc2 internal prototype to avoid an error. */
4622 /* We use char because int might match the return type of a gcc2
4623 builtin and then its argument prototype would still apply. */
4628 /* The GNU C library defines this for functions which it implements
4629 to always fail with ENOSYS. Some functions are actually named
4630 something starting with __ and the normal name is an alias. */
4631 #if defined (__stub_select) || defined (__stub___select)
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 eval "ac_cv_func_select=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_func_select=no"
4651 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4655 echo "$ac_t""no" 1>&6
4656 { echo "configure: error: select() required." 1>&2; exit 1; }
4660 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4661 echo "configure:4662: checking types of arguments for select()" >&5
4662 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4672 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4673 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #ifdef HAVE_SYS_TYPES_H
4678 #include <sys/types.h>
4680 #ifdef HAVE_SYS_TIME_H
4681 #include <sys/time.h>
4683 #ifdef HAVE_SYS_SELECT_H
4684 #include <sys/select.h>
4686 #ifdef HAVE_SYS_SOCKET_H
4687 #include <sys/socket.h>
4689 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);
4694 if { (eval echo configure:4695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4696 ac_not_found=no ; break 3
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4713 if test "$ac_not_found" = yes; then
4714 ac_cv_func_select_arg1=int
4715 ac_cv_func_select_arg234='int *'
4716 ac_cv_func_select_arg5='struct timeval *'
4718 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4719 cat >> confdefs.h <<EOF
4720 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4723 cat >> confdefs.h <<EOF
4724 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4727 cat >> confdefs.h <<EOF
4728 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4734 for ac_hdr in regex.h
4736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4752 eval "ac_cv_header_$ac_safe=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_header_$ac_safe=no"
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765 cat >> confdefs.h <<EOF
4766 #define $ac_tr_hdr 1
4770 echo "$ac_t""no" 1>&6
4774 if test "$ac_cv_header_regex_h" != yes ; then
4775 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4777 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4778 echo "configure:4779: checking for regfree" >&5
4779 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 /* System header to define __stub macros and hopefully few prototypes,
4786 which can conflict with char regfree(); below. */
4788 /* Override any gcc2 internal prototype to avoid an error. */
4789 /* We use char because int might match the return type of a gcc2
4790 builtin and then its argument prototype would still apply. */
4795 /* The GNU C library defines this for functions which it implements
4796 to always fail with ENOSYS. Some functions are actually named
4797 something starting with __ and the normal name is an alias. */
4798 #if defined (__stub_regfree) || defined (__stub___regfree)
4806 if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808 eval "ac_cv_func_regfree=yes"
4810 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4813 eval "ac_cv_func_regfree=no"
4818 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4822 echo "$ac_t""no" 1>&6
4823 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4828 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4829 echo "configure:4830: checking for compatible POSIX regex" >&5
4830 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4834 if test "$cross_compiling" = yes; then
4835 ol_cv_c_posix_regex=cross
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4841 #include <sys/types.h>
4843 static char *pattern, *string;
4851 if(regcomp(&re, pattern, 0)) {
4855 string = "ALL MATCH";
4857 rc = regexec(&re, string, 0, (void*)0, 0);
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4866 ol_cv_c_posix_regex=yes
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 ol_cv_c_posix_regex=no
4878 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4880 if test "$ol_cv_c_posix_regex" = no ; then
4881 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4885 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4886 echo "configure:4887: checking for sigset in -lV3" >&5
4887 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 ac_save_LIBS="$LIBS"
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 eval "ac_cv_lib_$ac_lib_var=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4912 eval "ac_cv_lib_$ac_lib_var=no"
4915 LIBS="$ac_save_LIBS"
4918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4920 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4922 cat >> confdefs.h <<EOF
4923 #define $ac_tr_lib 1
4929 echo "$ac_t""no" 1>&6
4935 if test $ol_enable_dns != no ; then
4936 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4937 echo "configure:4938: checking for res_search" >&5
4938 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 /* System header to define __stub macros and hopefully few prototypes,
4945 which can conflict with char res_search(); below. */
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4954 /* The GNU C library defines this for functions which it implements
4955 to always fail with ENOSYS. Some functions are actually named
4956 something starting with __ and the normal name is an alias. */
4957 #if defined (__stub_res_search) || defined (__stub___res_search)
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4967 eval "ac_cv_func_res_search=yes"
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4972 eval "ac_cv_func_res_search=no"
4977 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4981 echo "$ac_t""no" 1>&6
4984 if test $ac_cv_func_res_search = no ; then
4985 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4986 echo "configure:4987: checking for res_search in -lbind" >&5
4987 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
4988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4991 ac_save_LIBS="$LIBS"
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5007 eval "ac_cv_lib_$ac_lib_var=yes"
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5012 eval "ac_cv_lib_$ac_lib_var=no"
5015 LIBS="$ac_save_LIBS"
5018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5019 echo "$ac_t""yes" 1>&6
5020 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5022 cat >> confdefs.h <<EOF
5023 #define $ac_tr_lib 1
5029 echo "$ac_t""no" 1>&6
5032 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5034 if test $ac_cv_func_res_search = no ; then
5035 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5036 echo "configure:5037: checking for __res_search in -lbind" >&5
5037 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-%__p_%'`
5038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 ac_save_LIBS="$LIBS"
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5049 char __res_search();
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_lib_$ac_lib_var=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_lib_$ac_lib_var=no"
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5072 cat >> confdefs.h <<EOF
5073 #define $ac_tr_lib 1
5079 echo "$ac_t""no" 1>&6
5082 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5084 if test $ac_cv_func_res_search = no ; then
5085 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5086 echo "configure:5087: checking for res_search in -lresolv" >&5
5087 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
5088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 ac_save_LIBS="$LIBS"
5092 LIBS="-lresolv $LIBS"
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 eval "ac_cv_lib_$ac_lib_var=yes"
5109 echo "configure: failed program was:" >&5
5110 cat conftest.$ac_ext >&5
5112 eval "ac_cv_lib_$ac_lib_var=no"
5115 LIBS="$ac_save_LIBS"
5118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5122 cat >> confdefs.h <<EOF
5123 #define $ac_tr_lib 1
5126 LIBS="-lresolv $LIBS"
5129 echo "$ac_t""no" 1>&6
5132 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5135 if test "$ac_cv_func_res_search" = yes ; then
5136 cat >> confdefs.h <<\EOF
5137 #define HAVE_RES_SEARCH 1
5140 elif test $ol_enable_dns = yes ; then
5141 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5143 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5150 if test $ol_enable_ldapd != no ; then
5151 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5153 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5154 echo "configure:5155: checking for main in -lxtpp" >&5
5155 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
5156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 ac_save_LIBS="$LIBS"
5160 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 eval "ac_cv_lib_$ac_lib_var=yes"
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5176 eval "ac_cv_lib_$ac_lib_var=no"
5179 LIBS="$ac_save_LIBS"
5182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5186 cat >> confdefs.h <<\EOF
5190 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5193 echo "$ac_t""no" 1>&6
5197 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5198 echo "configure:5199: checking for main in -ldsap" >&5
5199 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 ac_save_LIBS="$LIBS"
5204 LIBS="-ldsap -lisode $LIBS"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 eval "ac_cv_lib_$ac_lib_var=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 eval "ac_cv_lib_$ac_lib_var=no"
5223 LIBS="$ac_save_LIBS"
5226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5230 cat >> confdefs.h <<\EOF
5234 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5237 echo "$ac_t""no" 1>&6
5241 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5242 echo "configure:5243: checking for main in -lisode" >&5
5243 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
5244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 ac_save_LIBS="$LIBS"
5248 LIBS="-lisode $LIBS"
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5259 eval "ac_cv_lib_$ac_lib_var=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_lib_$ac_lib_var=no"
5267 LIBS="$ac_save_LIBS"
5270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5271 echo "$ac_t""yes" 1>&6
5274 cat >> confdefs.h <<\EOF
5275 #define HAVE_ISODE 1
5278 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5281 echo "$ac_t""no" 1>&6
5287 if test $ol_link_isode != no; then
5288 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5289 echo "configure:5290: checking for main in -lpp" >&5
5290 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
5291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 ac_save_LIBS="$LIBS"
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5314 LIBS="$ac_save_LIBS"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5320 cat >> confdefs.h <<\EOF
5324 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5327 echo "$ac_t""no" 1>&6
5332 # Extract the first word of "pepsy", so it can be a program name with args.
5333 set dummy pepsy; ac_word=$2
5334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5335 echo "configure:5336: checking for $ac_word" >&5
5336 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5341 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5344 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5349 for ac_dir in $ac_dummy; do
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f $ac_dir/$ac_word; then
5352 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5360 PEPSY="$ac_cv_path_PEPSY"
5361 if test -n "$PEPSY"; then
5362 echo "$ac_t""$PEPSY" 1>&6
5364 echo "$ac_t""no" 1>&6
5369 if test $ol_enable_quipu != no ; then
5370 for ac_hdr in quipu/commonarg.h
5372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5374 echo "configure:5375: checking for $ac_hdr" >&5
5375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5376 echo $ac_n "(cached) $ac_c" 1>&6
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5384 { (eval echo configure:5385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5386 if test -z "$ac_err"; then
5388 eval "ac_cv_header_$ac_safe=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_header_$ac_safe=no"
5398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5401 cat >> confdefs.h <<EOF
5402 #define $ac_tr_hdr 1
5406 echo "$ac_t""no" 1>&6
5411 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5413 elif test $ol_enable_quipu = auto ; then
5414 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5416 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5422 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5423 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_hdr" >&5
5428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5437 { (eval echo configure:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5439 if test -z "$ac_err"; then
5441 eval "ac_cv_header_$ac_safe=yes"
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 eval "ac_cv_header_$ac_safe=no"
5451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5452 echo "$ac_t""yes" 1>&6
5453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5454 cat >> confdefs.h <<EOF
5455 #define $ac_tr_hdr 1
5459 echo "$ac_t""no" 1>&6
5464 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5465 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5466 echo "configure:5467: checking for main in -lkrb4" >&5
5467 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
5468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 ac_save_LIBS="$LIBS"
5472 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5481 if { (eval echo configure:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483 eval "ac_cv_lib_$ac_lib_var=yes"
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 eval "ac_cv_lib_$ac_lib_var=no"
5491 LIBS="$ac_save_LIBS"
5494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5495 echo "$ac_t""yes" 1>&6
5498 echo "$ac_t""no" 1>&6
5503 if test $have_k5 = yes ; then
5504 ol_with_kerberos=found
5505 ol_link_kerberos=yes
5507 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5509 LIBS="$KRB_LIBS $LIBS"
5511 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5512 echo "configure:5513: checking for des_debug in Kerberos libraries" >&5
5513 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5518 LIBS="$KRB_LIBS $LIBS"
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5523 #include <kerberosIV/krb.h>
5524 #include <kerberosIV/des.h>
5525 extern int des_debug;
5533 if { (eval echo configure:5534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5535 ol_cv_var_des_debug=yes
5537 echo "configure: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5540 ol_cv_var_des_debug=no
5547 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5549 if test $ol_cv_var_des_debug = yes ; then
5550 cat >> confdefs.h <<\EOF
5551 #define HAVE_DES_DEBUG 1
5561 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5562 for ac_hdr in krb.h des.h
5564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_hdr" >&5
5567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5576 { (eval echo configure:5577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5578 if test -z "$ac_err"; then
5580 eval "ac_cv_header_$ac_safe=yes"
5583 echo "configure: failed program was:" >&5
5584 cat conftest.$ac_ext >&5
5586 eval "ac_cv_header_$ac_safe=no"
5590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5593 cat >> confdefs.h <<EOF
5594 #define $ac_tr_hdr 1
5598 echo "$ac_t""no" 1>&6
5603 if test $ac_cv_header_krb_h = yes ; then
5604 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5605 echo "configure:5606: checking for main in -lkrb" >&5
5606 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
5607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 ac_save_LIBS="$LIBS"
5611 LIBS="-lkrb -ldes $LIBS"
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5622 eval "ac_cv_lib_$ac_lib_var=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.$ac_ext >&5
5627 eval "ac_cv_lib_$ac_lib_var=no"
5630 LIBS="$ac_save_LIBS"
5633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5637 echo "$ac_t""no" 1>&6
5642 if test $have_k4 = yes ; then
5643 ol_with_kerberos=found
5644 ol_link_kerberos=yes
5646 KRB_LIBS="-lkrb -ldes"
5651 if test $ol_link_kerberos = yes ; then
5652 cat >> confdefs.h <<\EOF
5653 #define HAVE_KERBEROS 1
5659 if test $ol_with_tls != no ; then
5661 for ac_hdr in openssl/ssl.h ssl.h
5663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_hdr" >&5
5666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5675 { (eval echo configure:5676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5677 if test -z "$ac_err"; then
5679 eval "ac_cv_header_$ac_safe=yes"
5682 echo "configure: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5685 eval "ac_cv_header_$ac_safe=no"
5689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_hdr 1
5697 echo "$ac_t""no" 1>&6
5702 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5703 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5704 echo "configure:5705: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5705 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
5706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 ac_save_LIBS="$LIBS"
5710 LIBS="-lssl -lcrypto $LIBS"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5717 char SSLeay_add_ssl_algorithms();
5720 SSLeay_add_ssl_algorithms()
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 eval "ac_cv_lib_$ac_lib_var=yes"
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 eval "ac_cv_lib_$ac_lib_var=no"
5733 LIBS="$ac_save_LIBS"
5736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5741 echo "$ac_t""no" 1>&6
5746 if test $have_ssleay = no ; then
5747 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5748 echo "configure:5749: checking for SSL_library_init in -lssl" >&5
5749 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
5750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 ac_save_LIBS="$LIBS"
5754 LIBS="-lssl -lcrypto $LIBS"
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* Override any gcc2 internal prototype to avoid an error. */
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5761 char SSL_library_init();
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5769 eval "ac_cv_lib_$ac_lib_var=yes"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 eval "ac_cv_lib_$ac_lib_var=no"
5777 LIBS="$ac_save_LIBS"
5780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5781 echo "$ac_t""yes" 1>&6
5785 echo "$ac_t""no" 1>&6
5791 if test $have_ssleay = no ; then
5792 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5793 echo "configure:5794: checking for ssl3_accept in -lssl" >&5
5794 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
5795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 ac_save_LIBS="$LIBS"
5799 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5803 /* Override any gcc2 internal prototype to avoid an error. */
5804 /* We use char because int might match the return type of a gcc2
5805 builtin and then its argument prototype would still apply. */
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814 eval "ac_cv_lib_$ac_lib_var=yes"
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 eval "ac_cv_lib_$ac_lib_var=no"
5822 LIBS="$ac_save_LIBS"
5825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5830 echo "$ac_t""no" 1>&6
5836 if test $have_ssleay = yes ; then
5840 cat >> confdefs.h <<\EOF
5841 #define HAVE_SSLEAY 1
5845 if test $need_rsaref = yes; then
5846 cat >> confdefs.h <<\EOF
5847 #define HAVE_RSAREF 1
5851 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5853 TLS_LIBS="-lssl -lcrypto"
5859 if test $ol_link_tls = yes ; then
5860 cat >> confdefs.h <<\EOF
5868 gethostbyname_r gethostbyaddr_r \
5871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5872 echo "configure:5873: checking for $ac_func" >&5
5873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
5879 /* System header to define __stub macros and hopefully few prototypes,
5880 which can conflict with char $ac_func(); below. */
5882 /* Override any gcc2 internal prototype to avoid an error. */
5883 /* We use char because int might match the return type of a gcc2
5884 builtin and then its argument prototype would still apply. */
5889 /* The GNU C library defines this for functions which it implements
5890 to always fail with ENOSYS. Some functions are actually named
5891 something starting with __ and the normal name is an alias. */
5892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 eval "ac_cv_func_$ac_func=yes"
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 eval "ac_cv_func_$ac_func=no"
5912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5915 cat >> confdefs.h <<EOF
5916 #define $ac_tr_func 1
5920 echo "$ac_t""no" 1>&6
5925 if test "$ac_cv_func_ctime_r" = no ; then
5926 ol_cv_func_ctime_r_nargs=0
5928 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5929 echo "configure:5930: checking number of arguments of ctime_r" >&5
5930 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5938 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5941 if { (eval echo configure:5942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5943 ol_cv_func_ctime_r_nargs=3
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5953 time_t ti; char *buffer; ctime_r(&ti,buffer);
5956 if { (eval echo configure:5957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5958 ol_cv_func_ctime_r_nargs=2
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 ol_cv_func_ctime_r_nargs=0
5970 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5971 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5972 cat >> confdefs.h <<EOF
5973 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5980 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5981 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5982 echo "configure:5983: checking number of arguments of gethostbyname_r" >&5
5983 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 #include <sys/types.h>
5990 #include <sys/socket.h>
5991 #include <netinet/in.h>
5993 #define BUFSIZE (sizeof(struct hostent)+10)
5995 struct hostent hent; char buffer[BUFSIZE];
5996 int bufsize=BUFSIZE;int h_errno;
5997 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5998 buffer, bufsize, &h_errno);
6001 if { (eval echo configure:6002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6003 ol_cv_func_gethostbyname_r_nargs=5
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include <sys/types.h>
6012 #include <sys/socket.h>
6013 #include <netinet/in.h>
6015 #define BUFSIZE (sizeof(struct hostent)+10)
6017 struct hostent hent;struct hostent *rhent;
6018 char buffer[BUFSIZE];
6019 int bufsize=BUFSIZE;int h_errno;
6020 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6024 if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6026 ol_cv_func_gethostbyname_r_nargs=6
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 ol_cv_func_gethostbyname_r_nargs=0
6038 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6039 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6040 cat >> confdefs.h <<EOF
6041 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6047 ol_cv_func_gethostbyname_r_nargs=0
6050 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6051 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6052 echo "configure:6053: checking number of arguments of gethostbyaddr_r" >&5
6053 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <sys/types.h>
6060 #include <sys/socket.h>
6061 #include <netinet/in.h>
6063 #define BUFSIZE (sizeof(struct hostent)+10)
6065 struct hostent hent; char buffer[BUFSIZE];
6067 size_t alen=sizeof(struct in_addr);
6068 int bufsize=BUFSIZE;int h_errno;
6069 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6070 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6073 if { (eval echo configure:6074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6075 ol_cv_func_gethostbyaddr_r_nargs=7
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6083 #include <sys/types.h>
6084 #include <sys/socket.h>
6085 #include <netinet/in.h>
6087 #define BUFSIZE (sizeof(struct hostent)+10)
6089 struct hostent hent;
6090 struct hostent *rhent; char buffer[BUFSIZE];
6092 size_t alen=sizeof(struct in_addr);
6093 int bufsize=BUFSIZE;int h_errno;
6094 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6095 alen, AF_INET, &hent, buffer, bufsize,
6099 if { (eval echo configure:6100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6101 ol_cv_func_gethostbyaddr_r_nargs=8
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6106 ol_cv_func_gethostbyaddr_r_nargs=0
6113 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6114 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6115 cat >> confdefs.h <<EOF
6116 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6122 ol_cv_func_gethostbyaddr_r_nargs=0
6125 if test "$ac_cv_func_ctime_r" = yes \
6126 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6127 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6128 -a "$ac_cv_func_gethostbyname_r" = yes \
6129 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6130 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6131 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6132 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6133 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6136 cat >> confdefs.h <<\EOF
6137 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6143 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6144 -o $ol_with_threads = posix ; then
6146 for ac_hdr in pthread.h sched.h
6148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6150 echo "configure:6151: checking for $ac_hdr" >&5
6151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6154 cat > conftest.$ac_ext <<EOF
6155 #line 6156 "configure"
6156 #include "confdefs.h"
6159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6160 { (eval echo configure:6161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6162 if test -z "$ac_err"; then
6164 eval "ac_cv_header_$ac_safe=yes"
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6170 eval "ac_cv_header_$ac_safe=no"
6174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6175 echo "$ac_t""yes" 1>&6
6176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6177 cat >> confdefs.h <<EOF
6178 #define $ac_tr_hdr 1
6182 echo "$ac_t""no" 1>&6
6187 if test $ac_cv_header_pthread_h = yes ; then
6188 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6189 echo "configure:6190: checking POSIX thread version" >&5
6190 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6198 # include <pthread.h>
6199 /* this check could be improved */
6200 # ifdef PTHREAD_ONCE_INIT
6201 pthread_version_final
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 egrep "pthread_version_final" >/dev/null 2>&1; then
6208 ol_pthread_final=yes
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6220 # include <pthread.h>
6221 /* this check could be improved */
6222 # ifdef pthread_once_init
6223 pthread_version_draft4
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6230 ol_pthread_draft4=yes
6233 ol_pthread_draft4=no
6238 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6239 ol_cv_pthread_version=final
6240 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6241 ol_cv_pthread_version=draft4
6243 ol_cv_pthread_version=unknown
6248 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6251 if test $ol_cv_pthread_version = final ; then
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_PTHREADS_FINAL 1
6256 elif test $ol_cv_pthread_version = draft4 ; then
6257 cat >> confdefs.h <<\EOF
6258 #define HAVE_PTHREADS_D4 1
6262 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6265 # consider threads found
6266 ol_with_threads=found
6269 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6270 echo "configure:6271: checking for LinuxThreads pthread.h" >&5
6271 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6272 echo $ac_n "(cached) $ac_c" 1>&6
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 #include <pthread.h>
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6282 ol_cv_header_linux_threads=yes
6285 ol_cv_header_linux_threads=no
6292 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6293 if test $ol_cv_header_linux_threads = yes; then
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_LINUX_THREADS 1
6302 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6303 echo "configure:6304: checking for pthread_create in default libraries" >&5
6304 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6308 if test "$cross_compiling" = yes; then
6309 ol_cv_pthread_create=yes
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6315 #include <pthread.h>
6317 #define NULL (void*)0
6320 static void *task(p)
6323 return (void *) (p == NULL);
6326 int main(argc, argv)
6333 /* make sure pthread_create() isn't just a stub */
6334 #if HAVE_PTHREADS_D4
6335 status = pthread_create(&t, pthread_attr_default, task, NULL);
6337 status = pthread_create(&t, NULL, task, NULL);
6340 if( status ) return status;
6342 /* make sure pthread_detach() isn't just a stub */
6343 #if HAVE_PTHREADS_D4
6344 status = pthread_detach( &t );
6346 status = pthread_detach( t );
6353 if { (eval echo configure:6354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6355 ol_cv_pthread_create=yes
6357 echo "configure: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6360 ol_cv_pthread_create=no
6367 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6369 if test $ol_cv_pthread_create != no ; then
6370 ol_link_threads=posix
6374 # Pthread try link: -mt (ol_cv_pthread_mt)
6375 if test "$ol_link_threads" = no ; then
6377 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6378 echo "configure:6379: checking for pthread link with -mt" >&5
6379 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6391 #include <pthread.h>
6393 #define NULL (void*)0
6400 #if HAVE_PTHREADS_D4
6401 pthread_create(&t, pthread_attr_default, NULL, NULL);
6402 pthread_detach( &t );
6404 pthread_create(&t, NULL, NULL, NULL);
6405 pthread_detach( t );
6407 #ifdef HAVE_LINUX_THREADS
6408 pthread_kill_other_threads_np();
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 ol_cv_pthread_mt=yes
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6429 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6431 if test $ol_cv_pthread_mt = yes ; then
6432 ol_link_pthreads="-mt"
6433 ol_link_threads=posix
6437 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6438 if test "$ol_link_threads" = no ; then
6440 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6441 echo "configure:6442: checking for pthread link with -kthread" >&5
6442 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6448 LIBS="-kthread $LIBS"
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6454 #include <pthread.h>
6456 #define NULL (void*)0
6463 #if HAVE_PTHREADS_D4
6464 pthread_create(&t, pthread_attr_default, NULL, NULL);
6465 pthread_detach( &t );
6467 pthread_create(&t, NULL, NULL, NULL);
6468 pthread_detach( t );
6470 #ifdef HAVE_LINUX_THREADS
6471 pthread_kill_other_threads_np();
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 ol_cv_pthread_kthread=yes
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 ol_cv_pthread_kthread=no
6492 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6494 if test $ol_cv_pthread_kthread = yes ; then
6495 ol_link_pthreads="-kthread"
6496 ol_link_threads=posix
6500 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6501 if test "$ol_link_threads" = no ; then
6503 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6504 echo "configure:6505: checking for pthread link with -pthread" >&5
6505 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6511 LIBS="-pthread $LIBS"
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6517 #include <pthread.h>
6519 #define NULL (void*)0
6526 #if HAVE_PTHREADS_D4
6527 pthread_create(&t, pthread_attr_default, NULL, NULL);
6528 pthread_detach( &t );
6530 pthread_create(&t, NULL, NULL, NULL);
6531 pthread_detach( t );
6533 #ifdef HAVE_LINUX_THREADS
6534 pthread_kill_other_threads_np();
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 ol_cv_pthread_pthread=yes
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 ol_cv_pthread_pthread=no
6555 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6557 if test $ol_cv_pthread_pthread = yes ; then
6558 ol_link_pthreads="-pthread"
6559 ol_link_threads=posix
6563 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6564 if test "$ol_link_threads" = no ; then
6566 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6567 echo "configure:6568: checking for pthread link with -pthreads" >&5
6568 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6574 LIBS="-pthreads $LIBS"
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6580 #include <pthread.h>
6582 #define NULL (void*)0
6589 #if HAVE_PTHREADS_D4
6590 pthread_create(&t, pthread_attr_default, NULL, NULL);
6591 pthread_detach( &t );
6593 pthread_create(&t, NULL, NULL, NULL);
6594 pthread_detach( t );
6596 #ifdef HAVE_LINUX_THREADS
6597 pthread_kill_other_threads_np();
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 ol_cv_pthread_pthreads=yes
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 ol_cv_pthread_pthreads=no
6618 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6620 if test $ol_cv_pthread_pthreads = yes ; then
6621 ol_link_pthreads="-pthreads"
6622 ol_link_threads=posix
6626 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6627 if test "$ol_link_threads" = no ; then
6629 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6630 echo "configure:6631: checking for pthread link with -mthreads" >&5
6631 if eval "test \"`echo '$''{'ol_cv_pthread_mthreads'+set}'`\" = set"; then
6632 echo $ac_n "(cached) $ac_c" 1>&6
6637 LIBS="-mthreads $LIBS"
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6643 #include <pthread.h>
6645 #define NULL (void*)0
6652 #if HAVE_PTHREADS_D4
6653 pthread_create(&t, pthread_attr_default, NULL, NULL);
6654 pthread_detach( &t );
6656 pthread_create(&t, NULL, NULL, NULL);
6657 pthread_detach( t );
6659 #ifdef HAVE_LINUX_THREADS
6660 pthread_kill_other_threads_np();
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 ol_cv_pthread_mthreads=yes
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 ol_cv_pthread_mthreads=no
6681 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6683 if test $ol_cv_pthread_mthreads = yes ; then
6684 ol_link_pthreads="-mthreads"
6685 ol_link_threads=posix
6689 # Pthread try link: -thread (ol_cv_pthread_thread)
6690 if test "$ol_link_threads" = no ; then
6692 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6693 echo "configure:6694: checking for pthread link with -thread" >&5
6694 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6700 LIBS="-thread $LIBS"
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6706 #include <pthread.h>
6708 #define NULL (void*)0
6715 #if HAVE_PTHREADS_D4
6716 pthread_create(&t, pthread_attr_default, NULL, NULL);
6717 pthread_detach( &t );
6719 pthread_create(&t, NULL, NULL, NULL);
6720 pthread_detach( t );
6722 #ifdef HAVE_LINUX_THREADS
6723 pthread_kill_other_threads_np();
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 ol_cv_pthread_thread=yes
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 ol_cv_pthread_thread=no
6744 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6746 if test $ol_cv_pthread_thread = yes ; then
6747 ol_link_pthreads="-thread"
6748 ol_link_threads=posix
6753 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6754 if test "$ol_link_threads" = no ; then
6755 # try -lpthread -lmach -lexc -lc_r
6756 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6757 echo "configure:6758: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6758 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6764 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6770 #include <pthread.h>
6772 #define NULL (void*)0
6779 #if HAVE_PTHREADS_D4
6780 pthread_create(&t, pthread_attr_default, NULL, NULL);
6781 pthread_detach( &t );
6783 pthread_create(&t, NULL, NULL, NULL);
6784 pthread_detach( t );
6786 #ifdef HAVE_LINUX_THREADS
6787 pthread_kill_other_threads_np();
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6799 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6808 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6810 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6811 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6812 ol_link_threads=posix
6816 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6817 if test "$ol_link_threads" = no ; then
6818 # try -lpthread -lmach -lexc
6819 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6820 echo "configure:6821: checking for pthread link with -lpthread -lmach -lexc" >&5
6821 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6827 LIBS="-lpthread -lmach -lexc $LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6833 #include <pthread.h>
6835 #define NULL (void*)0
6842 #if HAVE_PTHREADS_D4
6843 pthread_create(&t, pthread_attr_default, NULL, NULL);
6844 pthread_detach( &t );
6846 pthread_create(&t, NULL, NULL, NULL);
6847 pthread_detach( t );
6849 #ifdef HAVE_LINUX_THREADS
6850 pthread_kill_other_threads_np();
6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857 ol_cv_pthread_lpthread_lmach_lexc=yes
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6862 ol_cv_pthread_lpthread_lmach_lexc=no
6871 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6873 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6874 ol_link_pthreads="-lpthread -lmach -lexc"
6875 ol_link_threads=posix
6880 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6881 if test "$ol_link_threads" = no ; then
6882 # try -lpthread -Wl,-woff,85
6883 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6884 echo "configure:6885: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6885 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6891 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6897 #include <pthread.h>
6899 #define NULL (void*)0
6906 #if HAVE_PTHREADS_D4
6907 pthread_create(&t, pthread_attr_default, NULL, NULL);
6908 pthread_detach( &t );
6910 pthread_create(&t, NULL, NULL, NULL);
6911 pthread_detach( t );
6913 #ifdef HAVE_LINUX_THREADS
6914 pthread_kill_other_threads_np();
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6921 ol_cv_pthread_lib_lpthread_woff=yes
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6926 ol_cv_pthread_lib_lpthread_woff=no
6935 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6937 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6938 ol_link_pthreads="-lpthread -Wl,-woff,85"
6939 ol_link_threads=posix
6944 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6945 if test "$ol_link_threads" = no ; then
6947 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6948 echo "configure:6949: checking for pthread link with -lpthread" >&5
6949 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6955 LIBS="-lpthread $LIBS"
6957 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure"
6959 #include "confdefs.h"
6961 #include <pthread.h>
6963 #define NULL (void*)0
6970 #if HAVE_PTHREADS_D4
6971 pthread_create(&t, pthread_attr_default, NULL, NULL);
6972 pthread_detach( &t );
6974 pthread_create(&t, NULL, NULL, NULL);
6975 pthread_detach( t );
6977 #ifdef HAVE_LINUX_THREADS
6978 pthread_kill_other_threads_np();
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6985 ol_cv_pthread_lpthread=yes
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 ol_cv_pthread_lpthread=no
6999 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7001 if test $ol_cv_pthread_lpthread = yes ; then
7002 ol_link_pthreads="-lpthread"
7003 ol_link_threads=posix
7007 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7008 if test "$ol_link_threads" = no ; then
7010 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7011 echo "configure:7012: checking for pthread link with -lc_r" >&5
7012 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
7013 echo $ac_n "(cached) $ac_c" 1>&6
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7024 #include <pthread.h>
7026 #define NULL (void*)0
7033 #if HAVE_PTHREADS_D4
7034 pthread_create(&t, pthread_attr_default, NULL, NULL);
7035 pthread_detach( &t );
7037 pthread_create(&t, NULL, NULL, NULL);
7038 pthread_detach( t );
7040 #ifdef HAVE_LINUX_THREADS
7041 pthread_kill_other_threads_np();
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7048 ol_cv_pthread_lc_r=yes
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7053 ol_cv_pthread_lc_r=no
7062 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
7064 if test $ol_cv_pthread_lc_r = yes ; then
7065 ol_link_pthreads="-lc_r"
7066 ol_link_threads=posix
7071 # Pthread try link: -threads (ol_cv_pthread_threads)
7072 if test "$ol_link_threads" = no ; then
7074 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
7075 echo "configure:7076: checking for pthread link with -threads" >&5
7076 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7082 LIBS="-threads $LIBS"
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7088 #include <pthread.h>
7090 #define NULL (void*)0
7097 #if HAVE_PTHREADS_D4
7098 pthread_create(&t, pthread_attr_default, NULL, NULL);
7099 pthread_detach( &t );
7101 pthread_create(&t, NULL, NULL, NULL);
7102 pthread_detach( t );
7104 #ifdef HAVE_LINUX_THREADS
7105 pthread_kill_other_threads_np();
7110 if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 ol_cv_pthread_threads=yes
7114 echo "configure: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7117 ol_cv_pthread_threads=no
7126 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
7128 if test $ol_cv_pthread_threads = yes ; then
7129 ol_link_pthreads="-threads"
7130 ol_link_threads=posix
7135 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
7136 if test "$ol_link_threads" = no ; then
7137 # try -lpthreads -lmach -lexc -lc_r
7138 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
7139 echo "configure:7140: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
7140 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7146 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7152 #include <pthread.h>
7154 #define NULL (void*)0
7161 #if HAVE_PTHREADS_D4
7162 pthread_create(&t, pthread_attr_default, NULL, NULL);
7163 pthread_detach( &t );
7165 pthread_create(&t, NULL, NULL, NULL);
7166 pthread_detach( t );
7168 #ifdef HAVE_LINUX_THREADS
7169 pthread_kill_other_threads_np();
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7176 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7190 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7192 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7193 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7194 ol_link_threads=posix
7198 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7199 if test "$ol_link_threads" = no ; then
7200 # try -lpthreads -lmach -lexc
7201 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7202 echo "configure:7203: checking for pthread link with -lpthreads -lmach -lexc" >&5
7203 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7209 LIBS="-lpthreads -lmach -lexc $LIBS"
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7215 #include <pthread.h>
7217 #define NULL (void*)0
7224 #if HAVE_PTHREADS_D4
7225 pthread_create(&t, pthread_attr_default, NULL, NULL);
7226 pthread_detach( &t );
7228 pthread_create(&t, NULL, NULL, NULL);
7229 pthread_detach( t );
7231 #ifdef HAVE_LINUX_THREADS
7232 pthread_kill_other_threads_np();
7237 if { (eval echo configure:7238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7239 ol_cv_pthread_lpthreads_lmach_lexc=yes
7241 echo "configure: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7244 ol_cv_pthread_lpthreads_lmach_lexc=no
7253 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7255 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7256 ol_link_pthreads="-lpthreads -lmach -lexc"
7257 ol_link_threads=posix
7261 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7262 if test "$ol_link_threads" = no ; then
7263 # try -lpthreads -lexc
7264 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7265 echo "configure:7266: checking for pthread link with -lpthreads -lexc" >&5
7266 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7272 LIBS="-lpthreads -lexc $LIBS"
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7278 #include <pthread.h>
7280 #define NULL (void*)0
7287 #if HAVE_PTHREADS_D4
7288 pthread_create(&t, pthread_attr_default, NULL, NULL);
7289 pthread_detach( &t );
7291 pthread_create(&t, NULL, NULL, NULL);
7292 pthread_detach( t );
7294 #ifdef HAVE_LINUX_THREADS
7295 pthread_kill_other_threads_np();
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 ol_cv_pthread_lpthreads_lexc=yes
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 ol_cv_pthread_lpthreads_lexc=no
7316 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7318 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7319 ol_link_pthreads="-lpthreads -lexc"
7320 ol_link_threads=posix
7325 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7326 if test "$ol_link_threads" = no ; then
7328 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7329 echo "configure:7330: checking for pthread link with -lpthreads" >&5
7330 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7336 LIBS="-lpthreads $LIBS"
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7342 #include <pthread.h>
7344 #define NULL (void*)0
7351 #if HAVE_PTHREADS_D4
7352 pthread_create(&t, pthread_attr_default, NULL, NULL);
7353 pthread_detach( &t );
7355 pthread_create(&t, NULL, NULL, NULL);
7356 pthread_detach( t );
7358 #ifdef HAVE_LINUX_THREADS
7359 pthread_kill_other_threads_np();
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 ol_cv_pthread_lib_lpthreads=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7371 ol_cv_pthread_lib_lpthreads=no
7380 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7382 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7383 ol_link_pthreads="-lpthreads"
7384 ol_link_threads=posix
7389 if test $ol_link_threads != no ; then
7390 cat >> confdefs.h <<\EOF
7391 #define HAVE_PTHREADS 1
7395 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7397 save_CPPFLAGS="$CPPFLAGS"
7399 LIBS="$LTHREAD_LIBS $LIBS"
7401 for ac_func in sched_yield pthread_yield
7403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7404 echo "configure:7405: checking for $ac_func" >&5
7405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char $ac_func(); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7434 eval "ac_cv_func_$ac_func=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 eval "ac_cv_func_$ac_func=no"
7444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7447 cat >> confdefs.h <<EOF
7448 #define $ac_tr_func 1
7452 echo "$ac_t""no" 1>&6
7457 if test $ac_cv_func_sched_yield = no -a \
7458 $ac_cv_func_pthread_yield = no ; then
7459 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7460 echo "configure:7461: checking for sched_yield in -lrt" >&5
7461 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 ac_save_LIBS="$LIBS"
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 eval "ac_cv_lib_$ac_lib_var=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7486 eval "ac_cv_lib_$ac_lib_var=no"
7489 LIBS="$ac_save_LIBS"
7492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7495 cat >> confdefs.h <<\EOF
7496 #define HAVE_SCHED_YIELD 1
7499 ac_cv_func_sched_yield=yes
7501 echo "$ac_t""no" 1>&6
7502 ac_cv_func_sched_yield=no
7506 if test $ac_cv_func_sched_yield = no -a \
7507 $ac_cv_func_pthread_yield = no ; then
7508 for ac_func in thr_yield
7510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7511 echo "configure:7512: checking for $ac_func" >&5
7512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7515 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func(); below. */
7521 /* Override any gcc2 internal prototype to avoid an error. */
7522 /* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7528 /* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7541 eval "ac_cv_func_$ac_func=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 eval "ac_cv_func_$ac_func=no"
7551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7554 cat >> confdefs.h <<EOF
7555 #define $ac_tr_func 1
7559 echo "$ac_t""no" 1>&6
7564 if test $ac_cv_func_sched_yield = no -a \
7565 $ac_cv_func_pthread_yield = no -a \
7566 "$ac_cv_func_thr_yield" = no ; then
7567 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7570 for ac_func in pthread_kill
7572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_func" >&5
7574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char $ac_func(); below. */
7583 /* Override any gcc2 internal prototype to avoid an error. */
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 eval "ac_cv_func_$ac_func=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 eval "ac_cv_func_$ac_func=no"
7613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7616 cat >> confdefs.h <<EOF
7617 #define $ac_tr_func 1
7621 echo "$ac_t""no" 1>&6
7626 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7627 echo "configure:7628: checking for pthread_detach with <pthread.h>" >&5
7628 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7636 #include <pthread.h>
7638 #define NULL (void*)0
7642 pthread_detach(NULL);
7645 if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7647 ol_cv_func_pthread_detach=yes
7649 echo "configure: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7652 ol_cv_func_pthread_detach=no
7658 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7660 if test $ol_cv_func_pthread_detach = no ; then
7661 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7664 cat >> confdefs.h <<\EOF
7665 #define HAVE_PTHREAD_DETACH 1
7670 pthread_setconcurrency \
7671 pthread_getconcurrency \
7672 thr_setconcurrency \
7673 thr_getconcurrency \
7676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7677 echo "configure:7678: checking for $ac_func" >&5
7678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char $ac_func(); below. */
7687 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7694 /* The GNU C library defines this for functions which it implements
7695 to always fail with ENOSYS. Some functions are actually named
7696 something starting with __ and the normal name is an alias. */
7697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_func_$ac_func=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_func_$ac_func=no"
7717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7718 echo "$ac_t""yes" 1>&6
7719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7720 cat >> confdefs.h <<EOF
7721 #define $ac_tr_func 1
7725 echo "$ac_t""no" 1>&6
7731 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7732 echo "configure:7733: checking for pthread_kill_other_threads_np" >&5
7733 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure"
7738 #include "confdefs.h"
7739 /* System header to define __stub macros and hopefully few prototypes,
7740 which can conflict with char pthread_kill_other_threads_np(); below. */
7742 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7745 char pthread_kill_other_threads_np();
7749 /* The GNU C library defines this for functions which it implements
7750 to always fail with ENOSYS. Some functions are actually named
7751 something starting with __ and the normal name is an alias. */
7752 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7755 pthread_kill_other_threads_np();
7760 if { (eval echo configure:7761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7772 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7776 echo "$ac_t""no" 1>&6
7779 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7780 echo "configure:7781: checking for LinuxThreads implementation" >&5
7781 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
7784 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7787 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7792 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7793 echo "configure:7794: checking for LinuxThreads consistency" >&5
7794 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7798 if test $ol_cv_header_linux_threads = yes -a \
7799 $ol_cv_sys_linux_threads = yes; then
7800 ol_cv_linux_threads=yes
7801 elif test $ol_cv_header_linux_threads = no -a \
7802 $ol_cv_sys_linux_threads = no; then
7803 ol_cv_linux_threads=no
7805 ol_cv_linux_threads=error
7810 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7813 if test $ol_cv_linux_threads = error; then
7814 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7817 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7818 echo "configure:7819: checking if pthread_create() works" >&5
7819 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7823 if test "$cross_compiling" = yes; then
7824 ol_cv_pthread_create_works=yes
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7830 #include <pthread.h>
7832 #define NULL (void*)0
7835 static void *task(p)
7838 return (void *) (p == NULL);
7841 int main(argc, argv)
7846 #if HAVE_PTHREADS_D4
7847 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7849 exit(pthread_create(&t, NULL, task, NULL));
7854 if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7856 ol_cv_pthread_create_works=yes
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7861 ol_cv_pthread_create_works=no
7868 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7870 if test $ol_cv_pthread_create_works = no ; then
7871 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7874 if test $ol_with_yielding_select = auto ; then
7875 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7876 echo "configure:7877: checking if select yields when using pthreads" >&5
7877 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7881 if test "$cross_compiling" = yes; then
7882 ol_cv_pthread_select_yields=cross
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7888 #include <sys/types.h>
7889 #include <sys/time.h>
7891 #include <pthread.h>
7893 #define NULL (void*) 0
7896 static int fildes[2];
7898 static void *task(p)
7910 FD_SET(fildes[0], &rfds);
7912 /* we're not interested in any fds */
7913 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7920 exit(0); /* if we exit here, the select blocked the whole process */
7923 int main(argc, argv)
7929 /* create a pipe to select */
7930 if(pipe(&fildes[0])) {
7935 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7936 (void) pthread_setconcurrency(2);
7938 #ifdef HAVE_THR_SETCONCURRENCY
7939 /* Set Solaris LWP concurrency to 2 */
7940 thr_setconcurrency(2);
7944 #if HAVE_PTHREADS_D4
7945 pthread_create(&t, pthread_attr_default, task, NULL);
7947 pthread_create(&t, NULL, task, NULL);
7950 #if HAVE_SCHED_YIELD
7951 sched_yield(); /* make sure task runs first */
7953 #ifdef HAVE_PTHREAD_YIELD
7954 pthread_yield(); /* make sure task runs first */
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7963 ol_cv_pthread_select_yields=no
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7968 ol_cv_pthread_select_yields=yes
7975 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7977 if test $ol_cv_pthread_select_yields = cross ; then
7978 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7981 if test $ol_cv_pthread_select_yields = yes ; then
7982 ol_with_yielding_select=yes
7986 CPPFLAGS="$save_CPPFLAGS"
7989 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7993 if test $ol_with_threads = posix ; then
7994 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7998 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7999 -o $ol_with_threads = mach ; then
8001 for ac_hdr in mach/cthreads.h
8003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8005 echo "configure:8006: checking for $ac_hdr" >&5
8006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8019 eval "ac_cv_header_$ac_safe=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_header_$ac_safe=no"
8029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8032 cat >> confdefs.h <<EOF
8033 #define $ac_tr_hdr 1
8037 echo "$ac_t""no" 1>&6
8041 if test $ac_cv_header_mach_cthreads_h = yes ; then
8042 ol_with_threads=found
8044 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
8045 echo "configure:8046: checking for cthread_fork" >&5
8046 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char cthread_fork(); below. */
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char cthread_fork();
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8075 eval "ac_cv_func_cthread_fork=yes"
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8080 eval "ac_cv_func_cthread_fork=no"
8085 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8089 echo "$ac_t""no" 1>&6
8093 if test $ol_link_threads = no ; then
8094 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
8095 echo "configure:8096: checking for cthread_fork with -all_load" >&5
8096 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8101 LIBS="-all_load $LIBS"
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 #include <mach/cthreads.h>
8108 cthread_fork((void *)0, (void *)0);
8112 if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 ol_cv_cthread_all_load=yes
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 ol_cv_cthread_all_load=no
8126 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
8128 if test $ol_cv_cthread_all_load = yes ; then
8129 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
8130 ol_link_threads=mach
8134 if test $ol_link_threads != no ; then
8135 : check for cthread specific functionality here
8136 cat >> confdefs.h <<\EOF
8137 #define HAVE_MACH_CTHREADS 1
8141 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
8145 if test $ol_with_threads = mach ; then
8146 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
8150 if test $ol_with_threads = auto -o $ol_with_threads = yes \
8151 -o $ol_with_threads = lwp ; then
8153 for ac_hdr in thread.h synch.h
8155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8157 echo "configure:8158: checking for $ac_hdr" >&5
8158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8167 { (eval echo configure:8168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8169 if test -z "$ac_err"; then
8171 eval "ac_cv_header_$ac_safe=yes"
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8177 eval "ac_cv_header_$ac_safe=no"
8181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8184 cat >> confdefs.h <<EOF
8185 #define $ac_tr_hdr 1
8189 echo "$ac_t""no" 1>&6
8193 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8194 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8195 echo "configure:8196: checking for thr_create in -lthread" >&5
8196 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
8197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 ac_save_LIBS="$LIBS"
8201 LIBS="-lthread $LIBS"
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 eval "ac_cv_lib_$ac_lib_var=yes"
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 eval "ac_cv_lib_$ac_lib_var=no"
8224 LIBS="$ac_save_LIBS"
8227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8231 echo "$ac_t""no" 1>&6
8236 if test $have_thr = yes ; then
8237 cat >> confdefs.h <<\EOF
8241 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8244 if test $ol_with_yielding_select = auto ; then
8245 ol_with_yielding_select=yes
8249 thr_setconcurrency \
8250 thr_getconcurrency \
8253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8254 echo "configure:8255: checking for $ac_func" >&5
8255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8256 echo $ac_n "(cached) $ac_c" 1>&6
8258 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure"
8260 #include "confdefs.h"
8261 /* System header to define __stub macros and hopefully few prototypes,
8262 which can conflict with char $ac_func(); below. */
8264 /* Override any gcc2 internal prototype to avoid an error. */
8265 /* We use char because int might match the return type of a gcc2
8266 builtin and then its argument prototype would still apply. */
8271 /* The GNU C library defines this for functions which it implements
8272 to always fail with ENOSYS. Some functions are actually named
8273 something starting with __ and the normal name is an alias. */
8274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8284 eval "ac_cv_func_$ac_func=yes"
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8289 eval "ac_cv_func_$ac_func=no"
8294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_func 1
8302 echo "$ac_t""no" 1>&6
8309 for ac_hdr in lwp/lwp.h
8311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8313 echo "configure:8314: checking for $ac_hdr" >&5
8314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8323 { (eval echo configure:8324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8325 if test -z "$ac_err"; then
8327 eval "ac_cv_header_$ac_safe=yes"
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 eval "ac_cv_header_$ac_safe=no"
8337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8340 cat >> confdefs.h <<EOF
8341 #define $ac_tr_hdr 1
8345 echo "$ac_t""no" 1>&6
8349 if test $ac_cv_header_lwp_lwp_h = yes ; then
8350 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8351 echo "configure:8352: checking for lwp_create in -llwp" >&5
8352 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
8353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 ac_save_LIBS="$LIBS"
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8361 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8370 if { (eval echo configure:8371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8372 eval "ac_cv_lib_$ac_lib_var=yes"
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8377 eval "ac_cv_lib_$ac_lib_var=no"
8380 LIBS="$ac_save_LIBS"
8383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6
8387 echo "$ac_t""no" 1>&6
8392 if test $have_lwp = yes ; then
8393 cat >> confdefs.h <<\EOF
8397 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8400 if test $ol_with_yielding_select = auto ; then
8401 ol_with_yielding_select=no
8407 if test $ol_with_yielding_select = yes ; then
8408 cat >> confdefs.h <<\EOF
8409 #define HAVE_YIELDING_SELECT 1
8414 if test $ol_with_threads = manual ; then
8417 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8419 for ac_hdr in pthread.h sched.h
8421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8423 echo "configure:8424: checking for $ac_hdr" >&5
8424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8433 { (eval echo configure:8434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8435 if test -z "$ac_err"; then
8437 eval "ac_cv_header_$ac_safe=yes"
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8443 eval "ac_cv_header_$ac_safe=no"
8447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8450 cat >> confdefs.h <<EOF
8451 #define $ac_tr_hdr 1
8455 echo "$ac_t""no" 1>&6
8459 for ac_func in sched_yield pthread_yield
8461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8462 echo "configure:8463: checking for $ac_func" >&5
8463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8464 echo $ac_n "(cached) $ac_c" 1>&6
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 /* System header to define __stub macros and hopefully few prototypes,
8470 which can conflict with char $ac_func(); below. */
8472 /* Override any gcc2 internal prototype to avoid an error. */
8473 /* We use char because int might match the return type of a gcc2
8474 builtin and then its argument prototype would still apply. */
8479 /* The GNU C library defines this for functions which it implements
8480 to always fail with ENOSYS. Some functions are actually named
8481 something starting with __ and the normal name is an alias. */
8482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8490 if { (eval echo configure:8491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8492 eval "ac_cv_func_$ac_func=yes"
8494 echo "configure: failed program was:" >&5
8495 cat conftest.$ac_ext >&5
8497 eval "ac_cv_func_$ac_func=no"
8502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8503 echo "$ac_t""yes" 1>&6
8504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8505 cat >> confdefs.h <<EOF
8506 #define $ac_tr_func 1
8510 echo "$ac_t""no" 1>&6
8515 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8516 echo "configure:8517: checking for LinuxThreads pthread.h" >&5
8517 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8523 #include <pthread.h>
8525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8526 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8528 ol_cv_header_linux_threads=yes
8531 ol_cv_header_linux_threads=no
8538 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8539 if test $ol_cv_header_linux_threads = yes; then
8540 cat >> confdefs.h <<\EOF
8541 #define HAVE_LINUX_THREADS 1
8547 for ac_hdr in mach/cthreads.h
8549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8551 echo "configure:8552: checking for $ac_hdr" >&5
8552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8561 { (eval echo configure:8562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8563 if test -z "$ac_err"; then
8565 eval "ac_cv_header_$ac_safe=yes"
8568 echo "configure: failed program was:" >&5
8569 cat conftest.$ac_ext >&5
8571 eval "ac_cv_header_$ac_safe=no"
8575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8578 cat >> confdefs.h <<EOF
8579 #define $ac_tr_hdr 1
8583 echo "$ac_t""no" 1>&6
8587 for ac_hdr in lwp/lwp.h
8589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8591 echo "configure:8592: checking for $ac_hdr" >&5
8592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8595 cat > conftest.$ac_ext <<EOF
8596 #line 8597 "configure"
8597 #include "confdefs.h"
8600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8601 { (eval echo configure:8602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8603 if test -z "$ac_err"; then
8605 eval "ac_cv_header_$ac_safe=yes"
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8611 eval "ac_cv_header_$ac_safe=no"
8615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8618 cat >> confdefs.h <<EOF
8619 #define $ac_tr_hdr 1
8623 echo "$ac_t""no" 1>&6
8627 for ac_hdr in thread.h synch.h
8629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8631 echo "configure:8632: checking for $ac_hdr" >&5
8632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8641 { (eval echo configure:8642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8643 if test -z "$ac_err"; then
8645 eval "ac_cv_header_$ac_safe=yes"
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8651 eval "ac_cv_header_$ac_safe=no"
8655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8656 echo "$ac_t""yes" 1>&6
8657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8658 cat >> confdefs.h <<EOF
8659 #define $ac_tr_hdr 1
8663 echo "$ac_t""no" 1>&6
8669 if test $ol_link_threads != no ; then
8670 cat >> confdefs.h <<\EOF
8674 cat >> confdefs.h <<\EOF
8675 #define _REENTRANT 1
8678 cat >> confdefs.h <<\EOF
8679 #define THREAD_SAFE 1
8682 cat >> confdefs.h <<\EOF
8683 #define _THREAD_SAFE 1
8686 cat >> confdefs.h <<\EOF
8687 #define THREADSAFE 1
8690 cat >> confdefs.h <<\EOF
8691 #define _THREADSAFE 1
8694 cat >> confdefs.h <<\EOF
8695 #define _SGI_MP_SOURCE 1
8699 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8700 echo "configure:8701: checking for thread specific errno" >&5
8701 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8715 ol_cv_errno_thread_specific=yes
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 ol_cv_errno_thread_specific=no
8726 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8728 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8729 echo "configure:8730: checking for thread specific h_errno" >&5
8730 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8734 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8742 if { (eval echo configure:8743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8744 ol_cv_h_errno_thread_specific=yes
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8749 ol_cv_h_errno_thread_specific=no
8755 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8757 if test $ol_cv_errno_thread_specific != yes \
8758 -o $ol_cv_h_errno_thread_specific != yes ; then
8759 LIBS="$LTHREAD_LIBS $LIBS"
8765 if test $ol_link_threads = no ; then
8766 if test $ol_with_threads = yes ; then
8767 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8770 if test $ol_with_threads = auto ; then
8771 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8775 cat >> confdefs.h <<\EOF
8776 #define NO_THREADS 1
8782 if test $ol_link_threads != no ; then
8783 cat >> confdefs.h <<\EOF
8784 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8791 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8792 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8793 echo "configure:8794: checking for DB2 library" >&5
8794 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8798 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8799 echo "configure:8800: checking for db_open in -ldb" >&5
8800 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
8801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8804 ac_save_LIBS="$LIBS"
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 /* Override any gcc2 internal prototype to avoid an error. */
8810 /* We use char because int might match the return type of a gcc2
8811 builtin and then its argument prototype would still apply. */
8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8820 eval "ac_cv_lib_$ac_lib_var=yes"
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8825 eval "ac_cv_lib_$ac_lib_var=no"
8828 LIBS="$ac_save_LIBS"
8831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8832 echo "$ac_t""yes" 1>&6
8835 echo "$ac_t""no" 1>&6
8843 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8849 echo "configure:8850: checking for $ac_hdr" >&5
8850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8851 echo $ac_n "(cached) $ac_c" 1>&6
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8859 { (eval echo configure:8860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8861 if test -z "$ac_err"; then
8863 eval "ac_cv_header_$ac_safe=yes"
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8869 eval "ac_cv_header_$ac_safe=no"
8873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8874 echo "$ac_t""yes" 1>&6
8875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8876 cat >> confdefs.h <<EOF
8877 #define $ac_tr_hdr 1
8881 echo "$ac_t""no" 1>&6
8885 if test $ac_cv_header_db_h = yes ; then
8886 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8887 echo "configure:8888: checking if db.h is DB2" >&5
8888 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8897 /* this check could be improved */
8898 # ifdef DB_VERSION_MAJOR
8899 # if DB_VERSION_MAJOR == 2
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 egrep "__db_version_2" >/dev/null 2>&1; then
8908 ol_cv_header_db2=yes
8917 echo "$ac_t""$ol_cv_header_db2" 1>&6
8924 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8925 echo "configure:8926: checking for Berkeley DB2" >&5
8926 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8930 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8931 ol_cv_berkeley_db2=no
8933 ol_cv_berkeley_db2=yes
8938 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8939 if test $ol_cv_berkeley_db2 = yes ; then
8940 cat >> confdefs.h <<\EOF
8941 #define HAVE_BERKELEY_DB2 1
8947 if test $ol_cv_berkeley_db2 = yes ; then
8949 ol_with_ldbm_api=db2
8951 if test $ol_with_ldbm_type = hash ; then
8952 cat >> confdefs.h <<\EOF
8953 #define LDBM_USE_DBHASH 1
8957 cat >> confdefs.h <<\EOF
8958 #define LDBM_USE_DBBTREE 1
8963 if test $ol_cv_lib_db2 != yes ; then
8964 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8970 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8974 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8975 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8976 echo "configure:8977: checking for Berkeley DB library" >&5
8977 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8981 for ac_hdr in db1/db.h
8983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8985 echo "configure:8986: checking for $ac_hdr" >&5
8986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8995 { (eval echo configure:8996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8997 if test -z "$ac_err"; then
8999 eval "ac_cv_header_$ac_safe=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_header_$ac_safe=no"
9009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6
9011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9012 cat >> confdefs.h <<EOF
9013 #define $ac_tr_hdr 1
9017 echo "$ac_t""no" 1>&6
9022 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9023 echo "configure:9024: checking for dbopen" >&5
9024 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9027 cat > conftest.$ac_ext <<EOF
9028 #line 9029 "configure"
9029 #include "confdefs.h"
9030 /* System header to define __stub macros and hopefully few prototypes,
9031 which can conflict with char dbopen(); below. */
9033 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9040 /* The GNU C library defines this for functions which it implements
9041 to always fail with ENOSYS. Some functions are actually named
9042 something starting with __ and the normal name is an alias. */
9043 #if defined (__stub_dbopen) || defined (__stub___dbopen)
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053 eval "ac_cv_func_dbopen=yes"
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 eval "ac_cv_func_dbopen=no"
9063 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
9064 echo "$ac_t""yes" 1>&6
9067 echo "$ac_t""no" 1>&6
9069 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
9070 echo "configure:9071: checking for dbopen in -ldb1" >&5
9071 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
9072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9075 ac_save_LIBS="$LIBS"
9077 cat > conftest.$ac_ext <<EOF
9078 #line 9079 "configure"
9079 #include "confdefs.h"
9080 /* Override any gcc2 internal prototype to avoid an error. */
9081 /* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9091 eval "ac_cv_lib_$ac_lib_var=yes"
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9096 eval "ac_cv_lib_$ac_lib_var=no"
9099 LIBS="$ac_save_LIBS"
9102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9106 echo "$ac_t""no" 1>&6
9108 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9109 echo "configure:9110: checking for dbopen in -ldb" >&5
9110 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9112 echo $ac_n "(cached) $ac_c" 1>&6
9114 ac_save_LIBS="$LIBS"
9116 cat > conftest.$ac_ext <<EOF
9117 #line 9118 "configure"
9118 #include "confdefs.h"
9119 /* Override any gcc2 internal prototype to avoid an error. */
9120 /* We use char because int might match the return type of a gcc2
9121 builtin and then its argument prototype would still apply. */
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9130 eval "ac_cv_lib_$ac_lib_var=yes"
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 eval "ac_cv_lib_$ac_lib_var=no"
9138 LIBS="$ac_save_LIBS"
9141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9142 echo "$ac_t""yes" 1>&6
9145 echo "$ac_t""no" 1>&6
9159 echo "$ac_t""$ol_cv_lib_db" 1>&6
9162 for ac_hdr in db_185.h
9164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $ac_hdr" >&5
9167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9176 { (eval echo configure:9177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9178 if test -z "$ac_err"; then
9180 eval "ac_cv_header_$ac_safe=yes"
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9186 eval "ac_cv_header_$ac_safe=no"
9190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9191 echo "$ac_t""yes" 1>&6
9192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9193 cat >> confdefs.h <<EOF
9194 #define $ac_tr_hdr 1
9198 echo "$ac_t""no" 1>&6
9202 if test "$ol_cv_header_db2" = yes ; then
9204 ol_cv_header_db=$ac_cv_header_db_185_h
9206 ol_cv_header_db=$ac_cv_header_db_h
9211 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9212 echo "configure:9213: checking for Berkeley DB" >&5
9213 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9218 ol_cv_berkeley_db=no
9220 ol_cv_berkeley_db=yes
9225 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9226 if test $ol_cv_berkeley_db = yes ; then
9227 cat >> confdefs.h <<\EOF
9228 #define HAVE_BERKELEY_DB 1
9234 if test $ol_cv_berkeley_db = yes ; then
9238 if test $ol_with_ldbm_type = hash ; then
9239 cat >> confdefs.h <<\EOF
9240 #define LDBM_USE_DBHASH 1
9244 cat >> confdefs.h <<\EOF
9245 #define LDBM_USE_DBBTREE 1
9250 if test $ol_cv_lib_db != yes ; then
9251 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9256 if test $ol_with_ldbm_api = manual ; then
9259 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9261 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9265 echo "configure:9266: checking for $ac_hdr" >&5
9266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9275 { (eval echo configure:9276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9277 if test -z "$ac_err"; then
9279 eval "ac_cv_header_$ac_safe=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_header_$ac_safe=no"
9289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9290 echo "$ac_t""yes" 1>&6
9291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9292 cat >> confdefs.h <<EOF
9293 #define $ac_tr_hdr 1
9297 echo "$ac_t""no" 1>&6
9303 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9304 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9305 ol_with_ldbm_api=none
9308 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9309 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9310 echo "configure:9311: checking for MDBM library" >&5
9311 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
9315 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9316 echo "configure:9317: checking for mdbm_set_chain" >&5
9317 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
9318 echo $ac_n "(cached) $ac_c" 1>&6
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* System header to define __stub macros and hopefully few prototypes,
9324 which can conflict with char mdbm_set_chain(); below. */
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char mdbm_set_chain();
9333 /* The GNU C library defines this for functions which it implements
9334 to always fail with ENOSYS. Some functions are actually named
9335 something starting with __ and the normal name is an alias. */
9336 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9346 eval "ac_cv_func_mdbm_set_chain=yes"
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 eval "ac_cv_func_mdbm_set_chain=no"
9356 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9357 echo "$ac_t""yes" 1>&6
9360 echo "$ac_t""no" 1>&6
9362 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9363 echo "configure:9364: checking for mdbm_set_chain in -lmdbm" >&5
9364 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
9365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9368 ac_save_LIBS="$LIBS"
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 /* Override any gcc2 internal prototype to avoid an error. */
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376 char mdbm_set_chain();
9382 if { (eval echo configure:9383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9384 eval "ac_cv_lib_$ac_lib_var=yes"
9386 echo "configure: failed program was:" >&5
9387 cat conftest.$ac_ext >&5
9389 eval "ac_cv_lib_$ac_lib_var=no"
9392 LIBS="$ac_save_LIBS"
9395 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9396 echo "$ac_t""yes" 1>&6
9397 ol_cv_lib_mdbm=-lmdbm
9399 echo "$ac_t""no" 1>&6
9410 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9413 for ac_hdr in mdbm.h
9415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9417 echo "configure:9418: checking for $ac_hdr" >&5
9418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9421 cat > conftest.$ac_ext <<EOF
9422 #line 9423 "configure"
9423 #include "confdefs.h"
9426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9427 { (eval echo configure:9428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9429 if test -z "$ac_err"; then
9431 eval "ac_cv_header_$ac_safe=yes"
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 eval "ac_cv_header_$ac_safe=no"
9441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9444 cat >> confdefs.h <<EOF
9445 #define $ac_tr_hdr 1
9449 echo "$ac_t""no" 1>&6
9453 echo $ac_n "checking for db""... $ac_c" 1>&6
9454 echo "configure:9455: checking for db" >&5
9455 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9459 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9467 echo "$ac_t""$ol_cv_mdbm" 1>&6
9468 if test $ol_cv_mdbm = yes ; then
9469 cat >> confdefs.h <<\EOF
9476 if test $ol_cv_mdbm = yes ; then
9478 ol_with_ldbm_api=mdbm
9479 if test $ol_cv_lib_mdbm != yes ; then
9480 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9485 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9486 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9487 echo "configure:9488: checking for GDBM library" >&5
9488 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9492 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9493 echo "configure:9494: checking for gdbm_open" >&5
9494 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char gdbm_open(); below. */
9503 /* Override any gcc2 internal prototype to avoid an error. */
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9523 eval "ac_cv_func_gdbm_open=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9528 eval "ac_cv_func_gdbm_open=no"
9533 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
9537 echo "$ac_t""no" 1>&6
9539 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9540 echo "configure:9541: checking for gdbm_open in -lgdbm" >&5
9541 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
9542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9545 ac_save_LIBS="$LIBS"
9547 cat > conftest.$ac_ext <<EOF
9548 #line 9549 "configure"
9549 #include "confdefs.h"
9550 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9561 eval "ac_cv_lib_$ac_lib_var=yes"
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9566 eval "ac_cv_lib_$ac_lib_var=no"
9569 LIBS="$ac_save_LIBS"
9572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9573 echo "$ac_t""yes" 1>&6
9574 ol_cv_lib_gdbm=-lgdbm
9576 echo "$ac_t""no" 1>&6
9587 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9590 for ac_hdr in gdbm.h
9592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9594 echo "configure:9595: checking for $ac_hdr" >&5
9595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9604 { (eval echo configure:9605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9606 if test -z "$ac_err"; then
9608 eval "ac_cv_header_$ac_safe=yes"
9611 echo "configure: failed program was:" >&5
9612 cat conftest.$ac_ext >&5
9614 eval "ac_cv_header_$ac_safe=no"
9618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9619 echo "$ac_t""yes" 1>&6
9620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9621 cat >> confdefs.h <<EOF
9622 #define $ac_tr_hdr 1
9626 echo "$ac_t""no" 1>&6
9630 echo $ac_n "checking for db""... $ac_c" 1>&6
9631 echo "configure:9632: checking for db" >&5
9632 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9636 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9644 echo "$ac_t""$ol_cv_gdbm" 1>&6
9645 if test $ol_cv_gdbm = yes ; then
9646 cat >> confdefs.h <<\EOF
9653 if test $ol_cv_gdbm = yes ; then
9655 ol_with_ldbm_api=gdbm
9657 if test $ol_cv_lib_gdbm != yes ; then
9658 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9663 if test $ol_with_ldbm_api = auto ; then
9664 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9665 elif test $ol_with_ldbm_api = ndbm ; then
9666 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9667 echo "configure:9668: checking for NDBM library" >&5
9668 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9672 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9673 echo "configure:9674: checking for dbm_open" >&5
9674 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680 /* System header to define __stub macros and hopefully few prototypes,
9681 which can conflict with char dbm_open(); below. */
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 /* We use char because int might match the return type of a gcc2
9685 builtin and then its argument prototype would still apply. */
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9703 eval "ac_cv_func_dbm_open=yes"
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9708 eval "ac_cv_func_dbm_open=no"
9713 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
9717 echo "$ac_t""no" 1>&6
9719 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9720 echo "configure:9721: checking for dbm_open in -lndbm" >&5
9721 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
9722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9725 ac_save_LIBS="$LIBS"
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* Override any gcc2 internal prototype to avoid an error. */
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9739 if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 eval "ac_cv_lib_$ac_lib_var=yes"
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9746 eval "ac_cv_lib_$ac_lib_var=no"
9749 LIBS="$ac_save_LIBS"
9752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 ol_cv_lib_ndbm=-lndbm
9756 echo "$ac_t""no" 1>&6
9758 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9759 echo "configure:9760: checking for dbm_open in -ldbm" >&5
9760 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9762 echo $ac_n "(cached) $ac_c" 1>&6
9764 ac_save_LIBS="$LIBS"
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9769 /* Override any gcc2 internal prototype to avoid an error. */
9770 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9780 eval "ac_cv_lib_$ac_lib_var=yes"
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 eval "ac_cv_lib_$ac_lib_var=no"
9788 LIBS="$ac_save_LIBS"
9791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9792 echo "$ac_t""yes" 1>&6
9793 ol_cv_lib_ndbm=-ldbm
9795 echo "$ac_t""no" 1>&6
9808 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9811 for ac_hdr in ndbm.h
9813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9815 echo "configure:9816: checking for $ac_hdr" >&5
9816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9817 echo $ac_n "(cached) $ac_c" 1>&6
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9827 if test -z "$ac_err"; then
9829 eval "ac_cv_header_$ac_safe=yes"
9832 echo "configure: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9835 eval "ac_cv_header_$ac_safe=no"
9839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9840 echo "$ac_t""yes" 1>&6
9841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9842 cat >> confdefs.h <<EOF
9843 #define $ac_tr_hdr 1
9847 echo "$ac_t""no" 1>&6
9851 echo $ac_n "checking for db""... $ac_c" 1>&6
9852 echo "configure:9853: checking for db" >&5
9853 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
9854 echo $ac_n "(cached) $ac_c" 1>&6
9857 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9865 echo "$ac_t""$ol_cv_ndbm" 1>&6
9866 if test $ol_cv_ndbm = yes ; then
9867 cat >> confdefs.h <<\EOF
9874 if test $ol_cv_ndbm = yes ; then
9876 ol_with_ldbm_api=ndbm
9878 if test $ol_cv_lib_ndbm != yes ; then
9879 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9884 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9885 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9886 if test $ol_enable_ldbm = yes ; then
9887 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9890 echo "configure: warning: disabling LDBM" 1>&2
9894 if test $ol_enable_wrappers != no ; then
9895 for ac_hdr in tcpd.h
9897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9899 echo "configure:9900: checking for $ac_hdr" >&5
9900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9901 echo $ac_n "(cached) $ac_c" 1>&6
9903 cat > conftest.$ac_ext <<EOF
9904 #line 9905 "configure"
9905 #include "confdefs.h"
9908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9909 { (eval echo configure:9910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9911 if test -z "$ac_err"; then
9913 eval "ac_cv_header_$ac_safe=yes"
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9919 eval "ac_cv_header_$ac_safe=no"
9923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9924 echo "$ac_t""yes" 1>&6
9925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9926 cat >> confdefs.h <<EOF
9927 #define $ac_tr_hdr 1
9931 echo "$ac_t""no" 1>&6
9936 if test $ac_cv_header_tcpd_h != yes ; then
9939 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9940 echo "configure:9941: checking for main in -lwrap" >&5
9941 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
9942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9943 echo $ac_n "(cached) $ac_c" 1>&6
9945 ac_save_LIBS="$LIBS"
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9957 eval "ac_cv_lib_$ac_lib_var=yes"
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 eval "ac_cv_lib_$ac_lib_var=no"
9965 LIBS="$ac_save_LIBS"
9968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9969 echo "$ac_t""yes" 1>&6
9972 echo "$ac_t""no" 1>&6
9978 if test $have_wrappers = yes ; then
9979 cat >> confdefs.h <<\EOF
9983 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9985 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9986 echo "configure:9987: checking for main in -lnsl" >&5
9987 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
9988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9991 ac_save_LIBS="$LIBS"
9993 cat > conftest.$ac_ext <<EOF
9994 #line 9995 "configure"
9995 #include "confdefs.h"
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10003 eval "ac_cv_lib_$ac_lib_var=yes"
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10008 eval "ac_cv_lib_$ac_lib_var=no"
10011 LIBS="$ac_save_LIBS"
10014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10015 echo "$ac_t""yes" 1>&6
10016 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10018 cat >> confdefs.h <<EOF
10019 #define $ac_tr_lib 1
10025 echo "$ac_t""no" 1>&6
10029 echo "configure: warning: could not find -lwrap" 1>&2
10030 if test $ol_enable_wrappers = yes ; then
10031 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
10034 echo "configure: warning: disabling wrappers support" 1>&2
10035 ol_enable_wrappers=no
10039 if test $ol_enable_syslog != no ; then
10040 echo $ac_n "checking for openlog""... $ac_c" 1>&6
10041 echo "configure:10042: checking for openlog" >&5
10042 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
10043 echo $ac_n "(cached) $ac_c" 1>&6
10045 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure"
10047 #include "confdefs.h"
10048 /* System header to define __stub macros and hopefully few prototypes,
10049 which can conflict with char openlog(); below. */
10050 #include <assert.h>
10051 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10058 /* The GNU C library defines this for functions which it implements
10059 to always fail with ENOSYS. Some functions are actually named
10060 something starting with __ and the normal name is an alias. */
10061 #if defined (__stub_openlog) || defined (__stub___openlog)
10069 if { (eval echo configure:10070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10071 eval "ac_cv_func_openlog=yes"
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10076 eval "ac_cv_func_openlog=no"
10081 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
10082 echo "$ac_t""yes" 1>&6
10085 echo "$ac_t""no" 1>&6
10088 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
10089 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
10091 ol_enable_syslog=$ac_cv_func_openlog
10094 if test $ol_enable_dmalloc != no ; then
10095 for ac_hdr in dmalloc.h
10097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10099 echo "configure:10100: checking for $ac_hdr" >&5
10100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10109 { (eval echo configure:10110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10111 if test -z "$ac_err"; then
10113 eval "ac_cv_header_$ac_safe=yes"
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10119 eval "ac_cv_header_$ac_safe=no"
10123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10126 cat >> confdefs.h <<EOF
10127 #define $ac_tr_hdr 1
10131 echo "$ac_t""no" 1>&6
10135 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
10136 echo "configure:10137: checking for dmalloc_shutdown in -ldmalloc" >&5
10137 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
10138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10141 ac_save_LIBS="$LIBS"
10142 LIBS="-ldmalloc $LIBS"
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149 char dmalloc_shutdown();
10155 if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 eval "ac_cv_lib_$ac_lib_var=yes"
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10162 eval "ac_cv_lib_$ac_lib_var=no"
10165 LIBS="$ac_save_LIBS"
10168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10170 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10172 cat >> confdefs.h <<EOF
10173 #define $ac_tr_lib 1
10176 LIBS="-ldmalloc $LIBS"
10179 echo "$ac_t""no" 1>&6
10184 if test $ol_enable_tcl != no ; then
10185 for ac_hdr in tcl.h
10187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10189 echo "configure:10190: checking for $ac_hdr" >&5
10190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10199 { (eval echo configure:10200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10201 if test -z "$ac_err"; then
10203 eval "ac_cv_header_$ac_safe=yes"
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10209 eval "ac_cv_header_$ac_safe=no"
10213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10214 echo "$ac_t""yes" 1>&6
10215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10216 cat >> confdefs.h <<EOF
10217 #define $ac_tr_hdr 1
10221 echo "$ac_t""no" 1>&6
10226 if test $ac_cv_header_tcl_h != yes ; then
10229 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10230 echo "configure:10231: checking for main in -ltcl" >&5
10231 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
10232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10233 echo $ac_n "(cached) $ac_c" 1>&6
10235 ac_save_LIBS="$LIBS"
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10245 if { (eval echo configure:10246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247 eval "ac_cv_lib_$ac_lib_var=yes"
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10252 eval "ac_cv_lib_$ac_lib_var=no"
10255 LIBS="$ac_save_LIBS"
10258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10259 echo "$ac_t""yes" 1>&6
10260 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10262 echo "$ac_t""no" 1>&6
10267 if test $have_tcl != yes; then
10268 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10269 echo "configure:10270: checking for main in -ltcl7.6" >&5
10270 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
10271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10274 ac_save_LIBS="$LIBS"
10275 LIBS="-ltcl7.6 $LIBS"
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 eval "ac_cv_lib_$ac_lib_var=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_lib_$ac_lib_var=no"
10294 LIBS="$ac_save_LIBS"
10297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10301 echo "$ac_t""no" 1>&6
10307 if test $have_tcl != yes; then
10308 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10309 echo "configure:10310: checking for main in -ltcl8.0" >&5
10310 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
10311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10312 echo $ac_n "(cached) $ac_c" 1>&6
10314 ac_save_LIBS="$LIBS"
10315 LIBS="-ltcl8.0 $LIBS"
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10324 if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 eval "ac_cv_lib_$ac_lib_var=yes"
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
10331 eval "ac_cv_lib_$ac_lib_var=no"
10334 LIBS="$ac_save_LIBS"
10337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10339 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10341 echo "$ac_t""no" 1>&6
10348 if test $have_tcl != yes ; then
10349 echo "configure: warning: could not find -ltcl" 1>&2
10350 if test $ol_enable_tcl = yes ; then
10351 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10358 # ud needs termcap (should insert check here)
10360 for ac_hdr in termcap.h ncurses.h
10362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_hdr" >&5
10365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10374 { (eval echo configure:10375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10376 if test -z "$ac_err"; then
10378 eval "ac_cv_header_$ac_safe=yes"
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10384 eval "ac_cv_header_$ac_safe=no"
10388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10391 cat >> confdefs.h <<EOF
10392 #define $ac_tr_hdr 1
10396 echo "$ac_t""no" 1>&6
10401 if test $ol_link_termcap = no ; then
10402 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10403 echo "configure:10404: checking for tputs in -ltermcap" >&5
10404 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
10405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10408 ac_save_LIBS="$LIBS"
10409 LIBS="-ltermcap $LIBS"
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 eval "ac_cv_lib_$ac_lib_var=no"
10432 LIBS="$ac_save_LIBS"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10439 echo "$ac_t""no" 1>&6
10443 if test $have_termcap = yes ; then
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE_TERMCAP 1
10448 ol_link_termcap=yes
10449 TERMCAP_LIBS=-ltermcap
10453 if test $ol_link_termcap = no ; then
10454 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10455 echo "configure:10456: checking for initscr in -lncurses" >&5
10456 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
10457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
10460 ac_save_LIBS="$LIBS"
10461 LIBS="-lncurses $LIBS"
10462 cat > conftest.$ac_ext <<EOF
10463 #line 10464 "configure"
10464 #include "confdefs.h"
10465 /* Override any gcc2 internal prototype to avoid an error. */
10466 /* We use char because int might match the return type of a gcc2
10467 builtin and then its argument prototype would still apply. */
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10476 eval "ac_cv_lib_$ac_lib_var=yes"
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10481 eval "ac_cv_lib_$ac_lib_var=no"
10484 LIBS="$ac_save_LIBS"
10487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10491 echo "$ac_t""no" 1>&6
10495 if test $have_ncurses = yes ; then
10496 cat >> confdefs.h <<\EOF
10497 #define HAVE_NCURSES 1
10500 ol_link_termcap=yes
10501 TERMCAP_LIBS=-lncurses
10505 if test $ol_link_termcap = no ; then
10506 cat >> confdefs.h <<\EOF
10507 #define NO_TERMCAP 1
10514 if test $ol_with_cyrus_sasl != no ; then
10515 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
10516 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
10517 echo "configure:10518: checking for sasl.h" >&5
10518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10527 { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529 if test -z "$ac_err"; then
10531 eval "ac_cv_header_$ac_safe=yes"
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 eval "ac_cv_header_$ac_safe=no"
10541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10545 echo "$ac_t""no" 1>&6
10549 if test $ac_cv_header_sasl_h = yes ; then
10550 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
10551 echo "configure:10552: checking for sasl_client_init in -lsasl" >&5
10552 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
10553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10556 ac_save_LIBS="$LIBS"
10557 LIBS="-lsasl $LIBS"
10558 cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 /* Override any gcc2 internal prototype to avoid an error. */
10562 /* We use char because int might match the return type of a gcc2
10563 builtin and then its argument prototype would still apply. */
10564 char sasl_client_init();
10570 if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10572 eval "ac_cv_lib_$ac_lib_var=yes"
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10577 eval "ac_cv_lib_$ac_lib_var=no"
10580 LIBS="$ac_save_LIBS"
10583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10585 have_cyrus_sasl=yes
10587 echo "$ac_t""no" 1>&6
10592 if test $have_cyrus_sasl != no ; then
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_CYRUS_SASL 1
10602 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
10603 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
10608 if test $ol_with_fetch != no ; then
10610 LIBS="-lfetch -lcom_err $LIBS"
10611 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
10612 echo "configure:10613: checking fetch(3) library" >&5
10613 if eval "test \"`echo '$''{'ol_cv_lib_fetch'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10621 #include <sys/param.h>
10625 struct url *u = fetchParseURL("file:///");
10628 if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10630 ol_cv_lib_fetch=yes
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10640 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
10642 if test $ol_cv_lib_fetch != no ; then
10643 ol_link_fetch="-lfetch -lcom_err"
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE_FETCH 1
10651 if test $ol_cv_lib_fetch != no ; then
10652 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
10653 ol_link_fetch=freebsd
10655 elif test $ol_with_fetch != auto ; then
10656 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
10660 ol_link_readline=no
10661 if test $ol_with_readline != no ; then
10662 for ac_hdr in readline/readline.h readline/history.h
10664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10666 echo "configure:10667: checking for $ac_hdr" >&5
10667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10668 echo $ac_n "(cached) $ac_c" 1>&6
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10676 { (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10678 if test -z "$ac_err"; then
10680 eval "ac_cv_header_$ac_safe=yes"
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10686 eval "ac_cv_header_$ac_safe=no"
10690 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10691 echo "$ac_t""yes" 1>&6
10692 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10693 cat >> confdefs.h <<EOF
10694 #define $ac_tr_hdr 1
10698 echo "$ac_t""no" 1>&6
10703 if test $ac_cv_header_readline_readline_h = yes ; then
10705 LIBS="$TERMCAP_LIBS $LIBS"
10706 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10707 echo "configure:10708: checking for readline in -lreadline" >&5
10708 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
10709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10712 ac_save_LIBS="$LIBS"
10713 LIBS="-lreadline $LIBS"
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10743 echo "$ac_t""no" 1>&6
10749 if test $have_readline = yes ; then
10750 ol_with_readline=found
10751 ol_link_readline=yes
10753 READLINE_LIBS="-lreadline"
10758 if test $ol_link_readline = yes ; then
10759 cat >> confdefs.h <<\EOF
10760 #define HAVE_READLINE 1
10766 # FreeBSD (and others) have crypt(3) in -lcrypt
10767 if test $ol_enable_crypt != no ; then
10768 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10769 echo "configure:10770: checking for crypt" >&5
10770 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
10771 echo $ac_n "(cached) $ac_c" 1>&6
10773 cat > conftest.$ac_ext <<EOF
10774 #line 10775 "configure"
10775 #include "confdefs.h"
10776 /* System header to define __stub macros and hopefully few prototypes,
10777 which can conflict with char crypt(); below. */
10778 #include <assert.h>
10779 /* Override any gcc2 internal prototype to avoid an error. */
10780 /* We use char because int might match the return type of a gcc2
10781 builtin and then its argument prototype would still apply. */
10786 /* The GNU C library defines this for functions which it implements
10787 to always fail with ENOSYS. Some functions are actually named
10788 something starting with __ and the normal name is an alias. */
10789 #if defined (__stub_crypt) || defined (__stub___crypt)
10797 if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10799 eval "ac_cv_func_crypt=yes"
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10804 eval "ac_cv_func_crypt=no"
10809 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10813 echo "$ac_t""no" 1>&6
10815 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10816 echo "configure:10817: checking for crypt in -lcrypt" >&5
10817 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10821 ac_save_LIBS="$LIBS"
10822 LIBS="-lcrypt $LIBS"
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 eval "ac_cv_lib_$ac_lib_var=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_lib_$ac_lib_var=no"
10845 LIBS="$ac_save_LIBS"
10848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10853 echo "$ac_t""no" 1>&6
10860 if test $have_crypt = yes ; then
10861 cat >> confdefs.h <<\EOF
10862 #define HAVE_CRYPT 1
10866 echo "configure: warning: could not find crypt" 1>&2
10867 if test $ol_enable_crypt = yes ; then
10868 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10871 echo "configure: warning: disabling crypt support" 1>&2
10876 # FreeBSD (and others) have setproctitle(3) in -lutil
10877 if test $ol_enable_proctitle != no ; then
10878 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10879 echo "configure:10880: checking for setproctitle" >&5
10880 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
10881 echo $ac_n "(cached) $ac_c" 1>&6
10883 cat > conftest.$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10886 /* System header to define __stub macros and hopefully few prototypes,
10887 which can conflict with char setproctitle(); below. */
10888 #include <assert.h>
10889 /* Override any gcc2 internal prototype to avoid an error. */
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char setproctitle();
10896 /* The GNU C library defines this for functions which it implements
10897 to always fail with ENOSYS. Some functions are actually named
10898 something starting with __ and the normal name is an alias. */
10899 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10907 if { (eval echo configure:10908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10909 eval "ac_cv_func_setproctitle=yes"
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10914 eval "ac_cv_func_setproctitle=no"
10919 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10920 echo "$ac_t""yes" 1>&6
10921 have_setproctitle=yes
10923 echo "$ac_t""no" 1>&6
10925 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10926 echo "configure:10927: checking for setproctitle in -lutil" >&5
10927 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
10928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10929 echo $ac_n "(cached) $ac_c" 1>&6
10931 ac_save_LIBS="$LIBS"
10932 LIBS="-lutil $LIBS"
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 /* Override any gcc2 internal prototype to avoid an error. */
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10939 char setproctitle();
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10947 eval "ac_cv_lib_$ac_lib_var=yes"
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10952 eval "ac_cv_lib_$ac_lib_var=no"
10955 LIBS="$ac_save_LIBS"
10958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10959 echo "$ac_t""yes" 1>&6
10960 have_setproctitle=yes
10961 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10963 echo "$ac_t""no" 1>&6
10964 have_setproctitle=no
10965 LIBOBJS="$LIBOBJS setproctitle.o"
10971 if test $have_setproctitle = yes ; then
10972 cat >> confdefs.h <<\EOF
10973 #define HAVE_SETPROCTITLE 1
10979 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10980 echo "configure:10981: checking for uid_t in sys/types.h" >&5
10981 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10982 echo $ac_n "(cached) $ac_c" 1>&6
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include <sys/types.h>
10989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10990 egrep "uid_t" >/dev/null 2>&1; then
10992 ac_cv_type_uid_t=yes
10995 ac_cv_type_uid_t=no
11001 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11002 if test $ac_cv_type_uid_t = no; then
11003 cat >> confdefs.h <<\EOF
11007 cat >> confdefs.h <<\EOF
11013 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
11014 echo "configure:11015: checking type of array argument to getgroups" >&5
11015 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11018 if test "$cross_compiling" = yes; then
11019 ac_cv_type_getgroups=cross
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11025 /* Thanks to Mike Rendell for this test. */
11026 #include <sys/types.h>
11029 #define MAX(x, y) ((x) > (y) ? (x) : (y))
11032 gid_t gidset[NGID];
11034 union { gid_t gval; long lval; } val;
11037 for (i = 0; i < NGID; i++)
11038 gidset[i] = val.gval;
11039 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
11041 /* Exit non-zero if getgroups seems to require an array of ints. This
11042 happens when gid_t is short but getgroups modifies an array of ints. */
11043 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11049 ac_cv_type_getgroups=gid_t
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 ac_cv_type_getgroups=int
11059 if test $ac_cv_type_getgroups = cross; then
11060 cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 #include <unistd.h>
11065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11066 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
11068 ac_cv_type_getgroups=gid_t
11071 ac_cv_type_getgroups=int
11078 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
11079 cat >> confdefs.h <<EOF
11080 #define GETGROUPS_T $ac_cv_type_getgroups
11083 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11084 echo "configure:11085: checking for ANSI C header files" >&5
11085 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <stdlib.h>
11092 #include <stdarg.h>
11093 #include <string.h>
11096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11097 { (eval echo configure:11098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11099 if test -z "$ac_err"; then
11101 ac_cv_header_stdc=yes
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 ac_cv_header_stdc=no
11111 if test $ac_cv_header_stdc = yes; then
11112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 #include <string.h>
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119 egrep "memchr" >/dev/null 2>&1; then
11123 ac_cv_header_stdc=no
11129 if test $ac_cv_header_stdc = yes; then
11130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11134 #include <stdlib.h>
11136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11137 egrep "free" >/dev/null 2>&1; then
11141 ac_cv_header_stdc=no
11147 if test $ac_cv_header_stdc = yes; then
11148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11149 if test "$cross_compiling" = yes; then
11152 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11156 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11157 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11159 int main () { int i; for (i = 0; i < 256; i++)
11160 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 ac_cv_header_stdc=no
11179 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11180 if test $ac_cv_header_stdc = yes; then
11181 cat >> confdefs.h <<\EOF
11182 #define STDC_HEADERS 1
11187 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11188 echo "configure:11189: checking for mode_t" >&5
11189 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 #include <sys/types.h>
11197 #include <stdlib.h>
11198 #include <stddef.h>
11201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11202 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11204 ac_cv_type_mode_t=yes
11207 ac_cv_type_mode_t=no
11212 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11213 if test $ac_cv_type_mode_t = no; then
11214 cat >> confdefs.h <<\EOF
11220 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11221 echo "configure:11222: checking for off_t" >&5
11222 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11223 echo $ac_n "(cached) $ac_c" 1>&6
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228 #include <sys/types.h>
11230 #include <stdlib.h>
11231 #include <stddef.h>
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11237 ac_cv_type_off_t=yes
11240 ac_cv_type_off_t=no
11245 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11246 if test $ac_cv_type_off_t = no; then
11247 cat >> confdefs.h <<\EOF
11253 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11254 echo "configure:11255: checking for pid_t" >&5
11255 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11261 #include <sys/types.h>
11263 #include <stdlib.h>
11264 #include <stddef.h>
11267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11268 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11270 ac_cv_type_pid_t=yes
11273 ac_cv_type_pid_t=no
11278 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11279 if test $ac_cv_type_pid_t = no; then
11280 cat >> confdefs.h <<\EOF
11286 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11287 echo "configure:11288: checking for ptrdiff_t" >&5
11288 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11294 #include <stddef.h>
11299 if { (eval echo configure:11300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11301 am_cv_type_ptrdiff_t=yes
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 am_cv_type_ptrdiff_t=no
11311 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11312 if test $am_cv_type_ptrdiff_t = yes; then
11313 cat >> confdefs.h <<\EOF
11314 #define HAVE_PTRDIFF_T 1
11319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11320 echo "configure:11321: checking return type of signal handlers" >&5
11321 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 #include <sys/types.h>
11328 #include <signal.h>
11333 extern "C" void (*signal (int, void (*)(int)))(int);
11335 void (*signal ()) ();
11342 if { (eval echo configure:11343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11344 ac_cv_type_signal=void
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11349 ac_cv_type_signal=int
11354 echo "$ac_t""$ac_cv_type_signal" 1>&6
11355 cat >> confdefs.h <<EOF
11356 #define RETSIGTYPE $ac_cv_type_signal
11360 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11361 echo "configure:11362: checking for sig_atomic_t" >&5
11362 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11365 cat > conftest.$ac_ext <<EOF
11366 #line 11367 "configure"
11367 #include "confdefs.h"
11368 #include <signal.h>
11370 sig_atomic_t atomic;
11373 if { (eval echo configure:11374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11375 ol_cv_type_sig_atomic_t=yes
11377 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5
11380 ol_cv_type_sig_atomic_t=no
11385 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11386 if test $ol_cv_type_sig_atomic_t = no; then
11387 cat >> confdefs.h <<\EOF
11388 #define sig_atomic_t int
11393 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11394 echo "configure:11395: checking for size_t" >&5
11395 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 #include <sys/types.h>
11403 #include <stdlib.h>
11404 #include <stddef.h>
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11410 ac_cv_type_size_t=yes
11413 ac_cv_type_size_t=no
11418 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11419 if test $ac_cv_type_size_t = no; then
11420 cat >> confdefs.h <<\EOF
11421 #define size_t unsigned
11426 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11427 echo "configure:11428: checking for socklen_t" >&5
11428 if eval "test \"`echo '$''{'ol_cv_type_socklen_t'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11435 #ifdef HAVE_SYS_TYPES_H
11436 #include <sys/types.h>
11438 #ifdef HAVE_SYS_SOCKET_H
11439 #include <sys/socket.h>
11446 if { (eval echo configure:11447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11448 ol_cv_type_socklen_t=yes
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 ol_cv_type_socklen_t=no
11458 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11459 if test $ol_cv_type_socklen_t = no; then
11460 cat >> confdefs.h <<\EOF
11461 #define socklen_t int
11466 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11467 echo "configure:11468: checking for st_blksize in struct stat" >&5
11468 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 #include <sys/types.h>
11475 #include <sys/stat.h>
11477 struct stat s; s.st_blksize;
11480 if { (eval echo configure:11481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11482 ac_cv_struct_st_blksize=yes
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11487 ac_cv_struct_st_blksize=no
11492 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
11493 if test $ac_cv_struct_st_blksize = yes; then
11494 cat >> confdefs.h <<\EOF
11495 #define HAVE_ST_BLKSIZE 1
11500 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11501 echo "configure:11502: checking whether time.h and sys/time.h may both be included" >&5
11502 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11508 #include <sys/types.h>
11509 #include <sys/time.h>
11515 if { (eval echo configure:11516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11517 ac_cv_header_time=yes
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11522 ac_cv_header_time=no
11527 echo "$ac_t""$ac_cv_header_time" 1>&6
11528 if test $ac_cv_header_time = yes; then
11529 cat >> confdefs.h <<\EOF
11530 #define TIME_WITH_SYS_TIME 1
11535 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11536 echo "configure:11537: checking whether struct tm is in sys/time.h or time.h" >&5
11537 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <sys/types.h>
11546 struct tm *tp; tp->tm_sec;
11549 if { (eval echo configure:11550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11551 ac_cv_struct_tm=time.h
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11556 ac_cv_struct_tm=sys/time.h
11561 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11562 if test $ac_cv_struct_tm = sys/time.h; then
11563 cat >> confdefs.h <<\EOF
11564 #define TM_IN_SYS_TIME 1
11569 # test for pw_gecos in struct passwd
11570 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11571 echo "configure:11572: checking struct passwd for pw_gecos" >&5
11572 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11583 pwd.pw_gecos = pwd.pw_name;
11587 if { (eval echo configure:11588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11589 ol_cv_struct_passwd_pw_gecos=yes
11591 echo "configure: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11594 ol_cv_struct_passwd_pw_gecos=no
11599 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11600 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11601 cat >> confdefs.h <<\EOF
11602 #define HAVE_PW_GECOS 1
11607 # test for pw_passwd in struct passwd
11608 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11609 echo "configure:11610: checking struct passwd for pw_passwd" >&5
11610 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure"
11616 #include "confdefs.h"
11621 pwd.pw_passwd = pwd.pw_name;
11625 if { (eval echo configure:11626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11627 ol_cv_struct_passwd_pw_passwd=yes
11629 echo "configure: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11632 ol_cv_struct_passwd_pw_passwd=no
11637 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11638 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11639 cat >> confdefs.h <<\EOF
11640 #define HAVE_PW_PASSWD 1
11646 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11647 echo "configure:11648: checking if toupper() requires islower()" >&5
11648 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11652 if test "$cross_compiling" = yes; then
11653 ol_cv_c_upper_lower=safe
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11657 "configure"
11657 #include "confdefs.h"
11662 if ('C' == toupper('C'))
11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11670 ol_cv_c_upper_lower=no
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11675 ol_cv_c_upper_lower=yes
11682 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11683 if test $ol_cv_c_upper_lower != no ; then
11684 cat >> confdefs.h <<\EOF
11685 #define C_UPPER_LOWER 1
11690 echo $ac_n "checking for working const""... $ac_c" 1>&6
11691 echo "configure:11692: checking for working const" >&5
11692 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11701 /* Ultrix mips cc rejects this. */
11702 typedef int charset[2]; const charset x;
11703 /* SunOS 4.1.1 cc rejects this. */
11704 char const *const *ccp;
11706 /* NEC SVR4.0.2 mips cc rejects this. */
11707 struct point {int x, y;};
11708 static struct point const zero = {0,0};
11709 /* AIX XL C 1.02.0.0 rejects this.
11710 It does not let you subtract one const X* pointer from another in an arm
11711 of an if-expression whose if-part is not a constant expression */
11712 const char *g = "string";
11713 ccp = &g + (g ? g-g : 0);
11714 /* HPUX 7.0 cc rejects these. */
11717 ccp = (char const *const *) p;
11718 { /* SCO 3.2v4 cc rejects this. */
11720 char const *s = 0 ? (char *) 0 : (char const *) 0;
11724 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11725 int x[] = {25, 17};
11726 const int *foo = &x[0];
11729 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11730 typedef const int *iptr;
11734 { /* AIX XL C 1.02.0.0 rejects this saying
11735 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11736 struct s { int j; const int *ap[3]; };
11737 struct s *b; b->j = 5;
11739 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11740 const int foo = 10;
11745 if { (eval echo configure:11746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11757 echo "$ac_t""$ac_cv_c_const" 1>&6
11758 if test $ac_cv_c_const = no; then
11759 cat >> confdefs.h <<\EOF
11765 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11766 echo "configure:11767: checking if compiler understands volatile" >&5
11767 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11770 cat > conftest.$ac_ext <<EOF
11771 #line 11772 "configure"
11772 #include "confdefs.h"
11775 volatile int a; int * volatile b = x ? &y : &z;
11776 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11780 if { (eval echo configure:11781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11782 ol_cv_c_volatile=yes
11784 echo "configure: failed program was:" >&5
11785 cat conftest.$ac_ext >&5
11787 ol_cv_c_volatile=no
11792 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11793 if test $ol_cv_c_volatile = yes; then
11796 cat >> confdefs.h <<\EOF
11803 if test $cross_compiling = yes ; then
11804 cat >> confdefs.h <<\EOF
11805 #define CROSS_COMPILING 1
11809 cat >> confdefs.h <<\EOF
11810 #define LBER_INT_T long
11813 cat >> confdefs.h <<\EOF
11814 #define LBER_TAG_T long
11817 cat >> confdefs.h <<\EOF
11818 #define LBER_SOCKET_T int
11823 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11824 echo "configure:11825: checking whether byte ordering is bigendian" >&5
11825 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11826 echo $ac_n "(cached) $ac_c" 1>&6
11828 ac_cv_c_bigendian=unknown
11829 # See if sys/param.h defines the BYTE_ORDER macro.
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <sys/types.h>
11834 #include <sys/param.h>
11837 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11838 bogus endian macros
11842 if { (eval echo configure:11843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11844 # It does; now see whether it defined to BIG_ENDIAN or not.
11845 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure"
11847 #include "confdefs.h"
11848 #include <sys/types.h>
11849 #include <sys/param.h>
11852 #if BYTE_ORDER != BIG_ENDIAN
11857 if { (eval echo configure:11858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11859 ac_cv_c_bigendian=yes
11861 echo "configure: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11864 ac_cv_c_bigendian=no
11868 echo "configure: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11872 if test $ac_cv_c_bigendian = unknown; then
11873 if test "$cross_compiling" = yes; then
11874 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11876 cat > conftest.$ac_ext <<EOF
11877 #line 11878 "configure"
11878 #include "confdefs.h"
11880 /* Are we little or big endian? From Harbison&Steele. */
11884 char c[sizeof (long)];
11887 exit (u.c[sizeof (long) - 1] == 1);
11890 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11892 ac_cv_c_bigendian=no
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11897 ac_cv_c_bigendian=yes
11905 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11906 if test $ac_cv_c_bigendian = yes; then
11907 cat >> confdefs.h <<\EOF
11908 #define WORDS_BIGENDIAN 1
11913 echo $ac_n "checking size of short""... $ac_c" 1>&6
11914 echo "configure:11915: checking size of short" >&5
11915 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11916 echo $ac_n "(cached) $ac_c" 1>&6
11918 if test "$cross_compiling" = yes; then
11919 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11921 cat > conftest.$ac_ext <<EOF
11922 #line 11923 "configure"
11923 #include "confdefs.h"
11927 FILE *f=fopen("conftestval", "w");
11929 fprintf(f, "%d\n", sizeof(short));
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11935 ac_cv_sizeof_short=`cat conftestval`
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11940 ac_cv_sizeof_short=0
11946 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11947 cat >> confdefs.h <<EOF
11948 #define SIZEOF_SHORT $ac_cv_sizeof_short
11952 echo $ac_n "checking size of int""... $ac_c" 1>&6
11953 echo "configure:11954: checking size of int" >&5
11954 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11957 if test "$cross_compiling" = yes; then
11958 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11966 FILE *f=fopen("conftestval", "w");
11968 fprintf(f, "%d\n", sizeof(int));
11972 if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11974 ac_cv_sizeof_int=`cat conftestval`
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11985 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11986 cat >> confdefs.h <<EOF
11987 #define SIZEOF_INT $ac_cv_sizeof_int
11991 echo $ac_n "checking size of long""... $ac_c" 1>&6
11992 echo "configure:11993: checking size of long" >&5
11993 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11994 echo $ac_n "(cached) $ac_c" 1>&6
11996 if test "$cross_compiling" = yes; then
11997 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12005 FILE *f=fopen("conftestval", "w");
12007 fprintf(f, "%d\n", sizeof(long));
12011 if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12013 ac_cv_sizeof_long=`cat conftestval`
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12018 ac_cv_sizeof_long=0
12024 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12025 cat >> confdefs.h <<EOF
12026 #define SIZEOF_LONG $ac_cv_sizeof_long
12031 if test "$ac_cv_sizeof_int" -lt 4 ; then
12032 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
12034 cat >> confdefs.h <<\EOF
12035 #define LBER_INT_T long
12038 cat >> confdefs.h <<\EOF
12039 #define LBER_TAG_T long
12042 cat >> confdefs.h <<\EOF
12043 #define LBER_SOCKET_T int
12047 cat >> confdefs.h <<\EOF
12048 #define LBER_INT_T int
12051 cat >> confdefs.h <<\EOF
12052 #define LBER_TAG_T long
12055 cat >> confdefs.h <<\EOF
12056 #define LBER_SOCKET_T int
12062 cat >> confdefs.h <<\EOF
12063 #define LBER_LEN_T long
12067 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
12068 echo "configure:12069: checking for 8-bit clean memcmp" >&5
12069 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
12070 echo $ac_n "(cached) $ac_c" 1>&6
12072 if test "$cross_compiling" = yes; then
12073 ac_cv_func_memcmp_clean=no
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12081 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12082 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
12086 if { (eval echo configure:12087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12088 ac_cv_func_memcmp_clean=yes
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12093 ac_cv_func_memcmp_clean=no
12100 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
12101 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
12103 echo $ac_n "checking for strftime""... $ac_c" 1>&6
12104 echo "configure:12105: checking for strftime" >&5
12105 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
12106 echo $ac_n "(cached) $ac_c" 1>&6
12108 cat > conftest.$ac_ext <<EOF
12109 #line 12110 "configure"
12110 #include "confdefs.h"
12111 /* System header to define __stub macros and hopefully few prototypes,
12112 which can conflict with char strftime(); below. */
12113 #include <assert.h>
12114 /* Override any gcc2 internal prototype to avoid an error. */
12115 /* We use char because int might match the return type of a gcc2
12116 builtin and then its argument prototype would still apply. */
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined (__stub_strftime) || defined (__stub___strftime)
12132 if { (eval echo configure:12133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12134 eval "ac_cv_func_strftime=yes"
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12139 eval "ac_cv_func_strftime=no"
12144 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
12145 echo "$ac_t""yes" 1>&6
12146 cat >> confdefs.h <<\EOF
12147 #define HAVE_STRFTIME 1
12151 echo "$ac_t""no" 1>&6
12152 # strftime is in -lintl on SCO UNIX.
12153 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
12154 echo "configure:12155: checking for strftime in -lintl" >&5
12155 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
12156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12159 ac_save_LIBS="$LIBS"
12160 LIBS="-lintl $LIBS"
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12163 "configure"
12163 #include "confdefs.h"
12164 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12173 if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175 eval "ac_cv_lib_$ac_lib_var=yes"
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12180 eval "ac_cv_lib_$ac_lib_var=no"
12183 LIBS="$ac_save_LIBS"
12186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12187 echo "$ac_t""yes" 1>&6
12188 cat >> confdefs.h <<\EOF
12189 #define HAVE_STRFTIME 1
12192 LIBS="-lintl $LIBS"
12194 echo "$ac_t""no" 1>&6
12200 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
12201 echo "configure:12202: checking for inet_aton()" >&5
12202 if eval "test \"`echo '$''{'ol_cv_func_inet_aton'+set}'`\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12205 cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12209 #ifdef HAVE_SYS_TYPES_H
12210 # include <sys/types.h>
12212 #ifdef HAVE_SYS_SOCKET_H
12213 # include <sys/socket.h>
12214 # ifdef HAVE_SYS_SELECT_H
12215 # include <sys/select.h>
12217 # include <netinet/in.h>
12218 # ifdef HAVE_ARPA_INET_H
12219 # include <arpa/inet.h>
12225 int rc = inet_aton( "255.255.255.255", &in );
12228 if { (eval echo configure:12229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12230 ol_cv_func_inet_aton=yes
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12235 ol_cv_func_inet_aton=no
12240 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
12241 if test $ol_cv_func_inet_aton != no; then
12242 cat >> confdefs.h <<\EOF
12243 #define HAVE_INET_ATON 1
12249 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12250 echo "configure:12251: checking for vprintf" >&5
12251 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12252 echo $ac_n "(cached) $ac_c" 1>&6
12254 cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12257 /* System header to define __stub macros and hopefully few prototypes,
12258 which can conflict with char vprintf(); below. */
12259 #include <assert.h>
12260 /* Override any gcc2 internal prototype to avoid an error. */
12261 /* We use char because int might match the return type of a gcc2
12262 builtin and then its argument prototype would still apply. */
12267 /* The GNU C library defines this for functions which it implements
12268 to always fail with ENOSYS. Some functions are actually named
12269 something starting with __ and the normal name is an alias. */
12270 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12278 if { (eval echo configure:12279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12280 eval "ac_cv_func_vprintf=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 eval "ac_cv_func_vprintf=no"
12290 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12291 echo "$ac_t""yes" 1>&6
12292 cat >> confdefs.h <<\EOF
12293 #define HAVE_VPRINTF 1
12297 echo "$ac_t""no" 1>&6
12300 if test "$ac_cv_func_vprintf" != yes; then
12301 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12302 echo "configure:12303: checking for _doprnt" >&5
12303 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309 /* System header to define __stub macros and hopefully few prototypes,
12310 which can conflict with char _doprnt(); below. */
12311 #include <assert.h>
12312 /* Override any gcc2 internal prototype to avoid an error. */
12313 /* We use char because int might match the return type of a gcc2
12314 builtin and then its argument prototype would still apply. */
12319 /* The GNU C library defines this for functions which it implements
12320 to always fail with ENOSYS. Some functions are actually named
12321 something starting with __ and the normal name is an alias. */
12322 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332 eval "ac_cv_func__doprnt=yes"
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12337 eval "ac_cv_func__doprnt=no"
12342 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12343 echo "$ac_t""yes" 1>&6
12344 cat >> confdefs.h <<\EOF
12345 #define HAVE_DOPRNT 1
12349 echo "$ac_t""no" 1>&6
12355 if test $ac_cv_func_vprintf = yes ; then
12356 for ac_func in vsnprintf vsprintf
12358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12359 echo "configure:12360: checking for $ac_func" >&5
12360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12361 echo $ac_n "(cached) $ac_c" 1>&6
12363 cat > conftest.$ac_ext <<EOF
12364 #line 12365 "configure"
12365 #include "confdefs.h"
12366 /* System header to define __stub macros and hopefully few prototypes,
12367 which can conflict with char $ac_func(); below. */
12368 #include <assert.h>
12369 /* Override any gcc2 internal prototype to avoid an error. */
12370 /* We use char because int might match the return type of a gcc2
12371 builtin and then its argument prototype would still apply. */
12376 /* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12387 if { (eval echo configure:12388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12389 eval "ac_cv_func_$ac_func=yes"
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12394 eval "ac_cv_func_$ac_func=no"
12399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12400 echo "$ac_t""yes" 1>&6
12401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12402 cat >> confdefs.h <<EOF
12403 #define $ac_tr_func 1
12407 echo "$ac_t""no" 1>&6
12461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12462 echo "configure:12463: checking for $ac_func" >&5
12463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char $ac_func(); below. */
12471 #include <assert.h>
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 /* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12479 /* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490 if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12492 eval "ac_cv_func_$ac_func=yes"
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12497 eval "ac_cv_func_$ac_func=no"
12502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12505 cat >> confdefs.h <<EOF
12506 #define $ac_tr_func 1
12510 echo "$ac_t""no" 1>&6
12515 for ac_func in getopt tempnam
12517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12518 echo "configure:12519: checking for $ac_func" >&5
12519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12520 echo $ac_n "(cached) $ac_c" 1>&6
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12524 "configure"
12524 #include "confdefs.h"
12525 /* System header to define __stub macros and hopefully few prototypes,
12526 which can conflict with char $ac_func(); below. */
12527 #include <assert.h>
12528 /* Override any gcc2 internal prototype to avoid an error. */
12529 /* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12535 /* The GNU C library defines this for functions which it implements
12536 to always fail with ENOSYS. Some functions are actually named
12537 something starting with __ and the normal name is an alias. */
12538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12548 eval "ac_cv_func_$ac_func=yes"
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 eval "ac_cv_func_$ac_func=no"
12558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12559 echo "$ac_t""yes" 1>&6
12560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12561 cat >> confdefs.h <<EOF
12562 #define $ac_tr_func 1
12566 echo "$ac_t""no" 1>&6
12567 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12573 # Check Configuration
12574 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12575 echo "configure:12576: checking declaration of sys_errlist" >&5
12576 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12580 cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12585 #include <sys/types.h>
12588 char *c = (char *) *sys_errlist
12591 if { (eval echo configure:12592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12593 ol_cv_dcl_sys_errlist=yes
12594 ol_cv_have_sys_errlist=yes
12596 echo "configure: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12599 ol_cv_dcl_sys_errlist=no
12604 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12606 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12607 if test $ol_cv_dcl_sys_errlist = no ; then
12608 cat >> confdefs.h <<\EOF
12609 #define DECL_SYS_ERRLIST 1
12613 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12614 echo "configure:12615: checking existence of sys_errlist" >&5
12615 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
12616 echo $ac_n "(cached) $ac_c" 1>&6
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12624 char *c = (char *) *sys_errlist
12627 if { (eval echo configure:12628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 ol_cv_have_sys_errlist=yes
12631 echo "configure: failed program was:" >&5
12632 cat conftest.$ac_ext >&5
12634 ol_cv_have_sys_errlist=no
12639 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12641 if test $ol_cv_have_sys_errlist = yes ; then
12642 cat >> confdefs.h <<\EOF
12643 #define HAVE_SYS_ERRLIST 1
12650 if test "$ol_enable_debug" != no ; then
12651 cat >> confdefs.h <<\EOF
12652 #define LDAP_DEBUG 1
12656 if test "$ol_enable_syslog" = yes ; then
12657 cat >> confdefs.h <<\EOF
12658 #define LDAP_SYSLOG 1
12662 if test "$ol_enable_libui" = yes ; then
12663 cat >> confdefs.h <<\EOF
12664 #define LDAP_LIBUI 1
12668 if test "$ol_enable_cache" = no ; then
12669 cat >> confdefs.h <<\EOF
12670 #define LDAP_NOCACHE 1
12674 if test "$ol_enable_dns" != no ; then
12675 cat >> confdefs.h <<\EOF
12676 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12680 if test "$ol_enable_proctitle" != no ; then
12681 cat >> confdefs.h <<\EOF
12682 #define LDAP_PROCTITLE 1
12686 if test "$ol_enable_referrals" != no ; then
12687 cat >> confdefs.h <<\EOF
12688 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12692 if test "$ol_enable_cldap" != no ; then
12693 cat >> confdefs.h <<\EOF
12694 #define LDAP_CONNECTIONLESS 1
12699 if test "$ol_enable_crypt" != no ; then
12700 cat >> confdefs.h <<\EOF
12701 #define SLAPD_CRYPT 1
12705 if test "$ol_enable_cleartext" != no ; then
12706 cat >> confdefs.h <<\EOF
12707 #define SLAPD_CLEARTEXT 1
12711 if test "$ol_enable_multimaster" != no ; then
12712 cat >> confdefs.h <<\EOF
12713 #define SLAPD_MULTIMASTER 1
12717 if test "$ol_enable_phonetic" != no ; then
12718 cat >> confdefs.h <<\EOF
12719 #define SLAPD_PHONETIC 1
12723 if test "$ol_enable_rlookups" != no ; then
12724 cat >> confdefs.h <<\EOF
12725 #define SLAPD_RLOOKUPS 1
12730 if test "$ol_link_modules" != no ; then
12731 cat >> confdefs.h <<\EOF
12732 #define SLAPD_MODULES 1
12736 MODULES_LIBS=-lltdl
12737 SLAPD_MODULES_LDFLAGS="-dlopen self"
12740 if test "$ol_link_bdb2" != no ; then
12741 cat >> confdefs.h <<\EOF
12742 #define SLAPD_BDB2 1
12747 if test "$ol_with_bdb2_module" != static ; then
12748 cat >> confdefs.h <<\EOF
12749 #define SLAPD_BDB2_DYNAMIC 1
12753 BUILD_BDB2_DYNAMIC=shared
12754 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
12758 if test "$ol_enable_ldap" != no ; then
12759 cat >> confdefs.h <<\EOF
12760 #define SLAPD_LDAP 1
12765 if test "$ol_with_ldap_module" != static ; then
12766 cat >> confdefs.h <<\EOF
12767 #define SLAPD_LDAP_DYNAMIC 1
12771 BUILD_LDAP_DYNAMIC=shared
12772 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
12776 if test "$ol_link_ldbm" != no ; then
12777 cat >> confdefs.h <<\EOF
12778 #define SLAPD_LDBM 1
12783 if test "$ol_with_ldbm_module" != static ; then
12784 cat >> confdefs.h <<\EOF
12785 #define SLAPD_LDBM_DYNAMIC 1
12789 BUILD_LDBM_DYNAMIC=shared
12790 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
12794 if test "$ol_enable_passwd" != no ; then
12795 cat >> confdefs.h <<\EOF
12796 #define SLAPD_PASSWD 1
12801 if test "$ol_with_passwd_module" != static ; then
12802 cat >> confdefs.h <<\EOF
12803 #define SLAPD_PASSWD_DYNAMIC 1
12807 BUILD_PASSWD_DYNAMIC=shared
12808 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
12812 if test "$ol_link_perl" != no ; then
12813 cat >> confdefs.h <<\EOF
12814 #define SLAPD_PERL 1
12819 if test "$ol_with_perl_module" != static ; then
12820 cat >> confdefs.h <<\EOF
12821 #define SLAPD_PERL_DYNAMIC 1
12825 BUILD_PERL_DYNAMIC=shared
12826 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
12830 if test "$ol_enable_shell" != no ; then
12831 cat >> confdefs.h <<\EOF
12832 #define SLAPD_SHELL 1
12837 if test "$ol_with_shell_module" != static ; then
12838 cat >> confdefs.h <<\EOF
12839 #define SLAPD_SHELL_DYNAMIC 1
12843 BUILD_SHELL_DYNAMIC=shared
12844 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
12848 if test "$ol_enable_tcl" != no ; then
12849 cat >> confdefs.h <<\EOF
12850 #define SLAPD_TCL 1
12855 if test "$ol_with_tcl_module" != static; then
12856 cat >> confdefs.h <<\EOF
12857 #define SLAPD_TCL_DYNAMIC 1
12861 BUILD_TCL_DYNAMIC=shared
12862 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
12866 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12867 $BUILD_SLAPD = yes ; then
12871 if test "$ol_link_isode" != no ; then
12921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12924 # Let make expand exec_prefix.
12925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12927 # Any assignment to VPATH causes Sun make to only execute
12928 # the first set of double-colon rules, so remove it if not needed.
12929 # If there is a colon in the path, we need to keep it.
12930 if test "x$srcdir" = x.; then
12931 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12936 DEFS=-DHAVE_CONFIG_H
12938 # Without the "./", some shells look in PATH for config.status.
12939 : ${CONFIG_STATUS=./config.status}
12941 echo creating $CONFIG_STATUS
12942 rm -f $CONFIG_STATUS
12943 cat > $CONFIG_STATUS <<EOF
12945 # Generated automatically by configure.
12946 # Run this file to recreate the current configuration.
12947 # This directory was configured as follows,
12948 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12950 # $0 $ac_configure_args
12952 # Compiler output produced by configure, useful for debugging
12953 # configure, is in ./config.log if it exists.
12955 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12958 case "\$ac_option" in
12959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12960 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12961 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12962 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12963 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12965 -help | --help | --hel | --he | --h)
12966 echo "\$ac_cs_usage"; exit 0 ;;
12967 *) echo "\$ac_cs_usage"; exit 1 ;;
12971 ac_given_srcdir=$srcdir
12972 ac_given_INSTALL="$INSTALL"
12974 trap 'rm -fr `echo "\
12975 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12976 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12977 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12978 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12979 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12980 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12981 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12982 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12983 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12984 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12985 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12986 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12987 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12988 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12989 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12990 include/Makefile:build/top.mk:include/Makefile.in \
12991 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12992 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12993 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12994 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12995 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12996 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12997 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12998 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12999 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13000 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13001 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13002 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13003 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13004 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13005 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13006 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13007 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13008 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13009 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13010 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13011 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13012 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13013 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13014 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13015 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13016 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13017 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13019 cat >> $CONFIG_STATUS <<EOF
13021 # Protect against being on the right side of a sed subst in config.status.
13022 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13023 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13027 s%@CFLAGS@%$CFLAGS%g
13028 s%@CPPFLAGS@%$CPPFLAGS%g
13029 s%@CXXFLAGS@%$CXXFLAGS%g
13030 s%@FFLAGS@%$FFLAGS%g
13032 s%@LDFLAGS@%$LDFLAGS%g
13034 s%@exec_prefix@%$exec_prefix%g
13035 s%@prefix@%$prefix%g
13036 s%@program_transform_name@%$program_transform_name%g
13037 s%@bindir@%$bindir%g
13038 s%@sbindir@%$sbindir%g
13039 s%@libexecdir@%$libexecdir%g
13040 s%@datadir@%$datadir%g
13041 s%@sysconfdir@%$sysconfdir%g
13042 s%@sharedstatedir@%$sharedstatedir%g
13043 s%@localstatedir@%$localstatedir%g
13044 s%@libdir@%$libdir%g
13045 s%@includedir@%$includedir%g
13046 s%@oldincludedir@%$oldincludedir%g
13047 s%@infodir@%$infodir%g
13048 s%@mandir@%$mandir%g
13050 s%@host_alias@%$host_alias%g
13051 s%@host_cpu@%$host_cpu%g
13052 s%@host_vendor@%$host_vendor%g
13053 s%@host_os@%$host_os%g
13054 s%@target@%$target%g
13055 s%@target_alias@%$target_alias%g
13056 s%@target_cpu@%$target_cpu%g
13057 s%@target_vendor@%$target_vendor%g
13058 s%@target_os@%$target_os%g
13060 s%@build_alias@%$build_alias%g
13061 s%@build_cpu@%$build_cpu%g
13062 s%@build_vendor@%$build_vendor%g
13063 s%@build_os@%$build_os%g
13064 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13065 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13066 s%@INSTALL_DATA@%$INSTALL_DATA%g
13067 s%@PACKAGE@%$PACKAGE%g
13068 s%@VERSION@%$VERSION%g
13069 s%@ACLOCAL@%$ACLOCAL%g
13070 s%@AUTOCONF@%$AUTOCONF%g
13071 s%@AUTOMAKE@%$AUTOMAKE%g
13072 s%@AUTOHEADER@%$AUTOHEADER%g
13073 s%@MAKEINFO@%$MAKEINFO%g
13074 s%@install_sh@%$install_sh%g
13077 s%@AMTARFLAGS@%$AMTARFLAGS%g
13078 s%@SET_MAKE@%$SET_MAKE%g
13079 s%@top_builddir@%$top_builddir%g
13080 s%@ldap_subdir@%$ldap_subdir%g
13082 s%@RANLIB@%$RANLIB%g
13086 s%@LIBTOOL@%$LIBTOOL%g
13088 s%@SENDMAIL@%$SENDMAIL%g
13089 s%@EDITOR@%$EDITOR%g
13090 s%@FINGER@%$FINGER%g
13091 s%@PERLBIN@%$PERLBIN%g
13093 s%@EXEEXT@%$EXEEXT%g
13094 s%@OBJEXT@%$OBJEXT%g
13095 s%@OL_MKDEP@%$OL_MKDEP%g
13096 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
13098 s%@LIBOBJS@%$LIBOBJS%g
13099 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
13100 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
13101 s%@BUILD_BDB2@%$BUILD_BDB2%g
13102 s%@BUILD_LDAP@%$BUILD_LDAP%g
13103 s%@BUILD_LDBM@%$BUILD_LDBM%g
13104 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
13105 s%@BUILD_PERL@%$BUILD_PERL%g
13106 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
13107 s%@BUILD_SHELL@%$BUILD_SHELL%g
13108 s%@BUILD_TCL@%$BUILD_TCL%g
13109 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
13110 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
13111 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
13112 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
13113 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
13114 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
13115 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
13116 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
13117 s%@LDAP_LIBS@%$LDAP_LIBS%g
13118 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
13119 s%@LDIF_LIBS@%$LDIF_LIBS%g
13120 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
13121 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
13122 s%@LDBM_LIBS@%$LDBM_LIBS%g
13123 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
13124 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
13125 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
13126 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
13127 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
13128 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
13129 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
13130 s%@KRB_LIBS@%$KRB_LIBS%g
13131 s%@READLINE_LIBS@%$READLINE_LIBS%g
13132 s%@SASL_LIBS@%$SASL_LIBS%g
13133 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
13134 s%@TLS_LIBS@%$TLS_LIBS%g
13135 s%@MODULES_LIBS@%$MODULES_LIBS%g
13140 cat >> $CONFIG_STATUS <<\EOF
13142 # Split the substitutions into bite-sized pieces for seds with
13143 # small command number limits, like on Digital OSF/1 and HP-UX.
13144 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13145 ac_file=1 # Number of current file.
13146 ac_beg=1 # First line for current file.
13147 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13150 while $ac_more_lines; do
13151 if test $ac_beg -gt 1; then
13152 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13154 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13156 if test ! -s conftest.s$ac_file; then
13157 ac_more_lines=false
13158 rm -f conftest.s$ac_file
13160 if test -z "$ac_sed_cmds"; then
13161 ac_sed_cmds="sed -f conftest.s$ac_file"
13163 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13165 ac_file=`expr $ac_file + 1`
13167 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13170 if test -z "$ac_sed_cmds"; then
13175 cat >> $CONFIG_STATUS <<EOF
13177 CONFIG_FILES=\${CONFIG_FILES-"\
13178 Makefile:build/top.mk:Makefile.in:build/dir.mk \
13179 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
13180 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
13181 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
13182 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
13183 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
13184 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
13185 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
13186 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
13187 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
13188 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
13189 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
13190 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
13191 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
13192 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
13193 include/Makefile:build/top.mk:include/Makefile.in \
13194 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
13195 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
13196 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
13197 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
13198 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
13199 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
13200 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
13201 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
13202 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
13203 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
13204 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
13205 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
13206 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
13207 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
13208 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
13209 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
13210 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
13211 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
13212 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
13213 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
13214 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
13215 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
13216 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
13217 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
13218 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
13219 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
13222 cat >> $CONFIG_STATUS <<\EOF
13223 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13226 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13227 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13228 *) ac_file_in="${ac_file}.in" ;;
13231 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13233 # Remove last slash and all that follows it. Not all systems have dirname.
13234 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13235 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13236 # The file is in a subdirectory.
13237 test ! -d "$ac_dir" && mkdir "$ac_dir"
13238 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13239 # A "../" for each directory in $ac_dir_suffix.
13240 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13242 ac_dir_suffix= ac_dots=
13245 case "$ac_given_srcdir" in
13247 if test -z "$ac_dots"; then top_srcdir=.
13248 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13249 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13250 *) # Relative path.
13251 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13252 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13255 case "$ac_given_INSTALL" in
13256 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13257 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13260 echo creating "$ac_file"
13262 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13264 *Makefile*) ac_comsub="1i\\
13265 # $configure_input" ;;
13269 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13271 s%@configure_input@%$configure_input%g
13272 s%@srcdir@%$srcdir%g
13273 s%@top_srcdir@%$top_srcdir%g
13274 s%@INSTALL@%$INSTALL%g
13275 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13282 # ac_d sets the value in "#define NAME VALUE" lines.
13283 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13284 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13287 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13288 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13289 ac_uB='\([ ]\)%\1#\2define\3'
13292 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13293 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13294 ac_eB='$%\1#\2define\3'
13298 if test "${CONFIG_HEADERS+set}" != set; then
13300 cat >> $CONFIG_STATUS <<EOF
13301 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
13303 cat >> $CONFIG_STATUS <<\EOF
13305 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13306 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13308 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13309 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13310 *) ac_file_in="${ac_file}.in" ;;
13313 echo creating $ac_file
13315 rm -f conftest.frag conftest.in conftest.out
13316 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13317 cat $ac_file_inputs > conftest.in
13321 # Transform confdefs.h into a sed script conftest.vals that substitutes
13322 # the proper values into config.h.in to produce config.h. And first:
13323 # Protect against being on the right side of a sed subst in config.status.
13324 # Protect against being in an unquoted here document in config.status.
13325 rm -f conftest.vals
13326 cat > conftest.hdr <<\EOF
13329 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13333 sed -n -f conftest.hdr confdefs.h > conftest.vals
13336 # This sed command replaces #undef with comments. This is necessary, for
13337 # example, in the case of _POSIX_SOURCE, which is predefined and required
13338 # on some systems where configure will not decide to define it.
13339 cat >> conftest.vals <<\EOF
13340 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13343 # Break up conftest.vals because some shells have a limit on
13344 # the size of here documents, and old seds have small limits too.
13346 rm -f conftest.tail
13349 ac_lines=`grep -c . conftest.vals`
13350 # grep -c gives empty output for an empty file on some AIX systems.
13351 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13352 # Write a limited-size here document to conftest.frag.
13353 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13354 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13356 sed -f conftest.frag conftest.in > conftest.out
13358 mv conftest.out conftest.in
13359 ' >> $CONFIG_STATUS
13360 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13361 rm -f conftest.vals
13362 mv conftest.tail conftest.vals
13364 rm -f conftest.vals
13366 cat >> $CONFIG_STATUS <<\EOF
13367 rm -f conftest.frag conftest.h
13368 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13369 cat conftest.in >> conftest.h
13371 if cmp -s $ac_file conftest.h 2>/dev/null; then
13372 echo "$ac_file is unchanged"
13375 # Remove last slash and all that follows it. Not all systems have dirname.
13376 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13377 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13378 # The file is in a subdirectory.
13379 test ! -d "$ac_dir" && mkdir "$ac_dir"
13382 mv conftest.h $ac_file
13387 cat >> $CONFIG_STATUS <<EOF
13390 cat >> $CONFIG_STATUS <<\EOF
13393 echo Please \"make depend\" to build dependencies
13397 chmod +x $CONFIG_STATUS
13398 rm -fr confdefs* $ac_clean_files
13399 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1