3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldbm enable ldbm backend (yes)"
72 --with-ldbm-api use LDBM API (auto)"
74 --with-ldbm-type use LDBM type (auto)"
76 --enable-passwd enable passwd backend (no)"
78 --enable-perl enable perl backend (no)"
80 --enable-shell enable shell backend (no)"
82 --enable-tcl enable tcl backend (no)"
86 --enable-slurpd enable building slurpd (auto)"
88 Library Generation & Linking Options"
90 --enable-static build static libraries [default=yes]
91 --enable-static=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --enable-shared build shared libraries [default=yes]
95 --enable-shared=PKGS only build shared libraries if the current package
96 appears as an element in the PKGS list"
98 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
100 # Initialize some variables set by options.
101 # The variables have the same names as the options, with
102 # dashes changed to underlines.
104 cache_file=./config.cache
113 program_transform_name=s,x,x,
121 bindir='${exec_prefix}/bin'
122 sbindir='${exec_prefix}/sbin'
123 libexecdir='${exec_prefix}/libexec'
124 datadir='${prefix}/share'
125 sysconfdir='${prefix}/etc'
126 sharedstatedir='${prefix}/com'
127 localstatedir='${prefix}/var'
128 libdir='${exec_prefix}/lib'
129 includedir='${prefix}/include'
130 oldincludedir='/usr/include'
131 infodir='${prefix}/info'
132 mandir='${prefix}/man'
134 # Initialize some other variables.
137 SHELL=${CONFIG_SHELL-/bin/sh}
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev=cache_file ;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 datadir="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev=exec_prefix ;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host | --host | --hos | --ho)
276 -host=* | --host=* | --hos=* | --ho=*)
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix="$ac_optarg" ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir="$ac_optarg" ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.13"
425 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file=include/ldap.h
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE; then
567 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
582 ac_cpp='$CPP $CPPFLAGS'
583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
585 cross_compiling=$ac_cv_prog_cc_cross
589 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
590 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
591 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598 ac_n= ac_c='\c' ac_t=
602 for ac_dir in build $srcdir/build; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # Find a good install program. We prefer a C program (faster),
620 # so one script is as good as another. But avoid the broken or
621 # incompatible versions:
622 # SysV /etc/install, /usr/sbin/install
623 # SunOS /usr/etc/install
626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
629 # ./install, which can be erroneously created by make from ./install.sh.
630 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
631 echo "configure:632: checking for a BSD compatible install" >&5
632 if test -z "$INSTALL"; then
633 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
637 for ac_dir in $PATH; do
638 # Account for people who put trailing slashes in PATH elements.
640 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
642 # OSF1 and SCO ODT 3.0 have their own names for install.
643 # Don't use installbsd from OSF since it installs stuff as root
645 for ac_prog in ginstall scoinst install; do
646 if test -f $ac_dir/$ac_prog; then
647 if test $ac_prog = install &&
648 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
649 # AIX install. It has an incompatible calling convention.
652 ac_cv_path_install="$ac_dir/$ac_prog -c"
663 if test "${ac_cv_path_install+set}" = set; then
664 INSTALL="$ac_cv_path_install"
666 # As a last resort, use the slow shell script. We don't cache a
667 # path for INSTALL within a source directory, because that will
668 # break other packages using the cache if that directory is
669 # removed, or if the path is relative.
670 INSTALL="$ac_install_sh"
673 echo "$ac_t""$INSTALL" 1>&6
675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
676 # It thinks the first close brace ends the variable substitution.
677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
683 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
684 echo "configure:685: checking whether build environment is sane" >&5
687 echo timestamp > conftestfile
688 # Do `set' in a subshell so we don't clobber the current shell's
689 # arguments. Must try -L first in case configure is actually a
690 # symlink; some systems play weird games with the mod time of symlinks
691 # (eg FreeBSD returns the mod time of the symlink's containing
694 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
695 if test "$*" = "X"; then
697 set X `ls -t $srcdir/configure conftestfile`
699 if test "$*" != "X $srcdir/configure conftestfile" \
700 && test "$*" != "X conftestfile $srcdir/configure"; then
702 # If neither matched, then we have a broken ls. This can happen
703 # if, for instance, CONFIG_SHELL is bash and it inherits a
704 # broken ls alias from the environment. This has actually
705 # happened. Such a system could not be considered "sane".
706 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
707 alias in your environment" 1>&2; exit 1; }
710 test "$2" = conftestfile
716 { echo "configure: error: newly created file is older than distributed files!
717 Check your system clock" 1>&2; exit 1; }
720 echo "$ac_t""yes" 1>&6
721 if test "$program_transform_name" = s,x,x,; then
722 program_transform_name=
724 # Double any \ or $. echo might interpret backslashes.
725 cat <<\EOF_SED > conftestsed
726 s,\\,\\\\,g; s,\$,$$,g
728 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
731 test "$program_prefix" != NONE &&
732 program_transform_name="s,^,${program_prefix},; $program_transform_name"
733 # Use a double $ so make ignores it.
734 test "$program_suffix" != NONE &&
735 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
737 # sed with no file args requires a program.
738 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
741 echo "configure:742: checking whether ${MAKE-make} sets \${MAKE}" >&5
742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
743 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cat > conftestmake <<\EOF
748 @echo 'ac_maketemp="${MAKE}"'
750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
751 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
752 if test -n "$ac_maketemp"; then
753 eval ac_cv_prog_make_${ac_make}_set=yes
755 eval ac_cv_prog_make_${ac_make}_set=no
759 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
760 echo "$ac_t""yes" 1>&6
763 echo "$ac_t""no" 1>&6
764 SET_MAKE="MAKE=${MAKE-make}"
772 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
773 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
775 cat >> confdefs.h <<EOF
776 #define PACKAGE "$PACKAGE"
779 cat >> confdefs.h <<EOF
780 #define VERSION "$VERSION"
785 missing_dir=`cd $ac_aux_dir && pwd`
786 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
787 echo "configure:788: checking for working aclocal" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
793 echo "$ac_t""found" 1>&6
795 ACLOCAL="$missing_dir/missing aclocal"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
800 echo "configure:801: checking for working autoconf" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
806 echo "$ac_t""found" 1>&6
808 AUTOCONF="$missing_dir/missing autoconf"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working automake""... $ac_c" 1>&6
813 echo "configure:814: checking for working automake" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (automake --version) < /dev/null > /dev/null 2>&1; then
819 echo "$ac_t""found" 1>&6
821 AUTOMAKE="$missing_dir/missing automake"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
826 echo "configure:827: checking for working autoheader" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
831 AUTOHEADER=autoheader
832 echo "$ac_t""found" 1>&6
834 AUTOHEADER="$missing_dir/missing autoheader"
835 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
839 echo "configure:840: checking for working makeinfo" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf. Sigh.
843 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
845 echo "$ac_t""found" 1>&6
847 MAKEINFO="$missing_dir/missing makeinfo"
848 echo "$ac_t""missing" 1>&6
856 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
857 echo "configure:858: checking configure arguments" >&5
862 cat >> confdefs.h <<\EOF
863 #define HAVE_MKVERSION 1
867 ldap_subdir="openldap"
869 # Check whether --with-subdir or --without-subdir was given.
870 if test "${with_subdir+set}" = set; then
871 withval="$with_subdir"
873 if test "$withval" = "no"; then
875 elif test "$withval" != "yes"; then
876 ldap_subdir="$withval"
882 # OpenLDAP --enable-debug
883 # Check whether --enable-debug or --disable-debug was given.
884 if test "${enable_debug+set}" = set; then
885 enableval="$enable_debug"
888 for ol_val in auto yes no ; do
889 if test "$enableval" = "$ol_val" ; then
893 if test "$ol_arg" = "invalid" ; then
894 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
896 ol_enable_debug="$ol_arg"
899 ol_enable_debug="yes"
902 # OpenLDAP --enable-syslog
903 # Check whether --enable-syslog or --disable-syslog was given.
904 if test "${enable_syslog+set}" = set; then
905 enableval="$enable_syslog"
908 for ol_val in auto yes no ; do
909 if test "$enableval" = "$ol_val" ; then
913 if test "$ol_arg" = "invalid" ; then
914 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
916 ol_enable_syslog="$ol_arg"
919 ol_enable_syslog="auto"
921 # end --enable-syslog
922 # OpenLDAP --enable-proctitle
923 # Check whether --enable-proctitle or --disable-proctitle was given.
924 if test "${enable_proctitle+set}" = set; then
925 enableval="$enable_proctitle"
928 for ol_val in auto yes no ; do
929 if test "$enableval" = "$ol_val" ; then
933 if test "$ol_arg" = "invalid" ; then
934 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
936 ol_enable_proctitle="$ol_arg"
939 ol_enable_proctitle="yes"
941 # end --enable-proctitle
942 # OpenLDAP --enable-cache
943 # Check whether --enable-cache or --disable-cache was given.
944 if test "${enable_cache+set}" = set; then
945 enableval="$enable_cache"
948 for ol_val in auto yes no ; do
949 if test "$enableval" = "$ol_val" ; then
953 if test "$ol_arg" = "invalid" ; then
954 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
956 ol_enable_cache="$ol_arg"
959 ol_enable_cache="yes"
962 # OpenLDAP --enable-dns
963 # Check whether --enable-dns or --disable-dns was given.
964 if test "${enable_dns+set}" = set; then
965 enableval="$enable_dns"
968 for ol_val in auto yes no ; do
969 if test "$enableval" = "$ol_val" ; then
973 if test "$ol_arg" = "invalid" ; then
974 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
976 ol_enable_dns="$ol_arg"
982 # OpenLDAP --enable-referrals
983 # Check whether --enable-referrals or --disable-referrals was given.
984 if test "${enable_referrals+set}" = set; then
985 enableval="$enable_referrals"
988 for ol_val in auto yes no ; do
989 if test "$enableval" = "$ol_val" ; then
993 if test "$ol_arg" = "invalid" ; then
994 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
996 ol_enable_referrals="$ol_arg"
999 ol_enable_referrals="yes"
1001 # end --enable-referrals
1002 # OpenLDAP --enable-cldap
1003 # Check whether --enable-cldap or --disable-cldap was given.
1004 if test "${enable_cldap+set}" = set; then
1005 enableval="$enable_cldap"
1008 for ol_val in auto yes no ; do
1009 if test "$enableval" = "$ol_val" ; then
1013 if test "$ol_arg" = "invalid" ; then
1014 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1016 ol_enable_cldap="$ol_arg"
1019 ol_enable_cldap="no"
1021 # end --enable-cldap
1022 # OpenLDAP --enable-x_compile
1023 # Check whether --enable-x_compile or --disable-x_compile was given.
1024 if test "${enable_x_compile+set}" = set; then
1025 enableval="$enable_x_compile"
1028 for ol_val in yes no ; do
1029 if test "$enableval" = "$ol_val" ; then
1033 if test "$ol_arg" = "invalid" ; then
1034 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1036 ol_enable_x_compile="$ol_arg"
1039 ol_enable_x_compile="no"
1041 # end --enable-x_compile
1043 # OpenLDAP --enable-dmalloc
1044 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1045 if test "${enable_dmalloc+set}" = set; then
1046 enableval="$enable_dmalloc"
1049 for ol_val in auto yes no ; do
1050 if test "$enableval" = "$ol_val" ; then
1054 if test "$ol_arg" = "invalid" ; then
1055 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1057 ol_enable_dmalloc="$ol_arg"
1060 ol_enable_dmalloc="no"
1062 # end --enable-dmalloc
1064 # OpenLDAP --with-kerberos
1065 # Check whether --with-kerberos or --without-kerberos was given.
1066 if test "${with_kerberos+set}" = set; then
1067 withval="$with_kerberos"
1070 for ol_val in auto k5 k4 afs yes no ; do
1071 if test "$withval" = "$ol_val" ; then
1075 if test "$ol_arg" = "invalid" ; then
1076 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1078 ol_with_kerberos="$ol_arg"
1081 ol_with_kerberos="auto"
1083 # end --with-kerberos
1085 # OpenLDAP --with-readline
1086 # Check whether --with-readline or --without-readline was given.
1087 if test "${with_readline+set}" = set; then
1088 withval="$with_readline"
1091 for ol_val in auto yes no ; do
1092 if test "$withval" = "$ol_val" ; then
1096 if test "$ol_arg" = "invalid" ; then
1097 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1099 ol_with_readline="$ol_arg"
1102 ol_with_readline="auto"
1104 # end --with-readline
1106 # OpenLDAP --with-threads
1107 # Check whether --with-threads or --without-threads was given.
1108 if test "${with_threads+set}" = set; then
1109 withval="$with_threads"
1112 for ol_val in auto posix mach lwp yes no manual ; do
1113 if test "$withval" = "$ol_val" ; then
1117 if test "$ol_arg" = "invalid" ; then
1118 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1120 ol_with_threads="$ol_arg"
1123 ol_with_threads="auto"
1125 # end --with-threads
1127 # OpenLDAP --with-tls
1128 # Check whether --with-tls or --without-tls was given.
1129 if test "${with_tls+set}" = set; then
1133 for ol_val in auto ssleay openssl yes no ; do
1134 if test "$withval" = "$ol_val" ; then
1138 if test "$ol_arg" = "invalid" ; then
1139 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1141 ol_with_tls="$ol_arg"
1148 # OpenLDAP --with-yielding_select
1149 # Check whether --with-yielding_select or --without-yielding_select was given.
1150 if test "${with_yielding_select+set}" = set; then
1151 withval="$with_yielding_select"
1154 for ol_val in auto yes no manual ; do
1155 if test "$withval" = "$ol_val" ; then
1159 if test "$ol_arg" = "invalid" ; then
1160 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1162 ol_with_yielding_select="$ol_arg"
1165 ol_with_yielding_select="auto"
1167 # end --with-yielding_select
1171 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1172 if test "${with_xxldapdoptions+set}" = set; then
1173 withval="$with_xxldapdoptions"
1177 # OpenLDAP --enable-ldapd
1178 # Check whether --enable-ldapd or --disable-ldapd was given.
1179 if test "${enable_ldapd+set}" = set; then
1180 enableval="$enable_ldapd"
1183 for ol_val in auto yes no ; do
1184 if test "$enableval" = "$ol_val" ; then
1188 if test "$ol_arg" = "invalid" ; then
1189 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1191 ol_enable_ldapd="$ol_arg"
1194 ol_enable_ldapd="no"
1196 # end --enable-ldapd
1198 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1199 if test "${with_xxslapdoptions+set}" = set; then
1200 withval="$with_xxslapdoptions"
1204 # OpenLDAP --enable-slapd
1205 # Check whether --enable-slapd or --disable-slapd was given.
1206 if test "${enable_slapd+set}" = set; then
1207 enableval="$enable_slapd"
1210 for ol_val in auto yes no ; do
1211 if test "$enableval" = "$ol_val" ; then
1215 if test "$ol_arg" = "invalid" ; then
1216 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1218 ol_enable_slapd="$ol_arg"
1221 ol_enable_slapd="yes"
1223 # end --enable-slapd
1224 # OpenLDAP --enable-aclgroups
1225 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1226 if test "${enable_aclgroups+set}" = set; then
1227 enableval="$enable_aclgroups"
1230 for ol_val in auto yes no ; do
1231 if test "$enableval" = "$ol_val" ; then
1235 if test "$ol_arg" = "invalid" ; then
1236 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1238 ol_enable_aclgroups="$ol_arg"
1241 ol_enable_aclgroups="auto"
1243 # end --enable-aclgroups
1244 # OpenLDAP --enable-cleartext
1245 # Check whether --enable-cleartext or --disable-cleartext was given.
1246 if test "${enable_cleartext+set}" = set; then
1247 enableval="$enable_cleartext"
1250 for ol_val in auto yes no ; do
1251 if test "$enableval" = "$ol_val" ; then
1255 if test "$ol_arg" = "invalid" ; then
1256 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1258 ol_enable_cleartext="$ol_arg"
1261 ol_enable_cleartext="yes"
1263 # end --enable-cleartext
1264 # OpenLDAP --enable-crypt
1265 # Check whether --enable-crypt or --disable-crypt was given.
1266 if test "${enable_crypt+set}" = set; then
1267 enableval="$enable_crypt"
1270 for ol_val in auto yes no ; do
1271 if test "$enableval" = "$ol_val" ; then
1275 if test "$ol_arg" = "invalid" ; then
1276 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1278 ol_enable_crypt="$ol_arg"
1281 ol_enable_crypt="auto"
1283 # end --enable-crypt
1284 # OpenLDAP --enable-modules
1285 # Check whether --enable-modules or --disable-modules was given.
1286 if test "${enable_modules+set}" = set; then
1287 enableval="$enable_modules"
1290 for ol_val in auto yes no ; do
1291 if test "$enableval" = "$ol_val" ; then
1295 if test "$ol_arg" = "invalid" ; then
1296 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1298 ol_enable_modules="$ol_arg"
1301 ol_enable_modules="no"
1303 # end --enable-modules
1304 # OpenLDAP --enable-phonetic
1305 # Check whether --enable-phonetic or --disable-phonetic was given.
1306 if test "${enable_phonetic+set}" = set; then
1307 enableval="$enable_phonetic"
1310 for ol_val in auto yes no ; do
1311 if test "$enableval" = "$ol_val" ; then
1315 if test "$ol_arg" = "invalid" ; then
1316 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1318 ol_enable_phonetic="$ol_arg"
1321 ol_enable_phonetic="no"
1323 # end --enable-phonetic
1324 # OpenLDAP --enable-rlookups
1325 # Check whether --enable-rlookups or --disable-rlookups was given.
1326 if test "${enable_rlookups+set}" = set; then
1327 enableval="$enable_rlookups"
1330 for ol_val in auto yes no ; do
1331 if test "$enableval" = "$ol_val" ; then
1335 if test "$ol_arg" = "invalid" ; then
1336 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1338 ol_enable_rlookups="$ol_arg"
1341 ol_enable_rlookups="auto"
1343 # end --enable-rlookups
1344 # OpenLDAP --enable-wrappers
1345 # Check whether --enable-wrappers or --disable-wrappers was given.
1346 if test "${enable_wrappers+set}" = set; then
1347 enableval="$enable_wrappers"
1350 for ol_val in auto yes no ; do
1351 if test "$enableval" = "$ol_val" ; then
1355 if test "$ol_arg" = "invalid" ; then
1356 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1358 ol_enable_wrappers="$ol_arg"
1361 ol_enable_wrappers="no"
1363 # end --enable-wrappers
1365 # OpenLDAP --enable-bdb2
1366 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1367 if test "${enable_bdb2+set}" = set; then
1368 enableval="$enable_bdb2"
1371 for ol_val in auto yes no ; do
1372 if test "$enableval" = "$ol_val" ; then
1376 if test "$ol_arg" = "invalid" ; then
1377 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1379 ol_enable_bdb2="$ol_arg"
1385 # OpenLDAP --enable-ldbm
1386 # Check whether --enable-ldbm or --disable-ldbm was given.
1387 if test "${enable_ldbm+set}" = set; then
1388 enableval="$enable_ldbm"
1391 for ol_val in auto yes no ; do
1392 if test "$enableval" = "$ol_val" ; then
1396 if test "$ol_arg" = "invalid" ; then
1397 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1399 ol_enable_ldbm="$ol_arg"
1402 ol_enable_ldbm="yes"
1405 # OpenLDAP --with-ldbm_api
1406 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1407 if test "${with_ldbm_api+set}" = set; then
1408 withval="$with_ldbm_api"
1411 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1412 if test "$withval" = "$ol_val" ; then
1416 if test "$ol_arg" = "invalid" ; then
1417 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1419 ol_with_ldbm_api="$ol_arg"
1422 ol_with_ldbm_api="auto"
1424 # end --with-ldbm_api
1426 # OpenLDAP --with-ldbm_type
1427 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1428 if test "${with_ldbm_type+set}" = set; then
1429 withval="$with_ldbm_type"
1432 for ol_val in auto btree hash ; do
1433 if test "$withval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1440 ol_with_ldbm_type="$ol_arg"
1443 ol_with_ldbm_type="auto"
1445 # end --with-ldbm_type
1448 # OpenLDAP --enable-passwd
1449 # Check whether --enable-passwd or --disable-passwd was given.
1450 if test "${enable_passwd+set}" = set; then
1451 enableval="$enable_passwd"
1454 for ol_val in auto yes no ; do
1455 if test "$enableval" = "$ol_val" ; then
1459 if test "$ol_arg" = "invalid" ; then
1460 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1462 ol_enable_passwd="$ol_arg"
1465 ol_enable_passwd="no"
1467 # end --enable-passwd
1468 # OpenLDAP --enable-perl
1469 # Check whether --enable-perl or --disable-perl was given.
1470 if test "${enable_perl+set}" = set; then
1471 enableval="$enable_perl"
1474 for ol_val in auto yes no ; do
1475 if test "$enableval" = "$ol_val" ; then
1479 if test "$ol_arg" = "invalid" ; then
1480 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1482 ol_enable_perl="$ol_arg"
1488 # OpenLDAP --enable-shell
1489 # Check whether --enable-shell or --disable-shell was given.
1490 if test "${enable_shell+set}" = set; then
1491 enableval="$enable_shell"
1494 for ol_val in auto yes no ; do
1495 if test "$enableval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1502 ol_enable_shell="$ol_arg"
1505 ol_enable_shell="no"
1507 # end --enable-shell
1508 # OpenLDAP --enable-tcl
1509 # Check whether --enable-tcl or --disable-tcl was given.
1510 if test "${enable_tcl+set}" = set; then
1511 enableval="$enable_tcl"
1514 for ol_val in auto yes no ; do
1515 if test "$enableval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1522 ol_enable_tcl="$ol_arg"
1529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1530 if test "${with_xxslurpdoptions+set}" = set; then
1531 withval="$with_xxslurpdoptions"
1535 # OpenLDAP --enable-slurpd
1536 # Check whether --enable-slurpd or --disable-slurpd was given.
1537 if test "${enable_slurpd+set}" = set; then
1538 enableval="$enable_slurpd"
1541 for ol_val in auto yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1549 ol_enable_slurpd="$ol_arg"
1552 ol_enable_slurpd="auto"
1554 # end --enable-slurpd
1556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1557 if test "${with_xxliboptions+set}" = set; then
1558 withval="$with_xxliboptions"
1562 # Check whether --enable-static or --disable-static was given.
1563 if test "${enable_static+set}" = set; then
1564 enableval="$enable_static"
1565 p=${PACKAGE-default}
1566 case "$enableval" in
1567 yes) enable_static=yes ;;
1568 no) enable_static=no ;;
1571 # Look at the argument we got. We use all the common list separators.
1572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1573 for pkg in $enableval; do
1574 if test "X$pkg" = "X$p"; then
1585 # Check whether --enable-shared or --disable-shared was given.
1586 if test "${enable_shared+set}" = set; then
1587 enableval="$enable_shared"
1588 p=${PACKAGE-default}
1589 case "$enableval" in
1590 yes) enable_shared=yes ;;
1591 no) enable_shared=no ;;
1594 # Look at the argument we got. We use all the common list separators.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1596 for pkg in $enableval; do
1597 if test "X$pkg" = "X$p"; then
1610 if test $ol_enable_dns = yes ; then
1611 if test $ol_enable_referrals = no ; then
1612 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1614 if test $ol_enable_referrals = auto ; then
1615 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1616 ol_enable_referrals=yes
1620 if test $ol_enable_slapd = no ; then
1621 if test $ol_enable_bdb2 = yes ; then
1622 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1624 if test $ol_enable_ldbm = yes ; then
1625 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1627 if test $ol_enable_passwd = yes ; then
1628 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1630 if test $ol_enable_perl = yes ; then
1631 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1633 if test $ol_enable_shell = yes ; then
1634 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1636 if test $ol_enable_tcl = yes ; then
1637 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1639 if test $ol_enable_aclgroups = yes ; then
1640 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1642 if test $ol_enable_modules = yes ; then
1643 echo "configure: warning: slapd disabled, ignoring --enable_modules argument" 1>&2
1645 if test $ol_enable_wrappers = yes ; then
1646 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1648 if test $ol_enable_phonetic = yes ; then
1649 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1651 if test $ol_enable_rlookups = yes ; then
1652 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1654 if test $ol_with_ldbm_api != auto ; then
1655 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1657 if test $ol_with_ldbm_type != auto ; then
1658 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1660 if test $ol_enable_slurpd = yes ; then
1661 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1664 # force settings to no
1672 ol_enable_aclgroups=no
1673 ol_enable_modules=no
1674 ol_enable_phonetic=no
1675 ol_enable_rlookups=no
1676 ol_enable_wrappers=no
1679 ol_with_ldbm_type=no
1683 elif test $ol_enable_ldbm = no ; then
1685 if test $ol_with_ldbm_api != auto ; then
1686 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1693 if test $ol_enable_bdb2 = yes ; then
1694 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1697 if test $ol_enable_modules != yes -a \
1698 $ol_enable_passwd = no -a \
1699 $ol_enable_perl = no -a \
1700 $ol_enable_shell = no -a \
1701 $ol_enable_tcl = no ; then
1702 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1706 ol_with_ldbm_type=no
1708 elif test $ol_enable_bdb2 = yes ; then
1710 if test $ol_with_ldbm_api != auto -a \
1711 $ol_with_ldbm_api != db2 ; then
1712 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1715 ol_with_ldbm_api=db2
1719 if test $ol_enable_bdb2 != no ; then
1720 if test $ol_with_ldbm_api != auto -a \
1721 $ol_with_ldbm_api != db2 ; then
1722 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1727 if test $ol_with_ldbm_api = gdbm -a \
1728 $ol_with_ldbm_type = btree ; then
1729 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1731 if test $ol_with_ldbm_api = mdbm -a \
1732 $ol_with_ldbm_type = btree ; then
1733 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1735 if test $ol_with_ldbm_api = ndbm -a \
1736 $ol_with_ldbm_type = btree ; then
1737 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1741 if test $ol_enable_slurpd = yes ; then
1742 if test $ol_with_threads = no ; then
1743 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1747 echo "$ac_t""done" 1>&6
1771 SLAPD_MODULES_LDFLAGS=
1772 SLAPD_MODULES_CPPFLAGS=
1775 SLAPD_PERL_CPPFLAGS=
1783 # Find a good install program. We prefer a C program (faster),
1784 # so one script is as good as another. But avoid the broken or
1785 # incompatible versions:
1786 # SysV /etc/install, /usr/sbin/install
1787 # SunOS /usr/etc/install
1788 # IRIX /sbin/install
1790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1793 # ./install, which can be erroneously created by make from ./install.sh.
1794 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1795 echo "configure:1796: checking for a BSD compatible install" >&5
1796 if test -z "$INSTALL"; then
1797 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1801 for ac_dir in $PATH; do
1802 # Account for people who put trailing slashes in PATH elements.
1804 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1806 # OSF1 and SCO ODT 3.0 have their own names for install.
1807 # Don't use installbsd from OSF since it installs stuff as root
1809 for ac_prog in ginstall scoinst install; do
1810 if test -f $ac_dir/$ac_prog; then
1811 if test $ac_prog = install &&
1812 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1813 # AIX install. It has an incompatible calling convention.
1816 ac_cv_path_install="$ac_dir/$ac_prog -c"
1827 if test "${ac_cv_path_install+set}" = set; then
1828 INSTALL="$ac_cv_path_install"
1830 # As a last resort, use the slow shell script. We don't cache a
1831 # path for INSTALL within a source directory, because that will
1832 # break other packages using the cache if that directory is
1833 # removed, or if the path is relative.
1834 INSTALL="$ac_install_sh"
1837 echo "$ac_t""$INSTALL" 1>&6
1839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1840 # It thinks the first close brace ends the variable substitution.
1841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1851 # Make sure we can run config.sub.
1852 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1853 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1856 echo $ac_n "checking host system type""... $ac_c" 1>&6
1857 echo "configure:1858: checking host system type" >&5
1860 case "$host_alias" in
1864 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1865 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1867 *) host_alias=$nonopt ;;
1871 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1872 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1873 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1874 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1875 echo "$ac_t""$host" 1>&6
1877 # Extract the first word of "ranlib", so it can be a program name with args.
1878 set dummy ranlib; ac_word=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$RANLIB"; then
1885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_RANLIB="ranlib"
1897 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1900 RANLIB="$ac_cv_prog_RANLIB"
1901 if test -n "$RANLIB"; then
1902 echo "$ac_t""$RANLIB" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 # Extract the first word of "gcc", so it can be a program name with args.
1908 set dummy gcc; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test -n "$CC"; then
1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
1930 if test -n "$CC"; then
1931 echo "$ac_t""$CC" 1>&6
1933 echo "$ac_t""no" 1>&6
1936 if test -z "$CC"; then
1937 # Extract the first word of "cc", so it can be a program name with args.
1938 set dummy cc; ac_word=$2
1939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940 echo "configure:1941: checking for $ac_word" >&5
1941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1950 for ac_dir in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f $ac_dir/$ac_word; then
1953 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1954 ac_prog_rejected=yes
1962 if test $ac_prog_rejected = yes; then
1963 # We found a bogon in the path, so make sure we never use it.
1964 set dummy $ac_cv_prog_CC
1966 if test $# -gt 0; then
1967 # We chose a different compiler from the bogus one.
1968 # However, it has the same basename, so the bogon will be chosen
1969 # first if we set CC to just the basename; use the full file name.
1971 set dummy "$ac_dir/$ac_word" "$@"
1979 if test -n "$CC"; then
1980 echo "$ac_t""$CC" 1>&6
1982 echo "$ac_t""no" 1>&6
1985 if test -z "$CC"; then
1986 case "`uname -s`" in
1988 # Extract the first word of "cl", so it can be a program name with args.
1989 set dummy cl; ac_word=$2
1990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_word" >&5
1992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC="$CC" # Let the user override the test.
1998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2000 for ac_dir in $ac_dummy; do
2001 test -z "$ac_dir" && ac_dir=.
2002 if test -f $ac_dir/$ac_word; then
2011 if test -n "$CC"; then
2012 echo "$ac_t""$CC" 1>&6
2014 echo "$ac_t""no" 1>&6
2019 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2022 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2030 cross_compiling=$ac_cv_prog_cc_cross
2032 cat > conftest.$ac_ext << EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2039 if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2040 ac_cv_prog_cc_works=yes
2041 # If we can't run a trivial program, we are probably using a cross compiler.
2042 if (./conftest; exit) 2>/dev/null; then
2043 ac_cv_prog_cc_cross=no
2045 ac_cv_prog_cc_cross=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2050 ac_cv_prog_cc_works=no
2054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2058 cross_compiling=$ac_cv_prog_cc_cross
2060 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2061 if test $ac_cv_prog_cc_works = no; then
2062 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2064 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2066 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2067 cross_compiling=$ac_cv_prog_cc_cross
2069 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2070 echo "configure:2071: checking whether we are using GNU C" >&5
2071 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.c <<EOF
2079 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2086 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2088 if test $ac_cv_prog_gcc = yes; then
2094 ac_test_CFLAGS="${CFLAGS+set}"
2095 ac_save_CFLAGS="$CFLAGS"
2097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2098 echo "configure:2099: checking whether ${CC-cc} accepts -g" >&5
2099 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 echo 'void f(){}' > conftest.c
2103 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2112 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2113 if test "$ac_test_CFLAGS" = set; then
2114 CFLAGS="$ac_save_CFLAGS"
2115 elif test $ac_cv_prog_cc_g = yes; then
2116 if test "$GCC" = yes; then
2122 if test "$GCC" = yes; then
2129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2130 if test "${with_gnu_ld+set}" = set; then
2131 withval="$with_gnu_ld"
2132 test "$withval" = no || with_gnu_ld=yes
2139 if test "$ac_cv_prog_gcc" = yes; then
2140 # Check if gcc -print-prog-name=ld gives a path.
2141 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2142 echo "configure:2143: checking for ld used by GCC" >&5
2143 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2145 # Accept absolute paths.
2147 test -z "$LD" && LD="$ac_prog"
2150 # If it fails, then pretend we aren't using GCC.
2154 # If it is relative, then search for the first ld in PATH.
2158 elif test "$with_gnu_ld" = yes; then
2159 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2160 echo "configure:2161: checking for GNU ld" >&5
2162 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2163 echo "configure:2164: checking for non-GNU ld" >&5
2165 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 if test -z "$LD"; then
2169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2170 for ac_dir in $PATH; do
2171 test -z "$ac_dir" && ac_dir=.
2172 if test -f "$ac_dir/$ac_prog"; then
2173 ac_cv_path_LD="$ac_dir/$ac_prog"
2174 # Check to see if the program is GNU ld. I'd rather use --version,
2175 # but apparently some GNU ld's only accept -v.
2176 # Break only if it was the GNU/non-GNU ld that we prefer.
2177 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2178 test "$with_gnu_ld" != no && break
2180 test "$with_gnu_ld" != yes && break
2186 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2191 if test -n "$LD"; then
2192 echo "$ac_t""$LD" 1>&6
2194 echo "$ac_t""no" 1>&6
2196 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2198 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2199 echo "configure:2200: checking if the linker ($LD) is GNU ld" >&5
2200 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2204 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2205 ac_cv_prog_gnu_ld=yes
2207 ac_cv_prog_gnu_ld=no
2211 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2214 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2215 echo "configure:2216: checking for BSD-compatible nm" >&5
2216 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2221 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2225 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2226 test -z "$ac_dir" && ac_dir=.
2227 if test -f $ac_dir/nm; then
2228 # Check to see if the nm accepts a BSD-compat flag.
2229 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2230 # nm: unknown option "B" ignored
2231 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2232 ac_cv_path_NM="$ac_dir/nm -B"
2233 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2234 ac_cv_path_NM="$ac_dir/nm -p"
2236 ac_cv_path_NM="$ac_dir/nm"
2242 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2248 echo "$ac_t""$NM" 1>&6
2251 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2252 echo "configure:2253: checking whether ln -s works" >&5
2253 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2257 if ln -s X conftestdata 2>/dev/null
2260 ac_cv_prog_LN_S="ln -s"
2265 LN_S="$ac_cv_prog_LN_S"
2266 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2267 echo "$ac_t""yes" 1>&6
2269 echo "$ac_t""no" 1>&6
2272 # Always use our own libtool.
2273 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2275 # Check for any special flags to pass to ltconfig.
2277 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2278 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2279 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2280 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2281 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2283 # Some flags need to be propagated to the compiler or linker for good
2287 # Find out which ABI we are using.
2288 echo '#line 2289 "configure"' > conftest.$ac_ext
2289 if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2290 case "`/usr/bin/file conftest.o`" in
2306 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2307 CFLAGS="$CFLAGS -belf"
2311 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2312 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2313 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2314 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2315 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2316 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2319 for ac_prog in mawk gawk nawk awk
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 if test -n "$AWK"; then
2329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2333 for ac_dir in $ac_dummy; do
2334 test -z "$ac_dir" && ac_dir=.
2335 if test -f $ac_dir/$ac_word; then
2336 ac_cv_prog_AWK="$ac_prog"
2343 AWK="$ac_cv_prog_AWK"
2344 if test -n "$AWK"; then
2345 echo "$ac_t""$AWK" 1>&6
2347 echo "$ac_t""no" 1>&6
2350 test -n "$AWK" && break
2353 # test for ln hardlink support
2354 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2355 echo "configure:2356: checking whether ln works" >&5
2356 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 rm -f conftest.src conftest.dst
2360 echo "conftest" > conftest.src
2361 if ln conftest.src conftest.dst 2>/dev/null
2363 ol_cv_prog_LN_H="ln"
2365 ol_cv_prog_LN_H="cp"
2367 rm -f conftest.src conftest.dst
2370 LN_H="$ol_cv_prog_LN_H"
2371 if test "$ol_cv_prog_LN_H" = "ln"; then
2372 echo "$ac_t""yes" 1>&6
2374 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2378 echo "configure:2379: checking whether ln -s works" >&5
2379 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2383 if ln -s X conftestdata 2>/dev/null
2386 ac_cv_prog_LN_S="ln -s"
2391 LN_S="$ac_cv_prog_LN_S"
2392 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2393 echo "$ac_t""yes" 1>&6
2395 echo "$ac_t""no" 1>&6
2399 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2403 # Extract the first word of "sendmail", so it can be a program name with args.
2404 set dummy sendmail; ac_word=$2
2405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2406 echo "configure:2407: checking for $ac_word" >&5
2407 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2412 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2415 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2419 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2420 for ac_dir in $ac_dummy; do
2421 test -z "$ac_dir" && ac_dir=.
2422 if test -f $ac_dir/$ac_word; then
2423 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2428 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2432 SENDMAIL="$ac_cv_path_SENDMAIL"
2433 if test -n "$SENDMAIL"; then
2434 echo "$ac_t""$SENDMAIL" 1>&6
2436 echo "$ac_t""no" 1>&6
2439 # Extract the first word of "vi", so it can be a program name with args.
2440 set dummy vi; ac_word=$2
2441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2442 echo "configure:2443: checking for $ac_word" >&5
2443 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2448 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2451 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2455 ac_dummy="$PATH:/usr/ucb"
2456 for ac_dir in $ac_dummy; do
2457 test -z "$ac_dir" && ac_dir=.
2458 if test -f $ac_dir/$ac_word; then
2459 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2464 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2468 EDITOR="$ac_cv_path_EDITOR"
2469 if test -n "$EDITOR"; then
2470 echo "$ac_t""$EDITOR" 1>&6
2472 echo "$ac_t""no" 1>&6
2475 # Extract the first word of "finger", so it can be a program name with args.
2476 set dummy finger; ac_word=$2
2477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_word" >&5
2479 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2484 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2487 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 ac_dummy="$PATH:/usr/ucb"
2492 for ac_dir in $ac_dummy; do
2493 test -z "$ac_dir" && ac_dir=.
2494 if test -f $ac_dir/$ac_word; then
2495 ac_cv_path_FINGER="$ac_dir/$ac_word"
2500 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2504 FINGER="$ac_cv_path_FINGER"
2505 if test -n "$FINGER"; then
2506 echo "$ac_t""$FINGER" 1>&6
2508 echo "$ac_t""no" 1>&6
2513 if test $ol_enable_modules != no ; then
2514 # Extract the first word of "glib-config", so it can be a program name with args.
2515 set dummy glib-config; ac_word=$2
2516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_word" >&5
2518 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 case "$GLIBCONFIG" in
2523 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2526 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2531 for ac_dir in $ac_dummy; do
2532 test -z "$ac_dir" && ac_dir=.
2533 if test -f $ac_dir/$ac_word; then
2534 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2542 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2543 if test -n "$GLIBCONFIG"; then
2544 echo "$ac_t""$GLIBCONFIG" 1>&6
2546 echo "$ac_t""no" 1>&6
2550 if test "no$GLIBCONFIG" = "no" ; then
2551 if test $ol_enable_modules = yes ; then
2552 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2556 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2557 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2558 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2565 if test $ol_enable_perl != no ; then
2566 # Extract the first word of "perl", so it can be a program name with args.
2567 set dummy perl; ac_word=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2578 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2583 for ac_dir in $ac_dummy; do
2584 test -z "$ac_dir" && ac_dir=.
2585 if test -f $ac_dir/$ac_word; then
2586 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2591 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2595 PERLBIN="$ac_cv_path_PERLBIN"
2596 if test -n "$PERLBIN"; then
2597 echo "$ac_t""$PERLBIN" 1>&6
2599 echo "$ac_t""no" 1>&6
2603 if test "no$PERLBIN" = "no" ; then
2604 if test $ol_enable_perl = yes ; then
2605 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2609 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2610 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2616 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2617 echo "configure:2618: checking how to run the C preprocessor" >&5
2618 # On Suns, sometimes $CPP names a directory.
2619 if test -n "$CPP" && test -d "$CPP"; then
2622 if test -z "$CPP"; then
2623 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 # This must be in double quotes, not single quotes, because CPP may get
2627 # substituted into the Makefile and "${CC-cc}" will confuse make.
2629 # On the NeXT, cc -E runs the code through the compiler's parser,
2630 # not just through cpp.
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 CPP="${CC-cc} -E -traditional-cpp"
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 CPP="${CC-cc} -nologo -E"
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2672 { (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2674 if test -z "$ac_err"; then
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2688 ac_cv_prog_CPP="$CPP"
2690 CPP="$ac_cv_prog_CPP"
2692 ac_cv_prog_CPP="$CPP"
2694 echo "$ac_t""$CPP" 1>&6
2697 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2698 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2700 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2701 echo "configure: warning: programs compiled here do run here..." 1>&2
2702 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2704 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2705 echo "configure: warning: programs compiled here do not run here..." 1>&2
2706 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2709 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2710 echo "configure:2711: checking for AIX" >&5
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "yes" >/dev/null 2>&1; then
2722 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2723 #define _ALL_SOURCE 1
2728 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2734 echo "configure:2735: checking for POSIXized ISC" >&5
2735 if test -d /etc/conf/kconfig.d &&
2736 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2738 echo "$ac_t""yes" 1>&6
2739 ISC=yes # If later tests want to check for ISC.
2740 cat >> confdefs.h <<\EOF
2741 #define _POSIX_SOURCE 1
2744 if test "$GCC" = yes; then
2750 echo "$ac_t""no" 1>&6
2754 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2755 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2756 echo "configure:2757: checking for minix/config.h" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <minix/config.h>
2765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2766 { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2768 if test -z "$ac_err"; then
2770 eval "ac_cv_header_$ac_safe=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_header_$ac_safe=no"
2780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2784 echo "$ac_t""no" 1>&6
2788 if test "$MINIX" = yes; then
2789 cat >> confdefs.h <<\EOF
2790 #define _POSIX_SOURCE 1
2793 cat >> confdefs.h <<\EOF
2794 #define _POSIX_1_SOURCE 2
2797 cat >> confdefs.h <<\EOF
2804 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2805 echo "configure:2806: checking for be_app in -lbe" >&5
2806 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 ac_save_LIBS="$LIBS"
2811 LIBS="-lbe -lroot $LIBS"
2812 cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2815 /* Override any gcc2 internal prototype to avoid an error. */
2816 /* We use char because int might match the return type of a gcc2
2817 builtin and then its argument prototype would still apply. */
2824 if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826 eval "ac_cv_lib_$ac_lib_var=yes"
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 eval "ac_cv_lib_$ac_lib_var=no"
2834 LIBS="$ac_save_LIBS"
2837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2838 echo "$ac_t""yes" 1>&6
2839 LIBS="$LIBS -lbe -lroot"
2841 echo "$ac_t""no" 1>&6
2846 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2847 echo "configure:2848: checking for Cygwin environment" >&5
2848 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2858 #define __CYGWIN__ __CYGWIN32__
2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2876 echo "$ac_t""$ac_cv_cygwin" 1>&6
2878 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2879 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2880 echo "configure:2881: checking for mingw32 environment" >&5
2881 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2892 if { (eval echo configure:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2905 echo "$ac_t""$ac_cv_mingw32" 1>&6
2907 test "$ac_cv_mingw32" = yes && MINGW32=yes
2910 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2911 echo "configure:2912: checking for executable suffix" >&5
2912 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2919 echo 'int main () { return 0; }' > conftest.$ac_ext
2921 if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2922 for file in conftest.*; do
2924 *.c | *.o | *.obj) ;;
2925 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2929 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2932 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2937 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2938 echo "$ac_t""${ac_cv_exeext}" 1>&6
2941 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2942 echo "configure:2943: checking for object suffix" >&5
2943 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2947 echo 'int i = 1;' > conftest.$ac_ext
2948 if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 for ac_file in conftest.*; do
2952 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2956 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2961 echo "$ac_t""$ac_cv_objext" 1>&6
2962 OBJEXT=$ac_cv_objext
2963 ac_objext=$ac_cv_objext
2966 cat >> confdefs.h <<EOF
2967 #define EXEEXT "${EXEEXT}"
2974 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2975 echo "configure:2976: checking for ${CC-cc} option to accept ANSI C" >&5
2976 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 am_cv_prog_cc_stdc=no
2981 # Don't try gcc -ansi; that turns off useful extensions and
2982 # breaks some systems' header files.
2983 # AIX -qlanglvl=ansi
2984 # Ultrix and OSF/1 -std1
2985 # HP-UX -Aa -D_HPUX_SOURCE
2986 # SVR4 -Xc -D__EXTENSIONS__
2987 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2989 CC="$ac_save_CC $ac_arg"
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2995 #include <sys/types.h>
2996 #include <sys/stat.h>
2997 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2998 struct buf { int x; };
2999 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3000 static char *e (p, i)
3006 static char *f (char * (*g) (char **, int), char **p, ...)
3011 s = g (p, va_arg (v,int));
3015 int test (int i, double x);
3016 struct s1 {int (*f) (int a);};
3017 struct s2 {int (*f) (double a);};
3018 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3024 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3028 if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 am_cv_prog_cc_stdc="$ac_arg"; break
3032 echo "configure: failed program was:" >&5
3033 cat conftest.$ac_ext >&5
3041 if test -z "$am_cv_prog_cc_stdc"; then
3042 echo "$ac_t""none needed" 1>&6
3044 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3046 case "x$am_cv_prog_cc_stdc" in
3048 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3051 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3052 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3058 echo $ac_n "checking for socket""... $ac_c" 1>&6
3059 echo "configure:3060: checking for socket" >&5
3060 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 /* System header to define __stub macros and hopefully few prototypes,
3067 which can conflict with char socket(); below. */
3069 /* Override any gcc2 internal prototype to avoid an error. */
3070 /* We use char because int might match the return type of a gcc2
3071 builtin and then its argument prototype would still apply. */
3076 /* The GNU C library defines this for functions which it implements
3077 to always fail with ENOSYS. Some functions are actually named
3078 something starting with __ and the normal name is an alias. */
3079 #if defined (__stub_socket) || defined (__stub___socket)
3087 if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3089 eval "ac_cv_func_socket=yes"
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 eval "ac_cv_func_socket=no"
3099 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3103 echo "$ac_t""no" 1>&6
3105 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3106 echo "configure:3107: checking for main in -lsocket" >&5
3107 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 ac_save_LIBS="$LIBS"
3112 LIBS="-lsocket $LIBS"
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_lib_$ac_lib_var=no"
3131 LIBS="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3138 cat >> confdefs.h <<EOF
3139 #define $ac_tr_lib 1
3142 LIBS="-lsocket $LIBS"
3145 echo "$ac_t""no" 1>&6
3148 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3149 echo "configure:3150: checking for main in -lnet" >&5
3150 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 ac_save_LIBS="$LIBS"
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3166 eval "ac_cv_lib_$ac_lib_var=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_lib_$ac_lib_var=no"
3174 LIBS="$ac_save_LIBS"
3177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_lib 1
3188 echo "$ac_t""no" 1>&6
3191 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3192 echo "configure:3193: checking for socket in -lnet" >&5
3193 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 ac_save_LIBS="$LIBS"
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 /* Override any gcc2 internal prototype to avoid an error. */
3203 /* We use char because int might match the return type of a gcc2
3204 builtin and then its argument prototype would still apply. */
3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3213 eval "ac_cv_lib_$ac_lib_var=yes"
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 eval "ac_cv_lib_$ac_lib_var=no"
3221 LIBS="$ac_save_LIBS"
3224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3225 echo "$ac_t""yes" 1>&6
3226 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3228 cat >> confdefs.h <<EOF
3229 #define $ac_tr_lib 1
3235 echo "$ac_t""no" 1>&6
3238 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3239 echo "configure:3240: checking for main in -lnsl_s" >&5
3240 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 ac_save_LIBS="$LIBS"
3245 LIBS="-lnsl_s $LIBS"
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3254 if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3256 eval "ac_cv_lib_$ac_lib_var=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 eval "ac_cv_lib_$ac_lib_var=no"
3264 LIBS="$ac_save_LIBS"
3267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3271 cat >> confdefs.h <<EOF
3272 #define $ac_tr_lib 1
3275 LIBS="-lnsl_s $LIBS"
3278 echo "$ac_t""no" 1>&6
3281 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3282 echo "configure:3283: checking for main in -lnsl" >&5
3283 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 ac_save_LIBS="$LIBS"
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 eval "ac_cv_lib_$ac_lib_var=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_lib_$ac_lib_var=no"
3307 LIBS="$ac_save_LIBS"
3310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3314 cat >> confdefs.h <<EOF
3315 #define $ac_tr_lib 1
3321 echo "$ac_t""no" 1>&6
3324 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3325 echo "configure:3326: checking for socket in -linet" >&5
3326 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 ac_save_LIBS="$LIBS"
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 /* Override any gcc2 internal prototype to avoid an error. */
3336 /* We use char because int might match the return type of a gcc2
3337 builtin and then its argument prototype would still apply. */
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 eval "ac_cv_lib_$ac_lib_var=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 eval "ac_cv_lib_$ac_lib_var=no"
3354 LIBS="$ac_save_LIBS"
3357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3361 cat >> confdefs.h <<EOF
3362 #define $ac_tr_lib 1
3368 echo "$ac_t""no" 1>&6
3371 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3372 echo "configure:3373: checking for main in -lgen" >&5
3373 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 ac_save_LIBS="$LIBS"
3379 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3389 eval "ac_cv_lib_$ac_lib_var=yes"
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3394 eval "ac_cv_lib_$ac_lib_var=no"
3397 LIBS="$ac_save_LIBS"
3400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3404 cat >> confdefs.h <<EOF
3405 #define $ac_tr_lib 1
3411 echo "$ac_t""no" 1>&6
3418 for ac_func in res_search
3420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3421 echo "configure:3422: checking for $ac_func" >&5
3422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* System header to define __stub macros and hopefully few prototypes,
3429 which can conflict with char $ac_func(); below. */
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3438 /* The GNU C library defines this for functions which it implements
3439 to always fail with ENOSYS. Some functions are actually named
3440 something starting with __ and the normal name is an alias. */
3441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3449 if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3451 eval "ac_cv_func_$ac_func=yes"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3456 eval "ac_cv_func_$ac_func=no"
3461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3462 echo "$ac_t""yes" 1>&6
3463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3464 cat >> confdefs.h <<EOF
3465 #define $ac_tr_func 1
3469 echo "$ac_t""no" 1>&6
3473 if test $ac_cv_func_res_search = "no" ; then
3474 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3475 echo "configure:3476: checking for res_search in -lbind" >&5
3476 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 ac_save_LIBS="$LIBS"
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* Override any gcc2 internal prototype to avoid an error. */
3486 /* We use char because int might match the return type of a gcc2
3487 builtin and then its argument prototype would still apply. */
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3496 eval "ac_cv_lib_$ac_lib_var=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3501 eval "ac_cv_lib_$ac_lib_var=no"
3504 LIBS="$ac_save_LIBS"
3507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3511 cat >> confdefs.h <<EOF
3512 #define $ac_tr_lib 1
3518 echo "$ac_t""no" 1>&6
3521 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3522 cat >> confdefs.h <<\EOF
3523 #define HAVE_RES_SEARCH 1
3527 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3528 echo "configure:3529: checking for res_search in -lresolv" >&5
3529 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 ac_save_LIBS="$LIBS"
3534 LIBS="-lresolv $LIBS"
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3549 eval "ac_cv_lib_$ac_lib_var=yes"
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3554 eval "ac_cv_lib_$ac_lib_var=no"
3557 LIBS="$ac_save_LIBS"
3560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3561 echo "$ac_t""yes" 1>&6
3562 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3564 cat >> confdefs.h <<EOF
3565 #define $ac_tr_lib 1
3568 LIBS="-lresolv $LIBS"
3571 echo "$ac_t""no" 1>&6
3574 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3575 cat >> confdefs.h <<\EOF
3576 #define HAVE_RES_SEARCH 1
3583 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3584 echo "configure:3585: checking for sigset in -lV3" >&5
3585 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 ac_save_LIBS="$LIBS"
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* Override any gcc2 internal prototype to avoid an error. */
3595 /* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3603 if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605 eval "ac_cv_lib_$ac_lib_var=yes"
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 eval "ac_cv_lib_$ac_lib_var=no"
3613 LIBS="$ac_save_LIBS"
3616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3619 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3620 cat >> confdefs.h <<EOF
3621 #define $ac_tr_lib 1
3627 echo "$ac_t""no" 1>&6
3631 echo $ac_n "checking for select""... $ac_c" 1>&6
3632 echo "configure:3633: checking for select" >&5
3633 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 /* System header to define __stub macros and hopefully few prototypes,
3640 which can conflict with char select(); below. */
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3649 /* The GNU C library defines this for functions which it implements
3650 to always fail with ENOSYS. Some functions are actually named
3651 something starting with __ and the normal name is an alias. */
3652 #if defined (__stub_select) || defined (__stub___select)
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 eval "ac_cv_func_select=yes"
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 eval "ac_cv_func_select=no"
3672 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3676 echo "$ac_t""no" 1>&6
3677 { echo "configure: error: select() required." 1>&2; exit 1; }
3681 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3682 echo "configure:3683: checking types of arguments for select()" >&5
3683 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3693 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3694 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure"
3697 #include "confdefs.h"
3698 #ifdef HAVE_SYS_TYPES_H
3699 #include <sys/types.h>
3701 #ifdef HAVE_SYS_TIME_H
3702 #include <sys/time.h>
3704 #ifdef HAVE_SYS_SELECT_H
3705 #include <sys/select.h>
3707 #ifdef HAVE_SYS_SOCKET_H
3708 #include <sys/socket.h>
3710 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);
3715 if { (eval echo configure:3716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3717 ac_not_found=no ; break 3
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3734 if test "$ac_not_found" = yes; then
3735 ac_cv_func_select_arg1=int
3736 ac_cv_func_select_arg234='int *'
3737 ac_cv_func_select_arg5='struct timeval *'
3739 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3740 cat >> confdefs.h <<EOF
3741 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3744 cat >> confdefs.h <<EOF
3745 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3748 cat >> confdefs.h <<EOF
3749 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3756 if test $ol_enable_ldapd != no ; then
3757 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3758 echo "configure:3759: checking for main in -lxtpp" >&5
3759 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_save_LIBS="$LIBS"
3764 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_lib_$ac_lib_var=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_lib_$ac_lib_var=no"
3783 LIBS="$ac_save_LIBS"
3786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3790 cat >> confdefs.h <<\EOF
3794 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3797 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3802 echo "configure:3803: checking for main in -ldsap" >&5
3803 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_save_LIBS="$LIBS"
3808 LIBS="-ldsap -lisode $LIBS"
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_lib_$ac_lib_var=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_lib_$ac_lib_var=no"
3827 LIBS="$ac_save_LIBS"
3830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3834 cat >> confdefs.h <<\EOF
3838 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3841 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3846 echo "configure:3847: checking for main in -lisode" >&5
3847 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 ac_save_LIBS="$LIBS"
3852 LIBS="-lisode $LIBS"
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 eval "ac_cv_lib_$ac_lib_var=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "ac_cv_lib_$ac_lib_var=no"
3871 LIBS="$ac_save_LIBS"
3874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3875 echo "$ac_t""yes" 1>&6
3878 cat >> confdefs.h <<\EOF
3879 #define HAVE_ISODE 1
3882 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3885 echo "$ac_t""no" 1>&6
3891 if test $ol_link_isode != no; then
3892 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3893 echo "configure:3894: checking for main in -lpp" >&5
3894 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 ac_save_LIBS="$LIBS"
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3924 cat >> confdefs.h <<\EOF
3928 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3931 echo "$ac_t""no" 1>&6
3936 # Extract the first word of "pepsy", so it can be a program name with args.
3937 set dummy pepsy; ac_word=$2
3938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_word" >&5
3940 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3945 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3948 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3953 for ac_dir in $ac_dummy; do
3954 test -z "$ac_dir" && ac_dir=.
3955 if test -f $ac_dir/$ac_word; then
3956 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3964 PEPSY="$ac_cv_path_PEPSY"
3965 if test -n "$PEPSY"; then
3966 echo "$ac_t""$PEPSY" 1>&6
3968 echo "$ac_t""no" 1>&6
3975 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3976 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3980 echo "configure:3981: checking for $ac_hdr" >&5
3981 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3990 { (eval echo configure:3991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3992 if test -z "$ac_err"; then
3994 eval "ac_cv_header_$ac_safe=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_header_$ac_safe=no"
4004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4007 cat >> confdefs.h <<EOF
4008 #define $ac_tr_hdr 1
4012 echo "$ac_t""no" 1>&6
4017 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4018 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4019 echo "configure:4020: checking for main in -lkrb4" >&5
4020 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 ac_save_LIBS="$LIBS"
4025 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036 eval "ac_cv_lib_$ac_lib_var=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_lib_$ac_lib_var=no"
4044 LIBS="$ac_save_LIBS"
4047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4051 echo "$ac_t""no" 1>&6
4056 if test $have_k5 = yes ; then
4057 ol_with_kerberos=found
4058 ol_link_kerberos=yes
4060 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4062 LIBS="$KRB_LIBS $LIBS"
4064 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4065 echo "configure:4066: checking for des_debug in Kerberos libraries" >&5
4066 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4071 LIBS="$KRB_LIBS $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4076 #include <kerberosIV/krb.h>
4077 #include <kerberosIV/des.h>
4078 extern int des_debug;
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4088 ol_cv_var_des_debug=yes
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 ol_cv_var_des_debug=no
4100 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4102 if test $ol_cv_var_des_debug = yes ; then
4103 cat >> confdefs.h <<\EOF
4104 #define HAVE_DES_DEBUG 1
4114 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4115 for ac_hdr in krb.h des.h
4117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_hdr" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4133 eval "ac_cv_header_$ac_safe=yes"
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 eval "ac_cv_header_$ac_safe=no"
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4146 cat >> confdefs.h <<EOF
4147 #define $ac_tr_hdr 1
4151 echo "$ac_t""no" 1>&6
4156 if test $ac_cv_header_krb_h = yes ; then
4157 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4158 echo "configure:4159: checking for main in -lkrb" >&5
4159 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4163 ac_save_LIBS="$LIBS"
4164 LIBS="-lkrb -ldes $LIBS"
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175 eval "ac_cv_lib_$ac_lib_var=yes"
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 eval "ac_cv_lib_$ac_lib_var=no"
4183 LIBS="$ac_save_LIBS"
4186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4190 echo "$ac_t""no" 1>&6
4195 if test $have_k4 = yes ; then
4196 ol_with_kerberos=found
4197 ol_link_kerberos=yes
4199 KRB_LIBS="-lkrb -ldes"
4204 if test $ol_link_kerberos = yes ; then
4205 cat >> confdefs.h <<\EOF
4206 #define HAVE_KERBEROS 1
4212 if test $ol_with_tls != no ; then
4216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4218 echo "configure:4219: checking for $ac_hdr" >&5
4219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4228 { (eval echo configure:4229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4230 if test -z "$ac_err"; then
4232 eval "ac_cv_header_$ac_safe=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_header_$ac_safe=no"
4242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_hdr 1
4250 echo "$ac_t""no" 1>&6
4255 if test $ac_cv_header_ssl_h = yes ; then
4256 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4257 echo "configure:4258: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4258 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_save_LIBS="$LIBS"
4263 LIBS="-lssl -lcrypto $LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4270 char SSLeay_add_ssl_algorithms();
4273 SSLeay_add_ssl_algorithms()
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 eval "ac_cv_lib_$ac_lib_var=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 eval "ac_cv_lib_$ac_lib_var=no"
4286 LIBS="$ac_save_LIBS"
4289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4290 echo "$ac_t""yes" 1>&6
4294 echo "$ac_t""no" 1>&6
4299 if test $have_ssleay = no ; then
4300 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4301 echo "configure:4302: checking for ssl3_accept in -lssl" >&5
4302 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 ac_save_LIBS="$LIBS"
4307 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 eval "ac_cv_lib_$ac_lib_var=yes"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 eval "ac_cv_lib_$ac_lib_var=no"
4330 LIBS="$ac_save_LIBS"
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4338 echo "$ac_t""no" 1>&6
4344 if test $have_ssleay = yes ; then
4348 cat >> confdefs.h <<\EOF
4349 #define HAVE_SSLEAY 1
4353 if test $need_rsaref = yes; then
4354 cat >> confdefs.h <<\EOF
4355 #define HAVE_RSAREF 1
4359 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4361 TLS_LIBS="-lssl -lcrypto"
4367 if test $ol_link_tls = yes ; then
4368 cat >> confdefs.h <<\EOF
4376 gethostbyname_r gethostbyaddr_r \
4379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_func" >&5
4381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* System header to define __stub macros and hopefully few prototypes,
4388 which can conflict with char $ac_func(); below. */
4390 /* Override any gcc2 internal prototype to avoid an error. */
4391 /* We use char because int might match the return type of a gcc2
4392 builtin and then its argument prototype would still apply. */
4397 /* The GNU C library defines this for functions which it implements
4398 to always fail with ENOSYS. Some functions are actually named
4399 something starting with __ and the normal name is an alias. */
4400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 eval "ac_cv_func_$ac_func=yes"
4412 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 eval "ac_cv_func_$ac_func=no"
4420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4423 cat >> confdefs.h <<EOF
4424 #define $ac_tr_func 1
4428 echo "$ac_t""no" 1>&6
4433 if test "$ac_cv_func_ctime_r" = no ; then
4434 ol_cv_func_ctime_r_nargs=0
4436 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4437 echo "configure:4438: checking number of arguments of ctime_r" >&5
4438 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4446 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4449 if { (eval echo configure:4450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4451 ol_cv_func_ctime_r_nargs=3
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4461 time_t ti; char *buffer; ctime_r(&ti,buffer);
4464 if { (eval echo configure:4465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4466 ol_cv_func_ctime_r_nargs=2
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 ol_cv_func_ctime_r_nargs=0
4478 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4479 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4480 cat >> confdefs.h <<EOF
4481 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4488 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4489 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4490 echo "configure:4491: checking number of arguments of gethostbyname_r" >&5
4491 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 #include <sys/types.h>
4498 #include <sys/socket.h>
4499 #include <netinet/in.h>
4501 #define BUFSIZE (sizeof(struct hostent)+10)
4503 struct hostent hent; char buffer[BUFSIZE];
4504 int bufsize=BUFSIZE;int h_errno;
4505 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4506 buffer, bufsize, &h_errno);
4509 if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4511 ol_cv_func_gethostbyname_r_nargs=5
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #include <sys/types.h>
4520 #include <sys/socket.h>
4521 #include <netinet/in.h>
4523 #define BUFSIZE (sizeof(struct hostent)+10)
4525 struct hostent hent;struct hostent *rhent;
4526 char buffer[BUFSIZE];
4527 int bufsize=BUFSIZE;int h_errno;
4528 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4532 if { (eval echo configure:4533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534 ol_cv_func_gethostbyname_r_nargs=6
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 ol_cv_func_gethostbyname_r_nargs=0
4546 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4547 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4548 cat >> confdefs.h <<EOF
4549 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4555 ol_cv_func_gethostbyname_r_nargs=0
4558 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4559 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4560 echo "configure:4561: checking number of arguments of gethostbyaddr_r" >&5
4561 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4568 #include <sys/socket.h>
4569 #include <netinet/in.h>
4571 #define BUFSIZE (sizeof(struct hostent)+10)
4573 struct hostent hent; char buffer[BUFSIZE];
4575 size_t alen=sizeof(struct in_addr);
4576 int bufsize=BUFSIZE;int h_errno;
4577 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4578 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4581 if { (eval echo configure:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4583 ol_cv_func_gethostbyaddr_r_nargs=7
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 #include <sys/types.h>
4592 #include <sys/socket.h>
4593 #include <netinet/in.h>
4595 #define BUFSIZE (sizeof(struct hostent)+10)
4597 struct hostent hent;
4598 struct hostent *rhent; char buffer[BUFSIZE];
4600 size_t alen=sizeof(struct in_addr);
4601 int bufsize=BUFSIZE;int h_errno;
4602 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4603 alen, AF_INET, &hent, buffer, bufsize,
4607 if { (eval echo configure:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4609 ol_cv_func_gethostbyaddr_r_nargs=8
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 ol_cv_func_gethostbyaddr_r_nargs=0
4621 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4622 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4623 cat >> confdefs.h <<EOF
4624 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4630 ol_cv_func_gethostbyaddr_r_nargs=0
4633 if test "$ac_cv_func_ctime_r" = yes \
4634 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4635 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4636 -a "$ac_cv_func_gethostbyname_r" = yes \
4637 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4638 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4639 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4640 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4641 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4644 cat >> confdefs.h <<\EOF
4645 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4651 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4652 -o $ol_with_threads = posix ; then
4654 for ac_hdr in pthread.h sched.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4695 if test $ac_cv_header_pthread_h = yes ; then
4696 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4697 echo "configure:4698: checking POSIX thread version" >&5
4698 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4706 # include <pthread.h>
4707 /* this check could be improved */
4708 # ifdef PTHREAD_ONCE_INIT
4709 pthread_version_final
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 egrep "pthread_version_final" >/dev/null 2>&1; then
4716 ol_pthread_final=yes
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4728 # include <pthread.h>
4729 /* this check could be improved */
4730 # ifdef pthread_once_init
4731 pthread_version_draft4
4735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4736 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4738 ol_pthread_draft4=yes
4741 ol_pthread_draft4=no
4746 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4747 ol_cv_pthread_version=final
4748 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4749 ol_cv_pthread_version=draft4
4751 ol_cv_pthread_version=unknown
4756 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4759 if test $ol_cv_pthread_version = final ; then
4760 cat >> confdefs.h <<\EOF
4761 #define HAVE_PTHREADS_FINAL 1
4764 elif test $ol_cv_pthread_version = draft4 ; then
4765 cat >> confdefs.h <<\EOF
4766 #define HAVE_PTHREADS_D4 1
4770 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4773 # consider threads found
4774 ol_with_threads=found
4777 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4778 echo "configure:4779: checking for LinuxThreads pthread.h" >&5
4779 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 #include <pthread.h>
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4790 ol_cv_header_linux_threads=yes
4793 ol_cv_header_linux_threads=no
4800 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4801 if test $ol_cv_header_linux_threads = yes; then
4802 cat >> confdefs.h <<\EOF
4803 #define HAVE_LINUX_THREADS 1
4810 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4811 echo "configure:4812: checking for pthread_create in default libraries" >&5
4812 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4816 if test "$cross_compiling" = yes; then
4817 ol_cv_pthread_create=yes
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4823 #include <pthread.h>
4825 #define NULL (void*)0
4828 static void *task(p)
4831 return (void *) (p == NULL);
4834 int main(argc, argv)
4841 /* make sure pthread_create() isn't just a stub */
4842 #if HAVE_PTHREADS_D4
4843 status = pthread_create(&t, pthread_attr_default, task, NULL);
4845 status = pthread_create(&t, NULL, task, NULL);
4848 if( status ) return status;
4850 /* make sure pthread_detach() isn't just a stub */
4851 #if HAVE_PTHREADS_D4
4852 status = pthread_detach( &t );
4854 status = pthread_detach( t );
4857 if( status ) return status;
4863 if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4865 ol_cv_pthread_create=yes
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 ol_cv_pthread_create=no
4877 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4879 if test $ol_cv_pthread_create != no ; then
4880 ol_link_threads=posix
4884 # Pthread try link: -mt (ol_cv_pthread_mt)
4885 if test "$ol_link_threads" = no ; then
4887 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4888 echo "configure:4889: checking for pthread link with -mt" >&5
4889 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4897 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4901 #include <pthread.h>
4903 #define NULL (void*)0
4910 #if HAVE_PTHREADS_D4
4911 pthread_create(&t, pthread_attr_default, NULL, NULL);
4912 pthread_detach( &t );
4914 pthread_create(&t, NULL, NULL, NULL);
4915 pthread_detach( t );
4917 #ifdef HAVE_LINUX_THREADS
4918 pthread_kill_other_threads_np();
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 ol_cv_pthread_mt=yes
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4939 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4941 if test $ol_cv_pthread_mt = yes ; then
4942 ol_link_pthreads="-mt"
4943 ol_link_threads=posix
4947 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4948 if test "$ol_link_threads" = no ; then
4950 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4951 echo "configure:4952: checking for pthread link with -kthread" >&5
4952 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4958 LIBS="-kthread $LIBS"
4960 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4964 #include <pthread.h>
4966 #define NULL (void*)0
4973 #if HAVE_PTHREADS_D4
4974 pthread_create(&t, pthread_attr_default, NULL, NULL);
4975 pthread_detach( &t );
4977 pthread_create(&t, NULL, NULL, NULL);
4978 pthread_detach( t );
4980 #ifdef HAVE_LINUX_THREADS
4981 pthread_kill_other_threads_np();
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 ol_cv_pthread_kthread=yes
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 ol_cv_pthread_kthread=no
5002 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5004 if test $ol_cv_pthread_kthread = yes ; then
5005 ol_link_pthreads="-kthread"
5006 ol_link_threads=posix
5010 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5011 if test "$ol_link_threads" = no ; then
5013 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5014 echo "configure:5015: checking for pthread link with -pthread" >&5
5015 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5016 echo $ac_n "(cached) $ac_c" 1>&6
5021 LIBS="-pthread $LIBS"
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5027 #include <pthread.h>
5029 #define NULL (void*)0
5036 #if HAVE_PTHREADS_D4
5037 pthread_create(&t, pthread_attr_default, NULL, NULL);
5038 pthread_detach( &t );
5040 pthread_create(&t, NULL, NULL, NULL);
5041 pthread_detach( t );
5043 #ifdef HAVE_LINUX_THREADS
5044 pthread_kill_other_threads_np();
5049 if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5051 ol_cv_pthread_pthread=yes
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 ol_cv_pthread_pthread=no
5065 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5067 if test $ol_cv_pthread_pthread = yes ; then
5068 ol_link_pthreads="-pthread"
5069 ol_link_threads=posix
5073 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5074 if test "$ol_link_threads" = no ; then
5076 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5077 echo "configure:5078: checking for pthread link with -pthreads" >&5
5078 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5084 LIBS="-pthreads $LIBS"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5090 #include <pthread.h>
5092 #define NULL (void*)0
5099 #if HAVE_PTHREADS_D4
5100 pthread_create(&t, pthread_attr_default, NULL, NULL);
5101 pthread_detach( &t );
5103 pthread_create(&t, NULL, NULL, NULL);
5104 pthread_detach( t );
5106 #ifdef HAVE_LINUX_THREADS
5107 pthread_kill_other_threads_np();
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 ol_cv_pthread_pthreads=yes
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 ol_cv_pthread_pthreads=no
5128 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5130 if test $ol_cv_pthread_pthreads = yes ; then
5131 ol_link_pthreads="-pthreads"
5132 ol_link_threads=posix
5136 # Pthread try link: -thread (ol_cv_pthread_thread)
5137 if test "$ol_link_threads" = no ; then
5139 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5140 echo "configure:5141: checking for pthread link with -thread" >&5
5141 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5147 LIBS="-thread $LIBS"
5149 cat > conftest.$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5153 #include <pthread.h>
5155 #define NULL (void*)0
5162 #if HAVE_PTHREADS_D4
5163 pthread_create(&t, pthread_attr_default, NULL, NULL);
5164 pthread_detach( &t );
5166 pthread_create(&t, NULL, NULL, NULL);
5167 pthread_detach( t );
5169 #ifdef HAVE_LINUX_THREADS
5170 pthread_kill_other_threads_np();
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 ol_cv_pthread_thread=yes
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 ol_cv_pthread_thread=no
5191 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5193 if test $ol_cv_pthread_thread = yes ; then
5194 ol_link_pthreads="-thread"
5195 ol_link_threads=posix
5200 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5201 if test "$ol_link_threads" = no ; then
5202 # try -lpthread -lmach -lexc -lc_r
5203 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5204 echo "configure:5205: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5205 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5211 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5217 #include <pthread.h>
5219 #define NULL (void*)0
5226 #if HAVE_PTHREADS_D4
5227 pthread_create(&t, pthread_attr_default, NULL, NULL);
5228 pthread_detach( &t );
5230 pthread_create(&t, NULL, NULL, NULL);
5231 pthread_detach( t );
5233 #ifdef HAVE_LINUX_THREADS
5234 pthread_kill_other_threads_np();
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
5246 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5255 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5257 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5258 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5259 ol_link_threads=posix
5263 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5264 if test "$ol_link_threads" = no ; then
5265 # try -lpthread -lmach -lexc
5266 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5267 echo "configure:5268: checking for pthread link with -lpthread -lmach -lexc" >&5
5268 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5274 LIBS="-lpthread -lmach -lexc $LIBS"
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5280 #include <pthread.h>
5282 #define NULL (void*)0
5289 #if HAVE_PTHREADS_D4
5290 pthread_create(&t, pthread_attr_default, NULL, NULL);
5291 pthread_detach( &t );
5293 pthread_create(&t, NULL, NULL, NULL);
5294 pthread_detach( t );
5296 #ifdef HAVE_LINUX_THREADS
5297 pthread_kill_other_threads_np();
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 ol_cv_pthread_lpthread_lmach_lexc=yes
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5309 ol_cv_pthread_lpthread_lmach_lexc=no
5318 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5320 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5321 ol_link_pthreads="-lpthread -lmach -lexc"
5322 ol_link_threads=posix
5327 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5328 if test "$ol_link_threads" = no ; then
5329 # try -lpthread -Wl,-woff,85
5330 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5331 echo "configure:5332: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5332 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5338 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5344 #include <pthread.h>
5346 #define NULL (void*)0
5353 #if HAVE_PTHREADS_D4
5354 pthread_create(&t, pthread_attr_default, NULL, NULL);
5355 pthread_detach( &t );
5357 pthread_create(&t, NULL, NULL, NULL);
5358 pthread_detach( t );
5360 #ifdef HAVE_LINUX_THREADS
5361 pthread_kill_other_threads_np();
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368 ol_cv_pthread_lib_lpthread_woff=yes
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5373 ol_cv_pthread_lib_lpthread_woff=no
5382 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5384 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5385 ol_link_pthreads="-lpthread -Wl,-woff,85"
5386 ol_link_threads=posix
5391 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5392 if test "$ol_link_threads" = no ; then
5394 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5395 echo "configure:5396: checking for pthread link with -lpthread" >&5
5396 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5402 LIBS="-lpthread $LIBS"
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5408 #include <pthread.h>
5410 #define NULL (void*)0
5417 #if HAVE_PTHREADS_D4
5418 pthread_create(&t, pthread_attr_default, NULL, NULL);
5419 pthread_detach( &t );
5421 pthread_create(&t, NULL, NULL, NULL);
5422 pthread_detach( t );
5424 #ifdef HAVE_LINUX_THREADS
5425 pthread_kill_other_threads_np();
5430 if { (eval echo configure:5431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5432 ol_cv_pthread_lpthread=yes
5434 echo "configure: failed program was:" >&5
5435 cat conftest.$ac_ext >&5
5437 ol_cv_pthread_lpthread=no
5446 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5448 if test $ol_cv_pthread_lpthread = yes ; then
5449 ol_link_pthreads="-lpthread"
5450 ol_link_threads=posix
5454 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5455 if test "$ol_link_threads" = no ; then
5457 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5458 echo "configure:5459: checking for pthread link with -lc_r" >&5
5459 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5471 #include <pthread.h>
5473 #define NULL (void*)0
5480 #if HAVE_PTHREADS_D4
5481 pthread_create(&t, pthread_attr_default, NULL, NULL);
5482 pthread_detach( &t );
5484 pthread_create(&t, NULL, NULL, NULL);
5485 pthread_detach( t );
5487 #ifdef HAVE_LINUX_THREADS
5488 pthread_kill_other_threads_np();
5493 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5495 ol_cv_pthread_lc_r=yes
5497 echo "configure: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 ol_cv_pthread_lc_r=no
5509 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5511 if test $ol_cv_pthread_lc_r = yes ; then
5512 ol_link_pthreads="-lc_r"
5513 ol_link_threads=posix
5518 # Pthread try link: -threads (ol_cv_pthread_threads)
5519 if test "$ol_link_threads" = no ; then
5521 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5522 echo "configure:5523: checking for pthread link with -threads" >&5
5523 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5529 LIBS="-threads $LIBS"
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5535 #include <pthread.h>
5537 #define NULL (void*)0
5544 #if HAVE_PTHREADS_D4
5545 pthread_create(&t, pthread_attr_default, NULL, NULL);
5546 pthread_detach( &t );
5548 pthread_create(&t, NULL, NULL, NULL);
5549 pthread_detach( t );
5551 #ifdef HAVE_LINUX_THREADS
5552 pthread_kill_other_threads_np();
5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559 ol_cv_pthread_threads=yes
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 ol_cv_pthread_threads=no
5573 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5575 if test $ol_cv_pthread_threads = yes ; then
5576 ol_link_pthreads="-threads"
5577 ol_link_threads=posix
5582 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5583 if test "$ol_link_threads" = no ; then
5584 # try -lpthreads -lmach -lexc -lc_r
5585 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5586 echo "configure:5587: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5587 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5593 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5599 #include <pthread.h>
5601 #define NULL (void*)0
5608 #if HAVE_PTHREADS_D4
5609 pthread_create(&t, pthread_attr_default, NULL, NULL);
5610 pthread_detach( &t );
5612 pthread_create(&t, NULL, NULL, NULL);
5613 pthread_detach( t );
5615 #ifdef HAVE_LINUX_THREADS
5616 pthread_kill_other_threads_np();
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5637 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5639 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5640 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5641 ol_link_threads=posix
5645 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5646 if test "$ol_link_threads" = no ; then
5647 # try -lpthreads -lmach -lexc
5648 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5649 echo "configure:5650: checking for pthread link with -lpthreads -lmach -lexc" >&5
5650 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5656 LIBS="-lpthreads -lmach -lexc $LIBS"
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5662 #include <pthread.h>
5664 #define NULL (void*)0
5671 #if HAVE_PTHREADS_D4
5672 pthread_create(&t, pthread_attr_default, NULL, NULL);
5673 pthread_detach( &t );
5675 pthread_create(&t, NULL, NULL, NULL);
5676 pthread_detach( t );
5678 #ifdef HAVE_LINUX_THREADS
5679 pthread_kill_other_threads_np();
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5686 ol_cv_pthread_lpthreads_lmach_lexc=yes
5688 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5
5691 ol_cv_pthread_lpthreads_lmach_lexc=no
5700 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5702 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5703 ol_link_pthreads="-lpthreads -lmach -lexc"
5704 ol_link_threads=posix
5708 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5709 if test "$ol_link_threads" = no ; then
5710 # try -lpthreads -lexc
5711 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5712 echo "configure:5713: checking for pthread link with -lpthreads -lexc" >&5
5713 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5714 echo $ac_n "(cached) $ac_c" 1>&6
5719 LIBS="-lpthreads -lexc $LIBS"
5721 cat > conftest.$ac_ext <<EOF
5722 #line 5723 "configure"
5723 #include "confdefs.h"
5725 #include <pthread.h>
5727 #define NULL (void*)0
5734 #if HAVE_PTHREADS_D4
5735 pthread_create(&t, pthread_attr_default, NULL, NULL);
5736 pthread_detach( &t );
5738 pthread_create(&t, NULL, NULL, NULL);
5739 pthread_detach( t );
5741 #ifdef HAVE_LINUX_THREADS
5742 pthread_kill_other_threads_np();
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 ol_cv_pthread_lpthreads_lexc=yes
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 ol_cv_pthread_lpthreads_lexc=no
5763 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5765 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5766 ol_link_pthreads="-lpthreads -lexc"
5767 ol_link_threads=posix
5772 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5773 if test "$ol_link_threads" = no ; then
5775 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5776 echo "configure:5777: checking for pthread link with -lpthreads" >&5
5777 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5783 LIBS="-lpthreads $LIBS"
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5789 #include <pthread.h>
5791 #define NULL (void*)0
5798 #if HAVE_PTHREADS_D4
5799 pthread_create(&t, pthread_attr_default, NULL, NULL);
5800 pthread_detach( &t );
5802 pthread_create(&t, NULL, NULL, NULL);
5803 pthread_detach( t );
5805 #ifdef HAVE_LINUX_THREADS
5806 pthread_kill_other_threads_np();
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5813 ol_cv_pthread_lib_lpthreads=yes
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 ol_cv_pthread_lib_lpthreads=no
5827 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5829 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5830 ol_link_pthreads="-lpthreads"
5831 ol_link_threads=posix
5836 if test $ol_link_threads != no ; then
5837 cat >> confdefs.h <<\EOF
5838 #define HAVE_PTHREADS 1
5842 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5844 save_CPPFLAGS="$CPPFLAGS"
5846 LIBS="$LTHREAD_LIBS $LIBS"
5848 for ac_func in sched_yield pthread_yield
5850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5851 echo "configure:5852: checking for $ac_func" >&5
5852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char $ac_func(); below. */
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 eval "ac_cv_func_$ac_func=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_func_$ac_func=no"
5891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5894 cat >> confdefs.h <<EOF
5895 #define $ac_tr_func 1
5899 echo "$ac_t""no" 1>&6
5904 if test $ac_cv_func_sched_yield = no -a \
5905 $ac_cv_func_pthread_yield = no ; then
5906 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5907 echo "configure:5908: checking for sched_yield in -lrt" >&5
5908 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 ac_save_LIBS="$LIBS"
5914 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure"
5916 #include "confdefs.h"
5917 /* Override any gcc2 internal prototype to avoid an error. */
5918 /* We use char because int might match the return type of a gcc2
5919 builtin and then its argument prototype would still apply. */
5926 if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 eval "ac_cv_lib_$ac_lib_var=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_lib_$ac_lib_var=no"
5936 LIBS="$ac_save_LIBS"
5939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5940 echo "$ac_t""yes" 1>&6
5941 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5942 cat >> confdefs.h <<\EOF
5943 #define HAVE_SCHED_YIELD 1
5946 ac_cv_func_sched_yield=yes
5948 echo "$ac_t""no" 1>&6
5949 ac_cv_func_sched_yield=no
5953 if test $ac_cv_func_sched_yield = no -a \
5954 $ac_cv_func_pthread_yield = no ; then
5955 for ac_func in thr_yield
5957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5958 echo "configure:5959: checking for $ac_func" >&5
5959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965 /* System header to define __stub macros and hopefully few prototypes,
5966 which can conflict with char $ac_func(); below. */
5968 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5975 /* The GNU C library defines this for functions which it implements
5976 to always fail with ENOSYS. Some functions are actually named
5977 something starting with __ and the normal name is an alias. */
5978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5986 if { (eval echo configure:5987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5988 eval "ac_cv_func_$ac_func=yes"
5990 echo "configure: failed program was:" >&5
5991 cat conftest.$ac_ext >&5
5993 eval "ac_cv_func_$ac_func=no"
5998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5999 echo "$ac_t""yes" 1>&6
6000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6001 cat >> confdefs.h <<EOF
6002 #define $ac_tr_func 1
6006 echo "$ac_t""no" 1>&6
6011 if test $ac_cv_func_sched_yield = no -a \
6012 $ac_cv_func_pthread_yield = no -a \
6013 "$ac_cv_func_thr_yield" = no ; then
6014 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6017 for ac_func in pthread_kill
6019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_func" >&5
6021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func(); below. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 eval "ac_cv_func_$ac_func=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_func_$ac_func=no"
6060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6063 cat >> confdefs.h <<EOF
6064 #define $ac_tr_func 1
6068 echo "$ac_t""no" 1>&6
6073 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6074 echo "configure:6075: checking for pthread_detach with <pthread.h>" >&5
6075 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6083 #include <pthread.h>
6085 #define NULL (void*)0
6089 pthread_detach(NULL);
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 ol_cv_func_pthread_detach=yes
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 ol_cv_func_pthread_detach=no
6105 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6107 if test $ol_cv_func_pthread_detach = no ; then
6108 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6111 cat >> confdefs.h <<\EOF
6112 #define HAVE_PTHREAD_DETACH 1
6117 pthread_setconcurrency \
6118 pthread_getconcurrency \
6119 thr_setconcurrency \
6120 thr_getconcurrency \
6123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6124 echo "configure:6125: checking for $ac_func" >&5
6125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6131 /* System header to define __stub macros and hopefully few prototypes,
6132 which can conflict with char $ac_func(); below. */
6134 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6141 /* The GNU C library defines this for functions which it implements
6142 to always fail with ENOSYS. Some functions are actually named
6143 something starting with __ and the normal name is an alias. */
6144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 eval "ac_cv_func_$ac_func=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5
6159 eval "ac_cv_func_$ac_func=no"
6164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6165 echo "$ac_t""yes" 1>&6
6166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6167 cat >> confdefs.h <<EOF
6168 #define $ac_tr_func 1
6172 echo "$ac_t""no" 1>&6
6178 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6179 echo "configure:6180: checking for pthread_kill_other_threads_np" >&5
6180 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6181 echo $ac_n "(cached) $ac_c" 1>&6
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 /* System header to define __stub macros and hopefully few prototypes,
6187 which can conflict with char pthread_kill_other_threads_np(); below. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6192 char pthread_kill_other_threads_np();
6196 /* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6202 pthread_kill_other_threads_np();
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6219 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6223 echo "$ac_t""no" 1>&6
6226 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6227 echo "configure:6228: checking for LinuxThreads implementation" >&5
6228 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6231 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6234 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6239 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6240 echo "configure:6241: checking for LinuxThreads consistency" >&5
6241 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6245 if test $ol_cv_header_linux_threads = yes -a \
6246 $ol_cv_sys_linux_threads = yes; then
6247 ol_cv_linux_threads=yes
6248 elif test $ol_cv_header_linux_threads = no -a \
6249 $ol_cv_sys_linux_threads = no; then
6250 ol_cv_linux_threads=no
6252 ol_cv_linux_threads=error
6257 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6260 if test $ol_cv_linux_threads = error; then
6261 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6264 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6265 echo "configure:6266: checking if pthread_create() works" >&5
6266 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6270 if test "$cross_compiling" = yes; then
6271 ol_cv_pthread_create_works=yes
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6277 #include <pthread.h>
6279 #define NULL (void*)0
6282 static void *task(p)
6285 return (void *) (p == NULL);
6288 int main(argc, argv)
6293 #if HAVE_PTHREADS_D4
6294 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6296 exit(pthread_create(&t, NULL, task, NULL));
6301 if { (eval echo configure:6302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6303 ol_cv_pthread_create_works=yes
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 ol_cv_pthread_create_works=no
6315 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6317 if test $ol_cv_pthread_create_works = no ; then
6318 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6321 if test $ol_with_yielding_select = auto ; then
6322 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6323 echo "configure:6324: checking if select yields when using pthreads" >&5
6324 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6325 echo $ac_n "(cached) $ac_c" 1>&6
6328 if test "$cross_compiling" = yes; then
6330 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6336 #include <sys/types.h>
6337 #include <sys/time.h>
6339 #include <pthread.h>
6341 #define NULL (void*) 0
6344 static int fildes[2];
6346 static void *task(p)
6358 FD_SET(fildes[0], &rfds);
6360 /* we're not interested in any fds */
6361 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6368 exit(0); /* if we exit here, the select blocked the whole process */
6371 int main(argc, argv)
6377 /* create a pipe to select */
6378 if(pipe(&fildes[0])) {
6383 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6384 (void) pthread_setconcurrency(2);
6386 #ifdef HAVE_THR_SETCONCURRENCY
6387 /* Set Solaris LWP concurrency to 2 */
6388 thr_setconcurrency(2);
6392 #if HAVE_PTHREADS_D4
6393 pthread_create(&t, pthread_attr_default, task, NULL);
6395 pthread_create(&t, NULL, task, NULL);
6398 #if HAVE_SCHED_YIELD
6399 sched_yield(); /* make sure task runs first */
6401 #ifdef HAVE_PTHREAD_YIELD
6402 pthread_yield(); /* make sure task runs first */
6409 if { (eval echo configure:6410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6411 ol_cv_pthread_select_yields=no
6413 echo "configure: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 ol_cv_pthread_select_yields=yes
6423 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6425 if test $ol_cv_pthread_select_yields = yes ; then
6426 ol_with_yielding_select=yes
6430 CPPFLAGS="$save_CPPFLAGS"
6433 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6437 if test $ol_with_threads = posix ; then
6438 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6442 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6443 -o $ol_with_threads = mach ; then
6445 for ac_hdr in mach/cthreads.h
6447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6449 echo "configure:6450: checking for $ac_hdr" >&5
6450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6459 { (eval echo configure:6460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6461 if test -z "$ac_err"; then
6463 eval "ac_cv_header_$ac_safe=yes"
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 eval "ac_cv_header_$ac_safe=no"
6473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6476 cat >> confdefs.h <<EOF
6477 #define $ac_tr_hdr 1
6481 echo "$ac_t""no" 1>&6
6485 if test $ac_cv_header_mach_cthreads_h = yes ; then
6486 ol_with_threads=found
6488 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6489 echo "configure:6490: checking for cthread_fork" >&5
6490 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* System header to define __stub macros and hopefully few prototypes,
6497 which can conflict with char cthread_fork(); below. */
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char cthread_fork();
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 eval "ac_cv_func_cthread_fork=yes"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 eval "ac_cv_func_cthread_fork=no"
6529 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6533 echo "$ac_t""no" 1>&6
6537 if test $ol_link_threads = no ; then
6538 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6539 echo "configure:6540: checking for cthread_fork with -all_load" >&5
6540 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6545 LIBS="-all_load $LIBS"
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549 #include <mach/cthreads.h>
6552 cthread_fork((void *)0, (void *)0);
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6558 ol_cv_cthread_all_load=yes
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 ol_cv_cthread_all_load=no
6570 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6572 if test $ol_cv_cthread_all_load = yes ; then
6573 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6574 ol_link_threads=mach
6578 if test $ol_link_threads != no ; then
6579 : check for cthread specific functionality here
6580 cat >> confdefs.h <<\EOF
6581 #define HAVE_MACH_CTHREADS 1
6585 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6589 if test $ol_with_threads = mach ; then
6590 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6594 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6595 -o $ol_with_threads = lwp ; then
6597 for ac_hdr in thread.h synch.h
6599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6601 echo "configure:6602: checking for $ac_hdr" >&5
6602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6611 { (eval echo configure:6612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6613 if test -z "$ac_err"; then
6615 eval "ac_cv_header_$ac_safe=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 eval "ac_cv_header_$ac_safe=no"
6625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_hdr 1
6633 echo "$ac_t""no" 1>&6
6637 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6638 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6639 echo "configure:6640: checking for thr_create in -lthread" >&5
6640 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 ac_save_LIBS="$LIBS"
6645 LIBS="-lthread $LIBS"
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6658 if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6660 eval "ac_cv_lib_$ac_lib_var=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6665 eval "ac_cv_lib_$ac_lib_var=no"
6668 LIBS="$ac_save_LIBS"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6675 echo "$ac_t""no" 1>&6
6680 if test $have_thr = yes ; then
6681 cat >> confdefs.h <<\EOF
6685 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6688 if test $ol_with_yielding_select = auto ; then
6689 ol_with_yielding_select=yes
6693 thr_setconcurrency \
6694 thr_getconcurrency \
6697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6698 echo "configure:6699: checking for $ac_func" >&5
6699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 /* System header to define __stub macros and hopefully few prototypes,
6706 which can conflict with char $ac_func(); below. */
6708 /* Override any gcc2 internal prototype to avoid an error. */
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6715 /* The GNU C library defines this for functions which it implements
6716 to always fail with ENOSYS. Some functions are actually named
6717 something starting with __ and the normal name is an alias. */
6718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6726 if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6728 eval "ac_cv_func_$ac_func=yes"
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 eval "ac_cv_func_$ac_func=no"
6738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6739 echo "$ac_t""yes" 1>&6
6740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6741 cat >> confdefs.h <<EOF
6742 #define $ac_tr_func 1
6746 echo "$ac_t""no" 1>&6
6753 for ac_hdr in lwp/lwp.h
6755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6757 echo "configure:6758: checking for $ac_hdr" >&5
6758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6767 { (eval echo configure:6768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6769 if test -z "$ac_err"; then
6771 eval "ac_cv_header_$ac_safe=yes"
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 eval "ac_cv_header_$ac_safe=no"
6781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6784 cat >> confdefs.h <<EOF
6785 #define $ac_tr_hdr 1
6789 echo "$ac_t""no" 1>&6
6793 if test $ac_cv_header_lwp_lwp_h = yes ; then
6794 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6795 echo "configure:6796: checking for lwp_create in -llwp" >&5
6796 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 ac_save_LIBS="$LIBS"
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure"
6804 #include "confdefs.h"
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6816 eval "ac_cv_lib_$ac_lib_var=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_lib_$ac_lib_var=no"
6824 LIBS="$ac_save_LIBS"
6827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6828 echo "$ac_t""yes" 1>&6
6831 echo "$ac_t""no" 1>&6
6836 if test $have_lwp = yes ; then
6837 cat >> confdefs.h <<\EOF
6841 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6844 if test $ol_with_yielding_select = auto ; then
6845 ol_with_yielding_select=no
6851 if test $ol_with_yielding_select = yes ; then
6852 cat >> confdefs.h <<\EOF
6853 #define HAVE_YIELDING_SELECT 1
6858 if test $ol_with_threads = manual ; then
6861 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6863 for ac_hdr in pthread.h sched.h
6865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6867 echo "configure:6868: checking for $ac_hdr" >&5
6868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6877 { (eval echo configure:6878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6879 if test -z "$ac_err"; then
6881 eval "ac_cv_header_$ac_safe=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_header_$ac_safe=no"
6891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_hdr 1
6899 echo "$ac_t""no" 1>&6
6903 for ac_func in sched_yield pthread_yield
6905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6906 echo "configure:6907: checking for $ac_func" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func(); below. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6923 /* The GNU C library defines this for functions which it implements
6924 to always fail with ENOSYS. Some functions are actually named
6925 something starting with __ and the normal name is an alias. */
6926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_func_$ac_func=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_func_$ac_func=no"
6946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6949 cat >> confdefs.h <<EOF
6950 #define $ac_tr_func 1
6954 echo "$ac_t""no" 1>&6
6959 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6960 echo "configure:6961: checking for LinuxThreads pthread.h" >&5
6961 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6962 echo $ac_n "(cached) $ac_c" 1>&6
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 #include <pthread.h>
6969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6972 ol_cv_header_linux_threads=yes
6975 ol_cv_header_linux_threads=no
6982 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6983 if test $ol_cv_header_linux_threads = yes; then
6984 cat >> confdefs.h <<\EOF
6985 #define HAVE_LINUX_THREADS 1
6991 for ac_hdr in mach/cthreads.h
6993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6995 echo "configure:6996: checking for $ac_hdr" >&5
6996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 cat > conftest.$ac_ext <<EOF
7000 #line 7001 "configure"
7001 #include "confdefs.h"
7004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure:7006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7009 eval "ac_cv_header_$ac_safe=yes"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 eval "ac_cv_header_$ac_safe=no"
7019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7020 echo "$ac_t""yes" 1>&6
7021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7022 cat >> confdefs.h <<EOF
7023 #define $ac_tr_hdr 1
7027 echo "$ac_t""no" 1>&6
7031 for ac_hdr in lwp/lwp.h
7033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7035 echo "configure:7036: checking for $ac_hdr" >&5
7036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7045 { (eval echo configure:7046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7047 if test -z "$ac_err"; then
7049 eval "ac_cv_header_$ac_safe=yes"
7052 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 eval "ac_cv_header_$ac_safe=no"
7059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7060 echo "$ac_t""yes" 1>&6
7061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7062 cat >> confdefs.h <<EOF
7063 #define $ac_tr_hdr 1
7067 echo "$ac_t""no" 1>&6
7071 for ac_hdr in thread.h synch.h
7073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7075 echo "configure:7076: checking for $ac_hdr" >&5
7076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7085 { (eval echo configure:7086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7087 if test -z "$ac_err"; then
7089 eval "ac_cv_header_$ac_safe=yes"
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 eval "ac_cv_header_$ac_safe=no"
7099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7100 echo "$ac_t""yes" 1>&6
7101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7102 cat >> confdefs.h <<EOF
7103 #define $ac_tr_hdr 1
7107 echo "$ac_t""no" 1>&6
7113 if test $ol_link_threads != no ; then
7114 cat >> confdefs.h <<\EOF
7118 cat >> confdefs.h <<\EOF
7119 #define _REENTRANT 1
7122 cat >> confdefs.h <<\EOF
7123 #define THREAD_SAFE 1
7126 cat >> confdefs.h <<\EOF
7127 #define _THREAD_SAFE 1
7130 cat >> confdefs.h <<\EOF
7131 #define THREADSAFE 1
7134 cat >> confdefs.h <<\EOF
7135 #define _THREADSAFE 1
7139 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7140 echo "configure:7141: checking for thread specific errno" >&5
7141 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 ol_cv_errno_thread_specific=yes
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 ol_cv_errno_thread_specific=no
7166 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7168 if test $ol_cv_errno_thread_specific != yes ; then
7169 LIBS="$LTHREAD_LIBS $LIBS"
7175 if test $ol_link_threads = no ; then
7176 if test $ol_with_threads = yes ; then
7177 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7180 if test $ol_with_threads = auto ; then
7181 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7185 cat >> confdefs.h <<\EOF
7186 #define NO_THREADS 1
7192 if test $ol_link_threads != no ; then
7193 cat >> confdefs.h <<\EOF
7194 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7201 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7202 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7203 echo "configure:7204: checking for DB2 library" >&5
7204 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7208 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7209 echo "configure:7210: checking for db_open in -ldb" >&5
7210 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 ac_save_LIBS="$LIBS"
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7219 /* Override any gcc2 internal prototype to avoid an error. */
7220 /* We use char because int might match the return type of a gcc2
7221 builtin and then its argument prototype would still apply. */
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 eval "ac_cv_lib_$ac_lib_var=yes"
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7235 eval "ac_cv_lib_$ac_lib_var=no"
7238 LIBS="$ac_save_LIBS"
7241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7245 echo "$ac_t""no" 1>&6
7253 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7259 echo "configure:7260: checking for $ac_hdr" >&5
7260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7269 { (eval echo configure:7270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7271 if test -z "$ac_err"; then
7273 eval "ac_cv_header_$ac_safe=yes"
7276 echo "configure: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 eval "ac_cv_header_$ac_safe=no"
7283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7284 echo "$ac_t""yes" 1>&6
7285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7286 cat >> confdefs.h <<EOF
7287 #define $ac_tr_hdr 1
7291 echo "$ac_t""no" 1>&6
7295 if test $ac_cv_header_db_h = yes ; then
7296 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7297 echo "configure:7298: checking if db.h is DB2" >&5
7298 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7302 cat > conftest.$ac_ext <<EOF
7303 #line 7304 "configure"
7304 #include "confdefs.h"
7307 /* this check could be improved */
7308 # ifdef DB_VERSION_MAJOR
7309 # if DB_VERSION_MAJOR == 2
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 egrep "__db_version_2" >/dev/null 2>&1; then
7318 ol_cv_header_db2=yes
7327 echo "$ac_t""$ol_cv_header_db2" 1>&6
7334 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7335 echo "configure:7336: checking for Berkeley DB2" >&5
7336 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7340 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7341 ol_cv_berkeley_db2=no
7343 ol_cv_berkeley_db2=yes
7348 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7349 if test $ol_cv_berkeley_db2 = yes ; then
7350 cat >> confdefs.h <<\EOF
7351 #define HAVE_BERKELEY_DB2 1
7357 if test $ol_cv_berkeley_db2 = yes ; then
7359 ol_with_ldbm_api=db2
7361 if test $ol_with_ldbm_type = hash ; then
7362 cat >> confdefs.h <<\EOF
7363 #define LDBM_USE_DBHASH 1
7367 cat >> confdefs.h <<\EOF
7368 #define LDBM_USE_DBBTREE 1
7373 if test $ol_cv_lib_db2 != yes ; then
7374 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7380 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7384 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7385 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7386 echo "configure:7387: checking for Berkeley DB library" >&5
7387 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7391 for ac_hdr in db1/db.h
7393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7395 echo "configure:7396: checking for $ac_hdr" >&5
7396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7399 cat > conftest.$ac_ext <<EOF
7400 #line 7401 "configure"
7401 #include "confdefs.h"
7404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7405 { (eval echo configure:7406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7407 if test -z "$ac_err"; then
7409 eval "ac_cv_header_$ac_safe=yes"
7412 echo "configure: failed program was:" >&5
7413 cat conftest.$ac_ext >&5
7415 eval "ac_cv_header_$ac_safe=no"
7419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7420 echo "$ac_t""yes" 1>&6
7421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7422 cat >> confdefs.h <<EOF
7423 #define $ac_tr_hdr 1
7427 echo "$ac_t""no" 1>&6
7432 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7433 echo "configure:7434: checking for dbopen" >&5
7434 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7437 cat > conftest.$ac_ext <<EOF
7438 #line 7439 "configure"
7439 #include "confdefs.h"
7440 /* System header to define __stub macros and hopefully few prototypes,
7441 which can conflict with char dbopen(); below. */
7443 /* Override any gcc2 internal prototype to avoid an error. */
7444 /* We use char because int might match the return type of a gcc2
7445 builtin and then its argument prototype would still apply. */
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7463 eval "ac_cv_func_dbopen=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7468 eval "ac_cv_func_dbopen=no"
7473 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7474 echo "$ac_t""yes" 1>&6
7477 echo "$ac_t""no" 1>&6
7479 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7480 echo "configure:7481: checking for dbopen in -ldb1" >&5
7481 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 ac_save_LIBS="$LIBS"
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 eval "ac_cv_lib_$ac_lib_var=yes"
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 eval "ac_cv_lib_$ac_lib_var=no"
7509 LIBS="$ac_save_LIBS"
7512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7513 echo "$ac_t""yes" 1>&6
7516 echo "$ac_t""no" 1>&6
7518 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7519 echo "configure:7520: checking for dbopen in -ldb" >&5
7520 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 ac_save_LIBS="$LIBS"
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* Override any gcc2 internal prototype to avoid an error. */
7530 /* We use char because int might match the return type of a gcc2
7531 builtin and then its argument prototype would still apply. */
7538 if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7540 eval "ac_cv_lib_$ac_lib_var=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.$ac_ext >&5
7545 eval "ac_cv_lib_$ac_lib_var=no"
7548 LIBS="$ac_save_LIBS"
7551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7556 echo "$ac_t""no" 1>&6
7569 echo "$ac_t""$ol_cv_lib_db" 1>&6
7572 for ac_hdr in db_185.h
7574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7576 echo "configure:7577: checking for $ac_hdr" >&5
7577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7586 { (eval echo configure:7587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7588 if test -z "$ac_err"; then
7590 eval "ac_cv_header_$ac_safe=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 eval "ac_cv_header_$ac_safe=no"
7600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7601 echo "$ac_t""yes" 1>&6
7602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7603 cat >> confdefs.h <<EOF
7604 #define $ac_tr_hdr 1
7608 echo "$ac_t""no" 1>&6
7612 if test "$ol_cv_header_db2" = yes ; then
7614 ol_cv_header_db=$ac_cv_header_db_185_h
7616 ol_cv_header_db=$ac_cv_header_db_h
7621 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7622 echo "configure:7623: checking for Berkeley DB" >&5
7623 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7627 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7628 ol_cv_berkeley_db=no
7630 ol_cv_berkeley_db=yes
7635 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7636 if test $ol_cv_berkeley_db = yes ; then
7637 cat >> confdefs.h <<\EOF
7638 #define HAVE_BERKELEY_DB 1
7644 if test $ol_cv_berkeley_db = yes ; then
7648 if test $ol_with_ldbm_type = hash ; then
7649 cat >> confdefs.h <<\EOF
7650 #define LDBM_USE_DBHASH 1
7654 cat >> confdefs.h <<\EOF
7655 #define LDBM_USE_DBBTREE 1
7660 if test $ol_cv_lib_db != yes ; then
7661 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7666 if test $ol_with_ldbm_api = manual ; then
7669 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7671 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_hdr" >&5
7676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7685 { (eval echo configure:7686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7687 if test -z "$ac_err"; then
7689 eval "ac_cv_header_$ac_safe=yes"
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 eval "ac_cv_header_$ac_safe=no"
7699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7702 cat >> confdefs.h <<EOF
7703 #define $ac_tr_hdr 1
7707 echo "$ac_t""no" 1>&6
7713 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7714 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7715 ol_with_ldbm_api=none
7718 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7719 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7720 echo "configure:7721: checking for MDBM library" >&5
7721 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7725 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7726 echo "configure:7727: checking for mdbm_set_chain" >&5
7727 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 /* System header to define __stub macros and hopefully few prototypes,
7734 which can conflict with char mdbm_set_chain(); below. */
7736 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7739 char mdbm_set_chain();
7743 /* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7746 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7756 eval "ac_cv_func_mdbm_set_chain=yes"
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7761 eval "ac_cv_func_mdbm_set_chain=no"
7766 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7767 echo "$ac_t""yes" 1>&6
7770 echo "$ac_t""no" 1>&6
7772 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7773 echo "configure:7774: checking for mdbm_set_chain in -lmdbm" >&5
7774 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_save_LIBS="$LIBS"
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char mdbm_set_chain();
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7799 eval "ac_cv_lib_$ac_lib_var=no"
7802 LIBS="$ac_save_LIBS"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 ol_cv_lib_mdbm=-lmdbm
7809 echo "$ac_t""no" 1>&6
7820 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7823 for ac_hdr in mdbm.h
7825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_hdr" >&5
7828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7841 eval "ac_cv_header_$ac_safe=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_header_$ac_safe=no"
7851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7852 echo "$ac_t""yes" 1>&6
7853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7854 cat >> confdefs.h <<EOF
7855 #define $ac_tr_hdr 1
7859 echo "$ac_t""no" 1>&6
7863 echo $ac_n "checking for db""... $ac_c" 1>&6
7864 echo "configure:7865: checking for db" >&5
7865 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7869 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7877 echo "$ac_t""$ol_cv_mdbm" 1>&6
7878 if test $ol_cv_mdbm = yes ; then
7879 cat >> confdefs.h <<\EOF
7886 if test $ol_cv_mdbm = yes ; then
7888 ol_with_ldbm_api=mdbm
7889 if test $ol_cv_lib_mdbm != yes ; then
7890 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7895 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7896 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7897 echo "configure:7898: checking for GDBM library" >&5
7898 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7902 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7903 echo "configure:7904: checking for gdbm_open" >&5
7904 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7907 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char gdbm_open(); below. */
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7920 /* The GNU C library defines this for functions which it implements
7921 to always fail with ENOSYS. Some functions are actually named
7922 something starting with __ and the normal name is an alias. */
7923 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 eval "ac_cv_func_gdbm_open=yes"
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7938 eval "ac_cv_func_gdbm_open=no"
7943 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7944 echo "$ac_t""yes" 1>&6
7947 echo "$ac_t""no" 1>&6
7949 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7950 echo "configure:7951: checking for gdbm_open in -lgdbm" >&5
7951 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 ac_save_LIBS="$LIBS"
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 eval "ac_cv_lib_$ac_lib_var=yes"
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 eval "ac_cv_lib_$ac_lib_var=no"
7979 LIBS="$ac_save_LIBS"
7982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7984 ol_cv_lib_gdbm=-lgdbm
7986 echo "$ac_t""no" 1>&6
7997 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8000 for ac_hdr in gdbm.h
8002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_hdr" >&5
8005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8014 { (eval echo configure:8015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8016 if test -z "$ac_err"; then
8018 eval "ac_cv_header_$ac_safe=yes"
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 eval "ac_cv_header_$ac_safe=no"
8028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8029 echo "$ac_t""yes" 1>&6
8030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8031 cat >> confdefs.h <<EOF
8032 #define $ac_tr_hdr 1
8036 echo "$ac_t""no" 1>&6
8040 echo $ac_n "checking for db""... $ac_c" 1>&6
8041 echo "configure:8042: checking for db" >&5
8042 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8046 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8054 echo "$ac_t""$ol_cv_gdbm" 1>&6
8055 if test $ol_cv_gdbm = yes ; then
8056 cat >> confdefs.h <<\EOF
8063 if test $ol_cv_gdbm = yes ; then
8065 ol_with_ldbm_api=gdbm
8067 if test $ol_cv_lib_gdbm != yes ; then
8068 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8073 if test $ol_with_ldbm_api = auto ; then
8074 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8075 elif test $ol_with_ldbm_api = ndbm ; then
8076 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8077 echo "configure:8078: checking for NDBM library" >&5
8078 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8082 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8083 echo "configure:8084: checking for dbm_open" >&5
8084 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8085 echo $ac_n "(cached) $ac_c" 1>&6
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char dbm_open(); below. */
8093 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8100 /* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
8103 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8113 eval "ac_cv_func_dbm_open=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 eval "ac_cv_func_dbm_open=no"
8123 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8124 echo "$ac_t""yes" 1>&6
8127 echo "$ac_t""no" 1>&6
8129 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8130 echo "configure:8131: checking for dbm_open in -lndbm" >&5
8131 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8133 echo $ac_n "(cached) $ac_c" 1>&6
8135 ac_save_LIBS="$LIBS"
8137 cat > conftest.$ac_ext <<EOF
8138 #line 8139 "configure"
8139 #include "confdefs.h"
8140 /* Override any gcc2 internal prototype to avoid an error. */
8141 /* We use char because int might match the return type of a gcc2
8142 builtin and then its argument prototype would still apply. */
8149 if { (eval echo configure:8150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8151 eval "ac_cv_lib_$ac_lib_var=yes"
8153 echo "configure: failed program was:" >&5
8154 cat conftest.$ac_ext >&5
8156 eval "ac_cv_lib_$ac_lib_var=no"
8159 LIBS="$ac_save_LIBS"
8162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8163 echo "$ac_t""yes" 1>&6
8164 ol_cv_lib_ndbm=-lndbm
8166 echo "$ac_t""no" 1>&6
8168 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8169 echo "configure:8170: checking for dbm_open in -ldbm" >&5
8170 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 ac_save_LIBS="$LIBS"
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8188 if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8190 eval "ac_cv_lib_$ac_lib_var=yes"
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8195 eval "ac_cv_lib_$ac_lib_var=no"
8198 LIBS="$ac_save_LIBS"
8201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8203 ol_cv_lib_ndbm=-ldbm
8205 echo "$ac_t""no" 1>&6
8218 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8221 for ac_hdr in ndbm.h
8223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8225 echo "configure:8226: checking for $ac_hdr" >&5
8226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8239 eval "ac_cv_header_$ac_safe=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_header_$ac_safe=no"
8249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8252 cat >> confdefs.h <<EOF
8253 #define $ac_tr_hdr 1
8257 echo "$ac_t""no" 1>&6
8261 echo $ac_n "checking for db""... $ac_c" 1>&6
8262 echo "configure:8263: checking for db" >&5
8263 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8267 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8275 echo "$ac_t""$ol_cv_ndbm" 1>&6
8276 if test $ol_cv_ndbm = yes ; then
8277 cat >> confdefs.h <<\EOF
8284 if test $ol_cv_ndbm = yes ; then
8286 ol_with_ldbm_api=ndbm
8288 if test $ol_cv_lib_ndbm != yes ; then
8289 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8294 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8295 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8296 if test $ol_enable_ldbm = yes ; then
8297 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8300 echo "configure: warning: disabling LDBM" 1>&2
8304 if test $ol_enable_wrappers != no ; then
8305 for ac_hdr in tcpd.h
8307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_hdr" >&5
8310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8319 { (eval echo configure:8320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8321 if test -z "$ac_err"; then
8323 eval "ac_cv_header_$ac_safe=yes"
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 eval "ac_cv_header_$ac_safe=no"
8333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8334 echo "$ac_t""yes" 1>&6
8335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8336 cat >> confdefs.h <<EOF
8337 #define $ac_tr_hdr 1
8341 echo "$ac_t""no" 1>&6
8346 if test $ac_cv_header_tcpd_h != yes ; then
8349 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8350 echo "configure:8351: checking for main in -lwrap" >&5
8351 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8355 ac_save_LIBS="$LIBS"
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8365 if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8367 eval "ac_cv_lib_$ac_lib_var=yes"
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8372 eval "ac_cv_lib_$ac_lib_var=no"
8375 LIBS="$ac_save_LIBS"
8378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8379 echo "$ac_t""yes" 1>&6
8382 echo "$ac_t""no" 1>&6
8388 if test $have_wrappers = yes ; then
8389 cat >> confdefs.h <<\EOF
8393 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8395 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8396 echo "configure:8397: checking for main in -lnsl" >&5
8397 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8399 echo $ac_n "(cached) $ac_c" 1>&6
8401 ac_save_LIBS="$LIBS"
8403 cat > conftest.$ac_ext <<EOF
8404 #line 8405 "configure"
8405 #include "confdefs.h"
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8413 eval "ac_cv_lib_$ac_lib_var=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_lib_$ac_lib_var=no"
8421 LIBS="$ac_save_LIBS"
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8425 echo "$ac_t""yes" 1>&6
8426 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8428 cat >> confdefs.h <<EOF
8429 #define $ac_tr_lib 1
8435 echo "$ac_t""no" 1>&6
8439 echo "configure: warning: could not find -lwrap" 1>&2
8440 if test $ol_enable_wrappers = yes ; then
8441 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8444 echo "configure: warning: disabling wrappers support" 1>&2
8445 ol_enable_wrappers=no
8449 if test $ol_enable_syslog != no ; then
8450 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8451 echo "configure:8452: checking for openlog" >&5
8452 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8453 echo $ac_n "(cached) $ac_c" 1>&6
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* System header to define __stub macros and hopefully few prototypes,
8459 which can conflict with char openlog(); below. */
8461 /* Override any gcc2 internal prototype to avoid an error. */
8462 /* We use char because int might match the return type of a gcc2
8463 builtin and then its argument prototype would still apply. */
8468 /* The GNU C library defines this for functions which it implements
8469 to always fail with ENOSYS. Some functions are actually named
8470 something starting with __ and the normal name is an alias. */
8471 #if defined (__stub_openlog) || defined (__stub___openlog)
8479 if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8481 eval "ac_cv_func_openlog=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_func_openlog=no"
8491 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8492 echo "$ac_t""yes" 1>&6
8495 echo "$ac_t""no" 1>&6
8498 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8499 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8501 ol_enable_syslog=$ac_cv_func_openlog
8504 if test $ol_enable_dmalloc != no ; then
8505 for ac_hdr in dmalloc.h
8507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8509 echo "configure:8510: checking for $ac_hdr" >&5
8510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8511 echo $ac_n "(cached) $ac_c" 1>&6
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8519 { (eval echo configure:8520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8521 if test -z "$ac_err"; then
8523 eval "ac_cv_header_$ac_safe=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_header_$ac_safe=no"
8533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8536 cat >> confdefs.h <<EOF
8537 #define $ac_tr_hdr 1
8541 echo "$ac_t""no" 1>&6
8545 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8546 echo "configure:8547: checking for dmalloc_shutdown in -ldmalloc" >&5
8547 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 ac_save_LIBS="$LIBS"
8552 LIBS="-ldmalloc $LIBS"
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8559 char dmalloc_shutdown();
8565 if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8567 eval "ac_cv_lib_$ac_lib_var=yes"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 eval "ac_cv_lib_$ac_lib_var=no"
8575 LIBS="$ac_save_LIBS"
8578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8582 cat >> confdefs.h <<EOF
8583 #define $ac_tr_lib 1
8586 LIBS="-ldmalloc $LIBS"
8589 echo "$ac_t""no" 1>&6
8594 if test $ol_enable_tcl != no ; then
8597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8599 echo "configure:8600: checking for $ac_hdr" >&5
8600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8609 { (eval echo configure:8610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8611 if test -z "$ac_err"; then
8613 eval "ac_cv_header_$ac_safe=yes"
8616 echo "configure: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8619 eval "ac_cv_header_$ac_safe=no"
8623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8624 echo "$ac_t""yes" 1>&6
8625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8626 cat >> confdefs.h <<EOF
8627 #define $ac_tr_hdr 1
8631 echo "$ac_t""no" 1>&6
8636 if test $ac_cv_header_tcl_h != yes ; then
8639 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8640 echo "configure:8641: checking for main in -ltcl" >&5
8641 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8645 ac_save_LIBS="$LIBS"
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 eval "ac_cv_lib_$ac_lib_var=yes"
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8662 eval "ac_cv_lib_$ac_lib_var=no"
8665 LIBS="$ac_save_LIBS"
8668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6
8670 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8672 echo "$ac_t""no" 1>&6
8677 if test $have_tcl != yes; then
8678 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8679 echo "configure:8680: checking for main in -ltcl7.6" >&5
8680 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8684 ac_save_LIBS="$LIBS"
8685 LIBS="-ltcl7.6 $LIBS"
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8694 if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8696 eval "ac_cv_lib_$ac_lib_var=yes"
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 eval "ac_cv_lib_$ac_lib_var=no"
8704 LIBS="$ac_save_LIBS"
8707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8709 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8711 echo "$ac_t""no" 1>&6
8717 if test $have_tcl != yes; then
8718 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8719 echo "configure:8720: checking for main in -ltcl8.0" >&5
8720 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 ac_save_LIBS="$LIBS"
8725 LIBS="-ltcl8.0 $LIBS"
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8734 if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8736 eval "ac_cv_lib_$ac_lib_var=yes"
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8741 eval "ac_cv_lib_$ac_lib_var=no"
8744 LIBS="$ac_save_LIBS"
8747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8748 echo "$ac_t""yes" 1>&6
8749 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8751 echo "$ac_t""no" 1>&6
8758 if test $have_tcl != yes ; then
8759 echo "configure: warning: could not find -ltcl" 1>&2
8760 if test $ol_enable_tcl = yes ; then
8761 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8768 # ud needs termcap (should insert check here)
8770 for ac_hdr in termcap.h ncurses.h
8772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8774 echo "configure:8775: checking for $ac_hdr" >&5
8775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8784 { (eval echo configure:8785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8786 if test -z "$ac_err"; then
8788 eval "ac_cv_header_$ac_safe=yes"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 eval "ac_cv_header_$ac_safe=no"
8798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8799 echo "$ac_t""yes" 1>&6
8800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8801 cat >> confdefs.h <<EOF
8802 #define $ac_tr_hdr 1
8806 echo "$ac_t""no" 1>&6
8811 if test $ol_link_termcap = no ; then
8812 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8813 echo "configure:8814: checking for tputs in -ltermcap" >&5
8814 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8818 ac_save_LIBS="$LIBS"
8819 LIBS="-ltermcap $LIBS"
8820 cat > conftest.$ac_ext <<EOF
8821 #line 8822 "configure"
8822 #include "confdefs.h"
8823 /* Override any gcc2 internal prototype to avoid an error. */
8824 /* We use char because int might match the return type of a gcc2
8825 builtin and then its argument prototype would still apply. */
8832 if { (eval echo configure:8833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8834 eval "ac_cv_lib_$ac_lib_var=yes"
8836 echo "configure: failed program was:" >&5
8837 cat conftest.$ac_ext >&5
8839 eval "ac_cv_lib_$ac_lib_var=no"
8842 LIBS="$ac_save_LIBS"
8845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8846 echo "$ac_t""yes" 1>&6
8849 echo "$ac_t""no" 1>&6
8853 if test $have_termcap = yes ; then
8854 cat >> confdefs.h <<\EOF
8855 #define HAVE_TERMCAP 1
8859 TERMCAP_LIBS=-ltermcap
8863 if test $ol_link_termcap = no ; then
8864 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8865 echo "configure:8866: checking for initscr in -lncurses" >&5
8866 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8868 echo $ac_n "(cached) $ac_c" 1>&6
8870 ac_save_LIBS="$LIBS"
8871 LIBS="-lncurses $LIBS"
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 /* Override any gcc2 internal prototype to avoid an error. */
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8886 eval "ac_cv_lib_$ac_lib_var=yes"
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 eval "ac_cv_lib_$ac_lib_var=no"
8894 LIBS="$ac_save_LIBS"
8897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8898 echo "$ac_t""yes" 1>&6
8901 echo "$ac_t""no" 1>&6
8905 if test $have_ncurses = yes ; then
8906 cat >> confdefs.h <<\EOF
8907 #define HAVE_NCURSES 1
8911 TERMCAP_LIBS=-lncurses
8915 if test $ol_link_termcap = no ; then
8916 cat >> confdefs.h <<\EOF
8917 #define NO_TERMCAP 1
8924 if test $ol_with_readline != no ; then
8925 for ac_hdr in readline/readline.h readline/history.h
8927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8929 echo "configure:8930: checking for $ac_hdr" >&5
8930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8939 { (eval echo configure:8940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8941 if test -z "$ac_err"; then
8943 eval "ac_cv_header_$ac_safe=yes"
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8949 eval "ac_cv_header_$ac_safe=no"
8953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8956 cat >> confdefs.h <<EOF
8957 #define $ac_tr_hdr 1
8961 echo "$ac_t""no" 1>&6
8966 if test $ac_cv_header_readline_readline_h = yes ; then
8968 LIBS="$TERMCAP_LIBS $LIBS"
8969 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8970 echo "configure:8971: checking for readline in -lreadline" >&5
8971 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8975 ac_save_LIBS="$LIBS"
8976 LIBS="-lreadline $LIBS"
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 /* Override any gcc2 internal prototype to avoid an error. */
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 eval "ac_cv_lib_$ac_lib_var=yes"
8993 echo "configure: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8996 eval "ac_cv_lib_$ac_lib_var=no"
8999 LIBS="$ac_save_LIBS"
9002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9006 echo "$ac_t""no" 1>&6
9012 if test $have_readline = yes ; then
9013 ol_with_readline=found
9014 ol_link_readline=yes
9016 READLINE_LIBS="-lreadline"
9021 if test $ol_link_readline = yes ; then
9022 cat >> confdefs.h <<\EOF
9023 #define HAVE_READLINE 1
9029 # FreeBSD (and others) have crypt(3) in -lcrypt
9030 if test $ol_enable_crypt != no ; then
9031 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9032 echo "configure:9033: checking for crypt" >&5
9033 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 /* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char crypt(); below. */
9042 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9049 /* The GNU C library defines this for functions which it implements
9050 to always fail with ENOSYS. Some functions are actually named
9051 something starting with __ and the normal name is an alias. */
9052 #if defined (__stub_crypt) || defined (__stub___crypt)
9060 if { (eval echo configure:9061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9062 eval "ac_cv_func_crypt=yes"
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9067 eval "ac_cv_func_crypt=no"
9072 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9073 echo "$ac_t""yes" 1>&6
9076 echo "$ac_t""no" 1>&6
9078 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9079 echo "configure:9080: checking for crypt in -lcrypt" >&5
9080 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9084 ac_save_LIBS="$LIBS"
9085 LIBS="-lcrypt $LIBS"
9086 cat > conftest.$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9098 if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9100 eval "ac_cv_lib_$ac_lib_var=yes"
9102 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9105 eval "ac_cv_lib_$ac_lib_var=no"
9108 LIBS="$ac_save_LIBS"
9111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9116 echo "$ac_t""no" 1>&6
9123 if test $have_crypt = yes ; then
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_CRYPT 1
9129 echo "configure: warning: could not find crypt" 1>&2
9130 if test $ol_enable_crypt = yes ; then
9131 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9134 echo "configure: warning: disabling crypt support" 1>&2
9139 # FreeBSD (and others) have setproctitle(3) in -lutil
9140 if test $ol_enable_proctitle != no ; then
9141 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9142 echo "configure:9143: checking for setproctitle" >&5
9143 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9149 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char setproctitle(); below. */
9152 /* Override any gcc2 internal prototype to avoid an error. */
9153 /* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155 char setproctitle();
9159 /* The GNU C library defines this for functions which it implements
9160 to always fail with ENOSYS. Some functions are actually named
9161 something starting with __ and the normal name is an alias. */
9162 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9172 eval "ac_cv_func_setproctitle=yes"
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9177 eval "ac_cv_func_setproctitle=no"
9182 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9183 echo "$ac_t""yes" 1>&6
9184 have_setproctitle=yes
9186 echo "$ac_t""no" 1>&6
9188 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9189 echo "configure:9190: checking for setproctitle in -lutil" >&5
9190 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9194 ac_save_LIBS="$LIBS"
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9199 /* Override any gcc2 internal prototype to avoid an error. */
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9202 char setproctitle();
9208 if { (eval echo configure:9209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9210 eval "ac_cv_lib_$ac_lib_var=yes"
9212 echo "configure: failed program was:" >&5
9213 cat conftest.$ac_ext >&5
9215 eval "ac_cv_lib_$ac_lib_var=no"
9218 LIBS="$ac_save_LIBS"
9221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9222 echo "$ac_t""yes" 1>&6
9223 have_setproctitle=yes
9224 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9226 echo "$ac_t""no" 1>&6
9227 have_setproctitle=no
9228 LIBOBJS="$LIBOBJS setproctitle.o"
9234 if test $have_setproctitle = yes ; then
9235 cat >> confdefs.h <<\EOF
9236 #define HAVE_SETPROCTITLE 1
9243 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9244 echo "configure:9245: checking for EBCDIC" >&5
9245 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9254 #include <__ASCII__/generate_error.h>
9258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9259 { (eval echo configure:9260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9261 if test -z "$ac_err"; then
9263 ol_cv_cpp_ebcdic=yes
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9274 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9275 if test $ol_cv_cpp_ebcdic = yes ; then
9276 cat >> confdefs.h <<\EOF
9277 #define HAVE_EBCDIC 1
9282 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9283 echo "configure:9284: checking for ANSI C header files" >&5
9284 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9296 { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9298 if test -z "$ac_err"; then
9300 ol_cv_header_stdc=yes
9303 echo "configure: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9306 ol_cv_header_stdc=no
9310 if test $ol_cv_header_stdc = yes; then
9311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9318 egrep "memchr" >/dev/null 2>&1; then
9322 ol_cv_header_stdc=no
9328 if test $ol_cv_header_stdc = yes; then
9329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9336 egrep "free" >/dev/null 2>&1; then
9340 ol_cv_header_stdc=no
9346 if test $ol_cv_header_stdc = yes; then
9347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9348 if test "$cross_compiling" = yes; then
9351 cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9359 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9360 || ('j' <= (c) && (c) <= 'r') \
9361 || ('s' <= (c) && (c) <= 'z'))
9362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9365 int main () { int i; for (i = 0; i < 256; i++)
9366 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 ol_cv_header_stdc=no
9385 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9386 if test $ol_cv_header_stdc = yes; then
9387 cat >> confdefs.h <<\EOF
9388 #define STDC_HEADERS 1
9392 ac_cv_header_stdc=disable
9395 if test $ol_cv_header_stdc != yes; then
9396 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9403 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9404 echo "configure:9405: checking for $ac_hdr that defines DIR" >&5
9405 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9408 cat > conftest.$ac_ext <<EOF
9409 #line 9410 "configure"
9410 #include "confdefs.h"
9411 #include <sys/types.h>
9417 if { (eval echo configure:9418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9419 eval "ac_cv_header_dirent_$ac_safe=yes"
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 eval "ac_cv_header_dirent_$ac_safe=no"
9428 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9431 cat >> confdefs.h <<EOF
9432 #define $ac_tr_hdr 1
9434 ac_header_dirent=$ac_hdr; break
9436 echo "$ac_t""no" 1>&6
9439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9440 if test $ac_header_dirent = dirent.h; then
9441 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9442 echo "configure:9443: checking for opendir in -ldir" >&5
9443 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9447 ac_save_LIBS="$LIBS"
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9452 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9461 if { (eval echo configure:9462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9463 eval "ac_cv_lib_$ac_lib_var=yes"
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9468 eval "ac_cv_lib_$ac_lib_var=no"
9471 LIBS="$ac_save_LIBS"
9474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9475 echo "$ac_t""yes" 1>&6
9478 echo "$ac_t""no" 1>&6
9482 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9483 echo "configure:9484: checking for opendir in -lx" >&5
9484 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9486 echo $ac_n "(cached) $ac_c" 1>&6
9488 ac_save_LIBS="$LIBS"
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 /* Override any gcc2 internal prototype to avoid an error. */
9494 /* We use char because int might match the return type of a gcc2
9495 builtin and then its argument prototype would still apply. */
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9504 eval "ac_cv_lib_$ac_lib_var=yes"
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9509 eval "ac_cv_lib_$ac_lib_var=no"
9512 LIBS="$ac_save_LIBS"
9515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9519 echo "$ac_t""no" 1>&6
9524 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9525 echo "configure:9526: checking for sys/wait.h that is POSIX.1 compatible" >&5
9526 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 #include <sys/types.h>
9533 #include <sys/wait.h>
9535 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9538 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9543 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9546 if { (eval echo configure:9547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9548 ac_cv_header_sys_wait_h=yes
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 ac_cv_header_sys_wait_h=no
9558 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9559 if test $ac_cv_header_sys_wait_h = yes; then
9560 cat >> confdefs.h <<\EOF
9561 #define HAVE_SYS_WAIT_H 1
9566 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9567 echo "configure:9568: checking POSIX termios" >&5
9568 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9569 echo $ac_n "(cached) $ac_c" 1>&6
9571 cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure"
9573 #include "confdefs.h"
9574 #include <sys/types.h>
9576 #include <termios.h>
9578 /* SunOS 4.0.3 has termios.h but not the library calls. */
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9584 am_cv_sys_posix_termios=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9589 am_cv_sys_posix_termios=no
9594 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9597 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9598 echo "configure:9599: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9599 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9600 echo $ac_n "(cached) $ac_c" 1>&6
9602 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9604 gwinsz_in_termios_h=no
9605 if test $am_cv_sys_posix_termios = yes; then
9606 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 #include <sys/types.h>
9610 # include <termios.h>
9616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9617 egrep "yes" >/dev/null 2>&1; then
9619 gwinsz_in_termios_h=yes
9625 if test $gwinsz_in_termios_h = no; then
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <sys/types.h>
9630 # include <sys/ioctl.h>
9636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9637 egrep "yes" >/dev/null 2>&1; then
9639 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9647 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9648 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9649 cat >> confdefs.h <<\EOF
9650 #define GWINSZ_IN_SYS_IOCTL 1
9655 if test $am_cv_sys_posix_termios = yes ; then
9656 cat >> confdefs.h <<\EOF
9657 #define HAVE_POSIX_TERMIOS 1
9703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9705 echo "configure:9706: checking for $ac_hdr" >&5
9706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9715 { (eval echo configure:9716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9717 if test -z "$ac_err"; then
9719 eval "ac_cv_header_$ac_safe=yes"
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 eval "ac_cv_header_$ac_safe=no"
9729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9730 echo "$ac_t""yes" 1>&6
9731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9732 cat >> confdefs.h <<EOF
9733 #define $ac_tr_hdr 1
9737 echo "$ac_t""no" 1>&6
9742 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9743 echo "configure:9744: checking for uid_t in sys/types.h" >&5
9744 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750 #include <sys/types.h>
9752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9753 egrep "uid_t" >/dev/null 2>&1; then
9755 ac_cv_type_uid_t=yes
9764 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9765 if test $ac_cv_type_uid_t = no; then
9766 cat >> confdefs.h <<\EOF
9770 cat >> confdefs.h <<\EOF
9776 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9777 echo "configure:9778: checking type of array argument to getgroups" >&5
9778 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9781 if test "$cross_compiling" = yes; then
9782 ac_cv_type_getgroups=cross
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9788 /* Thanks to Mike Rendell for this test. */
9789 #include <sys/types.h>
9792 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9797 union { gid_t gval; long lval; } val;
9800 for (i = 0; i < NGID; i++)
9801 gidset[i] = val.gval;
9802 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9804 /* Exit non-zero if getgroups seems to require an array of ints. This
9805 happens when gid_t is short but getgroups modifies an array of ints. */
9806 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9812 ac_cv_type_getgroups=gid_t
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 ac_cv_type_getgroups=int
9822 if test $ac_cv_type_getgroups = cross; then
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9829 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9831 ac_cv_type_getgroups=gid_t
9834 ac_cv_type_getgroups=int
9841 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9842 cat >> confdefs.h <<EOF
9843 #define GETGROUPS_T $ac_cv_type_getgroups
9846 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9847 echo "configure:9848: checking for ANSI C header files" >&5
9848 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9851 cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9860 { (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9862 if test -z "$ac_err"; then
9864 ac_cv_header_stdc=yes
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9870 ac_cv_header_stdc=no
9874 if test $ac_cv_header_stdc = yes; then
9875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9882 egrep "memchr" >/dev/null 2>&1; then
9886 ac_cv_header_stdc=no
9892 if test $ac_cv_header_stdc = yes; then
9893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9894 cat > conftest.$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900 egrep "free" >/dev/null 2>&1; then
9904 ac_cv_header_stdc=no
9910 if test $ac_cv_header_stdc = yes; then
9911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9912 if test "$cross_compiling" = yes; then
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9919 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9920 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9922 int main () { int i; for (i = 0; i < 256; i++)
9923 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9927 if { (eval echo configure:9928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9931 echo "configure: failed program was:" >&5
9932 cat conftest.$ac_ext >&5
9934 ac_cv_header_stdc=no
9942 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9943 if test $ac_cv_header_stdc = yes; then
9944 cat >> confdefs.h <<\EOF
9945 #define STDC_HEADERS 1
9950 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9951 echo "configure:9952: checking for mode_t" >&5
9952 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9965 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9967 ac_cv_type_mode_t=yes
9970 ac_cv_type_mode_t=no
9975 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9976 if test $ac_cv_type_mode_t = no; then
9977 cat >> confdefs.h <<\EOF
9983 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9984 echo "configure:9985: checking for off_t" >&5
9985 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 #include <sys/types.h>
9997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9998 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10000 ac_cv_type_off_t=yes
10003 ac_cv_type_off_t=no
10008 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10009 if test $ac_cv_type_off_t = no; then
10010 cat >> confdefs.h <<\EOF
10016 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10017 echo "configure:10018: checking for pid_t" >&5
10018 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10021 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure"
10023 #include "confdefs.h"
10024 #include <sys/types.h>
10026 #include <stdlib.h>
10027 #include <stddef.h>
10030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10031 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10033 ac_cv_type_pid_t=yes
10036 ac_cv_type_pid_t=no
10041 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10042 if test $ac_cv_type_pid_t = no; then
10043 cat >> confdefs.h <<\EOF
10049 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10050 echo "configure:10051: checking for ptrdiff_t" >&5
10051 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10052 echo $ac_n "(cached) $ac_c" 1>&6
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include <stddef.h>
10062 if { (eval echo configure:10063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10064 am_cv_type_ptrdiff_t=yes
10066 echo "configure: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10069 am_cv_type_ptrdiff_t=no
10074 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10075 if test $am_cv_type_ptrdiff_t = yes; then
10076 cat >> confdefs.h <<\EOF
10077 #define HAVE_PTRDIFF_T 1
10082 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10083 echo "configure:10084: checking return type of signal handlers" >&5
10084 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #include <signal.h>
10096 extern "C" void (*signal (int, void (*)(int)))(int);
10098 void (*signal ()) ();
10105 if { (eval echo configure:10106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10107 ac_cv_type_signal=void
10109 echo "configure: failed program was:" >&5
10110 cat conftest.$ac_ext >&5
10112 ac_cv_type_signal=int
10117 echo "$ac_t""$ac_cv_type_signal" 1>&6
10118 cat >> confdefs.h <<EOF
10119 #define RETSIGTYPE $ac_cv_type_signal
10123 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10124 echo "configure:10125: checking for sig_atomic_t" >&5
10125 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 #include <signal.h>
10133 sig_atomic_t atomic;
10136 if { (eval echo configure:10137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10138 ol_cv_type_sig_atomic_t=yes
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 ol_cv_type_sig_atomic_t=no
10148 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10149 if test $ol_cv_type_sig_atomic_t = no; then
10150 cat >> confdefs.h <<\EOF
10151 #define sig_atomic_t int
10156 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10157 echo "configure:10158: checking for size_t" >&5
10158 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10164 #include <sys/types.h>
10166 #include <stdlib.h>
10167 #include <stddef.h>
10170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10171 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10173 ac_cv_type_size_t=yes
10176 ac_cv_type_size_t=no
10181 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10182 if test $ac_cv_type_size_t = no; then
10183 cat >> confdefs.h <<\EOF
10184 #define size_t unsigned
10189 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10190 echo "configure:10191: checking for st_blksize in struct stat" >&5
10191 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include <sys/types.h>
10198 #include <sys/stat.h>
10200 struct stat s; s.st_blksize;
10203 if { (eval echo configure:10204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 ac_cv_struct_st_blksize=yes
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 ac_cv_struct_st_blksize=no
10215 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10216 if test $ac_cv_struct_st_blksize = yes; then
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_ST_BLKSIZE 1
10223 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10224 echo "configure:10225: checking whether time.h and sys/time.h may both be included" >&5
10225 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 #include <sys/types.h>
10232 #include <sys/time.h>
10238 if { (eval echo configure:10239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10240 ac_cv_header_time=yes
10242 echo "configure: failed program was:" >&5
10243 cat conftest.$ac_ext >&5
10245 ac_cv_header_time=no
10250 echo "$ac_t""$ac_cv_header_time" 1>&6
10251 if test $ac_cv_header_time = yes; then
10252 cat >> confdefs.h <<\EOF
10253 #define TIME_WITH_SYS_TIME 1
10258 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10259 echo "configure:10260: checking whether struct tm is in sys/time.h or time.h" >&5
10260 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 #include <sys/types.h>
10269 struct tm *tp; tp->tm_sec;
10272 if { (eval echo configure:10273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10274 ac_cv_struct_tm=time.h
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10279 ac_cv_struct_tm=sys/time.h
10284 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10285 if test $ac_cv_struct_tm = sys/time.h; then
10286 cat >> confdefs.h <<\EOF
10287 #define TM_IN_SYS_TIME 1
10292 # test for pw_gecos in struct passwd
10293 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10294 echo "configure:10295: checking struct passwd for pw_gecos" >&5
10295 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10301 "configure"
10301 #include "confdefs.h"
10306 pwd.pw_gecos = pwd.pw_name;
10310 if { (eval echo configure:10311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10312 ol_cv_struct_passwd_pw_gecos=yes
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 ol_cv_struct_passwd_pw_gecos=no
10322 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10323 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10324 cat >> confdefs.h <<\EOF
10325 #define HAVE_PW_GECOS 1
10332 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10333 echo "configure:10334: checking if toupper() requires islower()" >&5
10334 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 if test "$cross_compiling" = yes; then
10339 ol_cv_c_upper_lower=safe
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10348 if ('C' == toupper('C'))
10354 if { (eval echo configure:10355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10356 ol_cv_c_upper_lower=no
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10361 ol_cv_c_upper_lower=yes
10368 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10369 if test $ol_cv_c_upper_lower != no ; then
10370 cat >> confdefs.h <<\EOF
10371 #define C_UPPER_LOWER 1
10376 echo $ac_n "checking for working const""... $ac_c" 1>&6
10377 echo "configure:10378: checking for working const" >&5
10378 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10383 "configure"
10383 #include "confdefs.h"
10387 /* Ultrix mips cc rejects this. */
10388 typedef int charset[2]; const charset x;
10389 /* SunOS 4.1.1 cc rejects this. */
10390 char const *const *ccp;
10392 /* NEC SVR4.0.2 mips cc rejects this. */
10393 struct point {int x, y;};
10394 static struct point const zero = {0,0};
10395 /* AIX XL C 1.02.0.0 rejects this.
10396 It does not let you subtract one const X* pointer from another in an arm
10397 of an if-expression whose if-part is not a constant expression */
10398 const char *g = "string";
10399 ccp = &g + (g ? g-g : 0);
10400 /* HPUX 7.0 cc rejects these. */
10403 ccp = (char const *const *) p;
10404 { /* SCO 3.2v4 cc rejects this. */
10406 char const *s = 0 ? (char *) 0 : (char const *) 0;
10410 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10411 int x[] = {25, 17};
10412 const int *foo = &x[0];
10415 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10416 typedef const int *iptr;
10420 { /* AIX XL C 1.02.0.0 rejects this saying
10421 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10422 struct s { int j; const int *ap[3]; };
10423 struct s *b; b->j = 5;
10425 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10426 const int foo = 10;
10431 if { (eval echo configure:10432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10443 echo "$ac_t""$ac_cv_c_const" 1>&6
10444 if test $ac_cv_c_const = no; then
10445 cat >> confdefs.h <<\EOF
10451 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10452 echo "configure:10453: checking if compiler understands volatile" >&5
10453 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10461 volatile int a; int * volatile b = x ? &y : &z;
10462 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10466 if { (eval echo configure:10467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10468 ol_cv_c_volatile=yes
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10473 ol_cv_c_volatile=no
10478 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10479 if test $ol_cv_c_volatile = yes; then
10482 cat >> confdefs.h <<\EOF
10489 if test $cross_compiling = yes ; then
10490 cat >> confdefs.h <<\EOF
10491 #define CROSS_COMPILING 1
10495 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10496 echo "configure:10497: checking whether byte ordering is bigendian" >&5
10497 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10498 echo $ac_n "(cached) $ac_c" 1>&6
10500 ac_cv_c_bigendian=unknown
10501 # See if sys/param.h defines the BYTE_ORDER macro.
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <sys/types.h>
10506 #include <sys/param.h>
10509 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10510 bogus endian macros
10514 if { (eval echo configure:10515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10516 # It does; now see whether it defined to BIG_ENDIAN or not.
10517 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10520 #include <sys/types.h>
10521 #include <sys/param.h>
10524 #if BYTE_ORDER != BIG_ENDIAN
10529 if { (eval echo configure:10530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10531 ac_cv_c_bigendian=yes
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10536 ac_cv_c_bigendian=no
10540 echo "configure: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10544 if test $ac_cv_c_bigendian = unknown; then
10545 if test "$cross_compiling" = yes; then
10546 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10552 /* Are we little or big endian? From Harbison&Steele. */
10556 char c[sizeof (long)];
10559 exit (u.c[sizeof (long) - 1] == 1);
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10564 ac_cv_c_bigendian=no
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 ac_cv_c_bigendian=yes
10577 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10578 if test $ac_cv_c_bigendian = yes; then
10579 cat >> confdefs.h <<\EOF
10580 #define WORDS_BIGENDIAN 1
10585 echo $ac_n "checking size of short""... $ac_c" 1>&6
10586 echo "configure:10587: checking size of short" >&5
10587 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10590 if test "$cross_compiling" = yes; then
10591 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10599 FILE *f=fopen("conftestval", "w");
10601 fprintf(f, "%d\n", sizeof(short));
10605 if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10607 ac_cv_sizeof_short=`cat conftestval`
10609 echo "configure: failed program was:" >&5
10610 cat conftest.$ac_ext >&5
10612 ac_cv_sizeof_short=0
10618 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10619 cat >> confdefs.h <<EOF
10620 #define SIZEOF_SHORT $ac_cv_sizeof_short
10624 echo $ac_n "checking size of int""... $ac_c" 1>&6
10625 echo "configure:10626: checking size of int" >&5
10626 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10629 if test "$cross_compiling" = yes; then
10630 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10638 FILE *f=fopen("conftestval", "w");
10640 fprintf(f, "%d\n", sizeof(int));
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10646 ac_cv_sizeof_int=`cat conftestval`
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10657 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10658 cat >> confdefs.h <<EOF
10659 #define SIZEOF_INT $ac_cv_sizeof_int
10663 echo $ac_n "checking size of long""... $ac_c" 1>&6
10664 echo "configure:10665: checking size of long" >&5
10665 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10668 if test "$cross_compiling" = yes; then
10669 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10673 "configure"
10673 #include "confdefs.h"
10677 FILE *f=fopen("conftestval", "w");
10679 fprintf(f, "%d\n", sizeof(long));
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10685 ac_cv_sizeof_long=`cat conftestval`
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 ac_cv_sizeof_long=0
10696 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10697 cat >> confdefs.h <<EOF
10698 #define SIZEOF_LONG $ac_cv_sizeof_long
10704 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10705 echo "configure:10706: checking for 8-bit clean memcmp" >&5
10706 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10707 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 ac_cv_func_memcmp_clean=no
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10718 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10719 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10723 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10725 ac_cv_func_memcmp_clean=yes
10727 echo "configure: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10730 ac_cv_func_memcmp_clean=no
10737 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10738 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10740 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10741 echo "configure:10742: checking for strftime" >&5
10742 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 /* System header to define __stub macros and hopefully few prototypes,
10749 which can conflict with char strftime(); below. */
10750 #include <assert.h>
10751 /* Override any gcc2 internal prototype to avoid an error. */
10752 /* We use char because int might match the return type of a gcc2
10753 builtin and then its argument prototype would still apply. */
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined (__stub_strftime) || defined (__stub___strftime)
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10771 eval "ac_cv_func_strftime=yes"
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 eval "ac_cv_func_strftime=no"
10781 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 cat >> confdefs.h <<\EOF
10784 #define HAVE_STRFTIME 1
10788 echo "$ac_t""no" 1>&6
10789 # strftime is in -lintl on SCO UNIX.
10790 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10791 echo "configure:10792: checking for strftime in -lintl" >&5
10792 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10796 ac_save_LIBS="$LIBS"
10797 LIBS="-lintl $LIBS"
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 /* Override any gcc2 internal prototype to avoid an error. */
10802 /* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */
10810 if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10812 eval "ac_cv_lib_$ac_lib_var=yes"
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10817 eval "ac_cv_lib_$ac_lib_var=no"
10820 LIBS="$ac_save_LIBS"
10823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10824 echo "$ac_t""yes" 1>&6
10825 cat >> confdefs.h <<\EOF
10826 #define HAVE_STRFTIME 1
10829 LIBS="-lintl $LIBS"
10831 echo "$ac_t""no" 1>&6
10837 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10838 echo "configure:10839: checking for vprintf" >&5
10839 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10840 echo $ac_n "(cached) $ac_c" 1>&6
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10845 /* System header to define __stub macros and hopefully few prototypes,
10846 which can conflict with char vprintf(); below. */
10847 #include <assert.h>
10848 /* Override any gcc2 internal prototype to avoid an error. */
10849 /* We use char because int might match the return type of a gcc2
10850 builtin and then its argument prototype would still apply. */
10855 /* The GNU C library defines this for functions which it implements
10856 to always fail with ENOSYS. Some functions are actually named
10857 something starting with __ and the normal name is an alias. */
10858 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10866 if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10868 eval "ac_cv_func_vprintf=yes"
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10873 eval "ac_cv_func_vprintf=no"
10878 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10879 echo "$ac_t""yes" 1>&6
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_VPRINTF 1
10885 echo "$ac_t""no" 1>&6
10888 if test "$ac_cv_func_vprintf" != yes; then
10889 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10890 echo "configure:10891: checking for _doprnt" >&5
10891 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10897 /* System header to define __stub macros and hopefully few prototypes,
10898 which can conflict with char _doprnt(); below. */
10899 #include <assert.h>
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10907 /* The GNU C library defines this for functions which it implements
10908 to always fail with ENOSYS. Some functions are actually named
10909 something starting with __ and the normal name is an alias. */
10910 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10918 if { (eval echo configure:10919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10920 eval "ac_cv_func__doprnt=yes"
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10925 eval "ac_cv_func__doprnt=no"
10930 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10931 echo "$ac_t""yes" 1>&6
10932 cat >> confdefs.h <<\EOF
10933 #define HAVE_DOPRNT 1
10937 echo "$ac_t""no" 1>&6
10943 if test $ac_cv_func_vprintf = yes ; then
10944 for ac_func in vsnprintf vsprintf
10946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10947 echo "configure:10948: checking for $ac_func" >&5
10948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 /* System header to define __stub macros and hopefully few prototypes,
10955 which can conflict with char $ac_func(); below. */
10956 #include <assert.h>
10957 /* Override any gcc2 internal prototype to avoid an error. */
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10977 eval "ac_cv_func_$ac_func=yes"
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10982 eval "ac_cv_func_$ac_func=no"
10987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10990 cat >> confdefs.h <<EOF
10991 #define $ac_tr_func 1
10995 echo "$ac_t""no" 1>&6
11042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11043 echo "configure:11044: checking for $ac_func" >&5
11044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11047 cat > conftest.$ac_ext <<EOF
11048 #line 11049 "configure"
11049 #include "confdefs.h"
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func(); below. */
11052 #include <assert.h>
11053 /* Override any gcc2 internal prototype to avoid an error. */
11054 /* We use char because int might match the return type of a gcc2
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11073 eval "ac_cv_func_$ac_func=yes"
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11078 eval "ac_cv_func_$ac_func=no"
11083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11084 echo "$ac_t""yes" 1>&6
11085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11086 cat >> confdefs.h <<EOF
11087 #define $ac_tr_func 1
11091 echo "$ac_t""no" 1>&6
11096 for ac_func in getopt tempnam
11098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11099 echo "configure:11100: checking for $ac_func" >&5
11100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11101 echo $ac_n "(cached) $ac_c" 1>&6
11103 cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure"
11105 #include "confdefs.h"
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func(); below. */
11108 #include <assert.h>
11109 /* Override any gcc2 internal prototype to avoid an error. */
11110 /* We use char because int might match the return type of a gcc2
11111 builtin and then its argument prototype would still apply. */
11116 /* The GNU C library defines this for functions which it implements
11117 to always fail with ENOSYS. Some functions are actually named
11118 something starting with __ and the normal name is an alias. */
11119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11127 if { (eval echo configure:11128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11129 eval "ac_cv_func_$ac_func=yes"
11131 echo "configure: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11134 eval "ac_cv_func_$ac_func=no"
11139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_func 1
11147 echo "$ac_t""no" 1>&6
11148 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11154 # Check Configuration
11156 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11157 echo "configure:11158: checking declaration of sys_errlist" >&5
11158 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11159 echo $ac_n "(cached) $ac_c" 1>&6
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11167 #include <sys/types.h>
11170 char *c = (char *) *sys_errlist
11173 if { (eval echo configure:11174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11175 ol_cv_dcl_sys_errlist=yes
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11180 ol_cv_dcl_sys_errlist=no
11185 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11186 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11187 if test $ol_cv_dcl_sys_errlist = no ; then
11188 cat >> confdefs.h <<\EOF
11189 #define DECL_SYS_ERRLIST 1
11192 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11193 echo "configure:11194: checking existence of sys_errlist" >&5
11194 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11203 char *c = (char *) *sys_errlist
11206 if { (eval echo configure:11207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11208 ol_cv_have_sys_errlist=yes
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11213 ol_cv_have_sys_errlist=no
11218 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11219 if test $ol_cv_have_sys_errlist = yes ; then
11220 cat >> confdefs.h <<\EOF
11221 #define HAVE_SYS_ERRLIST 1
11229 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
11230 echo "configure:11231: checking strdup declaration" >&5
11231 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
11232 echo $ac_n "(cached) $ac_c" 1>&6
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11239 #include <string.h>
11241 extern char *strdup();
11244 if { (eval echo configure:11245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11246 ol_cv_dcl_strdup=yes
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11251 ol_cv_dcl_strdup=no
11256 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
11257 if test $ol_cv_dcl_strdup = yes ; then
11258 cat >> confdefs.h <<\EOF
11259 #define DECL_STRDUP 1
11266 if test "$ol_enable_debug" != no ; then
11267 cat >> confdefs.h <<\EOF
11268 #define LDAP_DEBUG 1
11272 if test "$ol_enable_syslog" = yes ; then
11273 cat >> confdefs.h <<\EOF
11274 #define LDAP_SYSLOG 1
11278 if test "$ol_enable_libui" = yes ; then
11279 cat >> confdefs.h <<\EOF
11280 #define LDAP_LIBUI 1
11284 if test "$ol_enable_cache" = no ; then
11285 cat >> confdefs.h <<\EOF
11286 #define LDAP_NOCACHE 1
11290 if test "$ol_enable_dns" != no ; then
11291 cat >> confdefs.h <<\EOF
11292 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11296 if test "$ol_enable_proctitle" != no ; then
11297 cat >> confdefs.h <<\EOF
11298 #define LDAP_PROCTITLE 1
11302 if test "$ol_enable_referrals" != no ; then
11303 cat >> confdefs.h <<\EOF
11304 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11308 if test "$ol_enable_cldap" != no ; then
11309 cat >> confdefs.h <<\EOF
11310 #define LDAP_CONNECTIONLESS 1
11315 if test "$ol_enable_aclgroups" != no ; then
11316 cat >> confdefs.h <<\EOF
11317 #define SLAPD_ACLGROUPS 1
11321 if test "$ol_enable_crypt" != no ; then
11322 cat >> confdefs.h <<\EOF
11323 #define SLAPD_CRYPT 1
11327 if test "$ol_enable_cleartext" != no ; then
11328 cat >> confdefs.h <<\EOF
11329 #define SLAPD_CLEARTEXT 1
11333 if test "$ol_enable_phonetic" != no ; then
11334 cat >> confdefs.h <<\EOF
11335 #define SLAPD_PHONETIC 1
11339 if test "$ol_enable_rlookups" != no ; then
11340 cat >> confdefs.h <<\EOF
11341 #define SLAPD_RLOOKUPS 1
11346 if test "$ol_link_modules" != no ; then
11347 cat >> confdefs.h <<\EOF
11348 #define SLAPD_MODULES 1
11354 if test "$ol_link_bdb2" != no ; then
11355 cat >> confdefs.h <<\EOF
11356 #define SLAPD_BDB2 1
11363 if test "$ol_link_ldbm" != no ; then
11364 cat >> confdefs.h <<\EOF
11365 #define SLAPD_LDBM 1
11372 if test "$ol_enable_passwd" != no ; then
11373 cat >> confdefs.h <<\EOF
11374 #define SLAPD_PASSWD 1
11381 if test "$ol_link_perl" != no ; then
11382 cat >> confdefs.h <<\EOF
11383 #define SLAPD_PERL 1
11390 if test "$ol_enable_shell" != no ; then
11391 cat >> confdefs.h <<\EOF
11392 #define SLAPD_SHELL 1
11399 if test "$ol_enable_tcl" != no ; then
11400 cat >> confdefs.h <<\EOF
11401 #define SLAPD_TCL 1
11408 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11409 $BUILD_SLAPD = yes ; then
11413 if test "$ol_link_isode" != no ; then
11450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11453 # Let make expand exec_prefix.
11454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11456 # Any assignment to VPATH causes Sun make to only execute
11457 # the first set of double-colon rules, so remove it if not needed.
11458 # If there is a colon in the path, we need to keep it.
11459 if test "x$srcdir" = x.; then
11460 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11463 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11465 DEFS=-DHAVE_CONFIG_H
11467 # Without the "./", some shells look in PATH for config.status.
11468 : ${CONFIG_STATUS=./config.status}
11470 echo creating $CONFIG_STATUS
11471 rm -f $CONFIG_STATUS
11472 cat > $CONFIG_STATUS <<EOF
11474 # Generated automatically by configure.
11475 # Run this file to recreate the current configuration.
11476 # This directory was configured as follows,
11477 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11479 # $0 $ac_configure_args
11481 # Compiler output produced by configure, useful for debugging
11482 # configure, is in ./config.log if it exists.
11484 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11487 case "\$ac_option" in
11488 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11489 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11490 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11491 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11492 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11494 -help | --help | --hel | --he | --h)
11495 echo "\$ac_cs_usage"; exit 0 ;;
11496 *) echo "\$ac_cs_usage"; exit 1 ;;
11500 ac_given_srcdir=$srcdir
11501 ac_given_INSTALL="$INSTALL"
11503 trap 'rm -fr `echo "\
11504 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11505 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11506 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11507 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11508 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11509 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11510 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11511 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11512 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11513 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11514 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11515 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11516 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11517 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11518 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11519 include/Makefile:build/top.mk:include/Makefile.in \
11520 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11521 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11522 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11523 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11524 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11525 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11526 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11527 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11528 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11529 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11530 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11531 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11532 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11533 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11534 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11535 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11536 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11537 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11538 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11539 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11540 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11541 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11542 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11543 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11544 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11545 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11547 cat >> $CONFIG_STATUS <<EOF
11549 # Protect against being on the right side of a sed subst in config.status.
11550 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11551 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11555 s%@CFLAGS@%$CFLAGS%g
11556 s%@CPPFLAGS@%$CPPFLAGS%g
11557 s%@CXXFLAGS@%$CXXFLAGS%g
11558 s%@FFLAGS@%$FFLAGS%g
11560 s%@LDFLAGS@%$LDFLAGS%g
11562 s%@exec_prefix@%$exec_prefix%g
11563 s%@prefix@%$prefix%g
11564 s%@program_transform_name@%$program_transform_name%g
11565 s%@bindir@%$bindir%g
11566 s%@sbindir@%$sbindir%g
11567 s%@libexecdir@%$libexecdir%g
11568 s%@datadir@%$datadir%g
11569 s%@sysconfdir@%$sysconfdir%g
11570 s%@sharedstatedir@%$sharedstatedir%g
11571 s%@localstatedir@%$localstatedir%g
11572 s%@libdir@%$libdir%g
11573 s%@includedir@%$includedir%g
11574 s%@oldincludedir@%$oldincludedir%g
11575 s%@infodir@%$infodir%g
11576 s%@mandir@%$mandir%g
11577 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11578 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11579 s%@INSTALL_DATA@%$INSTALL_DATA%g
11580 s%@PACKAGE@%$PACKAGE%g
11581 s%@VERSION@%$VERSION%g
11582 s%@ACLOCAL@%$ACLOCAL%g
11583 s%@AUTOCONF@%$AUTOCONF%g
11584 s%@AUTOMAKE@%$AUTOMAKE%g
11585 s%@AUTOHEADER@%$AUTOHEADER%g
11586 s%@MAKEINFO@%$MAKEINFO%g
11587 s%@SET_MAKE@%$SET_MAKE%g
11588 s%@top_builddir@%$top_builddir%g
11589 s%@ldap_subdir@%$ldap_subdir%g
11591 s%@host_alias@%$host_alias%g
11592 s%@host_cpu@%$host_cpu%g
11593 s%@host_vendor@%$host_vendor%g
11594 s%@host_os@%$host_os%g
11595 s%@RANLIB@%$RANLIB%g
11600 s%@LIBTOOL@%$LIBTOOL%g
11603 s%@SENDMAIL@%$SENDMAIL%g
11604 s%@EDITOR@%$EDITOR%g
11605 s%@FINGER@%$FINGER%g
11606 s%@GLIBCONFIG@%$GLIBCONFIG%g
11607 s%@PERLBIN@%$PERLBIN%g
11609 s%@EXEEXT@%$EXEEXT%g
11610 s%@OBJEXT@%$OBJEXT%g
11612 s%@LIBOBJS@%$LIBOBJS%g
11613 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11614 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11615 s%@BUILD_BDB2@%$BUILD_BDB2%g
11616 s%@BUILD_LDBM@%$BUILD_LDBM%g
11617 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11618 s%@BUILD_PERL@%$BUILD_PERL%g
11619 s%@BUILD_SHELL@%$BUILD_SHELL%g
11620 s%@BUILD_TCL@%$BUILD_TCL%g
11621 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11622 s%@LDAP_LIBS@%$LDAP_LIBS%g
11623 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11624 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11625 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11626 s%@LDBM_LIBS@%$LDBM_LIBS%g
11627 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11628 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11629 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11630 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11631 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11632 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11633 s%@KRB_LIBS@%$KRB_LIBS%g
11634 s%@READLINE_LIBS@%$READLINE_LIBS%g
11635 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11636 s%@TLS_LIBS@%$TLS_LIBS%g
11641 cat >> $CONFIG_STATUS <<\EOF
11643 # Split the substitutions into bite-sized pieces for seds with
11644 # small command number limits, like on Digital OSF/1 and HP-UX.
11645 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11646 ac_file=1 # Number of current file.
11647 ac_beg=1 # First line for current file.
11648 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11651 while $ac_more_lines; do
11652 if test $ac_beg -gt 1; then
11653 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11655 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11657 if test ! -s conftest.s$ac_file; then
11658 ac_more_lines=false
11659 rm -f conftest.s$ac_file
11661 if test -z "$ac_sed_cmds"; then
11662 ac_sed_cmds="sed -f conftest.s$ac_file"
11664 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11666 ac_file=`expr $ac_file + 1`
11668 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11671 if test -z "$ac_sed_cmds"; then
11676 cat >> $CONFIG_STATUS <<EOF
11678 CONFIG_FILES=\${CONFIG_FILES-"\
11679 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11680 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11681 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11682 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11683 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11684 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11685 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11686 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11687 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11688 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11689 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11690 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11691 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11692 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11693 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11694 include/Makefile:build/top.mk:include/Makefile.in \
11695 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11696 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11697 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11698 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11699 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11700 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11701 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11702 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11703 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11704 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11705 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11706 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11707 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11708 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11709 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11710 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11711 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11712 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11713 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11714 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11715 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11716 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11717 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11718 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11719 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11722 cat >> $CONFIG_STATUS <<\EOF
11723 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11726 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11727 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11728 *) ac_file_in="${ac_file}.in" ;;
11731 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11733 # Remove last slash and all that follows it. Not all systems have dirname.
11734 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11735 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11736 # The file is in a subdirectory.
11737 test ! -d "$ac_dir" && mkdir "$ac_dir"
11738 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11739 # A "../" for each directory in $ac_dir_suffix.
11740 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11742 ac_dir_suffix= ac_dots=
11745 case "$ac_given_srcdir" in
11747 if test -z "$ac_dots"; then top_srcdir=.
11748 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11749 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11750 *) # Relative path.
11751 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11752 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11755 case "$ac_given_INSTALL" in
11756 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11757 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11760 echo creating "$ac_file"
11762 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11764 *Makefile*) ac_comsub="1i\\
11765 # $configure_input" ;;
11769 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11771 s%@configure_input@%$configure_input%g
11772 s%@srcdir@%$srcdir%g
11773 s%@top_srcdir@%$top_srcdir%g
11774 s%@INSTALL@%$INSTALL%g
11775 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11779 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11780 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11782 # ac_d sets the value in "#define NAME VALUE" lines.
11783 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11784 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11787 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11788 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11789 ac_uB='\([ ]\)%\1#\2define\3'
11792 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11793 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11794 ac_eB='$%\1#\2define\3'
11798 if test "${CONFIG_HEADERS+set}" != set; then
11800 cat >> $CONFIG_STATUS <<EOF
11801 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11803 cat >> $CONFIG_STATUS <<\EOF
11805 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11808 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11809 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11810 *) ac_file_in="${ac_file}.in" ;;
11813 echo creating $ac_file
11815 rm -f conftest.frag conftest.in conftest.out
11816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11817 cat $ac_file_inputs > conftest.in
11821 # Transform confdefs.h into a sed script conftest.vals that substitutes
11822 # the proper values into config.h.in to produce config.h. And first:
11823 # Protect against being on the right side of a sed subst in config.status.
11824 # Protect against being in an unquoted here document in config.status.
11825 rm -f conftest.vals
11826 cat > conftest.hdr <<\EOF
11829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11833 sed -n -f conftest.hdr confdefs.h > conftest.vals
11836 # This sed command replaces #undef with comments. This is necessary, for
11837 # example, in the case of _POSIX_SOURCE, which is predefined and required
11838 # on some systems where configure will not decide to define it.
11839 cat >> conftest.vals <<\EOF
11840 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11843 # Break up conftest.vals because some shells have a limit on
11844 # the size of here documents, and old seds have small limits too.
11846 rm -f conftest.tail
11849 ac_lines=`grep -c . conftest.vals`
11850 # grep -c gives empty output for an empty file on some AIX systems.
11851 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11852 # Write a limited-size here document to conftest.frag.
11853 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11854 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11856 sed -f conftest.frag conftest.in > conftest.out
11858 mv conftest.out conftest.in
11859 ' >> $CONFIG_STATUS
11860 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11861 rm -f conftest.vals
11862 mv conftest.tail conftest.vals
11864 rm -f conftest.vals
11866 cat >> $CONFIG_STATUS <<\EOF
11867 rm -f conftest.frag conftest.h
11868 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11869 cat conftest.in >> conftest.h
11871 if cmp -s $ac_file conftest.h 2>/dev/null; then
11872 echo "$ac_file is unchanged"
11875 # Remove last slash and all that follows it. Not all systems have dirname.
11876 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11877 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11878 # The file is in a subdirectory.
11879 test ! -d "$ac_dir" && mkdir "$ac_dir"
11882 mv conftest.h $ac_file
11887 cat >> $CONFIG_STATUS <<EOF
11890 cat >> $CONFIG_STATUS <<\EOF
11893 echo Please \"make depend\" to build dependencies
11897 chmod +x $CONFIG_STATUS
11898 rm -fr confdefs* $ac_clean_files
11899 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1