3 # from OpenLDAP: pkg/ldap/configure.in,v 1.256 1999/09/10 00:10:20 kdz Exp
5 # Copyright 1998,1999 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 # Guess values for system-dependent variables and create Makefiles.
13 # Generated automatically using autoconf version 2.13.1
14 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
21 ac_default_prefix=/usr/local
22 # Any additions from configure.in:
23 ac_default_prefix=/usr/local
25 --with-subdir=DIR change default subdirectory used for installs"
27 --enable-debug enable debugging (yes)"
29 --enable-syslog enable syslog support (auto)"
31 --enable-proctitle enable proctitle support (yes)"
33 --enable-cache enable caching (yes)"
35 --enable-dns enable V2 DX Referrals extension (no)"
37 --enable-referrals enable V2 Referrals extension (yes)"
39 --enable-cldap enable connectionless ldap (no)"
41 --enable-x-compile enable cross compiling (no)"
43 --enable-dmalloc enable debug malloc support (no)"
45 --with-cyrus-sasl with Cyrus SASL support (auto)"
47 --with-fetch with fetch URL support (auto)"
49 --with-kerberos with Kerberos support (auto)"
51 --with-readline with readline support (auto)"
53 --with-threads use threads (auto)"
55 --with-tls with TLS/SSL support (auto)"
57 --with-yielding-select with implicitly yielding select (auto)"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd (yes)"
63 --enable-cleartext enable cleartext passwords (yes)"
65 --enable-crypt enable crypt(3) passwords (auto)"
67 --enable-modules enable dynamic module support (no)"
69 --enable-multimaster enable multimaster replication (no)"
71 --enable-phonetic enable phonetic/soundex (no)"
73 --enable-quipu build quipu migration tools (no)"
75 --enable-rlookups enable reverse lookups (auto)"
77 --enable-aci enable per-object ACIs (no)"
79 --enable-discreteaci enable discrete rights in ACIs (no)"
81 --enable-wrappers enable tcp wrapper support (no)"
83 --enable-bdb2 enable bdb2 backend (no)"
85 --with-bdb2-module module type (static)"
87 --enable-ldap enable ldap backend (no)"
89 --with-ldap-module module type (static)"
91 --enable-ldbm enable ldbm backend (yes)"
93 --with-ldbm-api use LDBM API (auto)"
95 --with-ldbm-module module type (static)"
97 --with-ldbm-type use LDBM type (auto)"
99 --enable-passwd enable passwd backend (no)"
101 --with-passwd-module module type (static)"
103 --enable-perl enable perl backend (no)"
105 --with-perl-module module type (static)"
107 --enable-shell enable shell backend (no)"
109 --with-shell-module module type (static)"
111 --enable-tcl enable tcl backend (no)"
113 --with-tcl-module module type (static)"
115 SLURPD (Replication Daemon) Options:"
117 --enable-slurpd enable building slurpd (auto)"
119 Library Generation & Linking Options"
121 --enable-static[=PKGS] build static libraries [default=yes]"
123 --enable-shared[=PKGS] build shared libraries [default=yes]"
125 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
127 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
129 --disable-libtool-lock avoid locking (might break parallel builds)"
131 # Initialize some variables set by options.
132 # The variables have the same names as the options, with
133 # dashes changed to underlines.
135 cache_file=./config.cache
144 program_transform_name=s,x,x,
152 bindir='${exec_prefix}/bin'
153 sbindir='${exec_prefix}/sbin'
154 libexecdir='${exec_prefix}/libexec'
155 datadir='${prefix}/share'
156 sysconfdir='${prefix}/etc'
157 sharedstatedir='${prefix}/com'
158 localstatedir='${prefix}/var'
159 libdir='${exec_prefix}/lib'
160 includedir='${prefix}/include'
161 oldincludedir='/usr/include'
162 infodir='${prefix}/info'
163 mandir='${prefix}/man'
165 # Initialize some other variables.
168 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Maximum number of lines to put in a shell here document.
176 # If the previous option needs an argument, assign it.
177 if test -n "$ac_prev"; then
178 eval "$ac_prev=\$ac_option"
184 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
188 # Accept the important Cygnus configure options, so we can diagnose typos.
192 -bindir | --bindir | --bindi | --bind | --bin | --bi)
194 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
195 bindir="$ac_optarg" ;;
197 -build | --build | --buil | --bui | --bu)
199 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
200 build="$ac_optarg" ;;
202 -cache-file | --cache-file | --cache-fil | --cache-fi \
203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
204 ac_prev=cache_file ;;
205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
207 cache_file="$ac_optarg" ;;
209 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
211 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
213 datadir="$ac_optarg" ;;
215 -disable-* | --disable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
222 eval "enable_${ac_feature}=no" ;;
224 -enable-* | --enable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}='$ac_optarg'" ;;
237 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
238 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
239 | --exec | --exe | --ex)
240 ac_prev=exec_prefix ;;
241 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
242 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
243 | --exec=* | --exe=* | --ex=*)
244 exec_prefix="$ac_optarg" ;;
246 -gas | --gas | --ga | --g)
247 # Obsolete; use --with-gas.
250 -help | --help | --hel | --he)
251 # Omit some internal or obsolete options to make the list less imposing.
252 # This message is too long to be a string in the A/UX 3.1 sh.
254 Usage: configure [options] [host]
255 Options: [defaults in brackets after descriptions]
257 --cache-file=FILE cache test results in FILE
258 --help print this message
259 --no-create do not create output files
260 --quiet, --silent do not print \`checking...' messages
261 --version print the version of autoconf that created configure
262 Directory and file names:
263 --prefix=PREFIX install architecture-independent files in PREFIX
265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
267 --bindir=DIR user executables in DIR [EPREFIX/bin]
268 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
269 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
270 --datadir=DIR read-only architecture-independent data in DIR
272 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
273 --sharedstatedir=DIR modifiable architecture-independent data in DIR
275 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
276 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
277 --includedir=DIR C header files in DIR [PREFIX/include]
278 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
279 --infodir=DIR info documentation in DIR [PREFIX/info]
280 --mandir=DIR man documentation in DIR [PREFIX/man]
281 --srcdir=DIR find the sources in DIR [configure dir or ..]
282 --program-prefix=PREFIX prepend PREFIX to installed program names
283 --program-suffix=SUFFIX append SUFFIX to installed program names
284 --program-transform-name=PROGRAM
285 run sed PROGRAM on installed program names
289 --build=BUILD configure for building on BUILD [BUILD=HOST]
290 --host=HOST configure for HOST [guessed]
291 --target=TARGET configure for TARGET [TARGET=HOST]
292 Features and packages:
293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
297 --x-includes=DIR X include files are in DIR
298 --x-libraries=DIR X library files are in DIR
300 if test -n "$ac_help"; then
301 echo "--enable and --with options recognized:$ac_help"
305 -host | --host | --hos | --ho)
307 -host=* | --host=* | --hos=* | --ho=*)
310 -includedir | --includedir | --includedi | --included | --include \
311 | --includ | --inclu | --incl | --inc)
312 ac_prev=includedir ;;
313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
314 | --includ=* | --inclu=* | --incl=* | --inc=*)
315 includedir="$ac_optarg" ;;
317 -infodir | --infodir | --infodi | --infod | --info | --inf)
319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
320 infodir="$ac_optarg" ;;
322 -libdir | --libdir | --libdi | --libd)
324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
325 libdir="$ac_optarg" ;;
327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
328 | --libexe | --libex | --libe)
329 ac_prev=libexecdir ;;
330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
331 | --libexe=* | --libex=* | --libe=*)
332 libexecdir="$ac_optarg" ;;
334 -localstatedir | --localstatedir | --localstatedi | --localstated \
335 | --localstate | --localstat | --localsta | --localst \
336 | --locals | --local | --loca | --loc | --lo)
337 ac_prev=localstatedir ;;
338 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
339 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
340 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
341 localstatedir="$ac_optarg" ;;
343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
346 mandir="$ac_optarg" ;;
349 # Obsolete; use --without-fp.
352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
362 | --oldin | --oldi | --old | --ol | --o)
363 ac_prev=oldincludedir ;;
364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
367 oldincludedir="$ac_optarg" ;;
369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
372 prefix="$ac_optarg" ;;
374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
375 | --program-pre | --program-pr | --program-p)
376 ac_prev=program_prefix ;;
377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
379 program_prefix="$ac_optarg" ;;
381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
382 | --program-suf | --program-su | --program-s)
383 ac_prev=program_suffix ;;
384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
386 program_suffix="$ac_optarg" ;;
388 -program-transform-name | --program-transform-name \
389 | --program-transform-nam | --program-transform-na \
390 | --program-transform-n | --program-transform- \
391 | --program-transform | --program-transfor \
392 | --program-transfo | --program-transf \
393 | --program-trans | --program-tran \
394 | --progr-tra | --program-tr | --program-t)
395 ac_prev=program_transform_name ;;
396 -program-transform-name=* | --program-transform-name=* \
397 | --program-transform-nam=* | --program-transform-na=* \
398 | --program-transform-n=* | --program-transform-=* \
399 | --program-transform=* | --program-transfor=* \
400 | --program-transfo=* | --program-transf=* \
401 | --program-trans=* | --program-tran=* \
402 | --progr-tra=* | --program-tr=* | --program-t=*)
403 program_transform_name="$ac_optarg" ;;
405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406 | -silent | --silent | --silen | --sile | --sil)
409 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
411 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
413 sbindir="$ac_optarg" ;;
415 -sharedstatedir | --sharedstatedir | --sharedstatedi \
416 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
417 | --sharedst | --shareds | --shared | --share | --shar \
419 ac_prev=sharedstatedir ;;
420 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
421 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
422 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
424 sharedstatedir="$ac_optarg" ;;
426 -site | --site | --sit)
428 -site=* | --site=* | --sit=*)
431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
434 srcdir="$ac_optarg" ;;
436 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
437 | --syscon | --sysco | --sysc | --sys | --sy)
438 ac_prev=sysconfdir ;;
439 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
440 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
441 sysconfdir="$ac_optarg" ;;
443 -target | --target | --targe | --targ | --tar | --ta | --t)
445 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
446 target="$ac_optarg" ;;
448 -v | -verbose | --verbose | --verbos | --verbo | --verb)
451 -version | --version | --versio | --versi | --vers)
452 echo "configure generated by autoconf version 2.13.1"
456 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}='$ac_optarg'" ;;
468 -without-* | --without-*)
469 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}=no" ;;
478 # Obsolete; use --with-x.
481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
482 | --x-incl | --x-inc | --x-in | --x-i)
483 ac_prev=x_includes ;;
484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
486 x_includes="$ac_optarg" ;;
488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
490 ac_prev=x_libraries ;;
491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
493 x_libraries="$ac_optarg" ;;
495 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
499 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
500 echo "configure: warning: $ac_option: invalid host type" 1>&2
502 if test "x$nonopt" != xNONE; then
503 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
511 if test -n "$ac_prev"; then
512 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
517 # File descriptor usage:
520 # 2 errors and warnings
521 # 3 some systems may open it to /dev/tty
522 # 4 used on the Kubota Titan
523 # 6 checking for... messages and results
524 # 5 compiler messages saved in config.log
525 if test "$silent" = yes; then
533 This file contains any messages produced by compilers while
534 running configure, to aid debugging if configure makes a mistake.
537 # Strip out --no-create and --no-recursion so they do not pile up.
538 # Also quote any args containing shell metacharacters.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
544 | --no-cr | --no-c) ;;
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
548 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
549 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
554 # Only set these to C if already set. These must not be set unconditionally
555 # because not all systems understand e.g. LANG=C (notably SCO).
556 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
557 # Non-C LC_CTYPE values break the ctype check.
558 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
559 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
560 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
561 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
564 rm -rf conftest* confdefs.h
565 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
568 # A filename unique to this package, relative to the directory that
569 # configure is in, which we can look for to find out if srcdir is correct.
570 ac_unique_file=build/version
572 # Find the source files, if location was not specified.
573 if test -z "$srcdir"; then
574 ac_srcdir_defaulted=yes
575 # Try the directory containing this script, then its parent.
577 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
578 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
580 if test ! -r $srcdir/$ac_unique_file; then
584 ac_srcdir_defaulted=no
586 if test ! -r $srcdir/$ac_unique_file; then
587 if test "$ac_srcdir_defaulted" = yes; then
588 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
590 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
593 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
595 # Prefer explicitly selected file to automatically selected ones.
596 if test -z "$CONFIG_SITE"; then
597 if test "x$prefix" != xNONE; then
598 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
600 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
603 for ac_site_file in $CONFIG_SITE; do
604 if test -r "$ac_site_file"; then
605 echo "loading site script $ac_site_file"
612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
613 ac_cpp='$CPP $CPPFLAGS'
614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
616 cross_compiling=$ac_cv_prog_cc_cross
620 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
621 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
622 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
629 ac_n= ac_c='\c' ac_t=
633 for ac_dir in build $srcdir/build; do
634 if test -f $ac_dir/install-sh; then
636 ac_install_sh="$ac_aux_dir/install-sh -c"
638 elif test -f $ac_dir/install.sh; then
640 ac_install_sh="$ac_aux_dir/install.sh -c"
644 if test -z "$ac_aux_dir"; then
645 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
647 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
648 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
649 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
651 OL_VERSION=`cat $ac_aux_dir/version`
652 if test -z "$OL_VERSION"; then
653 { echo "configure: error: could not determine version" 1>&2; exit 1; }
657 echo $ac_n "checking host system type""... $ac_c" 1>&6
658 echo "configure:659: checking host system type" >&5
659 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
661 # Make sure we can run config.sub.
662 if $ac_config_sub sun4 >/dev/null 2>&1; then :
663 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
666 ac_cv_host_alias=$host
667 case "$ac_cv_host_alias" in
671 if ac_cv_host_alias=`$ac_config_guess`; then :
672 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
674 *) ac_cv_host_alias=$nonopt ;;
678 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
679 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
680 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
681 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo $ac_n "(cached) $ac_c" 1>&6
686 echo "$ac_t""$ac_cv_host" 1>&6
689 host_alias=$ac_cv_host_alias
690 host_cpu=$ac_cv_host_cpu
691 host_vendor=$ac_cv_host_vendor
692 host_os=$ac_cv_host_os
698 echo $ac_n "checking target system type""... $ac_c" 1>&6
699 echo "configure:700: checking target system type" >&5
700 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
702 # Make sure we can run config.sub.
703 if $ac_config_sub sun4 >/dev/null 2>&1; then :
704 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
707 ac_cv_target_alias=$target
708 case "$ac_cv_target_alias" in
712 ac_cv_target_alias=$host_alias ;;
714 *) ac_cv_target_alias=$nonopt ;;
718 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
719 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
720 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
721 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
723 echo $ac_n "(cached) $ac_c" 1>&6
726 echo "$ac_t""$ac_cv_target" 1>&6
729 target_alias=$ac_cv_target_alias
730 target_cpu=$ac_cv_target_cpu
731 target_vendor=$ac_cv_target_vendor
732 target_os=$ac_cv_target_os
738 echo $ac_n "checking build system type""... $ac_c" 1>&6
739 echo "configure:740: checking build system type" >&5
740 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
742 # Make sure we can run config.sub.
743 if $ac_config_sub sun4 >/dev/null 2>&1; then :
744 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
747 ac_cv_build_alias=$build
748 case "$ac_cv_build_alias" in
752 ac_cv_build_alias=$host_alias ;;
754 *) ac_cv_build_alias=$nonopt ;;
758 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
759 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
760 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
761 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
763 echo $ac_n "(cached) $ac_c" 1>&6
766 echo "$ac_t""$ac_cv_build" 1>&6
769 build_alias=$ac_cv_build_alias
770 build_cpu=$ac_cv_build_cpu
771 build_vendor=$ac_cv_build_vendor
772 build_os=$ac_cv_build_os
778 # Do some error checking and defaulting for the host and target type.
780 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
783 # 1. You are not allowed to specify --host, --target, and nonopt at the
785 # 2. Host defaults to nonopt.
786 # 3. If nonopt is not specified, then host defaults to the current host,
787 # as determined by config.guess.
788 # 4. Target and build default to nonopt.
789 # 5. If nonopt is not specified, then target and build default to host.
791 # The aliases save the names the user supplied, while $host etc.
792 # will get canonicalized.
793 case $host---$target---$nonopt in
794 NONE---*---* | *---NONE---* | *---*---NONE) ;;
795 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
798 test "$host_alias" != "$target_alias" &&
799 test "$program_prefix$program_suffix$program_transform_name" = \
801 program_prefix=${target_alias}-
804 # Find a good install program. We prefer a C program (faster),
805 # so one script is as good as another. But avoid the broken or
806 # incompatible versions:
807 # SysV /etc/install, /usr/sbin/install
808 # SunOS /usr/etc/install
811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
814 # ./install, which can be erroneously created by make from ./install.sh.
815 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
816 echo "configure:817: checking for a BSD compatible install" >&5
817 if test -z "$INSTALL"; then
818 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
822 for ac_dir in $PATH; do
823 # Account for people who put trailing slashes in PATH elements.
825 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
827 # OSF1 and SCO ODT 3.0 have their own names for install.
828 # Don't use installbsd from OSF since it installs stuff as root
830 for ac_prog in ginstall scoinst install; do
831 if test -f $ac_dir/$ac_prog; then
832 if test $ac_prog = install &&
833 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
834 # AIX install. It has an incompatible calling convention.
836 elif test $ac_prog = install &&
837 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
838 # program-specific install script used by HP pwplus--don't use.
841 ac_cv_path_install="$ac_dir/$ac_prog -c"
852 if test "${ac_cv_path_install+set}" = set; then
853 INSTALL="$ac_cv_path_install"
855 # As a last resort, use the slow shell script. We don't cache a
856 # path for INSTALL within a source directory, because that will
857 # break other packages using the cache if that directory is
858 # removed, or if the path is relative.
859 INSTALL="$ac_install_sh"
862 echo "$ac_t""$INSTALL" 1>&6
864 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
865 # It thinks the first close brace ends the variable substitution.
866 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
868 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
870 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
872 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
873 echo "configure:874: checking whether build environment is sane" >&5
876 echo timestamp > conftestfile
877 # Do `set' in a subshell so we don't clobber the current shell's
878 # arguments. Must try -L first in case configure is actually a
879 # symlink; some systems play weird games with the mod time of symlinks
880 # (eg FreeBSD returns the mod time of the symlink's containing
883 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
884 if test "$*" = "X"; then
886 set X `ls -t $srcdir/configure conftestfile`
888 if test "$*" != "X $srcdir/configure conftestfile" \
889 && test "$*" != "X conftestfile $srcdir/configure"; then
891 # If neither matched, then we have a broken ls. This can happen
892 # if, for instance, CONFIG_SHELL is bash and it inherits a
893 # broken ls alias from the environment. This has actually
894 # happened. Such a system could not be considered "sane".
895 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
896 alias in your environment" 1>&2; exit 1; }
899 test "$2" = conftestfile
905 { echo "configure: error: newly created file is older than distributed files!
906 Check your system clock" 1>&2; exit 1; }
909 echo "$ac_t""yes" 1>&6
910 if test "$program_transform_name" = s,x,x,; then
911 program_transform_name=
913 # Double any \ or $. echo might interpret backslashes.
914 cat <<\EOF_SED > conftestsed
915 s,\\,\\\\,g; s,\$,$$,g
917 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
920 test "$program_prefix" != NONE &&
921 program_transform_name="s,^,${program_prefix},;$program_transform_name"
922 # Use a double $ so make ignores it.
923 test "$program_suffix" != NONE &&
924 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
926 # sed with no file args requires a program.
927 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
929 for ac_prog in mawk gawk nawk awk
931 # Extract the first word of "$ac_prog", so it can be a program name with args.
932 set dummy $ac_prog; ac_word=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 if test -n "$AWK"; then
939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
943 for ac_dir in $ac_dummy; do
944 test -z "$ac_dir" && ac_dir=.
945 if test -f $ac_dir/$ac_word; then
946 ac_cv_prog_AWK="$ac_prog"
953 AWK="$ac_cv_prog_AWK"
954 if test -n "$AWK"; then
955 echo "$ac_t""$AWK" 1>&6
957 echo "$ac_t""no" 1>&6
960 test -n "$AWK" && break
963 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
964 echo "configure:965: checking whether ${MAKE-make} sets \${MAKE}" >&5
965 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
966 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftestmake <<\EOF
971 @echo 'ac_maketemp="${MAKE}"'
973 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
974 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
975 if test -n "$ac_maketemp"; then
976 eval ac_cv_prog_make_${ac_make}_set=yes
978 eval ac_cv_prog_make_${ac_make}_set=no
982 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
983 echo "$ac_t""yes" 1>&6
986 echo "$ac_t""no" 1>&6
987 SET_MAKE="MAKE=${MAKE-make}"
996 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
997 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1002 missing_dir=`cd $ac_aux_dir && pwd`
1003 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1004 echo "configure:1005: checking for working aclocal" >&5
1005 # Run test in a subshell; some versions of sh will print an error if
1006 # an executable is not found, even if stderr is redirected.
1007 # Redirect stdin to placate older versions of autoconf. Sigh.
1008 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1010 echo "$ac_t""found" 1>&6
1012 ACLOCAL="$missing_dir/missing aclocal"
1013 echo "$ac_t""missing" 1>&6
1016 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1017 echo "configure:1018: checking for working autoconf" >&5
1018 # Run test in a subshell; some versions of sh will print an error if
1019 # an executable is not found, even if stderr is redirected.
1020 # Redirect stdin to placate older versions of autoconf. Sigh.
1021 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1023 echo "$ac_t""found" 1>&6
1025 AUTOCONF="$missing_dir/missing autoconf"
1026 echo "$ac_t""missing" 1>&6
1029 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1030 echo "configure:1031: checking for working automake" >&5
1031 # Run test in a subshell; some versions of sh will print an error if
1032 # an executable is not found, even if stderr is redirected.
1033 # Redirect stdin to placate older versions of autoconf. Sigh.
1034 if (automake --version) < /dev/null > /dev/null 2>&1; then
1036 echo "$ac_t""found" 1>&6
1038 AUTOMAKE="$missing_dir/missing automake"
1039 echo "$ac_t""missing" 1>&6
1042 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1043 echo "configure:1044: checking for working autoheader" >&5
1044 # Run test in a subshell; some versions of sh will print an error if
1045 # an executable is not found, even if stderr is redirected.
1046 # Redirect stdin to placate older versions of autoconf. Sigh.
1047 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1048 AUTOHEADER=autoheader
1049 echo "$ac_t""found" 1>&6
1051 AUTOHEADER="$missing_dir/missing autoheader"
1052 echo "$ac_t""missing" 1>&6
1055 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working makeinfo" >&5
1057 # Run test in a subshell; some versions of sh will print an error if
1058 # an executable is not found, even if stderr is redirected.
1059 # Redirect stdin to placate older versions of autoconf. Sigh.
1060 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1062 echo "$ac_t""found" 1>&6
1064 MAKEINFO="$missing_dir/missing makeinfo"
1065 echo "$ac_t""missing" 1>&6
1068 install_sh="$missing_dir/install-sh"
1069 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1071 for ac_prog in gnutar gtar tar
1073 # Extract the first word of "$ac_prog", so it can be a program name with args.
1074 set dummy $ac_prog; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1080 if test -n "$AMTAR"; then
1081 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1085 for ac_dir in $ac_dummy; do
1086 test -z "$ac_dir" && ac_dir=.
1087 if test -f $ac_dir/$ac_word; then
1088 ac_cv_prog_AMTAR="$ac_prog"
1095 AMTAR="$ac_cv_prog_AMTAR"
1096 if test -n "$AMTAR"; then
1097 echo "$ac_t""$AMTAR" 1>&6
1099 echo "$ac_t""no" 1>&6
1102 test -n "$AMTAR" && break
1107 if test -n "$AMTAR"; then
1108 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1115 cat >> confdefs.h <<EOF
1116 #define OPENLDAP_PACKAGE "$PACKAGE"
1119 cat >> confdefs.h <<EOF
1120 #define OPENLDAP_VERSION "$VERSION"
1126 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1127 echo "configure:1128: checking configure arguments" >&5
1132 ldap_subdir="/openldap"
1134 # Check whether --with-subdir or --without-subdir was given.
1135 if test "${with_subdir+set}" = set; then
1136 withval="$with_subdir"
1143 ldap_subdir="$withval"
1146 ldap_subdir="/$withval"
1153 # OpenLDAP --enable-debug
1154 # Check whether --enable-debug or --disable-debug was given.
1155 if test "${enable_debug+set}" = set; then
1156 enableval="$enable_debug"
1159 for ol_val in auto yes no ; do
1160 if test "$enableval" = "$ol_val" ; then
1164 if test "$ol_arg" = "invalid" ; then
1165 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1167 ol_enable_debug="$ol_arg"
1170 ol_enable_debug="yes"
1172 # end --enable-debug
1173 # OpenLDAP --enable-syslog
1174 # Check whether --enable-syslog or --disable-syslog was given.
1175 if test "${enable_syslog+set}" = set; then
1176 enableval="$enable_syslog"
1179 for ol_val in auto yes no ; do
1180 if test "$enableval" = "$ol_val" ; then
1184 if test "$ol_arg" = "invalid" ; then
1185 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1187 ol_enable_syslog="$ol_arg"
1190 ol_enable_syslog="auto"
1192 # end --enable-syslog
1193 # OpenLDAP --enable-proctitle
1194 # Check whether --enable-proctitle or --disable-proctitle was given.
1195 if test "${enable_proctitle+set}" = set; then
1196 enableval="$enable_proctitle"
1199 for ol_val in auto yes no ; do
1200 if test "$enableval" = "$ol_val" ; then
1204 if test "$ol_arg" = "invalid" ; then
1205 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1207 ol_enable_proctitle="$ol_arg"
1210 ol_enable_proctitle="yes"
1212 # end --enable-proctitle
1213 # OpenLDAP --enable-cache
1214 # Check whether --enable-cache or --disable-cache was given.
1215 if test "${enable_cache+set}" = set; then
1216 enableval="$enable_cache"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1227 ol_enable_cache="$ol_arg"
1230 ol_enable_cache="yes"
1232 # end --enable-cache
1233 # OpenLDAP --enable-dns
1234 # Check whether --enable-dns or --disable-dns was given.
1235 if test "${enable_dns+set}" = set; then
1236 enableval="$enable_dns"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1247 ol_enable_dns="$ol_arg"
1253 # OpenLDAP --enable-referrals
1254 # Check whether --enable-referrals or --disable-referrals was given.
1255 if test "${enable_referrals+set}" = set; then
1256 enableval="$enable_referrals"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1267 ol_enable_referrals="$ol_arg"
1270 ol_enable_referrals="yes"
1272 # end --enable-referrals
1273 # OpenLDAP --enable-cldap
1274 # Check whether --enable-cldap or --disable-cldap was given.
1275 if test "${enable_cldap+set}" = set; then
1276 enableval="$enable_cldap"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1287 ol_enable_cldap="$ol_arg"
1290 ol_enable_cldap="no"
1292 # end --enable-cldap
1293 # OpenLDAP --enable-x_compile
1294 # Check whether --enable-x_compile or --disable-x_compile was given.
1295 if test "${enable_x_compile+set}" = set; then
1296 enableval="$enable_x_compile"
1299 for ol_val in yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1307 ol_enable_x_compile="$ol_arg"
1310 ol_enable_x_compile="no"
1312 # end --enable-x_compile
1314 # OpenLDAP --enable-dmalloc
1315 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1316 if test "${enable_dmalloc+set}" = set; then
1317 enableval="$enable_dmalloc"
1320 for ol_val in auto yes no ; do
1321 if test "$enableval" = "$ol_val" ; then
1325 if test "$ol_arg" = "invalid" ; then
1326 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1328 ol_enable_dmalloc="$ol_arg"
1331 ol_enable_dmalloc="no"
1333 # end --enable-dmalloc
1335 # OpenLDAP --with-cyrus_sasl
1336 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1337 if test "${with_cyrus_sasl+set}" = set; then
1338 withval="$with_cyrus_sasl"
1341 for ol_val in auto yes no ; do
1342 if test "$withval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1349 ol_with_cyrus_sasl="$ol_arg"
1352 ol_with_cyrus_sasl="auto"
1354 # end --with-cyrus_sasl
1356 # OpenLDAP --with-fetch
1357 # Check whether --with-fetch or --without-fetch was given.
1358 if test "${with_fetch+set}" = set; then
1359 withval="$with_fetch"
1362 for ol_val in auto yes no ; do
1363 if test "$withval" = "$ol_val" ; then
1367 if test "$ol_arg" = "invalid" ; then
1368 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1370 ol_with_fetch="$ol_arg"
1373 ol_with_fetch="auto"
1377 # OpenLDAP --with-kerberos
1378 # Check whether --with-kerberos or --without-kerberos was given.
1379 if test "${with_kerberos+set}" = set; then
1380 withval="$with_kerberos"
1383 for ol_val in auto k5 k4 afs yes no ; do
1384 if test "$withval" = "$ol_val" ; then
1388 if test "$ol_arg" = "invalid" ; then
1389 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1391 ol_with_kerberos="$ol_arg"
1394 ol_with_kerberos="auto"
1396 # end --with-kerberos
1398 # OpenLDAP --with-readline
1399 # Check whether --with-readline or --without-readline was given.
1400 if test "${with_readline+set}" = set; then
1401 withval="$with_readline"
1404 for ol_val in auto yes no ; do
1405 if test "$withval" = "$ol_val" ; then
1409 if test "$ol_arg" = "invalid" ; then
1410 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1412 ol_with_readline="$ol_arg"
1415 ol_with_readline="auto"
1417 # end --with-readline
1419 # OpenLDAP --with-threads
1420 # Check whether --with-threads or --without-threads was given.
1421 if test "${with_threads+set}" = set; then
1422 withval="$with_threads"
1425 for ol_val in auto posix mach pth lwp yes no manual ; do
1426 if test "$withval" = "$ol_val" ; then
1430 if test "$ol_arg" = "invalid" ; then
1431 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1433 ol_with_threads="$ol_arg"
1436 ol_with_threads="auto"
1438 # end --with-threads
1440 # OpenLDAP --with-tls
1441 # Check whether --with-tls or --without-tls was given.
1442 if test "${with_tls+set}" = set; then
1446 for ol_val in auto ssleay openssl yes no ; do
1447 if test "$withval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1454 ol_with_tls="$ol_arg"
1461 # OpenLDAP --with-yielding_select
1462 # Check whether --with-yielding_select or --without-yielding_select was given.
1463 if test "${with_yielding_select+set}" = set; then
1464 withval="$with_yielding_select"
1467 for ol_val in auto yes no manual ; do
1468 if test "$withval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1475 ol_with_yielding_select="$ol_arg"
1478 ol_with_yielding_select="auto"
1480 # end --with-yielding_select
1484 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1485 if test "${with_xxslapdoptions+set}" = set; then
1486 withval="$with_xxslapdoptions"
1490 # OpenLDAP --enable-slapd
1491 # Check whether --enable-slapd or --disable-slapd was given.
1492 if test "${enable_slapd+set}" = set; then
1493 enableval="$enable_slapd"
1496 for ol_val in auto yes no ; do
1497 if test "$enableval" = "$ol_val" ; then
1501 if test "$ol_arg" = "invalid" ; then
1502 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1504 ol_enable_slapd="$ol_arg"
1507 ol_enable_slapd="yes"
1509 # end --enable-slapd
1510 # OpenLDAP --enable-cleartext
1511 # Check whether --enable-cleartext or --disable-cleartext was given.
1512 if test "${enable_cleartext+set}" = set; then
1513 enableval="$enable_cleartext"
1516 for ol_val in auto yes no ; do
1517 if test "$enableval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1524 ol_enable_cleartext="$ol_arg"
1527 ol_enable_cleartext="yes"
1529 # end --enable-cleartext
1530 # OpenLDAP --enable-crypt
1531 # Check whether --enable-crypt or --disable-crypt was given.
1532 if test "${enable_crypt+set}" = set; then
1533 enableval="$enable_crypt"
1536 for ol_val in auto yes no ; do
1537 if test "$enableval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1544 ol_enable_crypt="$ol_arg"
1547 ol_enable_crypt="auto"
1549 # end --enable-crypt
1550 # OpenLDAP --enable-modules
1551 # Check whether --enable-modules or --disable-modules was given.
1552 if test "${enable_modules+set}" = set; then
1553 enableval="$enable_modules"
1556 for ol_val in auto yes no ; do
1557 if test "$enableval" = "$ol_val" ; then
1561 if test "$ol_arg" = "invalid" ; then
1562 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1564 ol_enable_modules="$ol_arg"
1567 ol_enable_modules="no"
1569 # end --enable-modules
1570 # OpenLDAP --enable-multimaster
1571 # Check whether --enable-multimaster or --disable-multimaster was given.
1572 if test "${enable_multimaster+set}" = set; then
1573 enableval="$enable_multimaster"
1576 for ol_val in auto yes no ; do
1577 if test "$enableval" = "$ol_val" ; then
1581 if test "$ol_arg" = "invalid" ; then
1582 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1584 ol_enable_multimaster="$ol_arg"
1587 ol_enable_multimaster="no"
1589 # end --enable-multimaster
1590 # OpenLDAP --enable-phonetic
1591 # Check whether --enable-phonetic or --disable-phonetic was given.
1592 if test "${enable_phonetic+set}" = set; then
1593 enableval="$enable_phonetic"
1596 for ol_val in auto yes no ; do
1597 if test "$enableval" = "$ol_val" ; then
1601 if test "$ol_arg" = "invalid" ; then
1602 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1604 ol_enable_phonetic="$ol_arg"
1607 ol_enable_phonetic="no"
1609 # end --enable-phonetic
1610 # OpenLDAP --enable-quipu
1611 # Check whether --enable-quipu or --disable-quipu was given.
1612 if test "${enable_quipu+set}" = set; then
1613 enableval="$enable_quipu"
1616 for ol_val in auto yes no ; do
1617 if test "$enableval" = "$ol_val" ; then
1621 if test "$ol_arg" = "invalid" ; then
1622 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1624 ol_enable_quipu="$ol_arg"
1627 ol_enable_quipu="no"
1629 # end --enable-quipu
1630 # OpenLDAP --enable-rlookups
1631 # Check whether --enable-rlookups or --disable-rlookups was given.
1632 if test "${enable_rlookups+set}" = set; then
1633 enableval="$enable_rlookups"
1636 for ol_val in auto yes no ; do
1637 if test "$enableval" = "$ol_val" ; then
1641 if test "$ol_arg" = "invalid" ; then
1642 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1644 ol_enable_rlookups="$ol_arg"
1647 ol_enable_rlookups="auto"
1649 # end --enable-rlookups
1650 # OpenLDAP --enable-aci
1651 # Check whether --enable-aci or --disable-aci was given.
1652 if test "${enable_aci+set}" = set; then
1653 enableval="$enable_aci"
1656 for ol_val in auto yes no ; do
1657 if test "$enableval" = "$ol_val" ; then
1661 if test "$ol_arg" = "invalid" ; then
1662 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1664 ol_enable_aci="$ol_arg"
1670 # OpenLDAP --enable-discreteaci
1671 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1672 if test "${enable_discreteaci+set}" = set; then
1673 enableval="$enable_discreteaci"
1676 for ol_val in auto yes no ; do
1677 if test "$enableval" = "$ol_val" ; then
1681 if test "$ol_arg" = "invalid" ; then
1682 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1684 ol_enable_discreteaci="$ol_arg"
1687 ol_enable_discreteaci="no"
1689 # end --enable-discreteaci
1690 # OpenLDAP --enable-wrappers
1691 # Check whether --enable-wrappers or --disable-wrappers was given.
1692 if test "${enable_wrappers+set}" = set; then
1693 enableval="$enable_wrappers"
1696 for ol_val in auto yes no ; do
1697 if test "$enableval" = "$ol_val" ; then
1701 if test "$ol_arg" = "invalid" ; then
1702 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1704 ol_enable_wrappers="$ol_arg"
1707 ol_enable_wrappers="no"
1709 # end --enable-wrappers
1711 # OpenLDAP --enable-bdb2
1712 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1713 if test "${enable_bdb2+set}" = set; then
1714 enableval="$enable_bdb2"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1725 ol_enable_bdb2="$ol_arg"
1731 # OpenLDAP --with-bdb2_module
1732 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1733 if test "${with_bdb2_module+set}" = set; then
1734 withval="$with_bdb2_module"
1737 for ol_val in static dynamic ; do
1738 if test "$withval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1745 ol_with_bdb2_module="$ol_arg"
1748 ol_with_bdb2_module="static"
1750 # end --with-bdb2_module
1752 # OpenLDAP --enable-ldap
1753 # Check whether --enable-ldap or --disable-ldap was given.
1754 if test "${enable_ldap+set}" = set; then
1755 enableval="$enable_ldap"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1766 ol_enable_ldap="$ol_arg"
1772 # OpenLDAP --with-ldap_module
1773 # Check whether --with-ldap_module or --without-ldap_module was given.
1774 if test "${with_ldap_module+set}" = set; then
1775 withval="$with_ldap_module"
1778 for ol_val in static dynamic ; do
1779 if test "$withval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1786 ol_with_ldap_module="$ol_arg"
1789 ol_with_ldap_module="static"
1791 # end --with-ldap_module
1793 # OpenLDAP --enable-ldbm
1794 # Check whether --enable-ldbm or --disable-ldbm was given.
1795 if test "${enable_ldbm+set}" = set; then
1796 enableval="$enable_ldbm"
1799 for ol_val in auto yes no ; do
1800 if test "$enableval" = "$ol_val" ; then
1804 if test "$ol_arg" = "invalid" ; then
1805 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1807 ol_enable_ldbm="$ol_arg"
1810 ol_enable_ldbm="yes"
1813 # OpenLDAP --with-ldbm_api
1814 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1815 if test "${with_ldbm_api+set}" = set; then
1816 withval="$with_ldbm_api"
1819 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1820 if test "$withval" = "$ol_val" ; then
1824 if test "$ol_arg" = "invalid" ; then
1825 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1827 ol_with_ldbm_api="$ol_arg"
1830 ol_with_ldbm_api="auto"
1832 # end --with-ldbm_api
1834 # OpenLDAP --with-ldbm_module
1835 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1836 if test "${with_ldbm_module+set}" = set; then
1837 withval="$with_ldbm_module"
1840 for ol_val in static dynamic ; do
1841 if test "$withval" = "$ol_val" ; then
1845 if test "$ol_arg" = "invalid" ; then
1846 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1848 ol_with_ldbm_module="$ol_arg"
1851 ol_with_ldbm_module="static"
1853 # end --with-ldbm_module
1855 # OpenLDAP --with-ldbm_type
1856 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1857 if test "${with_ldbm_type+set}" = set; then
1858 withval="$with_ldbm_type"
1861 for ol_val in auto btree hash ; do
1862 if test "$withval" = "$ol_val" ; then
1866 if test "$ol_arg" = "invalid" ; then
1867 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1869 ol_with_ldbm_type="$ol_arg"
1872 ol_with_ldbm_type="auto"
1874 # end --with-ldbm_type
1877 # OpenLDAP --enable-passwd
1878 # Check whether --enable-passwd or --disable-passwd was given.
1879 if test "${enable_passwd+set}" = set; then
1880 enableval="$enable_passwd"
1883 for ol_val in auto yes no ; do
1884 if test "$enableval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1891 ol_enable_passwd="$ol_arg"
1894 ol_enable_passwd="no"
1896 # end --enable-passwd
1897 # OpenLDAP --with-passwd_module
1898 # Check whether --with-passwd_module or --without-passwd_module was given.
1899 if test "${with_passwd_module+set}" = set; then
1900 withval="$with_passwd_module"
1903 for ol_val in static dynamic ; do
1904 if test "$withval" = "$ol_val" ; then
1908 if test "$ol_arg" = "invalid" ; then
1909 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1911 ol_with_passwd_module="$ol_arg"
1914 ol_with_passwd_module="static"
1916 # end --with-passwd_module
1918 # OpenLDAP --enable-perl
1919 # Check whether --enable-perl or --disable-perl was given.
1920 if test "${enable_perl+set}" = set; then
1921 enableval="$enable_perl"
1924 for ol_val in auto yes no ; do
1925 if test "$enableval" = "$ol_val" ; then
1929 if test "$ol_arg" = "invalid" ; then
1930 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1932 ol_enable_perl="$ol_arg"
1938 # OpenLDAP --with-perl_module
1939 # Check whether --with-perl_module or --without-perl_module was given.
1940 if test "${with_perl_module+set}" = set; then
1941 withval="$with_perl_module"
1944 for ol_val in static dynamic ; do
1945 if test "$withval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1952 ol_with_perl_module="$ol_arg"
1955 ol_with_perl_module="static"
1957 # end --with-perl_module
1959 # OpenLDAP --enable-shell
1960 # Check whether --enable-shell or --disable-shell was given.
1961 if test "${enable_shell+set}" = set; then
1962 enableval="$enable_shell"
1965 for ol_val in auto yes no ; do
1966 if test "$enableval" = "$ol_val" ; then
1970 if test "$ol_arg" = "invalid" ; then
1971 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1973 ol_enable_shell="$ol_arg"
1976 ol_enable_shell="no"
1978 # end --enable-shell
1979 # OpenLDAP --with-shell_module
1980 # Check whether --with-shell_module or --without-shell_module was given.
1981 if test "${with_shell_module+set}" = set; then
1982 withval="$with_shell_module"
1985 for ol_val in static dynamic ; do
1986 if test "$withval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1993 ol_with_shell_module="$ol_arg"
1996 ol_with_shell_module="static"
1998 # end --with-shell_module
2000 # OpenLDAP --enable-tcl
2001 # Check whether --enable-tcl or --disable-tcl was given.
2002 if test "${enable_tcl+set}" = set; then
2003 enableval="$enable_tcl"
2006 for ol_val in auto yes no ; do
2007 if test "$enableval" = "$ol_val" ; then
2011 if test "$ol_arg" = "invalid" ; then
2012 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2014 ol_enable_tcl="$ol_arg"
2020 # OpenLDAP --with-tcl_module
2021 # Check whether --with-tcl_module or --without-tcl_module was given.
2022 if test "${with_tcl_module+set}" = set; then
2023 withval="$with_tcl_module"
2026 for ol_val in static dynamic ; do
2027 if test "$withval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2034 ol_with_tcl_module="$ol_arg"
2037 ol_with_tcl_module="static"
2039 # end --with-tcl_module
2042 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2043 if test "${with_xxslurpdoptions+set}" = set; then
2044 withval="$with_xxslurpdoptions"
2048 # OpenLDAP --enable-slurpd
2049 # Check whether --enable-slurpd or --disable-slurpd was given.
2050 if test "${enable_slurpd+set}" = set; then
2051 enableval="$enable_slurpd"
2054 for ol_val in auto yes no ; do
2055 if test "$enableval" = "$ol_val" ; then
2059 if test "$ol_arg" = "invalid" ; then
2060 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2062 ol_enable_slurpd="$ol_arg"
2065 ol_enable_slurpd="auto"
2067 # end --enable-slurpd
2069 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2070 if test "${with_xxliboptions+set}" = set; then
2071 withval="$with_xxliboptions"
2075 # Check whether --enable-static or --disable-static was given.
2076 if test "${enable_static+set}" = set; then
2077 enableval="$enable_static"
2078 p=${PACKAGE-default}
2079 case "$enableval" in
2080 yes) enable_static=yes ;;
2081 no) enable_static=no ;;
2084 # Look at the argument we got. We use all the common list separators.
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2086 for pkg in $enableval; do
2087 if test "X$pkg" = "X$p"; then
2098 # Check whether --enable-shared or --disable-shared was given.
2099 if test "${enable_shared+set}" = set; then
2100 enableval="$enable_shared"
2101 p=${PACKAGE-default}
2102 case "$enableval" in
2103 yes) enable_shared=yes ;;
2104 no) enable_shared=no ;;
2107 # Look at the argument we got. We use all the common list separators.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2109 for pkg in $enableval; do
2110 if test "X$pkg" = "X$p"; then
2123 if test $ol_enable_dns = yes ; then
2124 if test $ol_enable_referrals = no ; then
2125 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2127 if test $ol_enable_referrals = auto ; then
2128 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2129 ol_enable_referrals=yes
2133 if test $ol_enable_slapd = no ; then
2134 if test $ol_enable_bdb2 = yes ; then
2135 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2137 if test $ol_enable_ldap = yes ; then
2138 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2140 if test $ol_enable_ldbm = yes ; then
2141 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2143 if test $ol_enable_passwd = yes ; then
2144 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2146 if test $ol_enable_perl = yes ; then
2147 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2149 if test $ol_enable_shell = yes ; then
2150 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2152 if test $ol_enable_tcl = yes ; then
2153 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2155 if test $ol_enable_modules = yes ; then
2156 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2158 if test $ol_enable_multimaster = yes ; then
2159 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2161 if test $ol_enable_wrappers = yes ; then
2162 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2164 if test $ol_enable_phonetic = yes ; then
2165 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2167 if test $ol_enable_quipu = yes ; then
2168 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2170 if test $ol_enable_rlookups = yes ; then
2171 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2173 if test $ol_enable_aci = yes ; then
2174 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2176 if test $ol_enable_discreteaci = yes ; then
2177 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2179 if test $ol_with_ldbm_api != auto ; then
2180 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2182 if test $ol_with_ldbm_type != auto ; then
2183 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2185 if test $ol_with_bdb2_module != static ; then
2186 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2188 if test $ol_with_ldap_module != static ; then
2189 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2191 if test $ol_with_ldbm_module != static ; then
2192 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2194 if test $ol_with_passwd_module != static ; then
2195 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2197 if test $ol_with_perl_module != static ; then
2198 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2200 if test $ol_with_shell_module != static ; then
2201 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2203 if test $ol_with_tcl_module != static ; then
2204 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2206 if test $ol_enable_slurpd = yes ; then
2207 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2210 # force settings to no
2219 ol_enable_modules=no
2220 ol_enable_multimaster=no
2221 ol_enable_phonetic=no
2223 ol_enable_rlookups=no
2225 ol_enable_discreteaci=no
2226 ol_enable_wrappers=no
2229 ol_with_ldbm_type=no
2231 ol_with_bdb2_module=static
2232 ol_with_ldap_module=static
2233 ol_with_ldbm_module=static
2234 ol_with_passwd_module=static
2235 ol_with_perl_module=static
2236 ol_with_shell_module=static
2237 ol_with_tcl_module=static
2241 elif test $ol_enable_ldbm = no ; then
2243 if test $ol_with_ldbm_api != auto ; then
2244 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2247 if test $ol_with_ldbm_type != auto ; then
2248 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2251 if test $ol_with_ldbm_module != static ; then
2252 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2255 if test $ol_enable_bdb2 = yes ; then
2256 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2259 if test $ol_enable_modules != yes -a \
2260 $ol_enable_ldap = no -a \
2261 $ol_enable_passwd = no -a \
2262 $ol_enable_perl = no -a \
2263 $ol_enable_shell = no -a \
2264 $ol_enable_tcl = no ; then
2265 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2269 ol_with_ldbm_type=no
2270 ol_with_ldbm_module=static
2272 elif test $ol_enable_bdb2 = yes ; then
2274 if test $ol_with_ldbm_api != auto -a \
2275 $ol_with_ldbm_api != db2 ; then
2276 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2279 ol_with_ldbm_api=db2
2283 if test $ol_enable_bdb2 != no ; then
2284 if test $ol_with_ldbm_api != auto -a \
2285 $ol_with_ldbm_api != db2 ; then
2286 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2291 if test $ol_with_ldbm_api = gdbm -a \
2292 $ol_with_ldbm_type = btree ; then
2293 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2295 if test $ol_with_ldbm_api = mdbm -a \
2296 $ol_with_ldbm_type = btree ; then
2297 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2299 if test $ol_with_ldbm_api = ndbm -a \
2300 $ol_with_ldbm_type = btree ; then
2301 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2305 if test $ol_enable_slurpd = yes ; then
2306 if test $ol_with_threads = no ; then
2307 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2311 echo "$ac_t""done" 1>&6
2336 BUILD_BDB2_DYNAMIC=static
2337 BUILD_LDAP_DYNAMIC=static
2338 BUILD_LDBM_DYNAMIC=static
2339 BUILD_PASSWD_DYNAMIC=static
2340 BUILD_PERL_DYNAMIC=static
2341 BUILD_SHELL_DYNAMIC=static
2342 BUILD_TCL_DYNAMIC=static
2344 SLAPD_MODULES_LDFLAGS=
2345 SLAPD_MODULES_CPPFLAGS=
2349 SLAPD_PERL_CPPFLAGS=
2360 cat >> confdefs.h <<\EOF
2361 #define HAVE_MKVERSION 1
2369 *-*-aix*) if test -z "$CC" ; then
2370 case "$ol_with_threads" in
2371 auto | yes | posix) ol_aix_threads=yes ;;
2377 if test $ol_aix_threads = yes ; then
2378 if test -z "${CC}" ; then
2379 for ac_prog in cc_r xlc_r cc
2381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_word" >&5
2385 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2393 for ac_dir in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir=.
2395 if test -f $ac_dir/$ac_word; then
2396 ac_cv_prog_CC="$ac_prog"
2404 if test -n "$CC"; then
2405 echo "$ac_t""$CC" 1>&6
2407 echo "$ac_t""no" 1>&6
2410 test -n "$CC" && break
2414 if test "$CC" = cc ; then
2415 if test $ol_with_threads != auto ; then
2416 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2418 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2424 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2425 ol_with_threads=posix
2426 ol_cv_pthread_create=yes
2430 if test -z "${CC}"; then
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC="$CC" # Let the user override the test.
2443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2445 for ac_dir in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if test -f $ac_dir/$ac_word; then
2448 ac_cv_prog_CC="$ac_prog"
2456 if test -n "$CC"; then
2457 echo "$ac_t""$CC" 1>&6
2459 echo "$ac_t""no" 1>&6
2462 test -n "$CC" && break
2469 # Check whether --enable-fast-install or --disable-fast-install was given.
2470 if test "${enable_fast_install+set}" = set; then
2471 enableval="$enable_fast_install"
2472 p=${PACKAGE-default}
2473 case "$enableval" in
2474 yes) enable_fast_install=yes ;;
2475 no) enable_fast_install=no ;;
2477 enable_fast_install=no
2478 # Look at the argument we got. We use all the common list separators.
2479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2480 for pkg in $enableval; do
2481 if test "X$pkg" = "X$p"; then
2482 enable_fast_install=yes
2489 enable_fast_install=yes
2492 # Extract the first word of "ranlib", so it can be a program name with args.
2493 set dummy ranlib; ac_word=$2
2494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2495 echo "configure:2496: checking for $ac_word" >&5
2496 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 if test -n "$RANLIB"; then
2500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2504 for ac_dir in $ac_dummy; do
2505 test -z "$ac_dir" && ac_dir=.
2506 if test -f $ac_dir/$ac_word; then
2507 ac_cv_prog_RANLIB="ranlib"
2512 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2515 RANLIB="$ac_cv_prog_RANLIB"
2516 if test -n "$RANLIB"; then
2517 echo "$ac_t""$RANLIB" 1>&6
2519 echo "$ac_t""no" 1>&6
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_word" >&5
2526 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2534 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if test -f $ac_dir/$ac_word; then
2545 if test -n "$CC"; then
2546 echo "$ac_t""$CC" 1>&6
2548 echo "$ac_t""no" 1>&6
2551 if test -z "$CC"; then
2552 # Extract the first word of "cc", so it can be a program name with args.
2553 set dummy cc; ac_word=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2565 for ac_dir in $ac_dummy; do
2566 test -z "$ac_dir" && ac_dir=.
2567 if test -f $ac_dir/$ac_word; then
2568 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2569 ac_prog_rejected=yes
2577 if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy $ac_cv_prog_CC
2581 if test $# -gt 0; then
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2586 set dummy "$ac_dir/$ac_word" "$@"
2594 if test -n "$CC"; then
2595 echo "$ac_t""$CC" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 if test -z "$CC"; then
2601 case "`uname -s`" in
2602 *win32* | *WIN32* | *CYGWIN*)
2603 # Extract the first word of "cl", so it can be a program name with args.
2604 set dummy cl; ac_word=$2
2605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_word" >&5
2607 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2615 for ac_dir in $ac_dummy; do
2616 test -z "$ac_dir" && ac_dir=.
2617 if test -f $ac_dir/$ac_word; then
2626 if test -n "$CC"; then
2627 echo "$ac_t""$CC" 1>&6
2629 echo "$ac_t""no" 1>&6
2634 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2637 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2638 echo "configure:2639: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2641 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2644 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2645 cross_compiling=$ac_cv_prog_cc_cross
2647 cat > conftest.$ac_ext << EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655 ac_cv_prog_cc_works=yes
2656 # If we can't run a trivial program, we are probably using a cross compiler.
2657 if (./conftest; exit) 2>/dev/null; then
2658 ac_cv_prog_cc_cross=no
2660 ac_cv_prog_cc_cross=yes
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2665 ac_cv_prog_cc_works=no
2669 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2672 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2673 cross_compiling=$ac_cv_prog_cc_cross
2675 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2676 if test $ac_cv_prog_cc_works = no; then
2677 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2679 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2680 echo "configure:2681: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2681 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2682 cross_compiling=$ac_cv_prog_cc_cross
2684 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2685 echo "configure:2686: checking whether we are using GNU C" >&5
2686 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2689 cat > conftest.c <<EOF
2694 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2701 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2703 if test $ac_cv_prog_gcc = yes; then
2709 ac_test_CFLAGS="${CFLAGS+set}"
2710 ac_save_CFLAGS="$CFLAGS"
2712 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2713 echo "configure:2714: checking whether ${CC-cc} accepts -g" >&5
2714 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 echo 'void f(){}' > conftest.c
2718 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2727 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2728 if test "$ac_test_CFLAGS" = set; then
2729 CFLAGS="$ac_save_CFLAGS"
2730 elif test $ac_cv_prog_cc_g = yes; then
2731 if test "$GCC" = yes; then
2737 if test "$GCC" = yes; then
2744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2745 if test "${with_gnu_ld+set}" = set; then
2746 withval="$with_gnu_ld"
2747 test "$withval" = no || with_gnu_ld=yes
2753 if test "$ac_cv_prog_gcc" = yes; then
2754 # Check if gcc -print-prog-name=ld gives a path.
2755 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2756 echo "configure:2757: checking for ld used by GCC" >&5
2757 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2759 # Accept absolute paths.
2760 [\\/]* | [A-Za-z]:[\\/]*)
2761 re_direlt='/[^/][^/]*/\.\./'
2762 # Canonicalize the path of ld
2763 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2765 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2767 test -z "$LD" && LD="$ac_prog"
2770 # If it fails, then pretend we aren't using GCC.
2774 # If it is relative, then search for the first ld in PATH.
2778 elif test "$with_gnu_ld" = yes; then
2779 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2780 echo "configure:2781: checking for GNU ld" >&5
2782 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2783 echo "configure:2784: checking for non-GNU ld" >&5
2785 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 if test -z "$LD"; then
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2790 for ac_dir in $PATH; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2793 ac_cv_path_LD="$ac_dir/$ac_prog"
2794 # Check to see if the program is GNU ld. I'd rather use --version,
2795 # but apparently some GNU ld's only accept -v.
2796 # Break only if it was the GNU/non-GNU ld that we prefer.
2797 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2798 test "$with_gnu_ld" != no && break
2800 test "$with_gnu_ld" != yes && break
2806 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2811 if test -n "$LD"; then
2812 echo "$ac_t""$LD" 1>&6
2814 echo "$ac_t""no" 1>&6
2816 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2818 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2819 echo "configure:2820: checking if the linker ($LD) is GNU ld" >&5
2820 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2824 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2825 ac_cv_prog_gnu_ld=yes
2827 ac_cv_prog_gnu_ld=no
2831 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2834 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2835 echo "configure:2836: checking for BSD-compatible nm" >&5
2836 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 if test -n "$NM"; then
2840 # Let the user override the test.
2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2844 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2845 test -z "$ac_dir" && ac_dir=.
2846 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2847 # Check to see if the nm accepts a BSD-compat flag.
2848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2849 # nm: unknown option "B" ignored
2850 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2851 ac_cv_path_NM="$ac_dir/nm -B"
2853 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2854 ac_cv_path_NM="$ac_dir/nm -p"
2857 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2858 continue # so that we can try to find one that supports BSD flags
2863 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2868 echo "$ac_t""$NM" 1>&6
2871 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2872 echo "configure:2873: checking whether ln -s works" >&5
2873 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2877 if ln -s X conftestdata 2>/dev/null
2880 ac_cv_prog_LN_S="ln -s"
2885 LN_S="$ac_cv_prog_LN_S"
2886 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2887 echo "$ac_t""yes" 1>&6
2889 echo "$ac_t""no" 1>&6
2893 # Check for any special flags to pass to ltconfig.
2894 libtool_flags="--cache-file=$cache_file"
2895 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2896 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2897 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2898 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2899 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2900 libtool_flags="$libtool_flags --enable-dlopen"
2902 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2903 if test "${enable_libtool_lock+set}" = set; then
2904 enableval="$enable_libtool_lock"
2908 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2909 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2911 # Some flags need to be propagated to the compiler or linker for good
2915 # Find out which ABI we are using.
2916 echo '#line 2917 "configure"' > conftest.$ac_ext
2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2918 case "`/usr/bin/file conftest.o`" in
2934 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2935 SAVE_CFLAGS="$CFLAGS"
2936 CFLAGS="$CFLAGS -belf"
2937 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2938 echo "configure:2939: checking whether the C compiler needs -belf" >&5
2939 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2952 lt_cv_cc_needs_belf=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 lt_cv_cc_needs_belf=no
2962 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2963 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2964 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2965 CFLAGS="$SAVE_CFLAGS"
2973 # Save cache, so that ltconfig can load it
2976 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2977 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2978 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2979 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2980 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2981 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2982 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2983 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2985 # Reload cache, that may have been modified by ltconfig
2988 # This can be used to rebuild libtool when needed
2989 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2991 # Always use our own libtool.
2992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2994 # Redirect the config.log output again, so that the ltconfig log is not
2995 # clobbered by the next message.
2996 exec 5>>./config.log
2999 for ac_prog in mawk gawk nawk awk
3001 # Extract the first word of "$ac_prog", so it can be a program name with args.
3002 set dummy $ac_prog; ac_word=$2
3003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3004 echo "configure:3005: checking for $ac_word" >&5
3005 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 if test -n "$AWK"; then
3009 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3013 for ac_dir in $ac_dummy; do
3014 test -z "$ac_dir" && ac_dir=.
3015 if test -f $ac_dir/$ac_word; then
3016 ac_cv_prog_AWK="$ac_prog"
3023 AWK="$ac_cv_prog_AWK"
3024 if test -n "$AWK"; then
3025 echo "$ac_t""$AWK" 1>&6
3027 echo "$ac_t""no" 1>&6
3030 test -n "$AWK" && break
3033 # test for ln hardlink support
3034 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether ln works" >&5
3036 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 rm -f conftest.src conftest.dst
3040 echo "conftest" > conftest.src
3041 if ln conftest.src conftest.dst 2>/dev/null
3043 ol_cv_prog_LN_H="ln"
3045 ol_cv_prog_LN_H="cp"
3047 rm -f conftest.src conftest.dst
3050 LN_H="$ol_cv_prog_LN_H"
3051 if test "$ol_cv_prog_LN_H" = "ln"; then
3052 echo "$ac_t""yes" 1>&6
3054 echo "$ac_t""no" 1>&6
3057 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3058 echo "configure:3059: checking whether ln -s works" >&5
3059 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3063 if ln -s X conftestdata 2>/dev/null
3066 ac_cv_prog_LN_S="ln -s"
3071 LN_S="$ac_cv_prog_LN_S"
3072 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3073 echo "$ac_t""yes" 1>&6
3075 echo "$ac_t""no" 1>&6
3079 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3083 # Extract the first word of "sendmail", so it can be a program name with args.
3084 set dummy sendmail; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3092 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3095 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3099 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3100 for ac_dir in $ac_dummy; do
3101 test -z "$ac_dir" && ac_dir=.
3102 if test -f $ac_dir/$ac_word; then
3103 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3108 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3112 SENDMAIL="$ac_cv_path_SENDMAIL"
3113 if test -n "$SENDMAIL"; then
3114 echo "$ac_t""$SENDMAIL" 1>&6
3116 echo "$ac_t""no" 1>&6
3119 # Extract the first word of "vi", so it can be a program name with args.
3120 set dummy vi; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3128 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3131 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3135 ac_dummy="$PATH:/usr/ucb"
3136 for ac_dir in $ac_dummy; do
3137 test -z "$ac_dir" && ac_dir=.
3138 if test -f $ac_dir/$ac_word; then
3139 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3144 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3148 EDITOR="$ac_cv_path_EDITOR"
3149 if test -n "$EDITOR"; then
3150 echo "$ac_t""$EDITOR" 1>&6
3152 echo "$ac_t""no" 1>&6
3155 # Extract the first word of "finger", so it can be a program name with args.
3156 set dummy finger; ac_word=$2
3157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_word" >&5
3159 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3164 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3167 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3171 ac_dummy="$PATH:/usr/ucb"
3172 for ac_dir in $ac_dummy; do
3173 test -z "$ac_dir" && ac_dir=.
3174 if test -f $ac_dir/$ac_word; then
3175 ac_cv_path_FINGER="$ac_dir/$ac_word"
3180 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3184 FINGER="$ac_cv_path_FINGER"
3185 if test -n "$FINGER"; then
3186 echo "$ac_t""$FINGER" 1>&6
3188 echo "$ac_t""no" 1>&6
3193 if test $ol_enable_perl != no ; then
3194 # Extract the first word of "perl", so it can be a program name with args.
3195 set dummy perl; ac_word=$2
3196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_word" >&5
3198 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3206 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3211 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3219 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3223 PERLBIN="$ac_cv_path_PERLBIN"
3224 if test -n "$PERLBIN"; then
3225 echo "$ac_t""$PERLBIN" 1>&6
3227 echo "$ac_t""no" 1>&6
3231 if test "no$PERLBIN" = "no" ; then
3232 if test $ol_enable_perl = yes ; then
3233 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3237 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3238 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3244 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3245 echo "configure:3246: checking how to run the C preprocessor" >&5
3246 # On Suns, sometimes $CPP names a directory.
3247 if test -n "$CPP" && test -d "$CPP"; then
3250 if test -z "$CPP"; then
3251 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 # This must be in double quotes, not single quotes, because CPP may get
3255 # substituted into the Makefile and "${CC-cc}" will confuse make.
3257 # On the NeXT, cc -E runs the code through the compiler's parser,
3258 # not just through cpp.
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3266 { (eval echo configure:3267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3268 if test -z "$ac_err"; then
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 CPP="${CC-cc} -E -traditional-cpp"
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3283 { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3285 if test -z "$ac_err"; then
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 CPP="${CC-cc} -nologo -E"
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3300 { (eval echo configure:3301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3302 if test -z "$ac_err"; then
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3316 ac_cv_prog_CPP="$CPP"
3318 CPP="$ac_cv_prog_CPP"
3320 ac_cv_prog_CPP="$CPP"
3322 echo "$ac_t""$CPP" 1>&6
3325 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3326 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3328 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3329 echo "configure: warning: programs compiled here do run here..." 1>&2
3330 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3332 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3333 echo "configure: warning: programs compiled here do not run here..." 1>&2
3334 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3337 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3338 echo "configure:3339: checking for AIX" >&5
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 egrep "yes" >/dev/null 2>&1; then
3350 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3351 #define _ALL_SOURCE 1
3356 echo "$ac_t""no" 1>&6
3361 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3362 echo "configure:3363: checking for POSIXized ISC" >&5
3363 if test -d /etc/conf/kconfig.d &&
3364 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3366 echo "$ac_t""yes" 1>&6
3367 ISC=yes # If later tests want to check for ISC.
3368 cat >> confdefs.h <<\EOF
3369 #define _POSIX_SOURCE 1
3372 if test "$GCC" = yes; then
3378 echo "$ac_t""no" 1>&6
3382 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3383 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3384 echo "configure:3385: checking for minix/config.h" >&5
3385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <minix/config.h>
3393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3394 { (eval echo configure:3395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3396 if test -z "$ac_err"; then
3398 eval "ac_cv_header_$ac_safe=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_header_$ac_safe=no"
3408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3412 echo "$ac_t""no" 1>&6
3416 if test "$MINIX" = yes; then
3417 cat >> confdefs.h <<\EOF
3418 #define _POSIX_SOURCE 1
3421 cat >> confdefs.h <<\EOF
3422 #define _POSIX_1_SOURCE 2
3425 cat >> confdefs.h <<\EOF
3432 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3433 echo "configure:3434: checking for Cygwin environment" >&5
3434 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3444 #define __CYGWIN__ __CYGWIN32__
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3461 echo "$ac_t""$ac_cv_cygwin" 1>&6
3463 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3464 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3465 echo "configure:3466: checking for mingw32 environment" >&5
3466 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3477 if { (eval echo configure:3478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3489 echo "$ac_t""$ac_cv_mingw32" 1>&6
3491 test "$ac_cv_mingw32" = yes && MINGW32=yes
3492 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3493 echo "configure:3494: checking for EMX OS/2 environment" >&5
3494 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3517 echo "$ac_t""$ac_cv_emxos2" 1>&6
3519 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3523 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3524 echo "configure:3525: checking for executable suffix" >&5
3525 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3532 echo 'int main () { return 0; }' > conftest.$ac_ext
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3535 for file in conftest.*; do
3537 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3538 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3542 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3545 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3550 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3551 echo "$ac_t""${ac_cv_exeext}" 1>&6
3554 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3555 echo "configure:3556: checking for object suffix" >&5
3556 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3560 echo 'int i = 1;' > conftest.$ac_ext
3561 if { (eval echo configure:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 for ac_file in conftest.*; do
3565 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3569 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3574 echo "$ac_t""$ac_cv_objext" 1>&6
3575 OBJEXT=$ac_cv_objext
3576 ac_objext=$ac_cv_objext
3579 cat >> confdefs.h <<EOF
3580 #define EXEEXT "${EXEEXT}"
3584 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3585 echo "configure:3586: checking for be_app in -lbe" >&5
3586 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3587 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3591 LIBS="-lbe -lroot -lnet $LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 eval "ac_cv_lib_$ac_lib_var=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_lib_$ac_lib_var=no"
3614 LIBS="$ac_save_LIBS"
3617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 LIBS="$LIBS -lbe -lroot -lnet"
3621 echo "$ac_t""no" 1>&6
3629 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3630 echo "configure:3631: checking for ${CC-cc} option to accept ANSI C" >&5
3631 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 am_cv_prog_cc_stdc=no
3636 # Don't try gcc -ansi; that turns off useful extensions and
3637 # breaks some systems' header files.
3638 # AIX -qlanglvl=ansi
3639 # Ultrix and OSF/1 -std1
3640 # HP-UX 10.20 and later -Ae
3641 # HP-UX older versions -Aa -D_HPUX_SOURCE
3642 # SVR4 -Xc -D__EXTENSIONS__
3643 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 CC="$ac_save_CC $ac_arg"
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3651 #include <sys/types.h>
3652 #include <sys/stat.h>
3653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654 struct buf { int x; };
3655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656 static char *e (p, i)
3662 static char *f (char * (*g) (char **, int), char **p, ...)
3667 s = g (p, va_arg (v,int));
3671 int test (int i, double x);
3672 struct s1 {int (*f) (int a);};
3673 struct s2 {int (*f) (double a);};
3674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3684 if { (eval echo configure:3685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 am_cv_prog_cc_stdc="$ac_arg"; break
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3697 if test -z "$am_cv_prog_cc_stdc"; then
3698 echo "$ac_t""none needed" 1>&6
3700 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3702 case "x$am_cv_prog_cc_stdc" in
3704 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3707 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3708 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3711 # test for make depend flag
3714 if test -z "${MKDEP}"; then
3716 if test -z "${MKDEP_FLAGS}"; then
3717 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3718 echo "configure:3719: checking for ${OL_MKDEP} depend flag" >&5
3719 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3724 for flag in "-M" "-xM"; do
3725 cat > conftest.c <<EOF
3728 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3729 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3731 if test ! -f conftest."${ac_object}" ; then
3733 OL_MKDEP_FLAGS="$flag"
3742 echo "$ac_t""$ol_cv_mkdep" 1>&6
3745 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3750 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3755 if test "${ol_cv_mkdep}" = no ; then
3756 # this will soon become an error
3757 echo "configure: warning: do not know how to generate dependencies" 1>&2
3761 if test $ol_enable_modules != no ; then
3762 for ac_hdr in ltdl.h
3764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3766 echo "configure:3767: checking for $ac_hdr" >&5
3767 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3776 { (eval echo configure:3777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3778 if test -z "$ac_err"; then
3780 eval "ac_cv_header_$ac_safe=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_header_$ac_safe=no"
3790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3793 cat >> confdefs.h <<EOF
3794 #define $ac_tr_hdr 1
3798 echo "$ac_t""no" 1>&6
3803 if test $ac_cv_header_ltdl_h = no ; then
3804 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3808 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3809 echo "configure:3810: checking for lt_dlinit in -lltdl" >&5
3810 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 ac_save_LIBS="$LIBS"
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 eval "ac_cv_lib_$ac_lib_var=no"
3838 LIBS="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_lib 1
3852 echo "$ac_t""no" 1>&6
3855 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3856 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3860 ol_with_bdb2_module=static
3861 ol_with_ldap_module=static
3862 ol_with_ldbm_module=static
3863 ol_with_passwd_module=static
3864 ol_with_perl_module=static
3865 ol_with_shell_module=static
3866 ol_with_tcl_module=static
3870 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3871 echo "configure:3872: checking for EBCDIC" >&5
3872 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3881 #include <__ASCII__/generate_error.h>
3885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3886 { (eval echo configure:3887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3888 if test -z "$ac_err"; then
3890 ol_cv_cpp_ebcdic=yes
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3901 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3902 if test $ol_cv_cpp_ebcdic = yes ; then
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_EBCDIC 1
3909 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3910 echo "configure:3911: checking for ANSI C header files" >&5
3911 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3923 { (eval echo configure:3924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3925 if test -z "$ac_err"; then
3927 ol_cv_header_stdc=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 ol_cv_header_stdc=no
3937 if test $ol_cv_header_stdc = yes; then
3938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 egrep "memchr" >/dev/null 2>&1; then
3949 ol_cv_header_stdc=no
3955 if test $ol_cv_header_stdc = yes; then
3956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3963 egrep "free" >/dev/null 2>&1; then
3967 ol_cv_header_stdc=no
3973 if test $ol_cv_header_stdc = yes; then
3974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3975 if test "$cross_compiling" = yes; then
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3986 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3991 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 int main () { int i; for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 ol_cv_header_stdc=no
4012 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4013 if test $ol_cv_header_stdc = yes; then
4014 cat >> confdefs.h <<\EOF
4015 #define STDC_HEADERS 1
4019 ac_cv_header_stdc=disable
4022 if test $ol_cv_header_stdc != yes; then
4023 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4027 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4030 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4031 echo "configure:4032: checking for $ac_hdr that defines DIR" >&5
4032 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 #include <sys/types.h>
4044 if { (eval echo configure:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 eval "ac_cv_header_dirent_$ac_safe=yes"
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4051 eval "ac_cv_header_dirent_$ac_safe=no"
4055 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4056 echo "$ac_t""yes" 1>&6
4057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4058 cat >> confdefs.h <<EOF
4059 #define $ac_tr_hdr 1
4061 ac_header_dirent=$ac_hdr; break
4063 echo "$ac_t""no" 1>&6
4066 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4067 if test $ac_header_dirent = dirent.h; then
4068 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4069 echo "configure:4070: checking for opendir in -ldir" >&5
4070 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 ac_save_LIBS="$LIBS"
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_lib_$ac_lib_var=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_lib_$ac_lib_var=no"
4098 LIBS="$ac_save_LIBS"
4101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4105 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4110 echo "configure:4111: checking for opendir in -lx" >&5
4111 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4112 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 ac_save_LIBS="$LIBS"
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4131 eval "ac_cv_lib_$ac_lib_var=yes"
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 eval "ac_cv_lib_$ac_lib_var=no"
4139 LIBS="$ac_save_LIBS"
4142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4146 echo "$ac_t""no" 1>&6
4151 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4152 echo "configure:4153: checking for sys/wait.h that is POSIX.1 compatible" >&5
4153 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4154 echo $ac_n "(cached) $ac_c" 1>&6
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure"
4158 #include "confdefs.h"
4159 #include <sys/types.h>
4160 #include <sys/wait.h>
4162 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4165 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4170 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4175 ac_cv_header_sys_wait_h=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 ac_cv_header_sys_wait_h=no
4185 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4186 if test $ac_cv_header_sys_wait_h = yes; then
4187 cat >> confdefs.h <<\EOF
4188 #define HAVE_SYS_WAIT_H 1
4193 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4194 echo "configure:4195: checking POSIX termios" >&5
4195 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <sys/types.h>
4203 #include <termios.h>
4205 /* SunOS 4.0.3 has termios.h but not the library calls. */
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4211 am_cv_sys_posix_termios=yes
4213 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4216 am_cv_sys_posix_termios=no
4221 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4224 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4225 echo "configure:4226: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4226 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4229 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4231 gwinsz_in_termios_h=no
4232 if test $am_cv_sys_posix_termios = yes; then
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 #include <sys/types.h>
4237 # include <termios.h>
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 egrep "yes" >/dev/null 2>&1; then
4246 gwinsz_in_termios_h=yes
4252 if test $gwinsz_in_termios_h = no; then
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <sys/types.h>
4257 # include <sys/ioctl.h>
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 egrep "yes" >/dev/null 2>&1; then
4266 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4274 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4275 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4276 cat >> confdefs.h <<\EOF
4277 #define GWINSZ_IN_SYS_IOCTL 1
4282 if test $am_cv_sys_posix_termios = yes ; then
4283 cat >> confdefs.h <<\EOF
4284 #define HAVE_POSIX_TERMIOS 1
4330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4332 echo "configure:4333: checking for $ac_hdr" >&5
4333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4342 { (eval echo configure:4343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4344 if test -z "$ac_err"; then
4346 eval "ac_cv_header_$ac_safe=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 eval "ac_cv_header_$ac_safe=no"
4356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4359 cat >> confdefs.h <<EOF
4360 #define $ac_tr_hdr 1
4364 echo "$ac_t""no" 1>&6
4371 echo $ac_n "checking for socket""... $ac_c" 1>&6
4372 echo "configure:4373: checking for socket" >&5
4373 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 /* System header to define __stub macros and hopefully few prototypes,
4380 which can conflict with char socket(); below. */
4382 /* Override any gcc2 internal prototype to avoid an error. */
4383 /* We use char because int might match the return type of a gcc2
4384 builtin and then its argument prototype would still apply. */
4390 /* The GNU C library defines this for functions which it implements
4391 to always fail with ENOSYS. Some functions are actually named
4392 something starting with __ and the normal name is an alias. */
4393 #if defined (__stub_socket) || defined (__stub___socket)
4401 if { (eval echo configure:4402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4403 eval "ac_cv_func_socket=yes"
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4408 eval "ac_cv_func_socket=no"
4413 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4417 echo "$ac_t""no" 1>&6
4419 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4420 echo "configure:4421: checking for main in -lsocket" >&5
4421 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 ac_save_LIBS="$LIBS"
4426 LIBS="-lsocket $LIBS"
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_lib_$ac_lib_var=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_lib_$ac_lib_var=no"
4445 LIBS="$ac_save_LIBS"
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4452 cat >> confdefs.h <<EOF
4453 #define $ac_tr_lib 1
4456 LIBS="-lsocket $LIBS"
4459 echo "$ac_t""no" 1>&6
4462 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4463 echo "configure:4464: checking for main in -lnet" >&5
4464 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 ac_save_LIBS="$LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 eval "ac_cv_lib_$ac_lib_var=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_lib_$ac_lib_var=no"
4488 LIBS="$ac_save_LIBS"
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_lib 1
4502 echo "$ac_t""no" 1>&6
4505 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4506 echo "configure:4507: checking for socket in -lnet" >&5
4507 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4508 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 ac_save_LIBS="$LIBS"
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4525 if { (eval echo configure:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 eval "ac_cv_lib_$ac_lib_var=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_lib_$ac_lib_var=no"
4535 LIBS="$ac_save_LIBS"
4538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4539 echo "$ac_t""yes" 1>&6
4540 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4542 cat >> confdefs.h <<EOF
4543 #define $ac_tr_lib 1
4549 echo "$ac_t""no" 1>&6
4552 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4553 echo "configure:4554: checking for main in -lnsl_s" >&5
4554 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS="$LIBS"
4559 LIBS="-lnsl_s $LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_lib_$ac_lib_var=no"
4578 LIBS="$ac_save_LIBS"
4581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4585 cat >> confdefs.h <<EOF
4586 #define $ac_tr_lib 1
4589 LIBS="-lnsl_s $LIBS"
4592 echo "$ac_t""no" 1>&6
4595 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4596 echo "configure:4597: checking for main in -lnsl" >&5
4597 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4598 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 ac_save_LIBS="$LIBS"
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_lib 1
4635 echo "$ac_t""no" 1>&6
4638 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4639 echo "configure:4640: checking for socket in -linet" >&5
4640 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS="$LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_lib 1
4682 echo "$ac_t""no" 1>&6
4685 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4686 echo "configure:4687: checking for main in -lgen" >&5
4687 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 ac_save_LIBS="$LIBS"
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4701 if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 eval "ac_cv_lib_$ac_lib_var=yes"
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 eval "ac_cv_lib_$ac_lib_var=no"
4711 LIBS="$ac_save_LIBS"
4714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4718 cat >> confdefs.h <<EOF
4719 #define $ac_tr_lib 1
4725 echo "$ac_t""no" 1>&6
4732 echo $ac_n "checking for select""... $ac_c" 1>&6
4733 echo "configure:4734: checking for select" >&5
4734 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char select(); below. */
4743 /* Override any gcc2 internal prototype to avoid an error. */
4744 /* We use char because int might match the return type of a gcc2
4745 builtin and then its argument prototype would still apply. */
4751 /* The GNU C library defines this for functions which it implements
4752 to always fail with ENOSYS. Some functions are actually named
4753 something starting with __ and the normal name is an alias. */
4754 #if defined (__stub_select) || defined (__stub___select)
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_func_select=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_func_select=no"
4774 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4778 echo "$ac_t""no" 1>&6
4779 { echo "configure: error: select() required." 1>&2; exit 1; }
4783 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4784 echo "configure:4785: checking types of arguments for select()" >&5
4785 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4795 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4796 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 #ifdef HAVE_SYS_TYPES_H
4801 #include <sys/types.h>
4803 #ifdef HAVE_SYS_TIME_H
4804 #include <sys/time.h>
4806 #ifdef HAVE_SYS_SELECT_H
4807 #include <sys/select.h>
4809 #ifdef HAVE_SYS_SOCKET_H
4810 #include <sys/socket.h>
4812 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);
4817 if { (eval echo configure:4818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4819 ac_not_found=no ; break 3
4821 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5
4836 if test "$ac_not_found" = yes; then
4837 ac_cv_func_select_arg1=int
4838 ac_cv_func_select_arg234='int *'
4839 ac_cv_func_select_arg5='struct timeval *'
4841 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4842 cat >> confdefs.h <<EOF
4843 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4846 cat >> confdefs.h <<EOF
4847 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4850 cat >> confdefs.h <<EOF
4851 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4857 for ac_hdr in regex.h
4859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4861 echo "configure:4862: checking for $ac_hdr" >&5
4862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4871 { (eval echo configure:4872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4873 if test -z "$ac_err"; then
4875 eval "ac_cv_header_$ac_safe=yes"
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4881 eval "ac_cv_header_$ac_safe=no"
4885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_hdr 1
4893 echo "$ac_t""no" 1>&6
4897 if test "$ac_cv_header_regex_h" != yes ; then
4898 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4900 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4901 echo "configure:4902: checking for regfree" >&5
4902 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char regfree(); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4919 /* The GNU C library defines this for functions which it implements
4920 to always fail with ENOSYS. Some functions are actually named
4921 something starting with __ and the normal name is an alias. */
4922 #if defined (__stub_regfree) || defined (__stub___regfree)
4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932 eval "ac_cv_func_regfree=yes"
4934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4937 eval "ac_cv_func_regfree=no"
4942 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4946 echo "$ac_t""no" 1>&6
4947 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4952 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4953 echo "configure:4954: checking for compatible POSIX regex" >&5
4954 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4958 if test "$cross_compiling" = yes; then
4959 ol_cv_c_posix_regex=cross
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4965 #include <sys/types.h>
4967 static char *pattern, *string;
4975 if(regcomp(&re, pattern, 0)) {
4979 string = "ALL MATCH";
4981 rc = regexec(&re, string, 0, (void*)0, 0);
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4990 ol_cv_c_posix_regex=yes
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 ol_cv_c_posix_regex=no
5002 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5004 if test "$ol_cv_c_posix_regex" = no ; then
5005 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5008 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5009 echo "configure:5010: checking for sigset in -lV3" >&5
5010 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5011 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 ac_save_LIBS="$LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5028 if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 eval "ac_cv_lib_$ac_lib_var=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5035 eval "ac_cv_lib_$ac_lib_var=no"
5038 LIBS="$ac_save_LIBS"
5041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_lib 1
5052 echo "$ac_t""no" 1>&6
5056 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5057 echo "configure:5058: checking for res_search" >&5
5058 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char res_search(); below. */
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5075 /* The GNU C library defines this for functions which it implements
5076 to always fail with ENOSYS. Some functions are actually named
5077 something starting with __ and the normal name is an alias. */
5078 #if defined (__stub_res_search) || defined (__stub___res_search)
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5088 eval "ac_cv_func_res_search=yes"
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 eval "ac_cv_func_res_search=no"
5098 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5102 echo "$ac_t""no" 1>&6
5105 if test $ac_cv_func_res_search = no ; then
5106 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5107 echo "configure:5108: checking for res_search in -lbind" >&5
5108 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 ac_save_LIBS="$LIBS"
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* Override any gcc2 internal prototype to avoid an error. */
5118 /* We use char because int might match the return type of a gcc2
5119 builtin and then its argument prototype would still apply. */
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5128 eval "ac_cv_lib_$ac_lib_var=yes"
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 eval "ac_cv_lib_$ac_lib_var=no"
5136 LIBS="$ac_save_LIBS"
5139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5140 echo "$ac_t""yes" 1>&6
5141 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5143 cat >> confdefs.h <<EOF
5144 #define $ac_tr_lib 1
5150 echo "$ac_t""no" 1>&6
5153 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5156 if test $ac_cv_func_res_search = no ; then
5157 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5158 echo "configure:5159: checking for __res_search in -lbind" >&5
5159 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5160 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 ac_save_LIBS="$LIBS"
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5171 char __res_search();
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 eval "ac_cv_lib_$ac_lib_var=yes"
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5184 eval "ac_cv_lib_$ac_lib_var=no"
5187 LIBS="$ac_save_LIBS"
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5194 cat >> confdefs.h <<EOF
5195 #define $ac_tr_lib 1
5201 echo "$ac_t""no" 1>&6
5204 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5207 if test $ac_cv_func_res_search = no ; then
5208 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5209 echo "configure:5210: checking for res_search in -lresolv" >&5
5210 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5211 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 ac_save_LIBS="$LIBS"
5215 LIBS="-lresolv $LIBS"
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 eval "ac_cv_lib_$ac_lib_var=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 eval "ac_cv_lib_$ac_lib_var=no"
5238 LIBS="$ac_save_LIBS"
5241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5243 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5245 cat >> confdefs.h <<EOF
5246 #define $ac_tr_lib 1
5249 LIBS="-lresolv $LIBS"
5252 echo "$ac_t""no" 1>&6
5255 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5258 if test "$ac_cv_func_res_search" = yes ; then
5259 cat >> confdefs.h <<\EOF
5260 #define HAVE_RES_SEARCH 1
5263 elif test $ol_enable_dns = yes ; then
5264 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5265 elif test $ol_enable_dns != no ; then
5266 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5271 if test $ol_enable_quipu != no ; then
5272 for ac_hdr in quipu/commonarg.h
5274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5276 echo "configure:5277: checking for $ac_hdr" >&5
5277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5286 { (eval echo configure:5287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5288 if test -z "$ac_err"; then
5290 eval "ac_cv_header_$ac_safe=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 eval "ac_cv_header_$ac_safe=no"
5300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5303 cat >> confdefs.h <<EOF
5304 #define $ac_tr_hdr 1
5308 echo "$ac_t""no" 1>&6
5313 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5315 elif test $ol_enable_quipu = auto ; then
5316 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5318 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5324 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5325 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_hdr" >&5
5330 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5339 { (eval echo configure:5340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5341 if test -z "$ac_err"; then
5343 eval "ac_cv_header_$ac_safe=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_header_$ac_safe=no"
5353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5356 cat >> confdefs.h <<EOF
5357 #define $ac_tr_hdr 1
5361 echo "$ac_t""no" 1>&6
5366 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5367 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5368 echo "configure:5369: checking for main in -lkrb4" >&5
5369 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 ac_save_LIBS="$LIBS"
5374 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385 eval "ac_cv_lib_$ac_lib_var=yes"
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5390 eval "ac_cv_lib_$ac_lib_var=no"
5393 LIBS="$ac_save_LIBS"
5396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5400 echo "$ac_t""no" 1>&6
5405 if test $have_k5 = yes ; then
5406 ol_with_kerberos=found
5407 ol_link_kerberos=yes
5409 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5411 LIBS="$KRB_LIBS $LIBS"
5413 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5414 echo "configure:5415: checking for des_debug in Kerberos libraries" >&5
5415 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5420 LIBS="$KRB_LIBS $LIBS"
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5425 #include <kerberosIV/krb.h>
5426 #include <kerberosIV/des.h>
5427 extern int des_debug;
5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437 ol_cv_var_des_debug=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 ol_cv_var_des_debug=no
5449 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5451 if test $ol_cv_var_des_debug = yes ; then
5452 cat >> confdefs.h <<\EOF
5453 #define HAVE_DES_DEBUG 1
5463 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5464 for ac_hdr in krb.h des.h
5466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5468 echo "configure:5469: checking for $ac_hdr" >&5
5469 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5478 { (eval echo configure:5479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5480 if test -z "$ac_err"; then
5482 eval "ac_cv_header_$ac_safe=yes"
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 eval "ac_cv_header_$ac_safe=no"
5492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5493 echo "$ac_t""yes" 1>&6
5494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5495 cat >> confdefs.h <<EOF
5496 #define $ac_tr_hdr 1
5500 echo "$ac_t""no" 1>&6
5505 if test $ac_cv_header_krb_h = yes ; then
5506 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5507 echo "configure:5508: checking for main in -lkrb" >&5
5508 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 ac_save_LIBS="$LIBS"
5513 LIBS="-lkrb -ldes $LIBS"
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524 eval "ac_cv_lib_$ac_lib_var=yes"
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 eval "ac_cv_lib_$ac_lib_var=no"
5532 LIBS="$ac_save_LIBS"
5535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5539 echo "$ac_t""no" 1>&6
5544 if test $have_k4 = yes ; then
5545 ol_with_kerberos=found
5546 ol_link_kerberos=yes
5548 KRB_LIBS="-lkrb -ldes"
5553 if test $ol_link_kerberos = yes ; then
5554 cat >> confdefs.h <<\EOF
5555 #define HAVE_KERBEROS 1
5561 if test $ol_with_tls != no ; then
5563 for ac_hdr in openssl/ssl.h ssl.h
5565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_hdr" >&5
5568 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5577 { (eval echo configure:5578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5579 if test -z "$ac_err"; then
5581 eval "ac_cv_header_$ac_safe=yes"
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 eval "ac_cv_header_$ac_safe=no"
5591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5592 echo "$ac_t""yes" 1>&6
5593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5594 cat >> confdefs.h <<EOF
5595 #define $ac_tr_hdr 1
5599 echo "$ac_t""no" 1>&6
5604 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5605 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5606 echo "configure:5607: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5607 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5608 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 ac_save_LIBS="$LIBS"
5612 LIBS="-lssl -lcrypto $LIBS"
5613 cat > conftest.$ac_ext <<EOF
5614 #line 5615 "configure"
5615 #include "confdefs.h"
5616 /* Override any gcc2 internal prototype to avoid an error. */
5617 /* We use char because int might match the return type of a gcc2
5618 builtin and then its argument prototype would still apply. */
5619 char SSLeay_add_ssl_algorithms();
5622 SSLeay_add_ssl_algorithms()
5625 if { (eval echo configure:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 eval "ac_cv_lib_$ac_lib_var=yes"
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 eval "ac_cv_lib_$ac_lib_var=no"
5635 LIBS="$ac_save_LIBS"
5638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5639 echo "$ac_t""yes" 1>&6
5643 echo "$ac_t""no" 1>&6
5648 if test $have_ssleay = no ; then
5649 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5650 echo "configure:5651: checking for SSL_library_init in -lssl" >&5
5651 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 ac_save_LIBS="$LIBS"
5656 LIBS="-lssl -lcrypto $LIBS"
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5663 char SSL_library_init();
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 eval "ac_cv_lib_$ac_lib_var=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_lib_$ac_lib_var=no"
5679 LIBS="$ac_save_LIBS"
5682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5683 echo "$ac_t""yes" 1>&6
5687 echo "$ac_t""no" 1>&6
5693 if test $have_ssleay = no ; then
5694 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5695 echo "configure:5696: checking for ssl3_accept in -lssl" >&5
5696 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5697 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 ac_save_LIBS="$LIBS"
5701 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5716 eval "ac_cv_lib_$ac_lib_var=yes"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 eval "ac_cv_lib_$ac_lib_var=no"
5724 LIBS="$ac_save_LIBS"
5727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5732 echo "$ac_t""no" 1>&6
5738 if test $have_ssleay = yes ; then
5742 cat >> confdefs.h <<\EOF
5743 #define HAVE_SSLEAY 1
5747 if test $need_rsaref = yes; then
5748 cat >> confdefs.h <<\EOF
5749 #define HAVE_RSAREF 1
5753 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5755 TLS_LIBS="-lssl -lcrypto"
5761 if test $ol_link_tls = yes ; then
5762 cat >> confdefs.h <<\EOF
5770 gethostbyname_r gethostbyaddr_r \
5773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5774 echo "configure:5775: checking for $ac_func" >&5
5775 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5781 /* System header to define __stub macros and hopefully few prototypes,
5782 which can conflict with char $ac_func(); below. */
5784 /* Override any gcc2 internal prototype to avoid an error. */
5785 /* We use char because int might match the return type of a gcc2
5786 builtin and then its argument prototype would still apply. */
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 eval "ac_cv_func_$ac_func=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 eval "ac_cv_func_$ac_func=no"
5815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5816 echo "$ac_t""yes" 1>&6
5817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5818 cat >> confdefs.h <<EOF
5819 #define $ac_tr_func 1
5823 echo "$ac_t""no" 1>&6
5828 if test "$ac_cv_func_ctime_r" = no ; then
5829 ol_cv_func_ctime_r_nargs=0
5831 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5832 echo "configure:5833: checking number of arguments of ctime_r" >&5
5833 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5841 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5844 if { (eval echo configure:5845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5846 ol_cv_func_ctime_r_nargs=3
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5856 time_t ti; char *buffer; ctime_r(&ti,buffer);
5859 if { (eval echo configure:5860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5861 ol_cv_func_ctime_r_nargs=2
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 ol_cv_func_ctime_r_nargs=0
5873 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5874 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5875 cat >> confdefs.h <<EOF
5876 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5883 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5884 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5885 echo "configure:5886: checking number of arguments of gethostbyname_r" >&5
5886 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 #include <sys/types.h>
5893 #include <sys/socket.h>
5894 #include <netinet/in.h>
5896 #define BUFSIZE (sizeof(struct hostent)+10)
5898 struct hostent hent; char buffer[BUFSIZE];
5899 int bufsize=BUFSIZE;int h_errno;
5900 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5901 buffer, bufsize, &h_errno);
5904 if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5906 ol_cv_func_gethostbyname_r_nargs=5
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 #include <sys/types.h>
5915 #include <sys/socket.h>
5916 #include <netinet/in.h>
5918 #define BUFSIZE (sizeof(struct hostent)+10)
5920 struct hostent hent;struct hostent *rhent;
5921 char buffer[BUFSIZE];
5922 int bufsize=BUFSIZE;int h_errno;
5923 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5927 if { (eval echo configure:5928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5929 ol_cv_func_gethostbyname_r_nargs=6
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5934 ol_cv_func_gethostbyname_r_nargs=0
5941 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5942 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5943 cat >> confdefs.h <<EOF
5944 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5950 ol_cv_func_gethostbyname_r_nargs=0
5953 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5954 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5955 echo "configure:5956: checking number of arguments of gethostbyaddr_r" >&5
5956 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 #include <sys/types.h>
5963 #include <sys/socket.h>
5964 #include <netinet/in.h>
5966 #define BUFSIZE (sizeof(struct hostent)+10)
5968 struct hostent hent; char buffer[BUFSIZE];
5970 size_t alen=sizeof(struct in_addr);
5971 int bufsize=BUFSIZE;int h_errno;
5972 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5973 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5976 if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5978 ol_cv_func_gethostbyaddr_r_nargs=7
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 #include <sys/types.h>
5987 #include <sys/socket.h>
5988 #include <netinet/in.h>
5990 #define BUFSIZE (sizeof(struct hostent)+10)
5992 struct hostent hent;
5993 struct hostent *rhent; char buffer[BUFSIZE];
5995 size_t alen=sizeof(struct in_addr);
5996 int bufsize=BUFSIZE;int h_errno;
5997 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5998 alen, AF_INET, &hent, buffer, bufsize,
6002 if { (eval echo configure:6003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6004 ol_cv_func_gethostbyaddr_r_nargs=8
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6009 ol_cv_func_gethostbyaddr_r_nargs=0
6016 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6017 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6018 cat >> confdefs.h <<EOF
6019 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6025 ol_cv_func_gethostbyaddr_r_nargs=0
6028 if test "$ac_cv_func_ctime_r" = yes \
6029 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6030 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6031 -a "$ac_cv_func_gethostbyname_r" = yes \
6032 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6033 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6034 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6035 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6036 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6039 cat >> confdefs.h <<\EOF
6040 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6046 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6047 -o $ol_with_threads = posix ; then
6049 for ac_hdr in pthread.h
6051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_hdr" >&5
6054 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6063 { (eval echo configure:6064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6065 if test -z "$ac_err"; then
6067 eval "ac_cv_header_$ac_safe=yes"
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6073 eval "ac_cv_header_$ac_safe=no"
6077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6078 echo "$ac_t""yes" 1>&6
6079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6080 cat >> confdefs.h <<EOF
6081 #define $ac_tr_hdr 1
6085 echo "$ac_t""no" 1>&6
6090 if test $ac_cv_header_pthread_h = yes ; then
6091 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6092 echo "configure:6093: checking POSIX thread version" >&5
6093 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6101 # include <pthread.h>
6102 /* this check could be improved */
6103 # ifdef PTHREAD_ONCE_INIT
6104 pthread_version_final
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 egrep "pthread_version_final" >/dev/null 2>&1; then
6111 ol_pthread_final=yes
6119 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure"
6121 #include "confdefs.h"
6123 # include <pthread.h>
6124 /* this check could be improved */
6125 # ifdef pthread_once_init
6126 pthread_version_draft4
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6133 ol_pthread_draft4=yes
6136 ol_pthread_draft4=no
6141 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6142 ol_cv_pthread_version=final
6143 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6144 ol_cv_pthread_version=draft4
6146 ol_cv_pthread_version=unknown
6151 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6154 if test $ol_cv_pthread_version = final ; then
6155 cat >> confdefs.h <<\EOF
6156 #define HAVE_PTHREADS_FINAL 1
6159 elif test $ol_cv_pthread_version = draft4 ; then
6160 cat >> confdefs.h <<\EOF
6161 #define HAVE_PTHREADS_D4 1
6165 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6168 # consider threads found
6169 ol_with_threads=found
6172 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6173 echo "configure:6174: checking for LinuxThreads pthread.h" >&5
6174 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 #include <pthread.h>
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6185 ol_cv_header_linux_threads=yes
6188 ol_cv_header_linux_threads=no
6195 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6196 if test $ol_cv_header_linux_threads = yes; then
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_LINUX_THREADS 1
6204 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6205 echo "configure:6206: checking for GNU Pth pthread.h" >&5
6206 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 #include <pthread.h>
6213 #ifdef _POSIX_THREAD_IS_GNU_PTH
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219 egrep "__gnu_pth__" >/dev/null 2>&1; then
6221 ol_cv_header_gnu_pth_pthread_h=yes
6224 ol_cv_header_gnu_pth_pthread_h=no
6231 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6234 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6235 for ac_hdr in sched.h
6237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6239 echo "configure:6240: checking for $ac_hdr" >&5
6240 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6249 { (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6251 if test -z "$ac_err"; then
6253 eval "ac_cv_header_$ac_safe=yes"
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 eval "ac_cv_header_$ac_safe=no"
6263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6264 echo "$ac_t""yes" 1>&6
6265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6266 cat >> confdefs.h <<EOF
6267 #define $ac_tr_hdr 1
6271 echo "$ac_t""no" 1>&6
6278 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6279 echo "configure:6280: checking for pthread_create in default libraries" >&5
6280 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6281 echo $ac_n "(cached) $ac_c" 1>&6
6284 if test "$cross_compiling" = yes; then
6285 cat > conftest.$ac_ext <<EOF
6286 #line 6287 "configure"
6287 #include "confdefs.h"
6288 /* pthread test headers */
6289 #include <pthread.h>
6291 #define NULL (void*)0
6294 static void *task(p)
6297 return (void *) (p == NULL);
6302 /* pthread test function */
6306 /* make sure pthread_create() isn't just a stub */
6307 #if HAVE_PTHREADS_D4
6308 status = pthread_create(&t, pthread_attr_default, task, NULL);
6310 status = pthread_create(&t, NULL, task, NULL);
6313 if( status ) exit( status );
6315 /* make sure pthread_detach() isn't just a stub */
6316 #if HAVE_PTHREADS_D4
6317 status = pthread_detach( &t );
6319 status = pthread_detach( t );
6322 #ifdef HAVE_LINUX_THREADS
6323 pthread_kill_other_threads_np();
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 ol_cv_pthread_create=yes
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6337 ol_cv_pthread_create=no
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 /* pthread test headers */
6345 #include <pthread.h>
6347 #define NULL (void*)0
6350 static void *task(p)
6353 return (void *) (p == NULL);
6357 int main(argc, argv)
6362 /* pthread test function */
6366 /* make sure pthread_create() isn't just a stub */
6367 #if HAVE_PTHREADS_D4
6368 status = pthread_create(&t, pthread_attr_default, task, NULL);
6370 status = pthread_create(&t, NULL, task, NULL);
6373 if( status ) exit( status );
6375 /* make sure pthread_detach() isn't just a stub */
6376 #if HAVE_PTHREADS_D4
6377 status = pthread_detach( &t );
6379 status = pthread_detach( t );
6382 #ifdef HAVE_LINUX_THREADS
6383 pthread_kill_other_threads_np();
6391 if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6393 ol_cv_pthread_create=yes
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 ol_cv_pthread_create=no
6405 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6407 if test $ol_cv_pthread_create != no ; then
6408 ol_link_threads=posix
6412 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6413 if test "$ol_link_threads" = no ; then
6415 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6416 echo "configure:6417: checking for pthread link with -kthread" >&5
6417 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6423 LIBS="-kthread $LIBS"
6425 if test "$cross_compiling" = yes; then
6426 cat > conftest.$ac_ext <<EOF
6427 #line 6428 "configure"
6428 #include "confdefs.h"
6429 /* pthread test headers */
6430 #include <pthread.h>
6432 #define NULL (void*)0
6435 static void *task(p)
6438 return (void *) (p == NULL);
6443 /* pthread test function */
6447 /* make sure pthread_create() isn't just a stub */
6448 #if HAVE_PTHREADS_D4
6449 status = pthread_create(&t, pthread_attr_default, task, NULL);
6451 status = pthread_create(&t, NULL, task, NULL);
6454 if( status ) exit( status );
6456 /* make sure pthread_detach() isn't just a stub */
6457 #if HAVE_PTHREADS_D4
6458 status = pthread_detach( &t );
6460 status = pthread_detach( t );
6463 #ifdef HAVE_LINUX_THREADS
6464 pthread_kill_other_threads_np();
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 ol_cv_pthread_kthread=yes
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 ol_cv_pthread_kthread=no
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* pthread test headers */
6486 #include <pthread.h>
6488 #define NULL (void*)0
6491 static void *task(p)
6494 return (void *) (p == NULL);
6498 int main(argc, argv)
6503 /* pthread test function */
6507 /* make sure pthread_create() isn't just a stub */
6508 #if HAVE_PTHREADS_D4
6509 status = pthread_create(&t, pthread_attr_default, task, NULL);
6511 status = pthread_create(&t, NULL, task, NULL);
6514 if( status ) exit( status );
6516 /* make sure pthread_detach() isn't just a stub */
6517 #if HAVE_PTHREADS_D4
6518 status = pthread_detach( &t );
6520 status = pthread_detach( t );
6523 #ifdef HAVE_LINUX_THREADS
6524 pthread_kill_other_threads_np();
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6534 ol_cv_pthread_kthread=yes
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 ol_cv_pthread_kthread=no
6550 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6552 if test $ol_cv_pthread_kthread = yes ; then
6553 ol_link_pthreads="-kthread"
6554 ol_link_threads=posix
6558 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6559 if test "$ol_link_threads" = no ; then
6561 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6562 echo "configure:6563: checking for pthread link with -pthread" >&5
6563 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6569 LIBS="-pthread $LIBS"
6571 if test "$cross_compiling" = yes; then
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 /* pthread test headers */
6576 #include <pthread.h>
6578 #define NULL (void*)0
6581 static void *task(p)
6584 return (void *) (p == NULL);
6589 /* pthread test function */
6593 /* make sure pthread_create() isn't just a stub */
6594 #if HAVE_PTHREADS_D4
6595 status = pthread_create(&t, pthread_attr_default, task, NULL);
6597 status = pthread_create(&t, NULL, task, NULL);
6600 if( status ) exit( status );
6602 /* make sure pthread_detach() isn't just a stub */
6603 #if HAVE_PTHREADS_D4
6604 status = pthread_detach( &t );
6606 status = pthread_detach( t );
6609 #ifdef HAVE_LINUX_THREADS
6610 pthread_kill_other_threads_np();
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 ol_cv_pthread_pthread=yes
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 ol_cv_pthread_pthread=no
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* pthread test headers */
6632 #include <pthread.h>
6634 #define NULL (void*)0
6637 static void *task(p)
6640 return (void *) (p == NULL);
6644 int main(argc, argv)
6649 /* pthread test function */
6653 /* make sure pthread_create() isn't just a stub */
6654 #if HAVE_PTHREADS_D4
6655 status = pthread_create(&t, pthread_attr_default, task, NULL);
6657 status = pthread_create(&t, NULL, task, NULL);
6660 if( status ) exit( status );
6662 /* make sure pthread_detach() isn't just a stub */
6663 #if HAVE_PTHREADS_D4
6664 status = pthread_detach( &t );
6666 status = pthread_detach( t );
6669 #ifdef HAVE_LINUX_THREADS
6670 pthread_kill_other_threads_np();
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6680 ol_cv_pthread_pthread=yes
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 ol_cv_pthread_pthread=no
6696 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6698 if test $ol_cv_pthread_pthread = yes ; then
6699 ol_link_pthreads="-pthread"
6700 ol_link_threads=posix
6704 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6705 if test "$ol_link_threads" = no ; then
6707 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6708 echo "configure:6709: checking for pthread link with -pthreads" >&5
6709 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6715 LIBS="-pthreads $LIBS"
6717 if test "$cross_compiling" = yes; then
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* pthread test headers */
6722 #include <pthread.h>
6724 #define NULL (void*)0
6727 static void *task(p)
6730 return (void *) (p == NULL);
6735 /* pthread test function */
6739 /* make sure pthread_create() isn't just a stub */
6740 #if HAVE_PTHREADS_D4
6741 status = pthread_create(&t, pthread_attr_default, task, NULL);
6743 status = pthread_create(&t, NULL, task, NULL);
6746 if( status ) exit( status );
6748 /* make sure pthread_detach() isn't just a stub */
6749 #if HAVE_PTHREADS_D4
6750 status = pthread_detach( &t );
6752 status = pthread_detach( t );
6755 #ifdef HAVE_LINUX_THREADS
6756 pthread_kill_other_threads_np();
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 ol_cv_pthread_pthreads=yes
6767 echo "configure: failed program was:" >&5
6768 cat conftest.$ac_ext >&5
6770 ol_cv_pthread_pthreads=no
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* pthread test headers */
6778 #include <pthread.h>
6780 #define NULL (void*)0
6783 static void *task(p)
6786 return (void *) (p == NULL);
6790 int main(argc, argv)
6795 /* pthread test function */
6799 /* make sure pthread_create() isn't just a stub */
6800 #if HAVE_PTHREADS_D4
6801 status = pthread_create(&t, pthread_attr_default, task, NULL);
6803 status = pthread_create(&t, NULL, task, NULL);
6806 if( status ) exit( status );
6808 /* make sure pthread_detach() isn't just a stub */
6809 #if HAVE_PTHREADS_D4
6810 status = pthread_detach( &t );
6812 status = pthread_detach( t );
6815 #ifdef HAVE_LINUX_THREADS
6816 pthread_kill_other_threads_np();
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6826 ol_cv_pthread_pthreads=yes
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 ol_cv_pthread_pthreads=no
6842 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6844 if test $ol_cv_pthread_pthreads = yes ; then
6845 ol_link_pthreads="-pthreads"
6846 ol_link_threads=posix
6850 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6851 if test "$ol_link_threads" = no ; then
6853 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6854 echo "configure:6855: checking for pthread link with -mthreads" >&5
6855 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6861 LIBS="-mthreads $LIBS"
6863 if test "$cross_compiling" = yes; then
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* pthread test headers */
6868 #include <pthread.h>
6870 #define NULL (void*)0
6873 static void *task(p)
6876 return (void *) (p == NULL);
6881 /* pthread test function */
6885 /* make sure pthread_create() isn't just a stub */
6886 #if HAVE_PTHREADS_D4
6887 status = pthread_create(&t, pthread_attr_default, task, NULL);
6889 status = pthread_create(&t, NULL, task, NULL);
6892 if( status ) exit( status );
6894 /* make sure pthread_detach() isn't just a stub */
6895 #if HAVE_PTHREADS_D4
6896 status = pthread_detach( &t );
6898 status = pthread_detach( t );
6901 #ifdef HAVE_LINUX_THREADS
6902 pthread_kill_other_threads_np();
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 ol_cv_pthread_mthreads=yes
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6916 ol_cv_pthread_mthreads=no
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* pthread test headers */
6924 #include <pthread.h>
6926 #define NULL (void*)0
6929 static void *task(p)
6932 return (void *) (p == NULL);
6936 int main(argc, argv)
6941 /* pthread test function */
6945 /* make sure pthread_create() isn't just a stub */
6946 #if HAVE_PTHREADS_D4
6947 status = pthread_create(&t, pthread_attr_default, task, NULL);
6949 status = pthread_create(&t, NULL, task, NULL);
6952 if( status ) exit( status );
6954 /* make sure pthread_detach() isn't just a stub */
6955 #if HAVE_PTHREADS_D4
6956 status = pthread_detach( &t );
6958 status = pthread_detach( t );
6961 #ifdef HAVE_LINUX_THREADS
6962 pthread_kill_other_threads_np();
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6972 ol_cv_pthread_mthreads=yes
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 ol_cv_pthread_mthreads=no
6988 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6990 if test $ol_cv_pthread_mthreads = yes ; then
6991 ol_link_pthreads="-mthreads"
6992 ol_link_threads=posix
6996 # Pthread try link: -thread (ol_cv_pthread_thread)
6997 if test "$ol_link_threads" = no ; then
6999 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7000 echo "configure:7001: checking for pthread link with -thread" >&5
7001 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7007 LIBS="-thread $LIBS"
7009 if test "$cross_compiling" = yes; then
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 /* pthread test headers */
7014 #include <pthread.h>
7016 #define NULL (void*)0
7019 static void *task(p)
7022 return (void *) (p == NULL);
7027 /* pthread test function */
7031 /* make sure pthread_create() isn't just a stub */
7032 #if HAVE_PTHREADS_D4
7033 status = pthread_create(&t, pthread_attr_default, task, NULL);
7035 status = pthread_create(&t, NULL, task, NULL);
7038 if( status ) exit( status );
7040 /* make sure pthread_detach() isn't just a stub */
7041 #if HAVE_PTHREADS_D4
7042 status = pthread_detach( &t );
7044 status = pthread_detach( t );
7047 #ifdef HAVE_LINUX_THREADS
7048 pthread_kill_other_threads_np();
7055 if { (eval echo configure:7056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7057 ol_cv_pthread_thread=yes
7059 echo "configure: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 ol_cv_pthread_thread=no
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 /* pthread test headers */
7070 #include <pthread.h>
7072 #define NULL (void*)0
7075 static void *task(p)
7078 return (void *) (p == NULL);
7082 int main(argc, argv)
7087 /* pthread test function */
7091 /* make sure pthread_create() isn't just a stub */
7092 #if HAVE_PTHREADS_D4
7093 status = pthread_create(&t, pthread_attr_default, task, NULL);
7095 status = pthread_create(&t, NULL, task, NULL);
7098 if( status ) exit( status );
7100 /* make sure pthread_detach() isn't just a stub */
7101 #if HAVE_PTHREADS_D4
7102 status = pthread_detach( &t );
7104 status = pthread_detach( t );
7107 #ifdef HAVE_LINUX_THREADS
7108 pthread_kill_other_threads_np();
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7118 ol_cv_pthread_thread=yes
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 ol_cv_pthread_thread=no
7134 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7136 if test $ol_cv_pthread_thread = yes ; then
7137 ol_link_pthreads="-thread"
7138 ol_link_threads=posix
7143 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7144 if test "$ol_link_threads" = no ; then
7145 # try -lpthread -lmach -lexc -lc_r
7146 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7147 echo "configure:7148: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7148 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7154 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7156 if test "$cross_compiling" = yes; then
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 /* pthread test headers */
7161 #include <pthread.h>
7163 #define NULL (void*)0
7166 static void *task(p)
7169 return (void *) (p == NULL);
7174 /* pthread test function */
7178 /* make sure pthread_create() isn't just a stub */
7179 #if HAVE_PTHREADS_D4
7180 status = pthread_create(&t, pthread_attr_default, task, NULL);
7182 status = pthread_create(&t, NULL, task, NULL);
7185 if( status ) exit( status );
7187 /* make sure pthread_detach() isn't just a stub */
7188 #if HAVE_PTHREADS_D4
7189 status = pthread_detach( &t );
7191 status = pthread_detach( t );
7194 #ifdef HAVE_LINUX_THREADS
7195 pthread_kill_other_threads_np();
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* pthread test headers */
7217 #include <pthread.h>
7219 #define NULL (void*)0
7222 static void *task(p)
7225 return (void *) (p == NULL);
7229 int main(argc, argv)
7234 /* pthread test function */
7238 /* make sure pthread_create() isn't just a stub */
7239 #if HAVE_PTHREADS_D4
7240 status = pthread_create(&t, pthread_attr_default, task, NULL);
7242 status = pthread_create(&t, NULL, task, NULL);
7245 if( status ) exit( status );
7247 /* make sure pthread_detach() isn't just a stub */
7248 #if HAVE_PTHREADS_D4
7249 status = pthread_detach( &t );
7251 status = pthread_detach( t );
7254 #ifdef HAVE_LINUX_THREADS
7255 pthread_kill_other_threads_np();
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7265 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7267 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7270 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7281 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7283 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7284 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7285 ol_link_threads=posix
7289 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7290 if test "$ol_link_threads" = no ; then
7291 # try -lpthread -lmach -lexc
7292 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7293 echo "configure:7294: checking for pthread link with -lpthread -lmach -lexc" >&5
7294 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7300 LIBS="-lpthread -lmach -lexc $LIBS"
7302 if test "$cross_compiling" = yes; then
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 /* pthread test headers */
7307 #include <pthread.h>
7309 #define NULL (void*)0
7312 static void *task(p)
7315 return (void *) (p == NULL);
7320 /* pthread test function */
7324 /* make sure pthread_create() isn't just a stub */
7325 #if HAVE_PTHREADS_D4
7326 status = pthread_create(&t, pthread_attr_default, task, NULL);
7328 status = pthread_create(&t, NULL, task, NULL);
7331 if( status ) exit( status );
7333 /* make sure pthread_detach() isn't just a stub */
7334 #if HAVE_PTHREADS_D4
7335 status = pthread_detach( &t );
7337 status = pthread_detach( t );
7340 #ifdef HAVE_LINUX_THREADS
7341 pthread_kill_other_threads_np();
7348 if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7350 ol_cv_pthread_lpthread_lmach_lexc=yes
7352 echo "configure: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7355 ol_cv_pthread_lpthread_lmach_lexc=no
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 /* pthread test headers */
7363 #include <pthread.h>
7365 #define NULL (void*)0
7368 static void *task(p)
7371 return (void *) (p == NULL);
7375 int main(argc, argv)
7380 /* pthread test function */
7384 /* make sure pthread_create() isn't just a stub */
7385 #if HAVE_PTHREADS_D4
7386 status = pthread_create(&t, pthread_attr_default, task, NULL);
7388 status = pthread_create(&t, NULL, task, NULL);
7391 if( status ) exit( status );
7393 /* make sure pthread_detach() isn't just a stub */
7394 #if HAVE_PTHREADS_D4
7395 status = pthread_detach( &t );
7397 status = pthread_detach( t );
7400 #ifdef HAVE_LINUX_THREADS
7401 pthread_kill_other_threads_np();
7409 if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7411 ol_cv_pthread_lpthread_lmach_lexc=yes
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7416 ol_cv_pthread_lpthread_lmach_lexc=no
7427 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7429 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7430 ol_link_pthreads="-lpthread -lmach -lexc"
7431 ol_link_threads=posix
7436 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7437 if test "$ol_link_threads" = no ; then
7438 # try -lpthread -Wl,-woff,85
7439 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7440 echo "configure:7441: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7441 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7447 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7449 if test "$cross_compiling" = yes; then
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* pthread test headers */
7454 #include <pthread.h>
7456 #define NULL (void*)0
7459 static void *task(p)
7462 return (void *) (p == NULL);
7467 /* pthread test function */
7471 /* make sure pthread_create() isn't just a stub */
7472 #if HAVE_PTHREADS_D4
7473 status = pthread_create(&t, pthread_attr_default, task, NULL);
7475 status = pthread_create(&t, NULL, task, NULL);
7478 if( status ) exit( status );
7480 /* make sure pthread_detach() isn't just a stub */
7481 #if HAVE_PTHREADS_D4
7482 status = pthread_detach( &t );
7484 status = pthread_detach( t );
7487 #ifdef HAVE_LINUX_THREADS
7488 pthread_kill_other_threads_np();
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 ol_cv_pthread_lib_lpthread_woff=yes
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 ol_cv_pthread_lib_lpthread_woff=no
7506 cat > conftest.$ac_ext <<EOF
7507 #line 7508 "configure"
7508 #include "confdefs.h"
7509 /* pthread test headers */
7510 #include <pthread.h>
7512 #define NULL (void*)0
7515 static void *task(p)
7518 return (void *) (p == NULL);
7522 int main(argc, argv)
7527 /* pthread test function */
7531 /* make sure pthread_create() isn't just a stub */
7532 #if HAVE_PTHREADS_D4
7533 status = pthread_create(&t, pthread_attr_default, task, NULL);
7535 status = pthread_create(&t, NULL, task, NULL);
7538 if( status ) exit( status );
7540 /* make sure pthread_detach() isn't just a stub */
7541 #if HAVE_PTHREADS_D4
7542 status = pthread_detach( &t );
7544 status = pthread_detach( t );
7547 #ifdef HAVE_LINUX_THREADS
7548 pthread_kill_other_threads_np();
7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7558 ol_cv_pthread_lib_lpthread_woff=yes
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7563 ol_cv_pthread_lib_lpthread_woff=no
7574 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7576 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7577 ol_link_pthreads="-lpthread -Wl,-woff,85"
7578 ol_link_threads=posix
7583 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7584 if test "$ol_link_threads" = no ; then
7586 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7587 echo "configure:7588: checking for pthread link with -lpthread" >&5
7588 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6
7594 LIBS="-lpthread $LIBS"
7596 if test "$cross_compiling" = yes; then
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* pthread test headers */
7601 #include <pthread.h>
7603 #define NULL (void*)0
7606 static void *task(p)
7609 return (void *) (p == NULL);
7614 /* pthread test function */
7618 /* make sure pthread_create() isn't just a stub */
7619 #if HAVE_PTHREADS_D4
7620 status = pthread_create(&t, pthread_attr_default, task, NULL);
7622 status = pthread_create(&t, NULL, task, NULL);
7625 if( status ) exit( status );
7627 /* make sure pthread_detach() isn't just a stub */
7628 #if HAVE_PTHREADS_D4
7629 status = pthread_detach( &t );
7631 status = pthread_detach( t );
7634 #ifdef HAVE_LINUX_THREADS
7635 pthread_kill_other_threads_np();
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 ol_cv_pthread_lpthread=yes
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 ol_cv_pthread_lpthread=no
7653 cat > conftest.$ac_ext <<EOF
7654 #line 7655 "configure"
7655 #include "confdefs.h"
7656 /* pthread test headers */
7657 #include <pthread.h>
7659 #define NULL (void*)0
7662 static void *task(p)
7665 return (void *) (p == NULL);
7669 int main(argc, argv)
7674 /* pthread test function */
7678 /* make sure pthread_create() isn't just a stub */
7679 #if HAVE_PTHREADS_D4
7680 status = pthread_create(&t, pthread_attr_default, task, NULL);
7682 status = pthread_create(&t, NULL, task, NULL);
7685 if( status ) exit( status );
7687 /* make sure pthread_detach() isn't just a stub */
7688 #if HAVE_PTHREADS_D4
7689 status = pthread_detach( &t );
7691 status = pthread_detach( t );
7694 #ifdef HAVE_LINUX_THREADS
7695 pthread_kill_other_threads_np();
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7705 ol_cv_pthread_lpthread=yes
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 ol_cv_pthread_lpthread=no
7721 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7723 if test $ol_cv_pthread_lpthread = yes ; then
7724 ol_link_pthreads="-lpthread"
7725 ol_link_threads=posix
7729 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7730 if test "$ol_link_threads" = no ; then
7732 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7733 echo "configure:7734: checking for pthread link with -lc_r" >&5
7734 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7742 if test "$cross_compiling" = yes; then
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 /* pthread test headers */
7747 #include <pthread.h>
7749 #define NULL (void*)0
7752 static void *task(p)
7755 return (void *) (p == NULL);
7760 /* pthread test function */
7764 /* make sure pthread_create() isn't just a stub */
7765 #if HAVE_PTHREADS_D4
7766 status = pthread_create(&t, pthread_attr_default, task, NULL);
7768 status = pthread_create(&t, NULL, task, NULL);
7771 if( status ) exit( status );
7773 /* make sure pthread_detach() isn't just a stub */
7774 #if HAVE_PTHREADS_D4
7775 status = pthread_detach( &t );
7777 status = pthread_detach( t );
7780 #ifdef HAVE_LINUX_THREADS
7781 pthread_kill_other_threads_np();
7788 if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7790 ol_cv_pthread_lc_r=yes
7792 echo "configure: failed program was:" >&5
7793 cat conftest.$ac_ext >&5
7795 ol_cv_pthread_lc_r=no
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802 /* pthread test headers */
7803 #include <pthread.h>
7805 #define NULL (void*)0
7808 static void *task(p)
7811 return (void *) (p == NULL);
7815 int main(argc, argv)
7820 /* pthread test function */
7824 /* make sure pthread_create() isn't just a stub */
7825 #if HAVE_PTHREADS_D4
7826 status = pthread_create(&t, pthread_attr_default, task, NULL);
7828 status = pthread_create(&t, NULL, task, NULL);
7831 if( status ) exit( status );
7833 /* make sure pthread_detach() isn't just a stub */
7834 #if HAVE_PTHREADS_D4
7835 status = pthread_detach( &t );
7837 status = pthread_detach( t );
7840 #ifdef HAVE_LINUX_THREADS
7841 pthread_kill_other_threads_np();
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7851 ol_cv_pthread_lc_r=yes
7853 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7856 ol_cv_pthread_lc_r=no
7867 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
7869 if test $ol_cv_pthread_lc_r = yes ; then
7870 ol_link_pthreads="-lc_r"
7871 ol_link_threads=posix
7876 # Pthread try link: -threads (ol_cv_pthread_threads)
7877 if test "$ol_link_threads" = no ; then
7879 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
7880 echo "configure:7881: checking for pthread link with -threads" >&5
7881 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7887 LIBS="-threads $LIBS"
7889 if test "$cross_compiling" = yes; then
7890 cat > conftest.$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* pthread test headers */
7894 #include <pthread.h>
7896 #define NULL (void*)0
7899 static void *task(p)
7902 return (void *) (p == NULL);
7907 /* pthread test function */
7911 /* make sure pthread_create() isn't just a stub */
7912 #if HAVE_PTHREADS_D4
7913 status = pthread_create(&t, pthread_attr_default, task, NULL);
7915 status = pthread_create(&t, NULL, task, NULL);
7918 if( status ) exit( status );
7920 /* make sure pthread_detach() isn't just a stub */
7921 #if HAVE_PTHREADS_D4
7922 status = pthread_detach( &t );
7924 status = pthread_detach( t );
7927 #ifdef HAVE_LINUX_THREADS
7928 pthread_kill_other_threads_np();
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 ol_cv_pthread_threads=yes
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 ol_cv_pthread_threads=no
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7949 /* pthread test headers */
7950 #include <pthread.h>
7952 #define NULL (void*)0
7955 static void *task(p)
7958 return (void *) (p == NULL);
7962 int main(argc, argv)
7967 /* pthread test function */
7971 /* make sure pthread_create() isn't just a stub */
7972 #if HAVE_PTHREADS_D4
7973 status = pthread_create(&t, pthread_attr_default, task, NULL);
7975 status = pthread_create(&t, NULL, task, NULL);
7978 if( status ) exit( status );
7980 /* make sure pthread_detach() isn't just a stub */
7981 #if HAVE_PTHREADS_D4
7982 status = pthread_detach( &t );
7984 status = pthread_detach( t );
7987 #ifdef HAVE_LINUX_THREADS
7988 pthread_kill_other_threads_np();
7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7998 ol_cv_pthread_threads=yes
8000 echo "configure: failed program was:" >&5
8001 cat conftest.$ac_ext >&5
8003 ol_cv_pthread_threads=no
8014 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8016 if test $ol_cv_pthread_threads = yes ; then
8017 ol_link_pthreads="-threads"
8018 ol_link_threads=posix
8023 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8024 if test "$ol_link_threads" = no ; then
8025 # try -lpthreads -lmach -lexc -lc_r
8026 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8027 echo "configure:8028: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8028 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8034 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8036 if test "$cross_compiling" = yes; then
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* pthread test headers */
8041 #include <pthread.h>
8043 #define NULL (void*)0
8046 static void *task(p)
8049 return (void *) (p == NULL);
8054 /* pthread test function */
8058 /* make sure pthread_create() isn't just a stub */
8059 #if HAVE_PTHREADS_D4
8060 status = pthread_create(&t, pthread_attr_default, task, NULL);
8062 status = pthread_create(&t, NULL, task, NULL);
8065 if( status ) exit( status );
8067 /* make sure pthread_detach() isn't just a stub */
8068 #if HAVE_PTHREADS_D4
8069 status = pthread_detach( &t );
8071 status = pthread_detach( t );
8074 #ifdef HAVE_LINUX_THREADS
8075 pthread_kill_other_threads_np();
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* pthread test headers */
8097 #include <pthread.h>
8099 #define NULL (void*)0
8102 static void *task(p)
8105 return (void *) (p == NULL);
8109 int main(argc, argv)
8114 /* pthread test function */
8118 /* make sure pthread_create() isn't just a stub */
8119 #if HAVE_PTHREADS_D4
8120 status = pthread_create(&t, pthread_attr_default, task, NULL);
8122 status = pthread_create(&t, NULL, task, NULL);
8125 if( status ) exit( status );
8127 /* make sure pthread_detach() isn't just a stub */
8128 #if HAVE_PTHREADS_D4
8129 status = pthread_detach( &t );
8131 status = pthread_detach( t );
8134 #ifdef HAVE_LINUX_THREADS
8135 pthread_kill_other_threads_np();
8143 if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8145 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8150 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8161 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8163 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8164 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8165 ol_link_threads=posix
8169 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8170 if test "$ol_link_threads" = no ; then
8171 # try -lpthreads -lmach -lexc
8172 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8173 echo "configure:8174: checking for pthread link with -lpthreads -lmach -lexc" >&5
8174 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8180 LIBS="-lpthreads -lmach -lexc $LIBS"
8182 if test "$cross_compiling" = yes; then
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 /* pthread test headers */
8187 #include <pthread.h>
8189 #define NULL (void*)0
8192 static void *task(p)
8195 return (void *) (p == NULL);
8200 /* pthread test function */
8204 /* make sure pthread_create() isn't just a stub */
8205 #if HAVE_PTHREADS_D4
8206 status = pthread_create(&t, pthread_attr_default, task, NULL);
8208 status = pthread_create(&t, NULL, task, NULL);
8211 if( status ) exit( status );
8213 /* make sure pthread_detach() isn't just a stub */
8214 #if HAVE_PTHREADS_D4
8215 status = pthread_detach( &t );
8217 status = pthread_detach( t );
8220 #ifdef HAVE_LINUX_THREADS
8221 pthread_kill_other_threads_np();
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 ol_cv_pthread_lpthreads_lmach_lexc=yes
8232 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 ol_cv_pthread_lpthreads_lmach_lexc=no
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8242 /* pthread test headers */
8243 #include <pthread.h>
8245 #define NULL (void*)0
8248 static void *task(p)
8251 return (void *) (p == NULL);
8255 int main(argc, argv)
8260 /* pthread test function */
8264 /* make sure pthread_create() isn't just a stub */
8265 #if HAVE_PTHREADS_D4
8266 status = pthread_create(&t, pthread_attr_default, task, NULL);
8268 status = pthread_create(&t, NULL, task, NULL);
8271 if( status ) exit( status );
8273 /* make sure pthread_detach() isn't just a stub */
8274 #if HAVE_PTHREADS_D4
8275 status = pthread_detach( &t );
8277 status = pthread_detach( t );
8280 #ifdef HAVE_LINUX_THREADS
8281 pthread_kill_other_threads_np();
8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8291 ol_cv_pthread_lpthreads_lmach_lexc=yes
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8296 ol_cv_pthread_lpthreads_lmach_lexc=no
8307 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8309 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8310 ol_link_pthreads="-lpthreads -lmach -lexc"
8311 ol_link_threads=posix
8315 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8316 if test "$ol_link_threads" = no ; then
8317 # try -lpthreads -lexc
8318 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8319 echo "configure:8320: checking for pthread link with -lpthreads -lexc" >&5
8320 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8326 LIBS="-lpthreads -lexc $LIBS"
8328 if test "$cross_compiling" = yes; then
8329 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 /* pthread test headers */
8333 #include <pthread.h>
8335 #define NULL (void*)0
8338 static void *task(p)
8341 return (void *) (p == NULL);
8346 /* pthread test function */
8350 /* make sure pthread_create() isn't just a stub */
8351 #if HAVE_PTHREADS_D4
8352 status = pthread_create(&t, pthread_attr_default, task, NULL);
8354 status = pthread_create(&t, NULL, task, NULL);
8357 if( status ) exit( status );
8359 /* make sure pthread_detach() isn't just a stub */
8360 #if HAVE_PTHREADS_D4
8361 status = pthread_detach( &t );
8363 status = pthread_detach( t );
8366 #ifdef HAVE_LINUX_THREADS
8367 pthread_kill_other_threads_np();
8374 if { (eval echo configure:8375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8376 ol_cv_pthread_lpthreads_lexc=yes
8378 echo "configure: failed program was:" >&5
8379 cat conftest.$ac_ext >&5
8381 ol_cv_pthread_lpthreads_lexc=no
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8388 /* pthread test headers */
8389 #include <pthread.h>
8391 #define NULL (void*)0
8394 static void *task(p)
8397 return (void *) (p == NULL);
8401 int main(argc, argv)
8406 /* pthread test function */
8410 /* make sure pthread_create() isn't just a stub */
8411 #if HAVE_PTHREADS_D4
8412 status = pthread_create(&t, pthread_attr_default, task, NULL);
8414 status = pthread_create(&t, NULL, task, NULL);
8417 if( status ) exit( status );
8419 /* make sure pthread_detach() isn't just a stub */
8420 #if HAVE_PTHREADS_D4
8421 status = pthread_detach( &t );
8423 status = pthread_detach( t );
8426 #ifdef HAVE_LINUX_THREADS
8427 pthread_kill_other_threads_np();
8435 if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437 ol_cv_pthread_lpthreads_lexc=yes
8439 echo "configure: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8442 ol_cv_pthread_lpthreads_lexc=no
8453 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8455 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8456 ol_link_pthreads="-lpthreads -lexc"
8457 ol_link_threads=posix
8462 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8463 if test "$ol_link_threads" = no ; then
8465 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8466 echo "configure:8467: checking for pthread link with -lpthreads" >&5
8467 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8473 LIBS="-lpthreads $LIBS"
8475 if test "$cross_compiling" = yes; then
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* pthread test headers */
8480 #include <pthread.h>
8482 #define NULL (void*)0
8485 static void *task(p)
8488 return (void *) (p == NULL);
8493 /* pthread test function */
8497 /* make sure pthread_create() isn't just a stub */
8498 #if HAVE_PTHREADS_D4
8499 status = pthread_create(&t, pthread_attr_default, task, NULL);
8501 status = pthread_create(&t, NULL, task, NULL);
8504 if( status ) exit( status );
8506 /* make sure pthread_detach() isn't just a stub */
8507 #if HAVE_PTHREADS_D4
8508 status = pthread_detach( &t );
8510 status = pthread_detach( t );
8513 #ifdef HAVE_LINUX_THREADS
8514 pthread_kill_other_threads_np();
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 ol_cv_pthread_lib_lpthreads=yes
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 ol_cv_pthread_lib_lpthreads=no
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 /* pthread test headers */
8536 #include <pthread.h>
8538 #define NULL (void*)0
8541 static void *task(p)
8544 return (void *) (p == NULL);
8548 int main(argc, argv)
8553 /* pthread test function */
8557 /* make sure pthread_create() isn't just a stub */
8558 #if HAVE_PTHREADS_D4
8559 status = pthread_create(&t, pthread_attr_default, task, NULL);
8561 status = pthread_create(&t, NULL, task, NULL);
8564 if( status ) exit( status );
8566 /* make sure pthread_detach() isn't just a stub */
8567 #if HAVE_PTHREADS_D4
8568 status = pthread_detach( &t );
8570 status = pthread_detach( t );
8573 #ifdef HAVE_LINUX_THREADS
8574 pthread_kill_other_threads_np();
8582 if { (eval echo configure:8583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8584 ol_cv_pthread_lib_lpthreads=yes
8586 echo "configure: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8589 ol_cv_pthread_lib_lpthreads=no
8600 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8602 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8603 ol_link_pthreads="-lpthreads"
8604 ol_link_threads=posix
8609 if test $ol_link_threads != no ; then
8610 cat >> confdefs.h <<\EOF
8611 #define HAVE_PTHREADS 1
8615 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8617 save_CPPFLAGS="$CPPFLAGS"
8619 LIBS="$LTHREAD_LIBS $LIBS"
8621 for ac_func in sched_yield pthread_yield
8623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8624 echo "configure:8625: checking for $ac_func" >&5
8625 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 /* System header to define __stub macros and hopefully few prototypes,
8632 which can conflict with char $ac_func(); below. */
8634 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8653 if { (eval echo configure:8654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8655 eval "ac_cv_func_$ac_func=yes"
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8660 eval "ac_cv_func_$ac_func=no"
8665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8668 cat >> confdefs.h <<EOF
8669 #define $ac_tr_func 1
8673 echo "$ac_t""no" 1>&6
8678 if test $ac_cv_func_sched_yield = no -a \
8679 $ac_cv_func_pthread_yield = no ; then
8680 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8681 echo "configure:8682: checking for sched_yield in -lrt" >&5
8682 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8683 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8686 ac_save_LIBS="$LIBS"
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8691 /* Override any gcc2 internal prototype to avoid an error. */
8692 /* We use char because int might match the return type of a gcc2
8693 builtin and then its argument prototype would still apply. */
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8702 eval "ac_cv_lib_$ac_lib_var=yes"
8704 echo "configure: failed program was:" >&5
8705 cat conftest.$ac_ext >&5
8707 eval "ac_cv_lib_$ac_lib_var=no"
8710 LIBS="$ac_save_LIBS"
8713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8716 cat >> confdefs.h <<\EOF
8717 #define HAVE_SCHED_YIELD 1
8720 ac_cv_func_sched_yield=yes
8722 echo "$ac_t""no" 1>&6
8723 ac_cv_func_sched_yield=no
8727 if test $ac_cv_func_sched_yield = no -a \
8728 $ac_cv_func_pthread_yield = no ; then
8729 for ac_func in thr_yield
8731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8732 echo "configure:8733: checking for $ac_func" >&5
8733 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8734 echo $ac_n "(cached) $ac_c" 1>&6
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 /* System header to define __stub macros and hopefully few prototypes,
8740 which can conflict with char $ac_func(); below. */
8742 /* Override any gcc2 internal prototype to avoid an error. */
8743 /* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8750 /* The GNU C library defines this for functions which it implements
8751 to always fail with ENOSYS. Some functions are actually named
8752 something starting with __ and the normal name is an alias. */
8753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8761 if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8763 eval "ac_cv_func_$ac_func=yes"
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8768 eval "ac_cv_func_$ac_func=no"
8773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8774 echo "$ac_t""yes" 1>&6
8775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8776 cat >> confdefs.h <<EOF
8777 #define $ac_tr_func 1
8781 echo "$ac_t""no" 1>&6
8786 if test $ac_cv_func_sched_yield = no -a \
8787 $ac_cv_func_pthread_yield = no -a \
8788 "$ac_cv_func_thr_yield" = no ; then
8789 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
8792 for ac_func in pthread_kill
8794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8795 echo "configure:8796: checking for $ac_func" >&5
8796 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8813 /* The GNU C library defines this for functions which it implements
8814 to always fail with ENOSYS. Some functions are actually named
8815 something starting with __ and the normal name is an alias. */
8816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8824 if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8826 eval "ac_cv_func_$ac_func=yes"
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8831 eval "ac_cv_func_$ac_func=no"
8836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8837 echo "$ac_t""yes" 1>&6
8838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8839 cat >> confdefs.h <<EOF
8840 #define $ac_tr_func 1
8844 echo "$ac_t""no" 1>&6
8849 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
8850 echo "configure:8851: checking for pthread_detach with <pthread.h>" >&5
8851 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8859 #include <pthread.h>
8861 #define NULL (void*)0
8865 pthread_detach(NULL);
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 ol_cv_func_pthread_detach=yes
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 ol_cv_func_pthread_detach=no
8881 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
8883 if test $ol_cv_func_pthread_detach = no ; then
8884 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
8887 cat >> confdefs.h <<\EOF
8888 #define HAVE_PTHREAD_DETACH 1
8893 pthread_setconcurrency \
8894 pthread_getconcurrency \
8895 thr_setconcurrency \
8896 thr_getconcurrency \
8899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8900 echo "configure:8901: checking for $ac_func" >&5
8901 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 /* System header to define __stub macros and hopefully few prototypes,
8908 which can conflict with char $ac_func(); below. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8918 /* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8929 if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8931 eval "ac_cv_func_$ac_func=yes"
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8936 eval "ac_cv_func_$ac_func=no"
8941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8944 cat >> confdefs.h <<EOF
8945 #define $ac_tr_func 1
8949 echo "$ac_t""no" 1>&6
8955 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
8956 echo "configure:8957: checking for pthread_kill_other_threads_np" >&5
8957 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8960 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char pthread_kill_other_threads_np(); below. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8969 char pthread_kill_other_threads_np();
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
8980 f = pthread_kill_other_threads_np;
8985 if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8987 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 eval "ac_cv_func_pthread_kill_other_threads_np=no"
8997 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
9001 echo "$ac_t""no" 1>&6
9004 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9005 echo "configure:9006: checking for LinuxThreads implementation" >&5
9006 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9009 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9012 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9017 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9018 echo "configure:9019: checking for LinuxThreads consistency" >&5
9019 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9020 echo $ac_n "(cached) $ac_c" 1>&6
9023 if test $ol_cv_header_linux_threads = yes -a \
9024 $ol_cv_sys_linux_threads = yes; then
9025 ol_cv_linux_threads=yes
9026 elif test $ol_cv_header_linux_threads = no -a \
9027 $ol_cv_sys_linux_threads = no; then
9028 ol_cv_linux_threads=no
9030 ol_cv_linux_threads=error
9035 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9038 if test $ol_cv_linux_threads = error; then
9039 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9042 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9043 echo "configure:9044: checking if pthread_create() works" >&5
9044 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9048 if test "$cross_compiling" = yes; then
9049 ol_cv_pthread_create_works=yes
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 /* pthread test headers */
9055 #include <pthread.h>
9057 #define NULL (void*)0
9060 static void *task(p)
9063 return (void *) (p == NULL);
9067 int main(argc, argv)
9072 /* pthread test function */
9076 /* make sure pthread_create() isn't just a stub */
9077 #if HAVE_PTHREADS_D4
9078 status = pthread_create(&t, pthread_attr_default, task, NULL);
9080 status = pthread_create(&t, NULL, task, NULL);
9083 if( status ) exit( status );
9085 /* make sure pthread_detach() isn't just a stub */
9086 #if HAVE_PTHREADS_D4
9087 status = pthread_detach( &t );
9089 status = pthread_detach( t );
9092 #ifdef HAVE_LINUX_THREADS
9093 pthread_kill_other_threads_np();
9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9103 ol_cv_pthread_create_works=yes
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9108 ol_cv_pthread_create_works=no
9115 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9117 if test $ol_cv_pthread_create_works = no ; then
9118 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9121 if test $ol_with_yielding_select = auto ; then
9122 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9123 echo "configure:9124: checking if select yields when using pthreads" >&5
9124 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9128 if test "$cross_compiling" = yes; then
9129 ol_cv_pthread_select_yields=cross
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9135 #include <sys/types.h>
9136 #include <sys/time.h>
9138 #include <pthread.h>
9140 #define NULL (void*) 0
9143 static int fildes[2];
9145 static void *task(p)
9157 FD_SET(fildes[0], &rfds);
9159 /* we're not interested in any fds */
9160 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9167 exit(0); /* if we exit here, the select blocked the whole process */
9170 int main(argc, argv)
9176 /* create a pipe to select */
9177 if(pipe(&fildes[0])) {
9182 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9183 (void) pthread_setconcurrency(2);
9185 #ifdef HAVE_THR_SETCONCURRENCY
9186 /* Set Solaris LWP concurrency to 2 */
9187 thr_setconcurrency(2);
9191 #if HAVE_PTHREADS_D4
9192 pthread_create(&t, pthread_attr_default, task, NULL);
9194 pthread_create(&t, NULL, task, NULL);
9197 #if HAVE_SCHED_YIELD
9198 sched_yield(); /* make sure task runs first */
9200 #ifdef HAVE_PTHREAD_YIELD
9201 pthread_yield(); /* make sure task runs first */
9208 if { (eval echo configure:9209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9210 ol_cv_pthread_select_yields=no
9212 echo "configure: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9215 ol_cv_pthread_select_yields=yes
9222 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9224 if test $ol_cv_pthread_select_yields = cross ; then
9225 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9228 if test $ol_cv_pthread_select_yields = yes ; then
9229 ol_with_yielding_select=yes
9233 CPPFLAGS="$save_CPPFLAGS"
9236 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9240 if test $ol_with_threads = posix ; then
9241 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9245 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9246 -o $ol_with_threads = mach ; then
9248 for ac_hdr in mach/cthreads.h
9250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9252 echo "configure:9253: checking for $ac_hdr" >&5
9253 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9262 { (eval echo configure:9263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9264 if test -z "$ac_err"; then
9266 eval "ac_cv_header_$ac_safe=yes"
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 eval "ac_cv_header_$ac_safe=no"
9276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9277 echo "$ac_t""yes" 1>&6
9278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9279 cat >> confdefs.h <<EOF
9280 #define $ac_tr_hdr 1
9284 echo "$ac_t""no" 1>&6
9288 if test $ac_cv_header_mach_cthreads_h = yes ; then
9289 ol_with_threads=found
9291 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9292 echo "configure:9293: checking for cthread_fork" >&5
9293 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 /* System header to define __stub macros and hopefully few prototypes,
9300 which can conflict with char cthread_fork(); below. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9303 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305 char cthread_fork();
9310 /* The GNU C library defines this for functions which it implements
9311 to always fail with ENOSYS. Some functions are actually named
9312 something starting with __ and the normal name is an alias. */
9313 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9321 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9323 eval "ac_cv_func_cthread_fork=yes"
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 eval "ac_cv_func_cthread_fork=no"
9333 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9334 echo "$ac_t""yes" 1>&6
9337 echo "$ac_t""no" 1>&6
9341 if test $ol_link_threads = no ; then
9342 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9343 echo "configure:9344: checking for cthread_fork with -all_load" >&5
9344 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
9349 LIBS="-all_load $LIBS"
9350 cat > conftest.$ac_ext <<EOF
9351 #line 9352 "configure"
9352 #include "confdefs.h"
9353 #include <mach/cthreads.h>
9356 cthread_fork((void *)0, (void *)0);
9360 if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9362 ol_cv_cthread_all_load=yes
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9367 ol_cv_cthread_all_load=no
9374 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9376 if test $ol_cv_cthread_all_load = yes ; then
9377 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9378 ol_link_threads=mach
9382 if test $ol_link_threads != no ; then
9383 : check for cthread specific functionality here
9384 cat >> confdefs.h <<\EOF
9385 #define HAVE_MACH_CTHREADS 1
9389 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9393 if test $ol_with_threads = mach ; then
9394 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9398 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9399 -o $ol_with_threads = pth ; then
9403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9405 echo "configure:9406: checking for $ac_hdr" >&5
9406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9415 { (eval echo configure:9416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9417 if test -z "$ac_err"; then
9419 eval "ac_cv_header_$ac_safe=yes"
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 eval "ac_cv_header_$ac_safe=no"
9429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9430 echo "$ac_t""yes" 1>&6
9431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9432 cat >> confdefs.h <<EOF
9433 #define $ac_tr_hdr 1
9437 echo "$ac_t""no" 1>&6
9442 if test $ac_cv_header_pth_h = yes ; then
9443 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9444 echo "configure:9445: checking for pth_version in -lpth" >&5
9445 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
9446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9449 ac_save_LIBS="$LIBS"
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 /* Override any gcc2 internal prototype to avoid an error. */
9455 /* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 eval "ac_cv_lib_$ac_lib_var=yes"
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 eval "ac_cv_lib_$ac_lib_var=no"
9473 LIBS="$ac_save_LIBS"
9476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
9480 echo "$ac_t""no" 1>&6
9485 if test $have_pth = yes ; then
9486 cat >> confdefs.h <<\EOF
9487 #define HAVE_GNU_PTH 1
9490 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9493 if test $ol_with_yielding_select = auto ; then
9494 ol_with_yielding_select=yes
9500 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9501 -o $ol_with_threads = lwp ; then
9503 for ac_hdr in thread.h synch.h
9505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9507 echo "configure:9508: checking for $ac_hdr" >&5
9508 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9511 cat > conftest.$ac_ext <<EOF
9512 #line 9513 "configure"
9513 #include "confdefs.h"
9516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9517 { (eval echo configure:9518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9519 if test -z "$ac_err"; then
9521 eval "ac_cv_header_$ac_safe=yes"
9524 echo "configure: failed program was:" >&5
9525 cat conftest.$ac_ext >&5
9527 eval "ac_cv_header_$ac_safe=no"
9531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9534 cat >> confdefs.h <<EOF
9535 #define $ac_tr_hdr 1
9539 echo "$ac_t""no" 1>&6
9543 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9544 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9545 echo "configure:9546: checking for thr_create in -lthread" >&5
9546 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9547 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9550 ac_save_LIBS="$LIBS"
9551 LIBS="-lthread $LIBS"
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9555 /* Override any gcc2 internal prototype to avoid an error. */
9556 /* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566 eval "ac_cv_lib_$ac_lib_var=yes"
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 eval "ac_cv_lib_$ac_lib_var=no"
9574 LIBS="$ac_save_LIBS"
9577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9578 echo "$ac_t""yes" 1>&6
9581 echo "$ac_t""no" 1>&6
9586 if test $have_thr = yes ; then
9587 cat >> confdefs.h <<\EOF
9591 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9594 if test $ol_with_yielding_select = auto ; then
9595 ol_with_yielding_select=yes
9599 thr_setconcurrency \
9600 thr_getconcurrency \
9603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_func" >&5
9605 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char $ac_func(); below. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9622 /* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9633 if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635 eval "ac_cv_func_$ac_func=yes"
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9640 eval "ac_cv_func_$ac_func=no"
9645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9646 echo "$ac_t""yes" 1>&6
9647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9648 cat >> confdefs.h <<EOF
9649 #define $ac_tr_func 1
9653 echo "$ac_t""no" 1>&6
9660 for ac_hdr in lwp/lwp.h
9662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9664 echo "configure:9665: checking for $ac_hdr" >&5
9665 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9674 { (eval echo configure:9675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9676 if test -z "$ac_err"; then
9678 eval "ac_cv_header_$ac_safe=yes"
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9684 eval "ac_cv_header_$ac_safe=no"
9688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9691 cat >> confdefs.h <<EOF
9692 #define $ac_tr_hdr 1
9696 echo "$ac_t""no" 1>&6
9700 if test $ac_cv_header_lwp_lwp_h = yes ; then
9701 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9702 echo "configure:9703: checking for lwp_create in -llwp" >&5
9703 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9704 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9707 ac_save_LIBS="$LIBS"
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* Override any gcc2 internal prototype to avoid an error. */
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9721 if { (eval echo configure:9722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 eval "ac_cv_lib_$ac_lib_var=yes"
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9728 eval "ac_cv_lib_$ac_lib_var=no"
9731 LIBS="$ac_save_LIBS"
9734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9735 echo "$ac_t""yes" 1>&6
9738 echo "$ac_t""no" 1>&6
9743 if test $have_lwp = yes ; then
9744 cat >> confdefs.h <<\EOF
9748 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9751 if test $ol_with_yielding_select = auto ; then
9752 ol_with_yielding_select=no
9758 if test $ol_with_yielding_select = yes ; then
9759 cat >> confdefs.h <<\EOF
9760 #define HAVE_YIELDING_SELECT 1
9765 if test $ol_with_threads = manual ; then
9768 echo "configure: warning: thread defines and link options must be set manually" 1>&2
9770 for ac_hdr in pthread.h sched.h
9772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9774 echo "configure:9775: checking for $ac_hdr" >&5
9775 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9778 cat > conftest.$ac_ext <<EOF
9779 #line 9780 "configure"
9780 #include "confdefs.h"
9783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9784 { (eval echo configure:9785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9786 if test -z "$ac_err"; then
9788 eval "ac_cv_header_$ac_safe=yes"
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9794 eval "ac_cv_header_$ac_safe=no"
9798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9799 echo "$ac_t""yes" 1>&6
9800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9801 cat >> confdefs.h <<EOF
9802 #define $ac_tr_hdr 1
9806 echo "$ac_t""no" 1>&6
9810 for ac_func in sched_yield pthread_yield
9812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9813 echo "configure:9814: checking for $ac_func" >&5
9814 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char $ac_func(); below. */
9823 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842 if { (eval echo configure:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9844 eval "ac_cv_func_$ac_func=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 eval "ac_cv_func_$ac_func=no"
9854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9855 echo "$ac_t""yes" 1>&6
9856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9857 cat >> confdefs.h <<EOF
9858 #define $ac_tr_func 1
9862 echo "$ac_t""no" 1>&6
9867 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
9868 echo "configure:9869: checking for LinuxThreads pthread.h" >&5
9869 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 #include <pthread.h>
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
9880 ol_cv_header_linux_threads=yes
9883 ol_cv_header_linux_threads=no
9890 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
9891 if test $ol_cv_header_linux_threads = yes; then
9892 cat >> confdefs.h <<\EOF
9893 #define HAVE_LINUX_THREADS 1
9899 for ac_hdr in mach/cthreads.h
9901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9903 echo "configure:9904: checking for $ac_hdr" >&5
9904 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9905 echo $ac_n "(cached) $ac_c" 1>&6
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9913 { (eval echo configure:9914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9915 if test -z "$ac_err"; then
9917 eval "ac_cv_header_$ac_safe=yes"
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9923 eval "ac_cv_header_$ac_safe=no"
9927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9928 echo "$ac_t""yes" 1>&6
9929 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9930 cat >> confdefs.h <<EOF
9931 #define $ac_tr_hdr 1
9935 echo "$ac_t""no" 1>&6
9939 for ac_hdr in lwp/lwp.h
9941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9943 echo "configure:9944: checking for $ac_hdr" >&5
9944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9953 { (eval echo configure:9954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9955 if test -z "$ac_err"; then
9957 eval "ac_cv_header_$ac_safe=yes"
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9963 eval "ac_cv_header_$ac_safe=no"
9967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9968 echo "$ac_t""yes" 1>&6
9969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9970 cat >> confdefs.h <<EOF
9971 #define $ac_tr_hdr 1
9975 echo "$ac_t""no" 1>&6
9979 for ac_hdr in thread.h synch.h
9981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9983 echo "configure:9984: checking for $ac_hdr" >&5
9984 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9993 { (eval echo configure:9994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9995 if test -z "$ac_err"; then
9997 eval "ac_cv_header_$ac_safe=yes"
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 eval "ac_cv_header_$ac_safe=no"
10007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10008 echo "$ac_t""yes" 1>&6
10009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10010 cat >> confdefs.h <<EOF
10011 #define $ac_tr_hdr 1
10015 echo "$ac_t""no" 1>&6
10021 if test $ol_link_threads != no ; then
10022 cat >> confdefs.h <<\EOF
10023 #define REENTRANT 1
10026 cat >> confdefs.h <<\EOF
10027 #define _REENTRANT 1
10030 cat >> confdefs.h <<\EOF
10031 #define THREAD_SAFE 1
10034 cat >> confdefs.h <<\EOF
10035 #define _THREAD_SAFE 1
10038 cat >> confdefs.h <<\EOF
10039 #define THREADSAFE 1
10042 cat >> confdefs.h <<\EOF
10043 #define _THREADSAFE 1
10046 cat >> confdefs.h <<\EOF
10047 #define _SGI_MP_SOURCE 1
10051 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10052 echo "configure:10053: checking for thread specific errno" >&5
10053 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10059 "configure"
10059 #include "confdefs.h"
10065 if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10067 ol_cv_errno_thread_specific=yes
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10072 ol_cv_errno_thread_specific=no
10078 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10080 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10081 echo "configure:10082: checking for thread specific h_errno" >&5
10082 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10083 echo $ac_n "(cached) $ac_c" 1>&6
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10096 ol_cv_h_errno_thread_specific=yes
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10101 ol_cv_h_errno_thread_specific=no
10107 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10109 if test $ol_cv_errno_thread_specific != yes \
10110 -o $ol_cv_h_errno_thread_specific != yes ; then
10111 LIBS="$LTHREAD_LIBS $LIBS"
10117 if test $ol_link_threads = no ; then
10118 if test $ol_with_threads = yes ; then
10119 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10122 if test $ol_with_threads = auto ; then
10123 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10127 cat >> confdefs.h <<\EOF
10128 #define NO_THREADS 1
10134 if test $ol_link_threads != no ; then
10135 cat >> confdefs.h <<\EOF
10136 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10143 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10144 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10145 echo "configure:10146: checking for DB2 library" >&5
10146 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10150 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10151 echo "configure:10152: checking for db_open in -ldb" >&5
10152 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10156 ac_save_LIBS="$LIBS"
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10170 if { (eval echo configure:10171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10172 eval "ac_cv_lib_$ac_lib_var=yes"
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10177 eval "ac_cv_lib_$ac_lib_var=no"
10180 LIBS="$ac_save_LIBS"
10183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10187 echo "$ac_t""no" 1>&6
10195 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10201 echo "configure:10202: checking for $ac_hdr" >&5
10202 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10211 { (eval echo configure:10212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10213 if test -z "$ac_err"; then
10215 eval "ac_cv_header_$ac_safe=yes"
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10221 eval "ac_cv_header_$ac_safe=no"
10225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10226 echo "$ac_t""yes" 1>&6
10227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10228 cat >> confdefs.h <<EOF
10229 #define $ac_tr_hdr 1
10233 echo "$ac_t""no" 1>&6
10237 if test $ac_cv_header_db_h = yes ; then
10238 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10239 echo "configure:10240: checking if db.h is DB2" >&5
10240 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10249 /* this check could be improved */
10250 # ifdef DB_VERSION_MAJOR
10251 # if DB_VERSION_MAJOR == 2
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258 egrep "__db_version_2" >/dev/null 2>&1; then
10260 ol_cv_header_db2=yes
10263 ol_cv_header_db2=no
10269 echo "$ac_t""$ol_cv_header_db2" 1>&6
10271 ol_cv_header_db2=no
10276 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10277 echo "configure:10278: checking for Berkeley DB2" >&5
10278 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10279 echo $ac_n "(cached) $ac_c" 1>&6
10282 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10283 ol_cv_berkeley_db2=no
10285 ol_cv_berkeley_db2=yes
10290 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10291 if test $ol_cv_berkeley_db2 = yes ; then
10292 cat >> confdefs.h <<\EOF
10293 #define HAVE_BERKELEY_DB2 1
10299 if test $ol_cv_berkeley_db2 = yes ; then
10301 ol_with_ldbm_api=db2
10303 if test $ol_with_ldbm_type = hash ; then
10304 cat >> confdefs.h <<\EOF
10305 #define LDBM_USE_DBHASH 1
10309 cat >> confdefs.h <<\EOF
10310 #define LDBM_USE_DBBTREE 1
10315 if test $ol_cv_lib_db2 != yes ; then
10316 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10322 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10326 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10327 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10328 echo "configure:10329: checking for Berkeley DB library" >&5
10329 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10333 for ac_hdr in db1/db.h
10335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10337 echo "configure:10338: checking for $ac_hdr" >&5
10338 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10339 echo $ac_n "(cached) $ac_c" 1>&6
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10347 { (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10349 if test -z "$ac_err"; then
10351 eval "ac_cv_header_$ac_safe=yes"
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10357 eval "ac_cv_header_$ac_safe=no"
10361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10362 echo "$ac_t""yes" 1>&6
10363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10364 cat >> confdefs.h <<EOF
10365 #define $ac_tr_hdr 1
10369 echo "$ac_t""no" 1>&6
10374 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10375 echo "configure:10376: checking for dbopen" >&5
10376 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10382 /* System header to define __stub macros and hopefully few prototypes,
10383 which can conflict with char dbopen(); below. */
10384 #include <assert.h>
10385 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10404 if { (eval echo configure:10405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10406 eval "ac_cv_func_dbopen=yes"
10408 echo "configure: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10411 eval "ac_cv_func_dbopen=no"
10416 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10417 echo "$ac_t""yes" 1>&6
10420 echo "$ac_t""no" 1>&6
10422 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10423 echo "configure:10424: checking for dbopen in -ldb1" >&5
10424 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10425 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10426 echo $ac_n "(cached) $ac_c" 1>&6
10428 ac_save_LIBS="$LIBS"
10430 cat > conftest.$ac_ext <<EOF
10431 #line 10432 "configure"
10432 #include "confdefs.h"
10433 /* Override any gcc2 internal prototype to avoid an error. */
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10442 if { (eval echo configure:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10444 eval "ac_cv_lib_$ac_lib_var=yes"
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10449 eval "ac_cv_lib_$ac_lib_var=no"
10452 LIBS="$ac_save_LIBS"
10455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10456 echo "$ac_t""yes" 1>&6
10459 echo "$ac_t""no" 1>&6
10461 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10462 echo "configure:10463: checking for dbopen in -ldb" >&5
10463 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10465 echo $ac_n "(cached) $ac_c" 1>&6
10467 ac_save_LIBS="$LIBS"
10469 cat > conftest.$ac_ext <<EOF
10470 #line 10471 "configure"
10471 #include "confdefs.h"
10472 /* Override any gcc2 internal prototype to avoid an error. */
10473 /* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10483 eval "ac_cv_lib_$ac_lib_var=yes"
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 eval "ac_cv_lib_$ac_lib_var=no"
10491 LIBS="$ac_save_LIBS"
10494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10495 echo "$ac_t""yes" 1>&6
10498 echo "$ac_t""no" 1>&6
10512 echo "$ac_t""$ol_cv_lib_db" 1>&6
10515 for ac_hdr in db_185.h
10517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10519 echo "configure:10520: checking for $ac_hdr" >&5
10520 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10523 cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10529 { (eval echo configure:10530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10531 if test -z "$ac_err"; then
10533 eval "ac_cv_header_$ac_safe=yes"
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10539 eval "ac_cv_header_$ac_safe=no"
10543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10544 echo "$ac_t""yes" 1>&6
10545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10546 cat >> confdefs.h <<EOF
10547 #define $ac_tr_hdr 1
10551 echo "$ac_t""no" 1>&6
10555 if test "$ol_cv_header_db2" = yes ; then
10557 ol_cv_header_db=$ac_cv_header_db_185_h
10559 ol_cv_header_db=$ac_cv_header_db_h
10564 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10565 echo "configure:10566: checking for Berkeley DB" >&5
10566 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10570 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10571 ol_cv_berkeley_db=no
10573 ol_cv_berkeley_db=yes
10578 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10579 if test $ol_cv_berkeley_db = yes ; then
10580 cat >> confdefs.h <<\EOF
10581 #define HAVE_BERKELEY_DB 1
10587 if test $ol_cv_berkeley_db = yes ; then
10589 ol_with_ldbm_api=db
10591 if test $ol_with_ldbm_type = hash ; then
10592 cat >> confdefs.h <<\EOF
10593 #define LDBM_USE_DBHASH 1
10597 cat >> confdefs.h <<\EOF
10598 #define LDBM_USE_DBBTREE 1
10603 if test $ol_cv_lib_db != yes ; then
10604 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10609 if test $ol_with_ldbm_api = manual ; then
10612 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10614 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10618 echo "configure:10619: checking for $ac_hdr" >&5
10619 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10628 { (eval echo configure:10629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10630 if test -z "$ac_err"; then
10632 eval "ac_cv_header_$ac_safe=yes"
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 eval "ac_cv_header_$ac_safe=no"
10642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10643 echo "$ac_t""yes" 1>&6
10644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10645 cat >> confdefs.h <<EOF
10646 #define $ac_tr_hdr 1
10650 echo "$ac_t""no" 1>&6
10656 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10657 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10658 ol_with_ldbm_api=none
10661 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10662 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10663 echo "configure:10664: checking for MDBM library" >&5
10664 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10668 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10669 echo "configure:10670: checking for mdbm_set_chain" >&5
10670 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10673 cat > conftest.$ac_ext <<EOF
10674 #line 10675 "configure"
10675 #include "confdefs.h"
10676 /* System header to define __stub macros and hopefully few prototypes,
10677 which can conflict with char mdbm_set_chain(); below. */
10678 #include <assert.h>
10679 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10682 char mdbm_set_chain();
10687 /* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10693 f = mdbm_set_chain;
10698 if { (eval echo configure:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10700 eval "ac_cv_func_mdbm_set_chain=yes"
10702 echo "configure: failed program was:" >&5
10703 cat conftest.$ac_ext >&5
10705 eval "ac_cv_func_mdbm_set_chain=no"
10710 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10711 echo "$ac_t""yes" 1>&6
10714 echo "$ac_t""no" 1>&6
10716 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10717 echo "configure:10718: checking for mdbm_set_chain in -lmdbm" >&5
10718 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10720 echo $ac_n "(cached) $ac_c" 1>&6
10722 ac_save_LIBS="$LIBS"
10723 LIBS="-lmdbm $LIBS"
10724 cat > conftest.$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10727 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10730 char mdbm_set_chain();
10736 if { (eval echo configure:10737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10738 eval "ac_cv_lib_$ac_lib_var=yes"
10740 echo "configure: failed program was:" >&5
10741 cat conftest.$ac_ext >&5
10743 eval "ac_cv_lib_$ac_lib_var=no"
10746 LIBS="$ac_save_LIBS"
10749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10750 echo "$ac_t""yes" 1>&6
10751 ol_cv_lib_mdbm=-lmdbm
10753 echo "$ac_t""no" 1>&6
10764 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
10767 for ac_hdr in mdbm.h
10769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10771 echo "configure:10772: checking for $ac_hdr" >&5
10772 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10781 { (eval echo configure:10782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10783 if test -z "$ac_err"; then
10785 eval "ac_cv_header_$ac_safe=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_header_$ac_safe=no"
10795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10796 echo "$ac_t""yes" 1>&6
10797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10798 cat >> confdefs.h <<EOF
10799 #define $ac_tr_hdr 1
10803 echo "$ac_t""no" 1>&6
10807 echo $ac_n "checking for db""... $ac_c" 1>&6
10808 echo "configure:10809: checking for db" >&5
10809 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10813 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
10821 echo "$ac_t""$ol_cv_mdbm" 1>&6
10822 if test $ol_cv_mdbm = yes ; then
10823 cat >> confdefs.h <<\EOF
10824 #define HAVE_MDBM 1
10830 if test $ol_cv_mdbm = yes ; then
10832 ol_with_ldbm_api=mdbm
10833 if test $ol_cv_lib_mdbm != yes ; then
10834 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
10839 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
10840 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
10841 echo "configure:10842: checking for GDBM library" >&5
10842 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
10843 echo $ac_n "(cached) $ac_c" 1>&6
10846 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
10847 echo "configure:10848: checking for gdbm_open" >&5
10848 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10851 cat > conftest.$ac_ext <<EOF
10852 #line 10853 "configure"
10853 #include "confdefs.h"
10854 /* System header to define __stub macros and hopefully few prototypes,
10855 which can conflict with char gdbm_open(); below. */
10856 #include <assert.h>
10857 /* Override any gcc2 internal prototype to avoid an error. */
10858 /* We use char because int might match the return type of a gcc2
10859 builtin and then its argument prototype would still apply. */
10865 /* The GNU C library defines this for functions which it implements
10866 to always fail with ENOSYS. Some functions are actually named
10867 something starting with __ and the normal name is an alias. */
10868 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10878 eval "ac_cv_func_gdbm_open=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_func_gdbm_open=no"
10888 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10892 echo "$ac_t""no" 1>&6
10894 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
10895 echo "configure:10896: checking for gdbm_open in -lgdbm" >&5
10896 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
10897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10900 ac_save_LIBS="$LIBS"
10901 LIBS="-lgdbm $LIBS"
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 /* Override any gcc2 internal prototype to avoid an error. */
10906 /* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10916 eval "ac_cv_lib_$ac_lib_var=yes"
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10921 eval "ac_cv_lib_$ac_lib_var=no"
10924 LIBS="$ac_save_LIBS"
10927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10928 echo "$ac_t""yes" 1>&6
10929 ol_cv_lib_gdbm=-lgdbm
10931 echo "$ac_t""no" 1>&6
10942 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
10945 for ac_hdr in gdbm.h
10947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10949 echo "configure:10950: checking for $ac_hdr" >&5
10950 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10953 cat > conftest.$ac_ext <<EOF
10954 #line 10955 "configure"
10955 #include "confdefs.h"
10958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10959 { (eval echo configure:10960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10961 if test -z "$ac_err"; then
10963 eval "ac_cv_header_$ac_safe=yes"
10966 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5
10969 eval "ac_cv_header_$ac_safe=no"
10973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10974 echo "$ac_t""yes" 1>&6
10975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10976 cat >> confdefs.h <<EOF
10977 #define $ac_tr_hdr 1
10981 echo "$ac_t""no" 1>&6
10985 echo $ac_n "checking for db""... $ac_c" 1>&6
10986 echo "configure:10987: checking for db" >&5
10987 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10991 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
10999 echo "$ac_t""$ol_cv_gdbm" 1>&6
11000 if test $ol_cv_gdbm = yes ; then
11001 cat >> confdefs.h <<\EOF
11002 #define HAVE_GDBM 1
11008 if test $ol_cv_gdbm = yes ; then
11010 ol_with_ldbm_api=gdbm
11012 if test $ol_cv_lib_gdbm != yes ; then
11013 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11018 if test $ol_with_ldbm_api = auto ; then
11019 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11020 elif test $ol_with_ldbm_api = ndbm ; then
11021 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11022 echo "configure:11023: checking for NDBM library" >&5
11023 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11027 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11028 echo "configure:11029: checking for dbm_open" >&5
11029 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 /* System header to define __stub macros and hopefully few prototypes,
11036 which can conflict with char dbm_open(); below. */
11037 #include <assert.h>
11038 /* Override any gcc2 internal prototype to avoid an error. */
11039 /* We use char because int might match the return type of a gcc2
11040 builtin and then its argument prototype would still apply. */
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11057 if { (eval echo configure:11058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11059 eval "ac_cv_func_dbm_open=yes"
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11064 eval "ac_cv_func_dbm_open=no"
11069 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11073 echo "$ac_t""no" 1>&6
11075 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11076 echo "configure:11077: checking for dbm_open in -lndbm" >&5
11077 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11078 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11081 ac_save_LIBS="$LIBS"
11082 LIBS="-lndbm $LIBS"
11083 cat > conftest.$ac_ext <<EOF
11084 #line 11085 "configure"
11085 #include "confdefs.h"
11086 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11095 if { (eval echo configure:11096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11097 eval "ac_cv_lib_$ac_lib_var=yes"
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11102 eval "ac_cv_lib_$ac_lib_var=no"
11105 LIBS="$ac_save_LIBS"
11108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11109 echo "$ac_t""yes" 1>&6
11110 ol_cv_lib_ndbm=-lndbm
11112 echo "$ac_t""no" 1>&6
11114 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11115 echo "configure:11116: checking for dbm_open in -ldbm" >&5
11116 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11117 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11120 ac_save_LIBS="$LIBS"
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11134 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11136 eval "ac_cv_lib_$ac_lib_var=yes"
11138 echo "configure: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11141 eval "ac_cv_lib_$ac_lib_var=no"
11144 LIBS="$ac_save_LIBS"
11147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11148 echo "$ac_t""yes" 1>&6
11149 ol_cv_lib_ndbm=-ldbm
11151 echo "$ac_t""no" 1>&6
11164 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11167 for ac_hdr in ndbm.h
11169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11171 echo "configure:11172: checking for $ac_hdr" >&5
11172 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11173 echo $ac_n "(cached) $ac_c" 1>&6
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11181 { (eval echo configure:11182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11183 if test -z "$ac_err"; then
11185 eval "ac_cv_header_$ac_safe=yes"
11188 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5
11191 eval "ac_cv_header_$ac_safe=no"
11195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11196 echo "$ac_t""yes" 1>&6
11197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11198 cat >> confdefs.h <<EOF
11199 #define $ac_tr_hdr 1
11203 echo "$ac_t""no" 1>&6
11207 echo $ac_n "checking for db""... $ac_c" 1>&6
11208 echo "configure:11209: checking for db" >&5
11209 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11213 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11221 echo "$ac_t""$ol_cv_ndbm" 1>&6
11222 if test $ol_cv_ndbm = yes ; then
11223 cat >> confdefs.h <<\EOF
11224 #define HAVE_NDBM 1
11230 if test $ol_cv_ndbm = yes ; then
11232 ol_with_ldbm_api=ndbm
11234 if test $ol_cv_lib_ndbm != yes ; then
11235 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11240 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11241 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11242 if test $ol_enable_ldbm = yes ; then
11243 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11246 echo "configure: warning: disabling LDBM" 1>&2
11250 if test $ol_enable_wrappers != no ; then
11251 for ac_hdr in tcpd.h
11253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11255 echo "configure:11256: checking for $ac_hdr" >&5
11256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11265 { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11267 if test -z "$ac_err"; then
11269 eval "ac_cv_header_$ac_safe=yes"
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11275 eval "ac_cv_header_$ac_safe=no"
11279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11280 echo "$ac_t""yes" 1>&6
11281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11282 cat >> confdefs.h <<EOF
11283 #define $ac_tr_hdr 1
11287 echo "$ac_t""no" 1>&6
11292 if test $ac_cv_header_tcpd_h != yes ; then
11295 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11296 echo "configure:11297: checking for main in -lwrap" >&5
11297 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11301 ac_save_LIBS="$LIBS"
11302 LIBS="-lwrap $LIBS"
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11311 if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11313 eval "ac_cv_lib_$ac_lib_var=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 eval "ac_cv_lib_$ac_lib_var=no"
11321 LIBS="$ac_save_LIBS"
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11328 echo "$ac_t""no" 1>&6
11334 if test $have_wrappers = yes ; then
11335 cat >> confdefs.h <<\EOF
11336 #define HAVE_TCPD 1
11339 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11341 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11342 echo "configure:11343: checking for main in -lnsl" >&5
11343 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11344 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11347 ac_save_LIBS="$LIBS"
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11359 eval "ac_cv_lib_$ac_lib_var=yes"
11361 echo "configure: failed program was:" >&5
11362 cat conftest.$ac_ext >&5
11364 eval "ac_cv_lib_$ac_lib_var=no"
11367 LIBS="$ac_save_LIBS"
11370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11372 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11374 cat >> confdefs.h <<EOF
11375 #define $ac_tr_lib 1
11381 echo "$ac_t""no" 1>&6
11385 echo "configure: warning: could not find -lwrap" 1>&2
11386 if test $ol_enable_wrappers = yes ; then
11387 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11390 echo "configure: warning: disabling wrappers support" 1>&2
11391 ol_enable_wrappers=no
11395 if test $ol_enable_syslog != no ; then
11396 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11397 echo "configure:11398: checking for openlog" >&5
11398 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11399 echo $ac_n "(cached) $ac_c" 1>&6
11401 cat > conftest.$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 /* System header to define __stub macros and hopefully few prototypes,
11405 which can conflict with char openlog(); below. */
11406 #include <assert.h>
11407 /* Override any gcc2 internal prototype to avoid an error. */
11408 /* We use char because int might match the return type of a gcc2
11409 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined (__stub_openlog) || defined (__stub___openlog)
11426 if { (eval echo configure:11427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11428 eval "ac_cv_func_openlog=yes"
11430 echo "configure: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11433 eval "ac_cv_func_openlog=no"
11438 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11439 echo "$ac_t""yes" 1>&6
11442 echo "$ac_t""no" 1>&6
11445 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11446 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11448 ol_enable_syslog=$ac_cv_func_openlog
11451 if test $ol_enable_dmalloc != no ; then
11452 for ac_hdr in dmalloc.h
11454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11456 echo "configure:11457: checking for $ac_hdr" >&5
11457 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11460 cat > conftest.$ac_ext <<EOF
11461 #line 11462 "configure"
11462 #include "confdefs.h"
11465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11466 { (eval echo configure:11467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11468 if test -z "$ac_err"; then
11470 eval "ac_cv_header_$ac_safe=yes"
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11476 eval "ac_cv_header_$ac_safe=no"
11480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11481 echo "$ac_t""yes" 1>&6
11482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11483 cat >> confdefs.h <<EOF
11484 #define $ac_tr_hdr 1
11488 echo "$ac_t""no" 1>&6
11492 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11493 echo "configure:11494: checking for dmalloc_shutdown in -ldmalloc" >&5
11494 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11495 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11498 ac_save_LIBS="$LIBS"
11499 LIBS="-ldmalloc $LIBS"
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 /* Override any gcc2 internal prototype to avoid an error. */
11504 /* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506 char dmalloc_shutdown();
11512 if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11514 eval "ac_cv_lib_$ac_lib_var=yes"
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11519 eval "ac_cv_lib_$ac_lib_var=no"
11522 LIBS="$ac_save_LIBS"
11525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11528 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11529 cat >> confdefs.h <<EOF
11530 #define $ac_tr_lib 1
11533 LIBS="-ldmalloc $LIBS"
11536 echo "$ac_t""no" 1>&6
11541 if test $ol_enable_tcl != no ; then
11542 for ac_hdr in tcl.h
11544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11546 echo "configure:11547: checking for $ac_hdr" >&5
11547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11556 { (eval echo configure:11557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558 if test -z "$ac_err"; then
11560 eval "ac_cv_header_$ac_safe=yes"
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 eval "ac_cv_header_$ac_safe=no"
11570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11571 echo "$ac_t""yes" 1>&6
11572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11573 cat >> confdefs.h <<EOF
11574 #define $ac_tr_hdr 1
11578 echo "$ac_t""no" 1>&6
11583 if test $ac_cv_header_tcl_h != yes ; then
11586 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11587 echo "configure:11588: checking for main in -ltcl" >&5
11588 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11589 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11592 ac_save_LIBS="$LIBS"
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11604 eval "ac_cv_lib_$ac_lib_var=yes"
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11609 eval "ac_cv_lib_$ac_lib_var=no"
11612 LIBS="$ac_save_LIBS"
11615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11619 echo "$ac_t""no" 1>&6
11624 if test $have_tcl != yes; then
11625 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11626 echo "configure:11627: checking for main in -ltcl7.6" >&5
11627 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
11631 ac_save_LIBS="$LIBS"
11632 LIBS="-ltcl7.6 $LIBS"
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11643 eval "ac_cv_lib_$ac_lib_var=yes"
11645 echo "configure: failed program was:" >&5
11646 cat conftest.$ac_ext >&5
11648 eval "ac_cv_lib_$ac_lib_var=no"
11651 LIBS="$ac_save_LIBS"
11654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11658 echo "$ac_t""no" 1>&6
11664 if test $have_tcl != yes; then
11665 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11666 echo "configure:11667: checking for main in -ltcl8.0" >&5
11667 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11669 echo $ac_n "(cached) $ac_c" 1>&6
11671 ac_save_LIBS="$LIBS"
11672 LIBS="-ltcl8.0 $LIBS"
11673 cat > conftest.$ac_ext <<EOF
11674 #line 11675 "configure"
11675 #include "confdefs.h"
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11683 eval "ac_cv_lib_$ac_lib_var=yes"
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 eval "ac_cv_lib_$ac_lib_var=no"
11691 LIBS="$ac_save_LIBS"
11694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11695 echo "$ac_t""yes" 1>&6
11696 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11698 echo "$ac_t""no" 1>&6
11705 if test $have_tcl != yes ; then
11706 echo "configure: warning: could not find -ltcl" 1>&2
11707 if test $ol_enable_tcl = yes ; then
11708 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11715 # ud needs termcap (should insert check here)
11717 for ac_hdr in termcap.h ncurses.h
11719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11721 echo "configure:11722: checking for $ac_hdr" >&5
11722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11723 echo $ac_n "(cached) $ac_c" 1>&6
11725 cat > conftest.$ac_ext <<EOF
11726 #line 11727 "configure"
11727 #include "confdefs.h"
11730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11731 { (eval echo configure:11732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11733 if test -z "$ac_err"; then
11735 eval "ac_cv_header_$ac_safe=yes"
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11741 eval "ac_cv_header_$ac_safe=no"
11745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11746 echo "$ac_t""yes" 1>&6
11747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11748 cat >> confdefs.h <<EOF
11749 #define $ac_tr_hdr 1
11753 echo "$ac_t""no" 1>&6
11758 if test $ol_link_termcap = no ; then
11759 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
11760 echo "configure:11761: checking for tputs in -ltermcap" >&5
11761 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
11762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11763 echo $ac_n "(cached) $ac_c" 1>&6
11765 ac_save_LIBS="$LIBS"
11766 LIBS="-ltermcap $LIBS"
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11770 /* Override any gcc2 internal prototype to avoid an error. */
11771 /* We use char because int might match the return type of a gcc2
11772 builtin and then its argument prototype would still apply. */
11779 if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11781 eval "ac_cv_lib_$ac_lib_var=yes"
11783 echo "configure: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11786 eval "ac_cv_lib_$ac_lib_var=no"
11789 LIBS="$ac_save_LIBS"
11792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11793 echo "$ac_t""yes" 1>&6
11796 echo "$ac_t""no" 1>&6
11800 if test $have_termcap = yes ; then
11801 cat >> confdefs.h <<\EOF
11802 #define HAVE_TERMCAP 1
11805 ol_link_termcap=yes
11806 TERMCAP_LIBS=-ltermcap
11810 if test $ol_link_termcap = no ; then
11811 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
11812 echo "configure:11813: checking for initscr in -lncurses" >&5
11813 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
11814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11815 echo $ac_n "(cached) $ac_c" 1>&6
11817 ac_save_LIBS="$LIBS"
11818 LIBS="-lncurses $LIBS"
11819 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11822 /* Override any gcc2 internal prototype to avoid an error. */
11823 /* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11831 if { (eval echo configure:11832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11833 eval "ac_cv_lib_$ac_lib_var=yes"
11835 echo "configure: failed program was:" >&5
11836 cat conftest.$ac_ext >&5
11838 eval "ac_cv_lib_$ac_lib_var=no"
11841 LIBS="$ac_save_LIBS"
11844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11845 echo "$ac_t""yes" 1>&6
11848 echo "$ac_t""no" 1>&6
11852 if test $have_ncurses = yes ; then
11853 cat >> confdefs.h <<\EOF
11854 #define HAVE_NCURSES 1
11857 ol_link_termcap=yes
11858 TERMCAP_LIBS=-lncurses
11862 if test $ol_link_termcap = no ; then
11863 cat >> confdefs.h <<\EOF
11864 #define NO_TERMCAP 1
11871 if test $ol_with_cyrus_sasl != no ; then
11872 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
11873 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
11874 echo "configure:11875: checking for sasl.h" >&5
11875 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11876 echo $ac_n "(cached) $ac_c" 1>&6
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11884 { (eval echo configure:11885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11886 if test -z "$ac_err"; then
11888 eval "ac_cv_header_$ac_safe=yes"
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11894 eval "ac_cv_header_$ac_safe=no"
11898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11899 echo "$ac_t""yes" 1>&6
11902 echo "$ac_t""no" 1>&6
11906 if test $ac_cv_header_sasl_h = yes ; then
11907 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
11908 echo "configure:11909: checking for sasl_client_init in -lsasl" >&5
11909 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
11910 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11911 echo $ac_n "(cached) $ac_c" 1>&6
11913 ac_save_LIBS="$LIBS"
11914 LIBS="-lsasl $LIBS"
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char sasl_client_init();
11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11929 eval "ac_cv_lib_$ac_lib_var=yes"
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11934 eval "ac_cv_lib_$ac_lib_var=no"
11937 LIBS="$ac_save_LIBS"
11940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11941 echo "$ac_t""yes" 1>&6
11942 have_cyrus_sasl=yes
11944 echo "$ac_t""no" 1>&6
11949 if test $have_cyrus_sasl != no ; then
11951 cat >> confdefs.h <<\EOF
11952 #define HAVE_CYRUS_SASL 1
11959 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
11960 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
11965 if test $ol_with_fetch != no ; then
11967 LIBS="-lfetch -lcom_err $LIBS"
11968 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
11969 echo "configure:11970: checking fetch(3) library" >&5
11970 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
11971 echo $ac_n "(cached) $ac_c" 1>&6
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11978 #include <sys/param.h>
11982 struct url *u = fetchParseURL("file:///");
11985 if { (eval echo configure:11986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11987 ol_cv_lib_fetch=yes
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11997 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
11999 if test $ol_cv_lib_fetch != no ; then
12000 ol_link_fetch="-lfetch -lcom_err"
12001 cat >> confdefs.h <<\EOF
12002 #define HAVE_FETCH 1
12008 if test $ol_cv_lib_fetch != no ; then
12009 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12010 ol_link_fetch=freebsd
12012 elif test $ol_with_fetch != auto ; then
12013 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12017 ol_link_readline=no
12018 if test $ol_with_readline != no ; then
12019 for ac_hdr in readline/readline.h readline/history.h
12021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12023 echo "configure:12024: checking for $ac_hdr" >&5
12024 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12027 cat > conftest.$ac_ext <<EOF
12028 #line 12029 "configure"
12029 #include "confdefs.h"
12032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12033 { (eval echo configure:12034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12035 if test -z "$ac_err"; then
12037 eval "ac_cv_header_$ac_safe=yes"
12040 echo "configure: failed program was:" >&5
12041 cat conftest.$ac_ext >&5
12043 eval "ac_cv_header_$ac_safe=no"
12047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12048 echo "$ac_t""yes" 1>&6
12049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12050 cat >> confdefs.h <<EOF
12051 #define $ac_tr_hdr 1
12055 echo "$ac_t""no" 1>&6
12060 if test $ac_cv_header_readline_readline_h = yes ; then
12062 LIBS="$TERMCAP_LIBS $LIBS"
12063 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12064 echo "configure:12065: checking for readline in -lreadline" >&5
12065 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12069 ac_save_LIBS="$LIBS"
12070 LIBS="-lreadline $LIBS"
12071 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure"
12073 #include "confdefs.h"
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 /* We use char because int might match the return type of a gcc2
12076 builtin and then its argument prototype would still apply. */
12083 if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12085 eval "ac_cv_lib_$ac_lib_var=yes"
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12090 eval "ac_cv_lib_$ac_lib_var=no"
12093 LIBS="$ac_save_LIBS"
12096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12097 echo "$ac_t""yes" 1>&6
12100 echo "$ac_t""no" 1>&6
12106 if test $have_readline = yes ; then
12107 ol_with_readline=found
12108 ol_link_readline=yes
12110 READLINE_LIBS="-lreadline"
12115 if test $ol_link_readline = yes ; then
12116 cat >> confdefs.h <<\EOF
12117 #define HAVE_READLINE 1
12123 # FreeBSD (and others) have crypt(3) in -lcrypt
12124 if test $ol_enable_crypt != no ; then
12125 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12126 echo "configure:12127: checking for crypt" >&5
12127 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char crypt(); below. */
12135 #include <assert.h>
12136 /* Override any gcc2 internal prototype to avoid an error. */
12137 /* We use char because int might match the return type of a gcc2
12138 builtin and then its argument prototype would still apply. */
12144 /* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
12147 #if defined (__stub_crypt) || defined (__stub___crypt)
12155 if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12157 eval "ac_cv_func_crypt=yes"
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12162 eval "ac_cv_func_crypt=no"
12167 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12168 echo "$ac_t""yes" 1>&6
12171 echo "$ac_t""no" 1>&6
12173 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12174 echo "configure:12175: checking for crypt in -lcrypt" >&5
12175 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12179 ac_save_LIBS="$LIBS"
12180 LIBS="-lcrypt $LIBS"
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12184 /* Override any gcc2 internal prototype to avoid an error. */
12185 /* We use char because int might match the return type of a gcc2
12186 builtin and then its argument prototype would still apply. */
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12195 eval "ac_cv_lib_$ac_lib_var=yes"
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 eval "ac_cv_lib_$ac_lib_var=no"
12203 LIBS="$ac_save_LIBS"
12206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12207 echo "$ac_t""yes" 1>&6
12208 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12211 echo "$ac_t""no" 1>&6
12218 if test $have_crypt = yes ; then
12219 cat >> confdefs.h <<\EOF
12220 #define HAVE_CRYPT 1
12224 echo "configure: warning: could not find crypt" 1>&2
12225 if test $ol_enable_crypt = yes ; then
12226 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12229 echo "configure: warning: disabling crypt support" 1>&2
12234 # FreeBSD (and others) have setproctitle(3) in -lutil
12235 if test $ol_enable_proctitle != no ; then
12236 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12237 echo "configure:12238: checking for setproctitle" >&5
12238 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12239 echo $ac_n "(cached) $ac_c" 1>&6
12241 cat > conftest.$ac_ext <<EOF
12242 #line 12243 "configure"
12243 #include "confdefs.h"
12244 /* System header to define __stub macros and hopefully few prototypes,
12245 which can conflict with char setproctitle(); below. */
12246 #include <assert.h>
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250 char setproctitle();
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12266 if { (eval echo configure:12267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12268 eval "ac_cv_func_setproctitle=yes"
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 eval "ac_cv_func_setproctitle=no"
12278 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12279 echo "$ac_t""yes" 1>&6
12280 have_setproctitle=yes
12282 echo "$ac_t""no" 1>&6
12284 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12285 echo "configure:12286: checking for setproctitle in -lutil" >&5
12286 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12290 ac_save_LIBS="$LIBS"
12291 LIBS="-lutil $LIBS"
12292 cat > conftest.$ac_ext <<EOF
12293 #line 12294 "configure"
12294 #include "confdefs.h"
12295 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12298 char setproctitle();
12304 if { (eval echo configure:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12306 eval "ac_cv_lib_$ac_lib_var=yes"
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12311 eval "ac_cv_lib_$ac_lib_var=no"
12314 LIBS="$ac_save_LIBS"
12317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12318 echo "$ac_t""yes" 1>&6
12319 have_setproctitle=yes
12320 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12322 echo "$ac_t""no" 1>&6
12323 have_setproctitle=no
12324 LIBOBJS="$LIBOBJS setproctitle.o"
12330 if test $have_setproctitle = yes ; then
12331 cat >> confdefs.h <<\EOF
12332 #define HAVE_SETPROCTITLE 1
12338 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12339 echo "configure:12340: checking for uid_t in sys/types.h" >&5
12340 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12341 echo $ac_n "(cached) $ac_c" 1>&6
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 #include <sys/types.h>
12348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12349 egrep "uid_t" >/dev/null 2>&1; then
12351 ac_cv_type_uid_t=yes
12354 ac_cv_type_uid_t=no
12360 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12361 if test $ac_cv_type_uid_t = no; then
12362 cat >> confdefs.h <<\EOF
12366 cat >> confdefs.h <<\EOF
12372 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12373 echo "configure:12374: checking type of array argument to getgroups" >&5
12374 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12377 if test "$cross_compiling" = yes; then
12378 ac_cv_type_getgroups=cross
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12384 /* Thanks to Mike Rendell for this test. */
12385 #include <sys/types.h>
12388 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12391 gid_t gidset[NGID];
12393 union { gid_t gval; long lval; } val;
12396 for (i = 0; i < NGID; i++)
12397 gidset[i] = val.gval;
12398 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12400 /* Exit non-zero if getgroups seems to require an array of ints. This
12401 happens when gid_t is short but getgroups modifies an array of ints. */
12402 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12408 ac_cv_type_getgroups=gid_t
12410 echo "configure: failed program was:" >&5
12411 cat conftest.$ac_ext >&5
12413 ac_cv_type_getgroups=int
12418 if test $ac_cv_type_getgroups = cross; then
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure"
12421 #include "confdefs.h"
12422 #include <unistd.h>
12424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12425 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12427 ac_cv_type_getgroups=gid_t
12430 ac_cv_type_getgroups=int
12437 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12438 cat >> confdefs.h <<EOF
12439 #define GETGROUPS_T $ac_cv_type_getgroups
12442 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12443 echo "configure:12444: checking for ANSI C header files" >&5
12444 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12445 echo $ac_n "(cached) $ac_c" 1>&6
12447 cat > conftest.$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 #include <stdlib.h>
12451 #include <stdarg.h>
12452 #include <string.h>
12455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12456 { (eval echo configure:12457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12458 if test -z "$ac_err"; then
12460 ac_cv_header_stdc=yes
12463 echo "configure: failed program was:" >&5
12464 cat conftest.$ac_ext >&5
12466 ac_cv_header_stdc=no
12470 if test $ac_cv_header_stdc = yes; then
12471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 #include <string.h>
12477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12478 egrep "memchr" >/dev/null 2>&1; then
12482 ac_cv_header_stdc=no
12488 if test $ac_cv_header_stdc = yes; then
12489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 #include <stdlib.h>
12495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12496 egrep "free" >/dev/null 2>&1; then
12500 ac_cv_header_stdc=no
12506 if test $ac_cv_header_stdc = yes; then
12507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12508 if test "$cross_compiling" = yes; then
12511 cat > conftest.$ac_ext <<EOF
12512 #line 12513 "configure"
12513 #include "confdefs.h"
12515 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12516 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12518 int main () { int i; for (i = 0; i < 256; i++)
12519 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12523 if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12530 ac_cv_header_stdc=no
12538 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12539 if test $ac_cv_header_stdc = yes; then
12540 cat >> confdefs.h <<\EOF
12541 #define STDC_HEADERS 1
12546 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12547 echo "configure:12548: checking for mode_t" >&5
12548 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12549 echo $ac_n "(cached) $ac_c" 1>&6
12551 cat > conftest.$ac_ext <<EOF
12552 #line 12553 "configure"
12553 #include "confdefs.h"
12554 #include <sys/types.h>
12556 #include <stdlib.h>
12557 #include <stddef.h>
12560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12561 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12563 eval "ac_cv_type_mode_t=yes"
12566 eval "ac_cv_type_mode_t=no"
12571 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12572 echo "$ac_t""yes" 1>&6
12574 echo "$ac_t""no" 1>&6
12575 cat >> confdefs.h <<EOF
12581 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12582 echo "configure:12583: checking for off_t" >&5
12583 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12584 echo $ac_n "(cached) $ac_c" 1>&6
12586 cat > conftest.$ac_ext <<EOF
12587 #line 12588 "configure"
12588 #include "confdefs.h"
12589 #include <sys/types.h>
12591 #include <stdlib.h>
12592 #include <stddef.h>
12595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12596 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12598 eval "ac_cv_type_off_t=yes"
12601 eval "ac_cv_type_off_t=no"
12606 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12607 echo "$ac_t""yes" 1>&6
12609 echo "$ac_t""no" 1>&6
12610 cat >> confdefs.h <<EOF
12616 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12617 echo "configure:12618: checking for pid_t" >&5
12618 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12621 cat > conftest.$ac_ext <<EOF
12622 #line 12623 "configure"
12623 #include "confdefs.h"
12624 #include <sys/types.h>
12626 #include <stdlib.h>
12627 #include <stddef.h>
12630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12631 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12633 eval "ac_cv_type_pid_t=yes"
12636 eval "ac_cv_type_pid_t=no"
12641 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12644 echo "$ac_t""no" 1>&6
12645 cat >> confdefs.h <<EOF
12651 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12652 echo "configure:12653: checking for ptrdiff_t" >&5
12653 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 #include <stddef.h>
12664 if { (eval echo configure:12665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12666 am_cv_type_ptrdiff_t=yes
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12671 am_cv_type_ptrdiff_t=no
12676 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12677 if test $am_cv_type_ptrdiff_t = yes; then
12678 cat >> confdefs.h <<\EOF
12679 #define HAVE_PTRDIFF_T 1
12684 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12685 echo "configure:12686: checking return type of signal handlers" >&5
12686 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12687 echo $ac_n "(cached) $ac_c" 1>&6
12689 cat > conftest.$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692 #include <sys/types.h>
12693 #include <signal.h>
12698 extern "C" void (*signal (int, void (*)(int)))(int);
12700 void (*signal ()) ();
12707 if { (eval echo configure:12708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12709 ac_cv_type_signal=void
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 ac_cv_type_signal=int
12719 echo "$ac_t""$ac_cv_type_signal" 1>&6
12720 cat >> confdefs.h <<EOF
12721 #define RETSIGTYPE $ac_cv_type_signal
12725 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12726 echo "configure:12727: checking for sig_atomic_t" >&5
12727 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12728 echo $ac_n "(cached) $ac_c" 1>&6
12730 cat > conftest.$ac_ext <<EOF
12731 #line 12732 "configure"
12732 #include "confdefs.h"
12733 #include <signal.h>
12735 sig_atomic_t atomic;
12738 if { (eval echo configure:12739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12740 ol_cv_type_sig_atomic_t=yes
12742 echo "configure: failed program was:" >&5
12743 cat conftest.$ac_ext >&5
12745 ol_cv_type_sig_atomic_t=no
12750 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12751 if test $ol_cv_type_sig_atomic_t = no; then
12752 cat >> confdefs.h <<\EOF
12753 #define sig_atomic_t int
12758 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12759 echo "configure:12760: checking for size_t" >&5
12760 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12765 "configure"
12765 #include "confdefs.h"
12766 #include <sys/types.h>
12768 #include <stdlib.h>
12769 #include <stddef.h>
12772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12773 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12775 eval "ac_cv_type_size_t=yes"
12778 eval "ac_cv_type_size_t=no"
12783 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
12784 echo "$ac_t""yes" 1>&6
12786 echo "$ac_t""no" 1>&6
12787 cat >> confdefs.h <<EOF
12788 #define size_t unsigned
12793 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
12794 echo "configure:12795: checking for socklen_t" >&5
12795 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12798 cat > conftest.$ac_ext <<EOF
12799 #line 12800 "configure"
12800 #include "confdefs.h"
12802 #ifdef HAVE_SYS_TYPES_H
12803 #include <sys/types.h>
12805 #ifdef HAVE_SYS_SOCKET_H
12806 #include <sys/socket.h>
12813 if { (eval echo configure:12814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12815 ol_cv_type_socklen_t=yes
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12820 ol_cv_type_socklen_t=no
12825 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
12826 if test $ol_cv_type_socklen_t = no; then
12827 cat >> confdefs.h <<\EOF
12828 #define socklen_t int
12833 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
12834 echo "configure:12835: checking for member st_blksize in aggregate type struct stat" >&5
12835 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
12836 echo $ac_n "(cached) $ac_c" 1>&6
12838 cat > conftest.$ac_ext <<EOF
12839 #line 12840 "configure"
12840 #include "confdefs.h"
12841 #include <sys/types.h>
12842 #include <sys/stat.h>
12844 struct stat foo; foo.st_blksize;
12847 if { (eval echo configure:12848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12849 ac_cv_c_struct_member_st_blksize=yes
12851 echo "configure: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12854 ac_cv_c_struct_member_st_blksize=no
12859 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
12860 st_blksize="$ac_cv_c_struct_member_st_blksize"
12861 if test $ac_cv_c_struct_member_st_blksize = yes; then
12862 cat >> confdefs.h <<\EOF
12863 #define HAVE_ST_BLKSIZE 1
12868 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
12869 echo "configure:12870: checking whether time.h and sys/time.h may both be included" >&5
12870 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12873 cat > conftest.$ac_ext <<EOF
12874 #line 12875 "configure"
12875 #include "confdefs.h"
12876 #include <sys/types.h>
12877 #include <sys/time.h>
12883 if { (eval echo configure:12884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12885 ac_cv_header_time=yes
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12890 ac_cv_header_time=no
12895 echo "$ac_t""$ac_cv_header_time" 1>&6
12896 if test $ac_cv_header_time = yes; then
12897 cat >> confdefs.h <<\EOF
12898 #define TIME_WITH_SYS_TIME 1
12903 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
12904 echo "configure:12905: checking whether struct tm is in sys/time.h or time.h" >&5
12905 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 #include <sys/types.h>
12914 struct tm *tp; tp->tm_sec;
12917 if { (eval echo configure:12918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12919 ac_cv_struct_tm=time.h
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 ac_cv_struct_tm=sys/time.h
12929 echo "$ac_t""$ac_cv_struct_tm" 1>&6
12930 if test $ac_cv_struct_tm = sys/time.h; then
12931 cat >> confdefs.h <<\EOF
12932 #define TM_IN_SYS_TIME 1
12937 # test for pw_gecos in struct passwd
12938 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
12939 echo "configure:12940: checking struct passwd for pw_gecos" >&5
12940 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12944 cat > conftest.$ac_ext <<EOF
12945 #line 12946 "configure"
12946 #include "confdefs.h"
12951 pwd.pw_gecos = pwd.pw_name;
12955 if { (eval echo configure:12956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12957 ol_cv_struct_passwd_pw_gecos=yes
12959 echo "configure: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12962 ol_cv_struct_passwd_pw_gecos=no
12967 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
12968 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
12969 cat >> confdefs.h <<\EOF
12970 #define HAVE_PW_GECOS 1
12975 # test for pw_passwd in struct passwd
12976 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
12977 echo "configure:12978: checking struct passwd for pw_passwd" >&5
12978 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
12979 echo $ac_n "(cached) $ac_c" 1>&6
12982 cat > conftest.$ac_ext <<EOF
12983 #line 12984 "configure"
12984 #include "confdefs.h"
12989 pwd.pw_passwd = pwd.pw_name;
12993 if { (eval echo configure:12994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12995 ol_cv_struct_passwd_pw_passwd=yes
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
13000 ol_cv_struct_passwd_pw_passwd=no
13005 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13006 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13007 cat >> confdefs.h <<\EOF
13008 #define HAVE_PW_PASSWD 1
13014 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13015 echo "configure:13016: checking if toupper() requires islower()" >&5
13016 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13017 echo $ac_n "(cached) $ac_c" 1>&6
13020 if test "$cross_compiling" = yes; then
13021 ol_cv_c_upper_lower=safe
13023 cat > conftest.$ac_ext <<EOF
13024 #line 13025 "configure"
13025 #include "confdefs.h"
13030 if ('C' == toupper('C'))
13036 if { (eval echo configure:13037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13038 ol_cv_c_upper_lower=no
13040 echo "configure: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13043 ol_cv_c_upper_lower=yes
13050 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13051 if test $ol_cv_c_upper_lower != no ; then
13052 cat >> confdefs.h <<\EOF
13053 #define C_UPPER_LOWER 1
13058 echo $ac_n "checking for working const""... $ac_c" 1>&6
13059 echo "configure:13060: checking for working const" >&5
13060 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13061 echo $ac_n "(cached) $ac_c" 1>&6
13063 cat > conftest.$ac_ext <<EOF
13064 #line 13065 "configure"
13065 #include "confdefs.h"
13069 /* Ultrix mips cc rejects this. */
13070 typedef int charset[2]; const charset x;
13071 /* SunOS 4.1.1 cc rejects this. */
13072 char const *const *ccp;
13074 /* NEC SVR4.0.2 mips cc rejects this. */
13075 struct point {int x, y;};
13076 static struct point const zero = {0,0};
13077 /* AIX XL C 1.02.0.0 rejects this.
13078 It does not let you subtract one const X* pointer from another in an arm
13079 of an if-expression whose if-part is not a constant expression */
13080 const char *g = "string";
13081 ccp = &g + (g ? g-g : 0);
13082 /* HPUX 7.0 cc rejects these. */
13085 ccp = (char const *const *) p;
13086 { /* SCO 3.2v4 cc rejects this. */
13088 char const *s = 0 ? (char *) 0 : (char const *) 0;
13092 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13093 int x[] = {25, 17};
13094 const int *foo = &x[0];
13097 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13098 typedef const int *iptr;
13102 { /* AIX XL C 1.02.0.0 rejects this saying
13103 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13104 struct s { int j; const int *ap[3]; };
13105 struct s *b; b->j = 5;
13107 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13108 const int foo = 10;
13113 if { (eval echo configure:13114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13117 echo "configure: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13125 echo "$ac_t""$ac_cv_c_const" 1>&6
13126 if test $ac_cv_c_const = no; then
13127 cat >> confdefs.h <<\EOF
13133 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13134 echo "configure:13135: checking if compiler understands volatile" >&5
13135 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13143 volatile int a; int * volatile b = x ? &y : &z;
13144 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13148 if { (eval echo configure:13149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13150 ol_cv_c_volatile=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 ol_cv_c_volatile=no
13160 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13161 if test $ol_cv_c_volatile = yes; then
13164 cat >> confdefs.h <<\EOF
13171 if test $cross_compiling = yes ; then
13172 cat >> confdefs.h <<\EOF
13173 #define CROSS_COMPILING 1
13177 cat >> confdefs.h <<\EOF
13178 #define LBER_INT_T long
13181 cat >> confdefs.h <<\EOF
13182 #define LBER_TAG_T long
13185 cat >> confdefs.h <<\EOF
13186 #define LBER_SOCKET_T int
13191 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13192 echo "configure:13193: checking whether byte ordering is bigendian" >&5
13193 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13196 ac_cv_c_bigendian=unknown
13197 # See if sys/param.h defines the BYTE_ORDER macro.
13198 cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure"
13200 #include "confdefs.h"
13201 #include <sys/types.h>
13202 #include <sys/param.h>
13205 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13206 bogus endian macros
13210 if { (eval echo configure:13211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13212 # It does; now see whether it defined to BIG_ENDIAN or not.
13213 cat > conftest.$ac_ext <<EOF
13214 #line 13215 "configure"
13215 #include "confdefs.h"
13216 #include <sys/types.h>
13217 #include <sys/param.h>
13220 #if BYTE_ORDER != BIG_ENDIAN
13225 if { (eval echo configure:13226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13227 ac_cv_c_bigendian=yes
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13232 ac_cv_c_bigendian=no
13236 echo "configure: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13240 if test $ac_cv_c_bigendian = unknown; then
13241 if test "$cross_compiling" = yes; then
13242 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13244 cat > conftest.$ac_ext <<EOF
13245 #line 13246 "configure"
13246 #include "confdefs.h"
13248 /* Are we little or big endian? From Harbison&Steele. */
13252 char c[sizeof (long)];
13255 exit (u.c[sizeof (long) - 1] == 1);
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13260 ac_cv_c_bigendian=no
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 ac_cv_c_bigendian=yes
13273 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13274 if test $ac_cv_c_bigendian = yes; then
13275 cat >> confdefs.h <<\EOF
13276 #define WORDS_BIGENDIAN 1
13281 echo $ac_n "checking size of short""... $ac_c" 1>&6
13282 echo "configure:13283: checking size of short" >&5
13283 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13286 if test "$cross_compiling" = yes; then
13287 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13289 cat > conftest.$ac_ext <<EOF
13290 #line 13291 "configure"
13291 #include "confdefs.h"
13295 FILE *f=fopen("conftestval", "w");
13297 fprintf(f, "%d\n", sizeof(short));
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13303 ac_cv_sizeof_short=`cat conftestval`
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 ac_cv_sizeof_short=0
13314 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13315 cat >> confdefs.h <<EOF
13316 #define SIZEOF_SHORT $ac_cv_sizeof_short
13320 echo $ac_n "checking size of int""... $ac_c" 1>&6
13321 echo "configure:13322: checking size of int" >&5
13322 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13323 echo $ac_n "(cached) $ac_c" 1>&6
13325 if test "$cross_compiling" = yes; then
13326 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13328 cat > conftest.$ac_ext <<EOF
13329 #line 13330 "configure"
13330 #include "confdefs.h"
13334 FILE *f=fopen("conftestval", "w");
13336 fprintf(f, "%d\n", sizeof(int));
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13342 ac_cv_sizeof_int=`cat conftestval`
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13353 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13354 cat >> confdefs.h <<EOF
13355 #define SIZEOF_INT $ac_cv_sizeof_int
13359 echo $ac_n "checking size of long""... $ac_c" 1>&6
13360 echo "configure:13361: checking size of long" >&5
13361 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13364 if test "$cross_compiling" = yes; then
13365 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13367 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure"
13369 #include "confdefs.h"
13373 FILE *f=fopen("conftestval", "w");
13375 fprintf(f, "%d\n", sizeof(long));
13379 if { (eval echo configure:13380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13381 ac_cv_sizeof_long=`cat conftestval`
13383 echo "configure: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13386 ac_cv_sizeof_long=0
13392 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13393 cat >> confdefs.h <<EOF
13394 #define SIZEOF_LONG $ac_cv_sizeof_long
13399 if test "$ac_cv_sizeof_int" -lt 4 ; then
13400 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13402 cat >> confdefs.h <<\EOF
13403 #define LBER_INT_T long
13406 cat >> confdefs.h <<\EOF
13407 #define LBER_TAG_T long
13410 cat >> confdefs.h <<\EOF
13411 #define LBER_SOCKET_T int
13415 cat >> confdefs.h <<\EOF
13416 #define LBER_INT_T int
13419 cat >> confdefs.h <<\EOF
13420 #define LBER_TAG_T long
13423 cat >> confdefs.h <<\EOF
13424 #define LBER_SOCKET_T int
13430 cat >> confdefs.h <<\EOF
13431 #define LBER_LEN_T long
13435 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13436 echo "configure:13437: checking for 8-bit clean memcmp" >&5
13437 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13440 if test "$cross_compiling" = yes; then
13441 ac_cv_func_memcmp_clean=no
13443 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure"
13445 #include "confdefs.h"
13449 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13450 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13454 if { (eval echo configure:13455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13456 ac_cv_func_memcmp_clean=yes
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13461 ac_cv_func_memcmp_clean=no
13468 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13469 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13471 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13472 echo "configure:13473: checking for strftime" >&5
13473 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char strftime(); below. */
13481 #include <assert.h>
13482 /* Override any gcc2 internal prototype to avoid an error. */
13483 /* We use char because int might match the return type of a gcc2
13484 builtin and then its argument prototype would still apply. */
13490 /* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493 #if defined (__stub_strftime) || defined (__stub___strftime)
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13503 eval "ac_cv_func_strftime=yes"
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 eval "ac_cv_func_strftime=no"
13513 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13514 echo "$ac_t""yes" 1>&6
13515 cat >> confdefs.h <<\EOF
13516 #define HAVE_STRFTIME 1
13520 echo "$ac_t""no" 1>&6
13521 # strftime is in -lintl on SCO UNIX.
13522 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13523 echo "configure:13524: checking for strftime in -lintl" >&5
13524 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13525 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13526 echo $ac_n "(cached) $ac_c" 1>&6
13528 ac_save_LIBS="$LIBS"
13529 LIBS="-lintl $LIBS"
13530 cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 /* Override any gcc2 internal prototype to avoid an error. */
13534 /* We use char because int might match the return type of a gcc2
13535 builtin and then its argument prototype would still apply. */
13542 if { (eval echo configure:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13544 eval "ac_cv_lib_$ac_lib_var=yes"
13546 echo "configure: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13549 eval "ac_cv_lib_$ac_lib_var=no"
13552 LIBS="$ac_save_LIBS"
13555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13556 echo "$ac_t""yes" 1>&6
13557 cat >> confdefs.h <<\EOF
13558 #define HAVE_STRFTIME 1
13561 LIBS="-lintl $LIBS"
13563 echo "$ac_t""no" 1>&6
13569 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13570 echo "configure:13571: checking for inet_aton()" >&5
13571 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13578 #ifdef HAVE_SYS_TYPES_H
13579 # include <sys/types.h>
13581 #ifdef HAVE_SYS_SOCKET_H
13582 # include <sys/socket.h>
13583 # ifdef HAVE_SYS_SELECT_H
13584 # include <sys/select.h>
13586 # include <netinet/in.h>
13587 # ifdef HAVE_ARPA_INET_H
13588 # include <arpa/inet.h>
13594 int rc = inet_aton( "255.255.255.255", &in );
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13599 ol_cv_func_inet_aton=yes
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13604 ol_cv_func_inet_aton=no
13609 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13610 if test $ol_cv_func_inet_aton != no; then
13611 cat >> confdefs.h <<\EOF
13612 #define HAVE_INET_ATON 1
13618 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13619 echo "configure:13620: checking for vprintf" >&5
13620 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13621 echo $ac_n "(cached) $ac_c" 1>&6
13623 cat > conftest.$ac_ext <<EOF
13624 #line 13625 "configure"
13625 #include "confdefs.h"
13626 /* System header to define __stub macros and hopefully few prototypes,
13627 which can conflict with char vprintf(); below. */
13628 #include <assert.h>
13629 /* Override any gcc2 internal prototype to avoid an error. */
13630 /* We use char because int might match the return type of a gcc2
13631 builtin and then its argument prototype would still apply. */
13637 /* The GNU C library defines this for functions which it implements
13638 to always fail with ENOSYS. Some functions are actually named
13639 something starting with __ and the normal name is an alias. */
13640 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13650 eval "ac_cv_func_vprintf=yes"
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13655 eval "ac_cv_func_vprintf=no"
13660 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13661 echo "$ac_t""yes" 1>&6
13662 cat >> confdefs.h <<\EOF
13663 #define HAVE_VPRINTF 1
13667 echo "$ac_t""no" 1>&6
13670 if test "$ac_cv_func_vprintf" != yes; then
13671 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13672 echo "configure:13673: checking for _doprnt" >&5
13673 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13674 echo $ac_n "(cached) $ac_c" 1>&6
13676 cat > conftest.$ac_ext <<EOF
13677 #line 13678 "configure"
13678 #include "confdefs.h"
13679 /* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char _doprnt(); below. */
13681 #include <assert.h>
13682 /* Override any gcc2 internal prototype to avoid an error. */
13683 /* We use char because int might match the return type of a gcc2
13684 builtin and then its argument prototype would still apply. */
13690 /* The GNU C library defines this for functions which it implements
13691 to always fail with ENOSYS. Some functions are actually named
13692 something starting with __ and the normal name is an alias. */
13693 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13701 if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13703 eval "ac_cv_func__doprnt=yes"
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 eval "ac_cv_func__doprnt=no"
13713 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13714 echo "$ac_t""yes" 1>&6
13715 cat >> confdefs.h <<\EOF
13716 #define HAVE_DOPRNT 1
13720 echo "$ac_t""no" 1>&6
13726 if test $ac_cv_func_vprintf = yes ; then
13727 for ac_func in vsnprintf vsprintf
13729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13730 echo "configure:13731: checking for $ac_func" >&5
13731 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13732 echo $ac_n "(cached) $ac_c" 1>&6
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13737 /* System header to define __stub macros and hopefully few prototypes,
13738 which can conflict with char $ac_func(); below. */
13739 #include <assert.h>
13740 /* Override any gcc2 internal prototype to avoid an error. */
13741 /* We use char because int might match the return type of a gcc2
13742 builtin and then its argument prototype would still apply. */
13748 /* The GNU C library defines this for functions which it implements
13749 to always fail with ENOSYS. Some functions are actually named
13750 something starting with __ and the normal name is an alias. */
13751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13759 if { (eval echo configure:13760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13761 eval "ac_cv_func_$ac_func=yes"
13763 echo "configure: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13766 eval "ac_cv_func_$ac_func=no"
13771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13772 echo "$ac_t""yes" 1>&6
13773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13774 cat >> confdefs.h <<EOF
13775 #define $ac_tr_func 1
13779 echo "$ac_t""no" 1>&6
13835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13836 echo "configure:13837: checking for $ac_func" >&5
13837 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13838 echo $ac_n "(cached) $ac_c" 1>&6
13840 cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* System header to define __stub macros and hopefully few prototypes,
13844 which can conflict with char $ac_func(); below. */
13845 #include <assert.h>
13846 /* Override any gcc2 internal prototype to avoid an error. */
13847 /* We use char because int might match the return type of a gcc2
13848 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13865 if { (eval echo configure:13866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13867 eval "ac_cv_func_$ac_func=yes"
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13872 eval "ac_cv_func_$ac_func=no"
13877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13880 cat >> confdefs.h <<EOF
13881 #define $ac_tr_func 1
13885 echo "$ac_t""no" 1>&6
13890 for ac_func in getopt tempnam
13892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13893 echo "configure:13894: checking for $ac_func" >&5
13894 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13900 /* System header to define __stub macros and hopefully few prototypes,
13901 which can conflict with char $ac_func(); below. */
13902 #include <assert.h>
13903 /* Override any gcc2 internal prototype to avoid an error. */
13904 /* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13911 /* The GNU C library defines this for functions which it implements
13912 to always fail with ENOSYS. Some functions are actually named
13913 something starting with __ and the normal name is an alias. */
13914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13922 if { (eval echo configure:13923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13924 eval "ac_cv_func_$ac_func=yes"
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13929 eval "ac_cv_func_$ac_func=no"
13934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13937 cat >> confdefs.h <<EOF
13938 #define $ac_tr_func 1
13942 echo "$ac_t""no" 1>&6
13943 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
13949 # Check Configuration
13950 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
13951 echo "configure:13952: checking declaration of sys_errlist" >&5
13952 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13956 cat > conftest.$ac_ext <<EOF
13957 #line 13958 "configure"
13958 #include "confdefs.h"
13961 #include <sys/types.h>
13964 char *c = (char *) *sys_errlist
13967 if { (eval echo configure:13968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13969 ol_cv_dcl_sys_errlist=yes
13970 ol_cv_have_sys_errlist=yes
13972 echo "configure: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13975 ol_cv_dcl_sys_errlist=no
13980 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
13982 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
13983 if test $ol_cv_dcl_sys_errlist = no ; then
13984 cat >> confdefs.h <<\EOF
13985 #define DECL_SYS_ERRLIST 1
13989 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
13990 echo "configure:13991: checking existence of sys_errlist" >&5
13991 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13995 cat > conftest.$ac_ext <<EOF
13996 #line 13997 "configure"
13997 #include "confdefs.h"
14000 char *c = (char *) *sys_errlist
14003 if { (eval echo configure:14004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14005 ol_cv_have_sys_errlist=yes
14007 echo "configure: failed program was:" >&5
14008 cat conftest.$ac_ext >&5
14010 ol_cv_have_sys_errlist=no
14015 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14017 if test $ol_cv_have_sys_errlist = yes ; then
14018 cat >> confdefs.h <<\EOF
14019 #define HAVE_SYS_ERRLIST 1
14026 if test "$ol_enable_debug" != no ; then
14027 cat >> confdefs.h <<\EOF
14028 #define LDAP_DEBUG 1
14032 if test "$ol_enable_syslog" = yes ; then
14033 cat >> confdefs.h <<\EOF
14034 #define LDAP_SYSLOG 1
14038 if test "$ol_enable_libui" = yes ; then
14039 cat >> confdefs.h <<\EOF
14040 #define LDAP_LIBUI 1
14044 if test "$ol_enable_cache" = no ; then
14045 cat >> confdefs.h <<\EOF
14046 #define LDAP_NOCACHE 1
14050 if test "$ol_enable_dns" != no ; then
14051 cat >> confdefs.h <<\EOF
14052 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14056 if test "$ol_enable_proctitle" != no ; then
14057 cat >> confdefs.h <<\EOF
14058 #define LDAP_PROCTITLE 1
14062 if test "$ol_enable_referrals" != no ; then
14063 cat >> confdefs.h <<\EOF
14064 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14068 if test "$ol_enable_cldap" != no ; then
14069 cat >> confdefs.h <<\EOF
14070 #define LDAP_CONNECTIONLESS 1
14075 if test "$ol_enable_crypt" != no ; then
14076 cat >> confdefs.h <<\EOF
14077 #define SLAPD_CRYPT 1
14081 if test "$ol_enable_cleartext" != no ; then
14082 cat >> confdefs.h <<\EOF
14083 #define SLAPD_CLEARTEXT 1
14087 if test "$ol_enable_multimaster" != no ; then
14088 cat >> confdefs.h <<\EOF
14089 #define SLAPD_MULTIMASTER 1
14093 if test "$ol_enable_phonetic" != no ; then
14094 cat >> confdefs.h <<\EOF
14095 #define SLAPD_PHONETIC 1
14099 if test "$ol_enable_rlookups" != no ; then
14100 cat >> confdefs.h <<\EOF
14101 #define SLAPD_RLOOKUPS 1
14105 if test "$ol_enable_aci" != no ; then
14106 cat >> confdefs.h <<\EOF
14107 #define SLAPD_ACI_ENABLED 1
14111 if test "$ol_enable_discreteaci" != no ; then
14112 cat >> confdefs.h <<\EOF
14113 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14118 if test "$ol_link_modules" != no ; then
14119 cat >> confdefs.h <<\EOF
14120 #define SLAPD_MODULES 1
14124 MODULES_LIBS=-lltdl
14125 SLAPD_MODULES_LDFLAGS="-dlopen self"
14128 if test "$ol_link_bdb2" != no ; then
14129 cat >> confdefs.h <<\EOF
14130 #define SLAPD_BDB2 1
14135 if test "$ol_with_bdb2_module" != static ; then
14136 cat >> confdefs.h <<\EOF
14137 #define SLAPD_BDB2_DYNAMIC 1
14141 BUILD_BDB2_DYNAMIC=shared
14142 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14146 if test "$ol_enable_ldap" != no ; then
14147 cat >> confdefs.h <<\EOF
14148 #define SLAPD_LDAP 1
14153 if test "$ol_with_ldap_module" != static ; then
14154 cat >> confdefs.h <<\EOF
14155 #define SLAPD_LDAP_DYNAMIC 1
14159 BUILD_LDAP_DYNAMIC=shared
14160 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14164 if test "$ol_link_ldbm" != no ; then
14165 cat >> confdefs.h <<\EOF
14166 #define SLAPD_LDBM 1
14171 if test "$ol_with_ldbm_module" != static ; then
14172 cat >> confdefs.h <<\EOF
14173 #define SLAPD_LDBM_DYNAMIC 1
14177 BUILD_LDBM_DYNAMIC=shared
14178 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14182 if test "$ol_enable_passwd" != no ; then
14183 cat >> confdefs.h <<\EOF
14184 #define SLAPD_PASSWD 1
14189 if test "$ol_with_passwd_module" != static ; then
14190 cat >> confdefs.h <<\EOF
14191 #define SLAPD_PASSWD_DYNAMIC 1
14195 BUILD_PASSWD_DYNAMIC=shared
14196 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14200 if test "$ol_link_perl" != no ; then
14201 cat >> confdefs.h <<\EOF
14202 #define SLAPD_PERL 1
14207 if test "$ol_with_perl_module" != static ; then
14208 cat >> confdefs.h <<\EOF
14209 #define SLAPD_PERL_DYNAMIC 1
14213 BUILD_PERL_DYNAMIC=shared
14214 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14218 if test "$ol_enable_shell" != no ; then
14219 cat >> confdefs.h <<\EOF
14220 #define SLAPD_SHELL 1
14225 if test "$ol_with_shell_module" != static ; then
14226 cat >> confdefs.h <<\EOF
14227 #define SLAPD_SHELL_DYNAMIC 1
14231 BUILD_SHELL_DYNAMIC=shared
14232 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14236 if test "$ol_enable_tcl" != no ; then
14237 cat >> confdefs.h <<\EOF
14238 #define SLAPD_TCL 1
14243 if test "$ol_with_tcl_module" != static; then
14244 cat >> confdefs.h <<\EOF
14245 #define SLAPD_TCL_DYNAMIC 1
14249 BUILD_TCL_DYNAMIC=shared
14250 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14254 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14255 $BUILD_SLAPD = yes ; then
14303 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14306 # Let make expand exec_prefix.
14307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14309 # Any assignment to VPATH causes Sun make to only execute
14310 # the first set of double-colon rules, so remove it if not needed.
14311 # If there is a colon in the path, we need to keep it.
14312 if test "x$srcdir" = x.; then
14313 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14316 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14318 DEFS=-DHAVE_CONFIG_H
14320 # Without the "./", some shells look in PATH for config.status.
14321 : ${CONFIG_STATUS=./config.status}
14323 echo creating $CONFIG_STATUS
14324 rm -f $CONFIG_STATUS
14325 cat > $CONFIG_STATUS <<EOF
14327 # Generated automatically by configure.
14328 # Run this file to recreate the current configuration.
14329 # This directory was configured as follows,
14330 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14332 # $0 $ac_configure_args
14334 # Compiler output produced by configure, useful for debugging
14335 # configure, is in ./config.log if it exists.
14337 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14340 case "\$ac_option" in
14341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14342 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14343 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14344 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14345 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14347 -help | --help | --hel | --he | --h)
14348 echo "\$ac_cs_usage"; exit 0 ;;
14349 *) echo "\$ac_cs_usage"; exit 1 ;;
14353 ac_given_srcdir=$srcdir
14354 ac_given_INSTALL="$INSTALL"
14356 trap 'rm -fr `echo "\
14357 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14358 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14359 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14360 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14361 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14362 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14363 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14364 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14365 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14366 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14367 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14368 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14369 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14370 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14371 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14372 include/Makefile:build/top.mk:include/Makefile.in \
14373 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14374 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14375 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14376 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14377 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14378 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14379 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14380 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14381 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14382 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14383 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14384 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14385 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14386 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14387 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14388 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14389 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14390 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14391 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14392 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14393 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14394 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14395 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14396 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14397 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14398 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14400 cat >> $CONFIG_STATUS <<EOF
14402 # Protect against being on the right side of a sed subst in config.status.
14403 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14404 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14408 s%@CFLAGS@%$CFLAGS%g
14409 s%@CPPFLAGS@%$CPPFLAGS%g
14410 s%@CXXFLAGS@%$CXXFLAGS%g
14411 s%@FFLAGS@%$FFLAGS%g
14413 s%@LDFLAGS@%$LDFLAGS%g
14415 s%@exec_prefix@%$exec_prefix%g
14416 s%@prefix@%$prefix%g
14417 s%@program_transform_name@%$program_transform_name%g
14418 s%@bindir@%$bindir%g
14419 s%@sbindir@%$sbindir%g
14420 s%@libexecdir@%$libexecdir%g
14421 s%@datadir@%$datadir%g
14422 s%@sysconfdir@%$sysconfdir%g
14423 s%@sharedstatedir@%$sharedstatedir%g
14424 s%@localstatedir@%$localstatedir%g
14425 s%@libdir@%$libdir%g
14426 s%@includedir@%$includedir%g
14427 s%@oldincludedir@%$oldincludedir%g
14428 s%@infodir@%$infodir%g
14429 s%@mandir@%$mandir%g
14431 s%@host_alias@%$host_alias%g
14432 s%@host_cpu@%$host_cpu%g
14433 s%@host_vendor@%$host_vendor%g
14434 s%@host_os@%$host_os%g
14435 s%@target@%$target%g
14436 s%@target_alias@%$target_alias%g
14437 s%@target_cpu@%$target_cpu%g
14438 s%@target_vendor@%$target_vendor%g
14439 s%@target_os@%$target_os%g
14441 s%@build_alias@%$build_alias%g
14442 s%@build_cpu@%$build_cpu%g
14443 s%@build_vendor@%$build_vendor%g
14444 s%@build_os@%$build_os%g
14445 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14446 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14447 s%@INSTALL_DATA@%$INSTALL_DATA%g
14448 s%@PACKAGE@%$PACKAGE%g
14449 s%@VERSION@%$VERSION%g
14450 s%@ACLOCAL@%$ACLOCAL%g
14451 s%@AUTOCONF@%$AUTOCONF%g
14452 s%@AUTOMAKE@%$AUTOMAKE%g
14453 s%@AUTOHEADER@%$AUTOHEADER%g
14454 s%@MAKEINFO@%$MAKEINFO%g
14455 s%@install_sh@%$install_sh%g
14458 s%@AMTARFLAGS@%$AMTARFLAGS%g
14459 s%@SET_MAKE@%$SET_MAKE%g
14460 s%@top_builddir@%$top_builddir%g
14461 s%@ldap_subdir@%$ldap_subdir%g
14463 s%@RANLIB@%$RANLIB%g
14467 s%@LIBTOOL@%$LIBTOOL%g
14469 s%@SENDMAIL@%$SENDMAIL%g
14470 s%@EDITOR@%$EDITOR%g
14471 s%@FINGER@%$FINGER%g
14472 s%@PERLBIN@%$PERLBIN%g
14474 s%@EXEEXT@%$EXEEXT%g
14475 s%@OBJEXT@%$OBJEXT%g
14476 s%@OL_MKDEP@%$OL_MKDEP%g
14477 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14478 s%@LIBOBJS@%$LIBOBJS%g
14479 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14480 s%@BUILD_BDB2@%$BUILD_BDB2%g
14481 s%@BUILD_LDAP@%$BUILD_LDAP%g
14482 s%@BUILD_LDBM@%$BUILD_LDBM%g
14483 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14484 s%@BUILD_PERL@%$BUILD_PERL%g
14485 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14486 s%@BUILD_SHELL@%$BUILD_SHELL%g
14487 s%@BUILD_TCL@%$BUILD_TCL%g
14488 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14489 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14490 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14491 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14492 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14493 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14494 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14495 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14496 s%@LDAP_LIBS@%$LDAP_LIBS%g
14497 s%@LDIF_LIBS@%$LDIF_LIBS%g
14498 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14499 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14500 s%@LDBM_LIBS@%$LDBM_LIBS%g
14501 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14502 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14503 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14504 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14505 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14506 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14507 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14508 s%@KRB_LIBS@%$KRB_LIBS%g
14509 s%@READLINE_LIBS@%$READLINE_LIBS%g
14510 s%@SASL_LIBS@%$SASL_LIBS%g
14511 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14512 s%@TLS_LIBS@%$TLS_LIBS%g
14513 s%@MODULES_LIBS@%$MODULES_LIBS%g
14518 cat >> $CONFIG_STATUS <<\EOF
14520 # Split the substitutions into bite-sized pieces for seds with
14521 # small command number limits, like on Digital OSF/1 and HP-UX.
14522 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14523 ac_file=1 # Number of current file.
14524 ac_beg=1 # First line for current file.
14525 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14528 while $ac_more_lines; do
14529 if test $ac_beg -gt 1; then
14530 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14532 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14534 if test ! -s conftest.s$ac_file; then
14535 ac_more_lines=false
14536 rm -f conftest.s$ac_file
14538 if test -z "$ac_sed_cmds"; then
14539 ac_sed_cmds="sed -f conftest.s$ac_file"
14541 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14543 ac_file=`expr $ac_file + 1`
14545 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14548 if test -z "$ac_sed_cmds"; then
14553 cat >> $CONFIG_STATUS <<EOF
14555 CONFIG_FILES=\${CONFIG_FILES-"\
14556 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14557 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14558 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14559 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14560 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14561 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14562 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14563 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14564 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14565 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14566 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14567 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14568 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14569 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14570 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14571 include/Makefile:build/top.mk:include/Makefile.in \
14572 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14573 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14574 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14575 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14576 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14577 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14578 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14579 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14580 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14581 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14582 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14583 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14584 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14585 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14586 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14587 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14588 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14589 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14590 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14591 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14592 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14593 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14594 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14595 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14596 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14599 cat >> $CONFIG_STATUS <<\EOF
14600 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14605 *) ac_file_in="${ac_file}.in" ;;
14608 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14610 # Remove last slash and all that follows it. Not all systems have dirname.
14611 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14612 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14613 # The file is in a subdirectory.
14614 test ! -d "$ac_dir" && mkdir "$ac_dir"
14615 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14616 # A "../" for each directory in $ac_dir_suffix.
14617 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14619 ac_dir_suffix= ac_dots=
14622 case "$ac_given_srcdir" in
14624 if test -z "$ac_dots"; then top_srcdir=.
14625 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14626 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14627 *) # Relative path.
14628 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14629 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14632 case "$ac_given_INSTALL" in
14633 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14634 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14637 echo creating "$ac_file"
14639 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14641 *Makefile*) ac_comsub="1i\\
14642 # $configure_input" ;;
14646 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14648 s%@configure_input@%$configure_input%g
14649 s%@srcdir@%$srcdir%g
14650 s%@top_srcdir@%$top_srcdir%g
14651 s%@INSTALL@%$INSTALL%g
14652 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14656 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14657 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14659 # ac_d sets the value in "#define NAME VALUE" lines.
14660 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14661 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14664 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14665 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14666 ac_uB='\([ ]\)%\1#\2define\3'
14669 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14670 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14671 ac_eB='$%\1#\2define\3'
14675 if test "${CONFIG_HEADERS+set}" != set; then
14677 cat >> $CONFIG_STATUS <<EOF
14678 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14680 cat >> $CONFIG_STATUS <<\EOF
14682 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14685 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14686 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14687 *) ac_file_in="${ac_file}.in" ;;
14690 echo creating $ac_file
14692 rm -f conftest.frag conftest.in conftest.out
14693 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14694 cat $ac_file_inputs > conftest.in
14698 # Transform confdefs.h into a sed script conftest.vals that substitutes
14699 # the proper values into config.h.in to produce config.h. And first:
14700 # Protect against being on the right side of a sed subst in config.status.
14701 # Protect against being in an unquoted here document in config.status.
14702 rm -f conftest.vals
14703 cat > conftest.hdr <<\EOF
14706 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14710 sed -n -f conftest.hdr confdefs.h > conftest.vals
14713 # This sed command replaces #undef with comments. This is necessary, for
14714 # example, in the case of _POSIX_SOURCE, which is predefined and required
14715 # on some systems where configure will not decide to define it.
14716 cat >> conftest.vals <<\EOF
14717 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14720 # Break up conftest.vals because some shells have a limit on
14721 # the size of here documents, and old seds have small limits too.
14723 rm -f conftest.tail
14726 ac_lines=`grep -c . conftest.vals`
14727 # grep -c gives empty output for an empty file on some AIX systems.
14728 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14729 # Write a limited-size here document to conftest.frag.
14730 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14731 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14733 sed -f conftest.frag conftest.in > conftest.out
14735 mv conftest.out conftest.in
14736 ' >> $CONFIG_STATUS
14737 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14738 rm -f conftest.vals
14739 mv conftest.tail conftest.vals
14741 rm -f conftest.vals
14743 cat >> $CONFIG_STATUS <<\EOF
14744 rm -f conftest.frag conftest.h
14745 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14746 cat conftest.in >> conftest.h
14748 if cmp -s $ac_file conftest.h 2>/dev/null; then
14749 echo "$ac_file is unchanged"
14752 # Remove last slash and all that follows it. Not all systems have dirname.
14753 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14754 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14755 # The file is in a subdirectory.
14756 test ! -d "$ac_dir" && mkdir "$ac_dir"
14759 mv conftest.h $ac_file
14764 cat >> $CONFIG_STATUS <<EOF
14767 cat >> $CONFIG_STATUS <<\EOF
14770 echo Please \"make depend\" to build dependencies
14774 chmod +x $CONFIG_STATUS
14775 rm -fr confdefs* $ac_clean_files
14776 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1