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; }
778 missing_dir=`cd $ac_aux_dir && pwd`
779 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
780 echo "configure:781: checking for working aclocal" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
786 echo "$ac_t""found" 1>&6
788 ACLOCAL="$missing_dir/missing aclocal"
789 echo "$ac_t""missing" 1>&6
792 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
793 echo "configure:794: checking for working autoconf" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
799 echo "$ac_t""found" 1>&6
801 AUTOCONF="$missing_dir/missing autoconf"
802 echo "$ac_t""missing" 1>&6
805 echo $ac_n "checking for working automake""... $ac_c" 1>&6
806 echo "configure:807: checking for working automake" >&5
807 # Run test in a subshell; some versions of sh will print an error if
808 # an executable is not found, even if stderr is redirected.
809 # Redirect stdin to placate older versions of autoconf. Sigh.
810 if (automake --version) < /dev/null > /dev/null 2>&1; then
812 echo "$ac_t""found" 1>&6
814 AUTOMAKE="$missing_dir/missing automake"
815 echo "$ac_t""missing" 1>&6
818 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
819 echo "configure:820: checking for working autoheader" >&5
820 # Run test in a subshell; some versions of sh will print an error if
821 # an executable is not found, even if stderr is redirected.
822 # Redirect stdin to placate older versions of autoconf. Sigh.
823 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
824 AUTOHEADER=autoheader
825 echo "$ac_t""found" 1>&6
827 AUTOHEADER="$missing_dir/missing autoheader"
828 echo "$ac_t""missing" 1>&6
831 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
832 echo "configure:833: checking for working makeinfo" >&5
833 # Run test in a subshell; some versions of sh will print an error if
834 # an executable is not found, even if stderr is redirected.
835 # Redirect stdin to placate older versions of autoconf. Sigh.
836 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
838 echo "$ac_t""found" 1>&6
840 MAKEINFO="$missing_dir/missing makeinfo"
841 echo "$ac_t""missing" 1>&6
846 cat >> confdefs.h <<EOF
847 #define OPENLDAP_PACKAGE "$PACKAGE"
850 cat >> confdefs.h <<EOF
851 #define OPENLDAP_VERSION "$VERSION"
857 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
858 echo "configure:859: checking configure arguments" >&5
863 cat >> confdefs.h <<\EOF
864 #define HAVE_MKVERSION 1
868 ldap_subdir="openldap"
870 # Check whether --with-subdir or --without-subdir was given.
871 if test "${with_subdir+set}" = set; then
872 withval="$with_subdir"
874 if test "$withval" = "no"; then
876 elif test "$withval" != "yes"; then
877 ldap_subdir="$withval"
883 # OpenLDAP --enable-debug
884 # Check whether --enable-debug or --disable-debug was given.
885 if test "${enable_debug+set}" = set; then
886 enableval="$enable_debug"
889 for ol_val in auto yes no ; do
890 if test "$enableval" = "$ol_val" ; then
894 if test "$ol_arg" = "invalid" ; then
895 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
897 ol_enable_debug="$ol_arg"
900 ol_enable_debug="yes"
903 # OpenLDAP --enable-syslog
904 # Check whether --enable-syslog or --disable-syslog was given.
905 if test "${enable_syslog+set}" = set; then
906 enableval="$enable_syslog"
909 for ol_val in auto yes no ; do
910 if test "$enableval" = "$ol_val" ; then
914 if test "$ol_arg" = "invalid" ; then
915 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
917 ol_enable_syslog="$ol_arg"
920 ol_enable_syslog="auto"
922 # end --enable-syslog
923 # OpenLDAP --enable-proctitle
924 # Check whether --enable-proctitle or --disable-proctitle was given.
925 if test "${enable_proctitle+set}" = set; then
926 enableval="$enable_proctitle"
929 for ol_val in auto yes no ; do
930 if test "$enableval" = "$ol_val" ; then
934 if test "$ol_arg" = "invalid" ; then
935 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
937 ol_enable_proctitle="$ol_arg"
940 ol_enable_proctitle="yes"
942 # end --enable-proctitle
943 # OpenLDAP --enable-cache
944 # Check whether --enable-cache or --disable-cache was given.
945 if test "${enable_cache+set}" = set; then
946 enableval="$enable_cache"
949 for ol_val in auto yes no ; do
950 if test "$enableval" = "$ol_val" ; then
954 if test "$ol_arg" = "invalid" ; then
955 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
957 ol_enable_cache="$ol_arg"
960 ol_enable_cache="yes"
963 # OpenLDAP --enable-dns
964 # Check whether --enable-dns or --disable-dns was given.
965 if test "${enable_dns+set}" = set; then
966 enableval="$enable_dns"
969 for ol_val in auto yes no ; do
970 if test "$enableval" = "$ol_val" ; then
974 if test "$ol_arg" = "invalid" ; then
975 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
977 ol_enable_dns="$ol_arg"
983 # OpenLDAP --enable-referrals
984 # Check whether --enable-referrals or --disable-referrals was given.
985 if test "${enable_referrals+set}" = set; then
986 enableval="$enable_referrals"
989 for ol_val in auto yes no ; do
990 if test "$enableval" = "$ol_val" ; then
994 if test "$ol_arg" = "invalid" ; then
995 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
997 ol_enable_referrals="$ol_arg"
1000 ol_enable_referrals="yes"
1002 # end --enable-referrals
1003 # OpenLDAP --enable-cldap
1004 # Check whether --enable-cldap or --disable-cldap was given.
1005 if test "${enable_cldap+set}" = set; then
1006 enableval="$enable_cldap"
1009 for ol_val in auto yes no ; do
1010 if test "$enableval" = "$ol_val" ; then
1014 if test "$ol_arg" = "invalid" ; then
1015 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1017 ol_enable_cldap="$ol_arg"
1020 ol_enable_cldap="no"
1022 # end --enable-cldap
1023 # OpenLDAP --enable-x_compile
1024 # Check whether --enable-x_compile or --disable-x_compile was given.
1025 if test "${enable_x_compile+set}" = set; then
1026 enableval="$enable_x_compile"
1029 for ol_val in yes no ; do
1030 if test "$enableval" = "$ol_val" ; then
1034 if test "$ol_arg" = "invalid" ; then
1035 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1037 ol_enable_x_compile="$ol_arg"
1040 ol_enable_x_compile="no"
1042 # end --enable-x_compile
1044 # OpenLDAP --enable-dmalloc
1045 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1046 if test "${enable_dmalloc+set}" = set; then
1047 enableval="$enable_dmalloc"
1050 for ol_val in auto yes no ; do
1051 if test "$enableval" = "$ol_val" ; then
1055 if test "$ol_arg" = "invalid" ; then
1056 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1058 ol_enable_dmalloc="$ol_arg"
1061 ol_enable_dmalloc="no"
1063 # end --enable-dmalloc
1065 # OpenLDAP --with-kerberos
1066 # Check whether --with-kerberos or --without-kerberos was given.
1067 if test "${with_kerberos+set}" = set; then
1068 withval="$with_kerberos"
1071 for ol_val in auto k5 k4 afs yes no ; do
1072 if test "$withval" = "$ol_val" ; then
1076 if test "$ol_arg" = "invalid" ; then
1077 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1079 ol_with_kerberos="$ol_arg"
1082 ol_with_kerberos="auto"
1084 # end --with-kerberos
1086 # OpenLDAP --with-readline
1087 # Check whether --with-readline or --without-readline was given.
1088 if test "${with_readline+set}" = set; then
1089 withval="$with_readline"
1092 for ol_val in auto yes no ; do
1093 if test "$withval" = "$ol_val" ; then
1097 if test "$ol_arg" = "invalid" ; then
1098 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1100 ol_with_readline="$ol_arg"
1103 ol_with_readline="auto"
1105 # end --with-readline
1107 # OpenLDAP --with-threads
1108 # Check whether --with-threads or --without-threads was given.
1109 if test "${with_threads+set}" = set; then
1110 withval="$with_threads"
1113 for ol_val in auto posix mach lwp yes no manual ; do
1114 if test "$withval" = "$ol_val" ; then
1118 if test "$ol_arg" = "invalid" ; then
1119 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1121 ol_with_threads="$ol_arg"
1124 ol_with_threads="auto"
1126 # end --with-threads
1128 # OpenLDAP --with-tls
1129 # Check whether --with-tls or --without-tls was given.
1130 if test "${with_tls+set}" = set; then
1134 for ol_val in auto ssleay openssl yes no ; do
1135 if test "$withval" = "$ol_val" ; then
1139 if test "$ol_arg" = "invalid" ; then
1140 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1142 ol_with_tls="$ol_arg"
1149 # OpenLDAP --with-yielding_select
1150 # Check whether --with-yielding_select or --without-yielding_select was given.
1151 if test "${with_yielding_select+set}" = set; then
1152 withval="$with_yielding_select"
1155 for ol_val in auto yes no manual ; do
1156 if test "$withval" = "$ol_val" ; then
1160 if test "$ol_arg" = "invalid" ; then
1161 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1163 ol_with_yielding_select="$ol_arg"
1166 ol_with_yielding_select="auto"
1168 # end --with-yielding_select
1172 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1173 if test "${with_xxldapdoptions+set}" = set; then
1174 withval="$with_xxldapdoptions"
1178 # OpenLDAP --enable-ldapd
1179 # Check whether --enable-ldapd or --disable-ldapd was given.
1180 if test "${enable_ldapd+set}" = set; then
1181 enableval="$enable_ldapd"
1184 for ol_val in auto yes no ; do
1185 if test "$enableval" = "$ol_val" ; then
1189 if test "$ol_arg" = "invalid" ; then
1190 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1192 ol_enable_ldapd="$ol_arg"
1195 ol_enable_ldapd="no"
1197 # end --enable-ldapd
1199 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1200 if test "${with_xxslapdoptions+set}" = set; then
1201 withval="$with_xxslapdoptions"
1205 # OpenLDAP --enable-slapd
1206 # Check whether --enable-slapd or --disable-slapd was given.
1207 if test "${enable_slapd+set}" = set; then
1208 enableval="$enable_slapd"
1211 for ol_val in auto yes no ; do
1212 if test "$enableval" = "$ol_val" ; then
1216 if test "$ol_arg" = "invalid" ; then
1217 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1219 ol_enable_slapd="$ol_arg"
1222 ol_enable_slapd="yes"
1224 # end --enable-slapd
1225 # OpenLDAP --enable-aclgroups
1226 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1227 if test "${enable_aclgroups+set}" = set; then
1228 enableval="$enable_aclgroups"
1231 for ol_val in auto yes no ; do
1232 if test "$enableval" = "$ol_val" ; then
1236 if test "$ol_arg" = "invalid" ; then
1237 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1239 ol_enable_aclgroups="$ol_arg"
1242 ol_enable_aclgroups="auto"
1244 # end --enable-aclgroups
1245 # OpenLDAP --enable-cleartext
1246 # Check whether --enable-cleartext or --disable-cleartext was given.
1247 if test "${enable_cleartext+set}" = set; then
1248 enableval="$enable_cleartext"
1251 for ol_val in auto yes no ; do
1252 if test "$enableval" = "$ol_val" ; then
1256 if test "$ol_arg" = "invalid" ; then
1257 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1259 ol_enable_cleartext="$ol_arg"
1262 ol_enable_cleartext="yes"
1264 # end --enable-cleartext
1265 # OpenLDAP --enable-crypt
1266 # Check whether --enable-crypt or --disable-crypt was given.
1267 if test "${enable_crypt+set}" = set; then
1268 enableval="$enable_crypt"
1271 for ol_val in auto yes no ; do
1272 if test "$enableval" = "$ol_val" ; then
1276 if test "$ol_arg" = "invalid" ; then
1277 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1279 ol_enable_crypt="$ol_arg"
1282 ol_enable_crypt="auto"
1284 # end --enable-crypt
1285 # OpenLDAP --enable-modules
1286 # Check whether --enable-modules or --disable-modules was given.
1287 if test "${enable_modules+set}" = set; then
1288 enableval="$enable_modules"
1291 for ol_val in auto yes no ; do
1292 if test "$enableval" = "$ol_val" ; then
1296 if test "$ol_arg" = "invalid" ; then
1297 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1299 ol_enable_modules="$ol_arg"
1302 ol_enable_modules="no"
1304 # end --enable-modules
1305 # OpenLDAP --enable-phonetic
1306 # Check whether --enable-phonetic or --disable-phonetic was given.
1307 if test "${enable_phonetic+set}" = set; then
1308 enableval="$enable_phonetic"
1311 for ol_val in auto yes no ; do
1312 if test "$enableval" = "$ol_val" ; then
1316 if test "$ol_arg" = "invalid" ; then
1317 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1319 ol_enable_phonetic="$ol_arg"
1322 ol_enable_phonetic="no"
1324 # end --enable-phonetic
1325 # OpenLDAP --enable-rlookups
1326 # Check whether --enable-rlookups or --disable-rlookups was given.
1327 if test "${enable_rlookups+set}" = set; then
1328 enableval="$enable_rlookups"
1331 for ol_val in auto yes no ; do
1332 if test "$enableval" = "$ol_val" ; then
1336 if test "$ol_arg" = "invalid" ; then
1337 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1339 ol_enable_rlookups="$ol_arg"
1342 ol_enable_rlookups="auto"
1344 # end --enable-rlookups
1345 # OpenLDAP --enable-wrappers
1346 # Check whether --enable-wrappers or --disable-wrappers was given.
1347 if test "${enable_wrappers+set}" = set; then
1348 enableval="$enable_wrappers"
1351 for ol_val in auto yes no ; do
1352 if test "$enableval" = "$ol_val" ; then
1356 if test "$ol_arg" = "invalid" ; then
1357 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1359 ol_enable_wrappers="$ol_arg"
1362 ol_enable_wrappers="no"
1364 # end --enable-wrappers
1366 # OpenLDAP --enable-bdb2
1367 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1368 if test "${enable_bdb2+set}" = set; then
1369 enableval="$enable_bdb2"
1372 for ol_val in auto yes no ; do
1373 if test "$enableval" = "$ol_val" ; then
1377 if test "$ol_arg" = "invalid" ; then
1378 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1380 ol_enable_bdb2="$ol_arg"
1386 # OpenLDAP --enable-ldbm
1387 # Check whether --enable-ldbm or --disable-ldbm was given.
1388 if test "${enable_ldbm+set}" = set; then
1389 enableval="$enable_ldbm"
1392 for ol_val in auto yes no ; do
1393 if test "$enableval" = "$ol_val" ; then
1397 if test "$ol_arg" = "invalid" ; then
1398 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1400 ol_enable_ldbm="$ol_arg"
1403 ol_enable_ldbm="yes"
1406 # OpenLDAP --with-ldbm_api
1407 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1408 if test "${with_ldbm_api+set}" = set; then
1409 withval="$with_ldbm_api"
1412 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1413 if test "$withval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1420 ol_with_ldbm_api="$ol_arg"
1423 ol_with_ldbm_api="auto"
1425 # end --with-ldbm_api
1427 # OpenLDAP --with-ldbm_type
1428 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1429 if test "${with_ldbm_type+set}" = set; then
1430 withval="$with_ldbm_type"
1433 for ol_val in auto btree hash ; do
1434 if test "$withval" = "$ol_val" ; then
1438 if test "$ol_arg" = "invalid" ; then
1439 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1441 ol_with_ldbm_type="$ol_arg"
1444 ol_with_ldbm_type="auto"
1446 # end --with-ldbm_type
1449 # OpenLDAP --enable-passwd
1450 # Check whether --enable-passwd or --disable-passwd was given.
1451 if test "${enable_passwd+set}" = set; then
1452 enableval="$enable_passwd"
1455 for ol_val in auto yes no ; do
1456 if test "$enableval" = "$ol_val" ; then
1460 if test "$ol_arg" = "invalid" ; then
1461 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1463 ol_enable_passwd="$ol_arg"
1466 ol_enable_passwd="no"
1468 # end --enable-passwd
1469 # OpenLDAP --enable-perl
1470 # Check whether --enable-perl or --disable-perl was given.
1471 if test "${enable_perl+set}" = set; then
1472 enableval="$enable_perl"
1475 for ol_val in auto yes no ; do
1476 if test "$enableval" = "$ol_val" ; then
1480 if test "$ol_arg" = "invalid" ; then
1481 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1483 ol_enable_perl="$ol_arg"
1489 # OpenLDAP --enable-shell
1490 # Check whether --enable-shell or --disable-shell was given.
1491 if test "${enable_shell+set}" = set; then
1492 enableval="$enable_shell"
1495 for ol_val in auto yes no ; do
1496 if test "$enableval" = "$ol_val" ; then
1500 if test "$ol_arg" = "invalid" ; then
1501 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1503 ol_enable_shell="$ol_arg"
1506 ol_enable_shell="no"
1508 # end --enable-shell
1509 # OpenLDAP --enable-tcl
1510 # Check whether --enable-tcl or --disable-tcl was given.
1511 if test "${enable_tcl+set}" = set; then
1512 enableval="$enable_tcl"
1515 for ol_val in auto yes no ; do
1516 if test "$enableval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1523 ol_enable_tcl="$ol_arg"
1530 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1531 if test "${with_xxslurpdoptions+set}" = set; then
1532 withval="$with_xxslurpdoptions"
1536 # OpenLDAP --enable-slurpd
1537 # Check whether --enable-slurpd or --disable-slurpd was given.
1538 if test "${enable_slurpd+set}" = set; then
1539 enableval="$enable_slurpd"
1542 for ol_val in auto yes no ; do
1543 if test "$enableval" = "$ol_val" ; then
1547 if test "$ol_arg" = "invalid" ; then
1548 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1550 ol_enable_slurpd="$ol_arg"
1553 ol_enable_slurpd="auto"
1555 # end --enable-slurpd
1557 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1558 if test "${with_xxliboptions+set}" = set; then
1559 withval="$with_xxliboptions"
1563 # Check whether --enable-static or --disable-static was given.
1564 if test "${enable_static+set}" = set; then
1565 enableval="$enable_static"
1566 p=${PACKAGE-default}
1567 case "$enableval" in
1568 yes) enable_static=yes ;;
1569 no) enable_static=no ;;
1572 # Look at the argument we got. We use all the common list separators.
1573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1574 for pkg in $enableval; do
1575 if test "X$pkg" = "X$p"; then
1586 # Check whether --enable-shared or --disable-shared was given.
1587 if test "${enable_shared+set}" = set; then
1588 enableval="$enable_shared"
1589 p=${PACKAGE-default}
1590 case "$enableval" in
1591 yes) enable_shared=yes ;;
1592 no) enable_shared=no ;;
1595 # Look at the argument we got. We use all the common list separators.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1597 for pkg in $enableval; do
1598 if test "X$pkg" = "X$p"; then
1611 if test $ol_enable_dns = yes ; then
1612 if test $ol_enable_referrals = no ; then
1613 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1615 if test $ol_enable_referrals = auto ; then
1616 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1617 ol_enable_referrals=yes
1621 if test $ol_enable_slapd = no ; then
1622 if test $ol_enable_bdb2 = yes ; then
1623 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1625 if test $ol_enable_ldbm = yes ; then
1626 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1628 if test $ol_enable_passwd = yes ; then
1629 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1631 if test $ol_enable_perl = yes ; then
1632 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1634 if test $ol_enable_shell = yes ; then
1635 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1637 if test $ol_enable_tcl = yes ; then
1638 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1640 if test $ol_enable_aclgroups = yes ; then
1641 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1643 if test $ol_enable_modules = yes ; then
1644 echo "configure: warning: slapd disabled, ignoring --enable_modules argument" 1>&2
1646 if test $ol_enable_wrappers = yes ; then
1647 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1649 if test $ol_enable_phonetic = yes ; then
1650 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1652 if test $ol_enable_rlookups = yes ; then
1653 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1655 if test $ol_with_ldbm_api != auto ; then
1656 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1658 if test $ol_with_ldbm_type != auto ; then
1659 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1661 if test $ol_enable_slurpd = yes ; then
1662 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1665 # force settings to no
1673 ol_enable_aclgroups=no
1674 ol_enable_modules=no
1675 ol_enable_phonetic=no
1676 ol_enable_rlookups=no
1677 ol_enable_wrappers=no
1680 ol_with_ldbm_type=no
1684 elif test $ol_enable_ldbm = no ; then
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1690 if test $ol_with_ldbm_type != auto ; then
1691 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1694 if test $ol_enable_bdb2 = yes ; then
1695 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1698 if test $ol_enable_modules != yes -a \
1699 $ol_enable_passwd = no -a \
1700 $ol_enable_perl = no -a \
1701 $ol_enable_shell = no -a \
1702 $ol_enable_tcl = no ; then
1703 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1707 ol_with_ldbm_type=no
1709 elif test $ol_enable_bdb2 = yes ; then
1711 if test $ol_with_ldbm_api != auto -a \
1712 $ol_with_ldbm_api != db2 ; then
1713 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1716 ol_with_ldbm_api=db2
1720 if test $ol_enable_bdb2 != no ; then
1721 if test $ol_with_ldbm_api != auto -a \
1722 $ol_with_ldbm_api != db2 ; then
1723 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1728 if test $ol_with_ldbm_api = gdbm -a \
1729 $ol_with_ldbm_type = btree ; then
1730 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1732 if test $ol_with_ldbm_api = mdbm -a \
1733 $ol_with_ldbm_type = btree ; then
1734 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1736 if test $ol_with_ldbm_api = ndbm -a \
1737 $ol_with_ldbm_type = btree ; then
1738 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1742 if test $ol_enable_slurpd = yes ; then
1743 if test $ol_with_threads = no ; then
1744 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1748 echo "$ac_t""done" 1>&6
1772 SLAPD_MODULES_LDFLAGS=
1773 SLAPD_MODULES_CPPFLAGS=
1776 SLAPD_PERL_CPPFLAGS=
1784 # Find a good install program. We prefer a C program (faster),
1785 # so one script is as good as another. But avoid the broken or
1786 # incompatible versions:
1787 # SysV /etc/install, /usr/sbin/install
1788 # SunOS /usr/etc/install
1789 # IRIX /sbin/install
1791 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1792 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1793 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1794 # ./install, which can be erroneously created by make from ./install.sh.
1795 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1796 echo "configure:1797: checking for a BSD compatible install" >&5
1797 if test -z "$INSTALL"; then
1798 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1802 for ac_dir in $PATH; do
1803 # Account for people who put trailing slashes in PATH elements.
1805 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1807 # OSF1 and SCO ODT 3.0 have their own names for install.
1808 # Don't use installbsd from OSF since it installs stuff as root
1810 for ac_prog in ginstall scoinst install; do
1811 if test -f $ac_dir/$ac_prog; then
1812 if test $ac_prog = install &&
1813 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1814 # AIX install. It has an incompatible calling convention.
1817 ac_cv_path_install="$ac_dir/$ac_prog -c"
1828 if test "${ac_cv_path_install+set}" = set; then
1829 INSTALL="$ac_cv_path_install"
1831 # As a last resort, use the slow shell script. We don't cache a
1832 # path for INSTALL within a source directory, because that will
1833 # break other packages using the cache if that directory is
1834 # removed, or if the path is relative.
1835 INSTALL="$ac_install_sh"
1838 echo "$ac_t""$INSTALL" 1>&6
1840 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1841 # It thinks the first close brace ends the variable substitution.
1842 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1846 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1852 # Make sure we can run config.sub.
1853 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1854 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1857 echo $ac_n "checking host system type""... $ac_c" 1>&6
1858 echo "configure:1859: checking host system type" >&5
1861 case "$host_alias" in
1865 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1866 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1868 *) host_alias=$nonopt ;;
1872 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1873 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1874 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1875 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1876 echo "$ac_t""$host" 1>&6
1878 # Extract the first word of "ranlib", so it can be a program name with args.
1879 set dummy ranlib; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$RANLIB"; then
1886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1893 ac_cv_prog_RANLIB="ranlib"
1898 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1901 RANLIB="$ac_cv_prog_RANLIB"
1902 if test -n "$RANLIB"; then
1903 echo "$ac_t""$RANLIB" 1>&6
1905 echo "$ac_t""no" 1>&6
1908 # Extract the first word of "gcc", so it can be a program name with args.
1909 set dummy gcc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1920 for ac_dir in $ac_dummy; do
1921 test -z "$ac_dir" && ac_dir=.
1922 if test -f $ac_dir/$ac_word; then
1931 if test -n "$CC"; then
1932 echo "$ac_t""$CC" 1>&6
1934 echo "$ac_t""no" 1>&6
1937 if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1951 for ac_dir in $ac_dummy; do
1952 test -z "$ac_dir" && ac_dir=.
1953 if test -f $ac_dir/$ac_word; then
1954 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1955 ac_prog_rejected=yes
1963 if test $ac_prog_rejected = yes; then
1964 # We found a bogon in the path, so make sure we never use it.
1965 set dummy $ac_cv_prog_CC
1967 if test $# -gt 0; then
1968 # We chose a different compiler from the bogus one.
1969 # However, it has the same basename, so the bogon will be chosen
1970 # first if we set CC to just the basename; use the full file name.
1972 set dummy "$ac_dir/$ac_word" "$@"
1980 if test -n "$CC"; then
1981 echo "$ac_t""$CC" 1>&6
1983 echo "$ac_t""no" 1>&6
1986 if test -z "$CC"; then
1987 case "`uname -s`" in
1989 # Extract the first word of "cl", so it can be a program name with args.
1990 set dummy cl; ac_word=$2
1991 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1992 echo "configure:1993: checking for $ac_word" >&5
1993 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1994 echo $ac_n "(cached) $ac_c" 1>&6
1996 if test -n "$CC"; then
1997 ac_cv_prog_CC="$CC" # Let the user override the test.
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2001 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 if test -f $ac_dir/$ac_word; then
2012 if test -n "$CC"; then
2013 echo "$ac_t""$CC" 1>&6
2015 echo "$ac_t""no" 1>&6
2020 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2024 echo "configure:2025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2030 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2031 cross_compiling=$ac_cv_prog_cc_cross
2033 cat > conftest.$ac_ext << EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2041 ac_cv_prog_cc_works=yes
2042 # If we can't run a trivial program, we are probably using a cross compiler.
2043 if (./conftest; exit) 2>/dev/null; then
2044 ac_cv_prog_cc_cross=no
2046 ac_cv_prog_cc_cross=yes
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 ac_cv_prog_cc_works=no
2055 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2056 ac_cpp='$CPP $CPPFLAGS'
2057 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2058 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2059 cross_compiling=$ac_cv_prog_cc_cross
2061 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2062 if test $ac_cv_prog_cc_works = no; then
2063 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2067 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2068 cross_compiling=$ac_cv_prog_cc_cross
2070 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether we are using GNU C" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.c <<EOF
2080 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2087 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2089 if test $ac_cv_prog_gcc = yes; then
2095 ac_test_CFLAGS="${CFLAGS+set}"
2096 ac_save_CFLAGS="$CFLAGS"
2098 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2099 echo "configure:2100: checking whether ${CC-cc} accepts -g" >&5
2100 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 echo 'void f(){}' > conftest.c
2104 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2113 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS="$ac_save_CFLAGS"
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2123 if test "$GCC" = yes; then
2130 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2131 if test "${with_gnu_ld+set}" = set; then
2132 withval="$with_gnu_ld"
2133 test "$withval" = no || with_gnu_ld=yes
2140 if test "$ac_cv_prog_gcc" = yes; then
2141 # Check if gcc -print-prog-name=ld gives a path.
2142 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2143 echo "configure:2144: checking for ld used by GCC" >&5
2144 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2146 # Accept absolute paths.
2148 test -z "$LD" && LD="$ac_prog"
2151 # If it fails, then pretend we aren't using GCC.
2155 # If it is relative, then search for the first ld in PATH.
2159 elif test "$with_gnu_ld" = yes; then
2160 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2161 echo "configure:2162: checking for GNU ld" >&5
2163 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2164 echo "configure:2165: checking for non-GNU ld" >&5
2166 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 if test -z "$LD"; then
2170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2171 for ac_dir in $PATH; do
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f "$ac_dir/$ac_prog"; then
2174 ac_cv_path_LD="$ac_dir/$ac_prog"
2175 # Check to see if the program is GNU ld. I'd rather use --version,
2176 # but apparently some GNU ld's only accept -v.
2177 # Break only if it was the GNU/non-GNU ld that we prefer.
2178 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2179 test "$with_gnu_ld" != no && break
2181 test "$with_gnu_ld" != yes && break
2187 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2192 if test -n "$LD"; then
2193 echo "$ac_t""$LD" 1>&6
2195 echo "$ac_t""no" 1>&6
2197 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2199 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2200 echo "configure:2201: checking if the linker ($LD) is GNU ld" >&5
2201 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2205 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2206 ac_cv_prog_gnu_ld=yes
2208 ac_cv_prog_gnu_ld=no
2212 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2215 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2216 echo "configure:2217: checking for BSD-compatible nm" >&5
2217 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2222 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2226 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2227 test -z "$ac_dir" && ac_dir=.
2228 if test -f $ac_dir/nm; then
2229 # Check to see if the nm accepts a BSD-compat flag.
2230 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2231 # nm: unknown option "B" ignored
2232 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2233 ac_cv_path_NM="$ac_dir/nm -B"
2234 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2235 ac_cv_path_NM="$ac_dir/nm -p"
2237 ac_cv_path_NM="$ac_dir/nm"
2243 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2249 echo "$ac_t""$NM" 1>&6
2252 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2253 echo "configure:2254: checking whether ln -s works" >&5
2254 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2258 if ln -s X conftestdata 2>/dev/null
2261 ac_cv_prog_LN_S="ln -s"
2266 LN_S="$ac_cv_prog_LN_S"
2267 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2268 echo "$ac_t""yes" 1>&6
2270 echo "$ac_t""no" 1>&6
2273 # Always use our own libtool.
2274 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2276 # Check for any special flags to pass to ltconfig.
2278 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2279 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2280 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2281 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2282 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2284 # Some flags need to be propagated to the compiler or linker for good
2288 # Find out which ABI we are using.
2289 echo '#line 2290 "configure"' > conftest.$ac_ext
2290 if { (eval echo configure:2291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2291 case "`/usr/bin/file conftest.o`" in
2307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2308 CFLAGS="$CFLAGS -belf"
2312 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2313 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2314 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2315 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2316 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2317 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2320 for ac_prog in mawk gawk nawk awk
2322 # Extract the first word of "$ac_prog", so it can be a program name with args.
2323 set dummy $ac_prog; ac_word=$2
2324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_word" >&5
2326 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 if test -n "$AWK"; then
2330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2334 for ac_dir in $ac_dummy; do
2335 test -z "$ac_dir" && ac_dir=.
2336 if test -f $ac_dir/$ac_word; then
2337 ac_cv_prog_AWK="$ac_prog"
2344 AWK="$ac_cv_prog_AWK"
2345 if test -n "$AWK"; then
2346 echo "$ac_t""$AWK" 1>&6
2348 echo "$ac_t""no" 1>&6
2351 test -n "$AWK" && break
2354 # test for ln hardlink support
2355 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2356 echo "configure:2357: checking whether ln works" >&5
2357 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 rm -f conftest.src conftest.dst
2361 echo "conftest" > conftest.src
2362 if ln conftest.src conftest.dst 2>/dev/null
2364 ol_cv_prog_LN_H="ln"
2366 ol_cv_prog_LN_H="cp"
2368 rm -f conftest.src conftest.dst
2371 LN_H="$ol_cv_prog_LN_H"
2372 if test "$ol_cv_prog_LN_H" = "ln"; then
2373 echo "$ac_t""yes" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2379 echo "configure:2380: checking whether ln -s works" >&5
2380 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2384 if ln -s X conftestdata 2>/dev/null
2387 ac_cv_prog_LN_S="ln -s"
2392 LN_S="$ac_cv_prog_LN_S"
2393 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2394 echo "$ac_t""yes" 1>&6
2396 echo "$ac_t""no" 1>&6
2400 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2404 # Extract the first word of "sendmail", so it can be a program name with args.
2405 set dummy sendmail; ac_word=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2413 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2416 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2420 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2421 for ac_dir in $ac_dummy; do
2422 test -z "$ac_dir" && ac_dir=.
2423 if test -f $ac_dir/$ac_word; then
2424 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2429 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2433 SENDMAIL="$ac_cv_path_SENDMAIL"
2434 if test -n "$SENDMAIL"; then
2435 echo "$ac_t""$SENDMAIL" 1>&6
2437 echo "$ac_t""no" 1>&6
2440 # Extract the first word of "vi", so it can be a program name with args.
2441 set dummy vi; ac_word=$2
2442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_word" >&5
2444 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2452 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2456 ac_dummy="$PATH:/usr/ucb"
2457 for ac_dir in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir=.
2459 if test -f $ac_dir/$ac_word; then
2460 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2465 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2469 EDITOR="$ac_cv_path_EDITOR"
2470 if test -n "$EDITOR"; then
2471 echo "$ac_t""$EDITOR" 1>&6
2473 echo "$ac_t""no" 1>&6
2476 # Extract the first word of "finger", so it can be a program name with args.
2477 set dummy finger; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2485 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2488 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2492 ac_dummy="$PATH:/usr/ucb"
2493 for ac_dir in $ac_dummy; do
2494 test -z "$ac_dir" && ac_dir=.
2495 if test -f $ac_dir/$ac_word; then
2496 ac_cv_path_FINGER="$ac_dir/$ac_word"
2501 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2505 FINGER="$ac_cv_path_FINGER"
2506 if test -n "$FINGER"; then
2507 echo "$ac_t""$FINGER" 1>&6
2509 echo "$ac_t""no" 1>&6
2514 if test $ol_enable_modules != no ; then
2515 # Extract the first word of "glib-config", so it can be a program name with args.
2516 set dummy glib-config; ac_word=$2
2517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_word" >&5
2519 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 case "$GLIBCONFIG" in
2524 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2527 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532 for ac_dir in $ac_dummy; do
2533 test -z "$ac_dir" && ac_dir=.
2534 if test -f $ac_dir/$ac_word; then
2535 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2543 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2544 if test -n "$GLIBCONFIG"; then
2545 echo "$ac_t""$GLIBCONFIG" 1>&6
2547 echo "$ac_t""no" 1>&6
2551 if test "no$GLIBCONFIG" = "no" ; then
2552 if test $ol_enable_modules = yes ; then
2553 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2557 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2558 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2559 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2566 if test $ol_enable_perl != no ; then
2567 # Extract the first word of "perl", so it can be a program name with args.
2568 set dummy perl; ac_word=$2
2569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_word" >&5
2571 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2576 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2579 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2584 for ac_dir in $ac_dummy; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2587 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2592 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2596 PERLBIN="$ac_cv_path_PERLBIN"
2597 if test -n "$PERLBIN"; then
2598 echo "$ac_t""$PERLBIN" 1>&6
2600 echo "$ac_t""no" 1>&6
2604 if test "no$PERLBIN" = "no" ; then
2605 if test $ol_enable_perl = yes ; then
2606 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2610 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2611 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2617 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2618 echo "configure:2619: checking how to run the C preprocessor" >&5
2619 # On Suns, sometimes $CPP names a directory.
2620 if test -n "$CPP" && test -d "$CPP"; then
2623 if test -z "$CPP"; then
2624 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 # This must be in double quotes, not single quotes, because CPP may get
2628 # substituted into the Makefile and "${CC-cc}" will confuse make.
2630 # On the NeXT, cc -E runs the code through the compiler's parser,
2631 # not just through cpp.
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2639 { (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2641 if test -z "$ac_err"; then
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 CPP="${CC-cc} -E -traditional-cpp"
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2656 { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2658 if test -z "$ac_err"; then
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2665 CPP="${CC-cc} -nologo -E"
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2673 { (eval echo configure:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2674 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2675 if test -z "$ac_err"; then
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2689 ac_cv_prog_CPP="$CPP"
2691 CPP="$ac_cv_prog_CPP"
2693 ac_cv_prog_CPP="$CPP"
2695 echo "$ac_t""$CPP" 1>&6
2698 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2699 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2701 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2702 echo "configure: warning: programs compiled here do run here..." 1>&2
2703 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2705 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2706 echo "configure: warning: programs compiled here do not run here..." 1>&2
2707 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2710 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2711 echo "configure:2712: checking for AIX" >&5
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2721 egrep "yes" >/dev/null 2>&1; then
2723 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2724 #define _ALL_SOURCE 1
2729 echo "$ac_t""no" 1>&6
2734 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2735 echo "configure:2736: checking for POSIXized ISC" >&5
2736 if test -d /etc/conf/kconfig.d &&
2737 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2739 echo "$ac_t""yes" 1>&6
2740 ISC=yes # If later tests want to check for ISC.
2741 cat >> confdefs.h <<\EOF
2742 #define _POSIX_SOURCE 1
2745 if test "$GCC" = yes; then
2751 echo "$ac_t""no" 1>&6
2755 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2757 echo "configure:2758: checking for minix/config.h" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <minix/config.h>
2766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2771 eval "ac_cv_header_$ac_safe=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 eval "ac_cv_header_$ac_safe=no"
2781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2785 echo "$ac_t""no" 1>&6
2789 if test "$MINIX" = yes; then
2790 cat >> confdefs.h <<\EOF
2791 #define _POSIX_SOURCE 1
2794 cat >> confdefs.h <<\EOF
2795 #define _POSIX_1_SOURCE 2
2798 cat >> confdefs.h <<\EOF
2805 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2806 echo "configure:2807: checking for be_app in -lbe" >&5
2807 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 ac_save_LIBS="$LIBS"
2812 LIBS="-lbe -lroot $LIBS"
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 /* Override any gcc2 internal prototype to avoid an error. */
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2827 eval "ac_cv_lib_$ac_lib_var=yes"
2829 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 eval "ac_cv_lib_$ac_lib_var=no"
2835 LIBS="$ac_save_LIBS"
2838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 LIBS="$LIBS -lbe -lroot"
2842 echo "$ac_t""no" 1>&6
2847 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2848 echo "configure:2849: checking for Cygwin environment" >&5
2849 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2859 #define __CYGWIN__ __CYGWIN32__
2864 if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2877 echo "$ac_t""$ac_cv_cygwin" 1>&6
2879 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2880 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2881 echo "configure:2882: checking for mingw32 environment" >&5
2882 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2893 if { (eval echo configure:2894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2906 echo "$ac_t""$ac_cv_mingw32" 1>&6
2908 test "$ac_cv_mingw32" = yes && MINGW32=yes
2911 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2912 echo "configure:2913: checking for executable suffix" >&5
2913 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2920 echo 'int main () { return 0; }' > conftest.$ac_ext
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2923 for file in conftest.*; do
2925 *.c | *.o | *.obj) ;;
2926 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2930 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2933 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2938 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2939 echo "$ac_t""${ac_cv_exeext}" 1>&6
2942 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2943 echo "configure:2944: checking for object suffix" >&5
2944 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2948 echo 'int i = 1;' > conftest.$ac_ext
2949 if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2950 for ac_file in conftest.*; do
2953 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2957 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2962 echo "$ac_t""$ac_cv_objext" 1>&6
2963 OBJEXT=$ac_cv_objext
2964 ac_objext=$ac_cv_objext
2967 cat >> confdefs.h <<EOF
2968 #define EXEEXT "${EXEEXT}"
2975 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2976 echo "configure:2977: checking for ${CC-cc} option to accept ANSI C" >&5
2977 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 am_cv_prog_cc_stdc=no
2982 # Don't try gcc -ansi; that turns off useful extensions and
2983 # breaks some systems' header files.
2984 # AIX -qlanglvl=ansi
2985 # Ultrix and OSF/1 -std1
2986 # HP-UX -Aa -D_HPUX_SOURCE
2987 # SVR4 -Xc -D__EXTENSIONS__
2988 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2990 CC="$ac_save_CC $ac_arg"
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3012 s = g (p, va_arg (v,int));
3016 int test (int i, double x);
3017 struct s1 {int (*f) (int a);};
3018 struct s2 {int (*f) (double a);};
3019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3029 if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3031 am_cv_prog_cc_stdc="$ac_arg"; break
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3042 if test -z "$am_cv_prog_cc_stdc"; then
3043 echo "$ac_t""none needed" 1>&6
3045 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3047 case "x$am_cv_prog_cc_stdc" in
3049 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3052 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3053 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3059 echo $ac_n "checking for socket""... $ac_c" 1>&6
3060 echo "configure:3061: checking for socket" >&5
3061 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067 /* System header to define __stub macros and hopefully few prototypes,
3068 which can conflict with char socket(); below. */
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3077 /* The GNU C library defines this for functions which it implements
3078 to always fail with ENOSYS. Some functions are actually named
3079 something starting with __ and the normal name is an alias. */
3080 #if defined (__stub_socket) || defined (__stub___socket)
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 eval "ac_cv_func_socket=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "ac_cv_func_socket=no"
3100 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3101 echo "$ac_t""yes" 1>&6
3104 echo "$ac_t""no" 1>&6
3106 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3107 echo "configure:3108: checking for main in -lsocket" >&5
3108 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 ac_save_LIBS="$LIBS"
3113 LIBS="-lsocket $LIBS"
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3122 if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3124 eval "ac_cv_lib_$ac_lib_var=yes"
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3129 eval "ac_cv_lib_$ac_lib_var=no"
3132 LIBS="$ac_save_LIBS"
3135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3136 echo "$ac_t""yes" 1>&6
3137 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3139 cat >> confdefs.h <<EOF
3140 #define $ac_tr_lib 1
3143 LIBS="-lsocket $LIBS"
3146 echo "$ac_t""no" 1>&6
3149 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3150 echo "configure:3151: checking for main in -lnet" >&5
3151 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 ac_save_LIBS="$LIBS"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167 eval "ac_cv_lib_$ac_lib_var=yes"
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 eval "ac_cv_lib_$ac_lib_var=no"
3175 LIBS="$ac_save_LIBS"
3178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3179 echo "$ac_t""yes" 1>&6
3180 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3182 cat >> confdefs.h <<EOF
3183 #define $ac_tr_lib 1
3189 echo "$ac_t""no" 1>&6
3192 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3193 echo "configure:3194: checking for socket in -lnet" >&5
3194 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 ac_save_LIBS="$LIBS"
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 eval "ac_cv_lib_$ac_lib_var=yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 eval "ac_cv_lib_$ac_lib_var=no"
3222 LIBS="$ac_save_LIBS"
3225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3229 cat >> confdefs.h <<EOF
3230 #define $ac_tr_lib 1
3236 echo "$ac_t""no" 1>&6
3239 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3240 echo "configure:3241: checking for main in -lnsl_s" >&5
3241 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_save_LIBS="$LIBS"
3246 LIBS="-lnsl_s $LIBS"
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 eval "ac_cv_lib_$ac_lib_var=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 eval "ac_cv_lib_$ac_lib_var=no"
3265 LIBS="$ac_save_LIBS"
3268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3272 cat >> confdefs.h <<EOF
3273 #define $ac_tr_lib 1
3276 LIBS="-lnsl_s $LIBS"
3279 echo "$ac_t""no" 1>&6
3282 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3283 echo "configure:3284: checking for main in -lnsl" >&5
3284 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 ac_save_LIBS="$LIBS"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300 eval "ac_cv_lib_$ac_lib_var=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3305 eval "ac_cv_lib_$ac_lib_var=no"
3308 LIBS="$ac_save_LIBS"
3311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3315 cat >> confdefs.h <<EOF
3316 #define $ac_tr_lib 1
3322 echo "$ac_t""no" 1>&6
3325 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3326 echo "configure:3327: checking for socket in -linet" >&5
3327 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 ac_save_LIBS="$LIBS"
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347 eval "ac_cv_lib_$ac_lib_var=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_lib_$ac_lib_var=no"
3355 LIBS="$ac_save_LIBS"
3358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3362 cat >> confdefs.h <<EOF
3363 #define $ac_tr_lib 1
3369 echo "$ac_t""no" 1>&6
3372 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3373 echo "configure:3374: checking for main in -lgen" >&5
3374 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 ac_save_LIBS="$LIBS"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3390 eval "ac_cv_lib_$ac_lib_var=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 eval "ac_cv_lib_$ac_lib_var=no"
3398 LIBS="$ac_save_LIBS"
3401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3403 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3405 cat >> confdefs.h <<EOF
3406 #define $ac_tr_lib 1
3412 echo "$ac_t""no" 1>&6
3419 for ac_func in res_search
3421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_func" >&5
3423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* System header to define __stub macros and hopefully few prototypes,
3430 which can conflict with char $ac_func(); below. */
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3439 /* The GNU C library defines this for functions which it implements
3440 to always fail with ENOSYS. Some functions are actually named
3441 something starting with __ and the normal name is an alias. */
3442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3452 eval "ac_cv_func_$ac_func=yes"
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 eval "ac_cv_func_$ac_func=no"
3462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3463 echo "$ac_t""yes" 1>&6
3464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3465 cat >> confdefs.h <<EOF
3466 #define $ac_tr_func 1
3470 echo "$ac_t""no" 1>&6
3474 if test $ac_cv_func_res_search = "no" ; then
3475 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3476 echo "configure:3477: checking for res_search in -lbind" >&5
3477 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 ac_save_LIBS="$LIBS"
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 /* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3497 eval "ac_cv_lib_$ac_lib_var=yes"
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3502 eval "ac_cv_lib_$ac_lib_var=no"
3505 LIBS="$ac_save_LIBS"
3508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3509 echo "$ac_t""yes" 1>&6
3510 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3512 cat >> confdefs.h <<EOF
3513 #define $ac_tr_lib 1
3519 echo "$ac_t""no" 1>&6
3522 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3523 cat >> confdefs.h <<\EOF
3524 #define HAVE_RES_SEARCH 1
3528 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3529 echo "configure:3530: checking for res_search in -lresolv" >&5
3530 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 ac_save_LIBS="$LIBS"
3535 LIBS="-lresolv $LIBS"
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 eval "ac_cv_lib_$ac_lib_var=no"
3558 LIBS="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3565 cat >> confdefs.h <<EOF
3566 #define $ac_tr_lib 1
3569 LIBS="-lresolv $LIBS"
3572 echo "$ac_t""no" 1>&6
3575 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3576 cat >> confdefs.h <<\EOF
3577 #define HAVE_RES_SEARCH 1
3584 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3585 echo "configure:3586: checking for sigset in -lV3" >&5
3586 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 eval "ac_cv_lib_$ac_lib_var=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_lib_$ac_lib_var=no"
3614 LIBS="$ac_save_LIBS"
3617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3620 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_lib 1
3628 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for select""... $ac_c" 1>&6
3633 echo "configure:3634: checking for select" >&5
3634 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 /* System header to define __stub macros and hopefully few prototypes,
3641 which can conflict with char select(); below. */
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_select) || defined (__stub___select)
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_func_select=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_func_select=no"
3673 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3677 echo "$ac_t""no" 1>&6
3678 { echo "configure: error: select() required." 1>&2; exit 1; }
3682 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3683 echo "configure:3684: checking types of arguments for select()" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3694 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3695 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #ifdef HAVE_SYS_TYPES_H
3700 #include <sys/types.h>
3702 #ifdef HAVE_SYS_TIME_H
3703 #include <sys/time.h>
3705 #ifdef HAVE_SYS_SELECT_H
3706 #include <sys/select.h>
3708 #ifdef HAVE_SYS_SOCKET_H
3709 #include <sys/socket.h>
3711 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);
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_not_found=no ; break 3
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3735 if test "$ac_not_found" = yes; then
3736 ac_cv_func_select_arg1=int
3737 ac_cv_func_select_arg234='int *'
3738 ac_cv_func_select_arg5='struct timeval *'
3740 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3741 cat >> confdefs.h <<EOF
3742 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3745 cat >> confdefs.h <<EOF
3746 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3749 cat >> confdefs.h <<EOF
3750 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3757 if test $ol_enable_ldapd != no ; then
3758 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3759 echo "configure:3760: checking for main in -lxtpp" >&5
3760 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 ac_save_LIBS="$LIBS"
3765 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3766 cat > conftest.$ac_ext <<EOF
3767 #line 3768 "configure"
3768 #include "confdefs.h"
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3776 eval "ac_cv_lib_$ac_lib_var=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3781 eval "ac_cv_lib_$ac_lib_var=no"
3784 LIBS="$ac_save_LIBS"
3787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3788 echo "$ac_t""yes" 1>&6
3791 cat >> confdefs.h <<\EOF
3795 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3798 echo "$ac_t""no" 1>&6
3802 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3803 echo "configure:3804: checking for main in -ldsap" >&5
3804 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 ac_save_LIBS="$LIBS"
3809 LIBS="-ldsap -lisode $LIBS"
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3820 eval "ac_cv_lib_$ac_lib_var=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_lib_$ac_lib_var=no"
3828 LIBS="$ac_save_LIBS"
3831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3835 cat >> confdefs.h <<\EOF
3839 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3842 echo "$ac_t""no" 1>&6
3846 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3847 echo "configure:3848: checking for main in -lisode" >&5
3848 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 ac_save_LIBS="$LIBS"
3853 LIBS="-lisode $LIBS"
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 eval "ac_cv_lib_$ac_lib_var=no"
3872 LIBS="$ac_save_LIBS"
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3879 cat >> confdefs.h <<\EOF
3880 #define HAVE_ISODE 1
3883 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3886 echo "$ac_t""no" 1>&6
3892 if test $ol_link_isode != no; then
3893 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3894 echo "configure:3895: checking for main in -lpp" >&5
3895 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 ac_save_LIBS="$LIBS"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3925 cat >> confdefs.h <<\EOF
3929 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3932 echo "$ac_t""no" 1>&6
3937 # Extract the first word of "pepsy", so it can be a program name with args.
3938 set dummy pepsy; ac_word=$2
3939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_word" >&5
3941 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3946 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3949 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3954 for ac_dir in $ac_dummy; do
3955 test -z "$ac_dir" && ac_dir=.
3956 if test -f $ac_dir/$ac_word; then
3957 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3965 PEPSY="$ac_cv_path_PEPSY"
3966 if test -n "$PEPSY"; then
3967 echo "$ac_t""$PEPSY" 1>&6
3969 echo "$ac_t""no" 1>&6
3976 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3977 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3981 echo "configure:3982: checking for $ac_hdr" >&5
3982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3991 { (eval echo configure:3992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3993 if test -z "$ac_err"; then
3995 eval "ac_cv_header_$ac_safe=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 eval "ac_cv_header_$ac_safe=no"
4005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4008 cat >> confdefs.h <<EOF
4009 #define $ac_tr_hdr 1
4013 echo "$ac_t""no" 1>&6
4018 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4019 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4020 echo "configure:4021: checking for main in -lkrb4" >&5
4021 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 ac_save_LIBS="$LIBS"
4026 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 eval "ac_cv_lib_$ac_lib_var=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 eval "ac_cv_lib_$ac_lib_var=no"
4045 LIBS="$ac_save_LIBS"
4048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4052 echo "$ac_t""no" 1>&6
4057 if test $have_k5 = yes ; then
4058 ol_with_kerberos=found
4059 ol_link_kerberos=yes
4061 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4063 LIBS="$KRB_LIBS $LIBS"
4065 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4066 echo "configure:4067: checking for des_debug in Kerberos libraries" >&5
4067 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4072 LIBS="$KRB_LIBS $LIBS"
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4077 #include <kerberosIV/krb.h>
4078 #include <kerberosIV/des.h>
4079 extern int des_debug;
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4089 ol_cv_var_des_debug=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 ol_cv_var_des_debug=no
4101 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4103 if test $ol_cv_var_des_debug = yes ; then
4104 cat >> confdefs.h <<\EOF
4105 #define HAVE_DES_DEBUG 1
4115 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4116 for ac_hdr in krb.h des.h
4118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_hdr" >&5
4121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4130 { (eval echo configure:4131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4132 if test -z "$ac_err"; then
4134 eval "ac_cv_header_$ac_safe=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 eval "ac_cv_header_$ac_safe=no"
4144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4147 cat >> confdefs.h <<EOF
4148 #define $ac_tr_hdr 1
4152 echo "$ac_t""no" 1>&6
4157 if test $ac_cv_header_krb_h = yes ; then
4158 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4159 echo "configure:4160: checking for main in -lkrb" >&5
4160 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4165 LIBS="-lkrb -ldes $LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4191 echo "$ac_t""no" 1>&6
4196 if test $have_k4 = yes ; then
4197 ol_with_kerberos=found
4198 ol_link_kerberos=yes
4200 KRB_LIBS="-lkrb -ldes"
4205 if test $ol_link_kerberos = yes ; then
4206 cat >> confdefs.h <<\EOF
4207 #define HAVE_KERBEROS 1
4213 if test $ol_with_tls != no ; then
4217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4219 echo "configure:4220: checking for $ac_hdr" >&5
4220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4229 { (eval echo configure:4230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4231 if test -z "$ac_err"; then
4233 eval "ac_cv_header_$ac_safe=yes"
4236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4239 eval "ac_cv_header_$ac_safe=no"
4243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4244 echo "$ac_t""yes" 1>&6
4245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4246 cat >> confdefs.h <<EOF
4247 #define $ac_tr_hdr 1
4251 echo "$ac_t""no" 1>&6
4256 if test $ac_cv_header_ssl_h = yes ; then
4257 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4258 echo "configure:4259: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4259 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lssl -lcrypto $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char SSLeay_add_ssl_algorithms();
4274 SSLeay_add_ssl_algorithms()
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4295 echo "$ac_t""no" 1>&6
4300 if test $have_ssleay = no ; then
4301 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4302 echo "configure:4303: checking for ssl3_accept in -lssl" >&5
4303 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4305 echo $ac_n "(cached) $ac_c" 1>&6
4307 ac_save_LIBS="$LIBS"
4308 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4312 /* Override any gcc2 internal prototype to avoid an error. */
4313 /* We use char because int might match the return type of a gcc2
4314 builtin and then its argument prototype would still apply. */
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323 eval "ac_cv_lib_$ac_lib_var=yes"
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 eval "ac_cv_lib_$ac_lib_var=no"
4331 LIBS="$ac_save_LIBS"
4334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4339 echo "$ac_t""no" 1>&6
4345 if test $have_ssleay = yes ; then
4349 cat >> confdefs.h <<\EOF
4350 #define HAVE_SSLEAY 1
4354 if test $need_rsaref = yes; then
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_RSAREF 1
4360 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4362 TLS_LIBS="-lssl -lcrypto"
4368 if test $ol_link_tls = yes ; then
4369 cat >> confdefs.h <<\EOF
4377 gethostbyname_r gethostbyaddr_r \
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389 which can conflict with char $ac_func(); below. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4411 eval "ac_cv_func_$ac_func=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4416 eval "ac_cv_func_$ac_func=no"
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424 cat >> confdefs.h <<EOF
4425 #define $ac_tr_func 1
4429 echo "$ac_t""no" 1>&6
4434 if test "$ac_cv_func_ctime_r" = no ; then
4435 ol_cv_func_ctime_r_nargs=0
4437 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4438 echo "configure:4439: checking number of arguments of ctime_r" >&5
4439 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4442 cat > conftest.$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4447 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4450 if { (eval echo configure:4451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4452 ol_cv_func_ctime_r_nargs=3
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4462 time_t ti; char *buffer; ctime_r(&ti,buffer);
4465 if { (eval echo configure:4466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4467 ol_cv_func_ctime_r_nargs=2
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 ol_cv_func_ctime_r_nargs=0
4479 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4480 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4481 cat >> confdefs.h <<EOF
4482 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4489 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4490 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4491 echo "configure:4492: checking number of arguments of gethostbyname_r" >&5
4492 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4498 #include <sys/types.h>
4499 #include <sys/socket.h>
4500 #include <netinet/in.h>
4502 #define BUFSIZE (sizeof(struct hostent)+10)
4504 struct hostent hent; char buffer[BUFSIZE];
4505 int bufsize=BUFSIZE;int h_errno;
4506 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4507 buffer, bufsize, &h_errno);
4510 if { (eval echo configure:4511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4512 ol_cv_func_gethostbyname_r_nargs=5
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 #include <sys/types.h>
4521 #include <sys/socket.h>
4522 #include <netinet/in.h>
4524 #define BUFSIZE (sizeof(struct hostent)+10)
4526 struct hostent hent;struct hostent *rhent;
4527 char buffer[BUFSIZE];
4528 int bufsize=BUFSIZE;int h_errno;
4529 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4533 if { (eval echo configure:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4535 ol_cv_func_gethostbyname_r_nargs=6
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 ol_cv_func_gethostbyname_r_nargs=0
4547 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4548 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4549 cat >> confdefs.h <<EOF
4550 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4556 ol_cv_func_gethostbyname_r_nargs=0
4559 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4560 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4561 echo "configure:4562: checking number of arguments of gethostbyaddr_r" >&5
4562 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 #include <sys/types.h>
4569 #include <sys/socket.h>
4570 #include <netinet/in.h>
4572 #define BUFSIZE (sizeof(struct hostent)+10)
4574 struct hostent hent; char buffer[BUFSIZE];
4576 size_t alen=sizeof(struct in_addr);
4577 int bufsize=BUFSIZE;int h_errno;
4578 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4579 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4582 if { (eval echo configure:4583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4584 ol_cv_func_gethostbyaddr_r_nargs=7
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4589 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4592 #include <sys/types.h>
4593 #include <sys/socket.h>
4594 #include <netinet/in.h>
4596 #define BUFSIZE (sizeof(struct hostent)+10)
4598 struct hostent hent;
4599 struct hostent *rhent; char buffer[BUFSIZE];
4601 size_t alen=sizeof(struct in_addr);
4602 int bufsize=BUFSIZE;int h_errno;
4603 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4604 alen, AF_INET, &hent, buffer, bufsize,
4608 if { (eval echo configure:4609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4610 ol_cv_func_gethostbyaddr_r_nargs=8
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 ol_cv_func_gethostbyaddr_r_nargs=0
4622 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4623 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4624 cat >> confdefs.h <<EOF
4625 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4631 ol_cv_func_gethostbyaddr_r_nargs=0
4634 if test "$ac_cv_func_ctime_r" = yes \
4635 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4636 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4637 -a "$ac_cv_func_gethostbyname_r" = yes \
4638 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4639 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4640 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4641 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4642 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4645 cat >> confdefs.h <<\EOF
4646 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4652 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4653 -o $ol_with_threads = posix ; then
4655 for ac_hdr in pthread.h sched.h
4657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4673 eval "ac_cv_header_$ac_safe=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.$ac_ext >&5
4679 eval "ac_cv_header_$ac_safe=no"
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_hdr 1
4691 echo "$ac_t""no" 1>&6
4696 if test $ac_cv_header_pthread_h = yes ; then
4697 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4698 echo "configure:4699: checking POSIX thread version" >&5
4699 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4707 # include <pthread.h>
4708 /* this check could be improved */
4709 # ifdef PTHREAD_ONCE_INIT
4710 pthread_version_final
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 egrep "pthread_version_final" >/dev/null 2>&1; then
4717 ol_pthread_final=yes
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4729 # include <pthread.h>
4730 /* this check could be improved */
4731 # ifdef pthread_once_init
4732 pthread_version_draft4
4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4739 ol_pthread_draft4=yes
4742 ol_pthread_draft4=no
4747 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4748 ol_cv_pthread_version=final
4749 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4750 ol_cv_pthread_version=draft4
4752 ol_cv_pthread_version=unknown
4757 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4760 if test $ol_cv_pthread_version = final ; then
4761 cat >> confdefs.h <<\EOF
4762 #define HAVE_PTHREADS_FINAL 1
4765 elif test $ol_cv_pthread_version = draft4 ; then
4766 cat >> confdefs.h <<\EOF
4767 #define HAVE_PTHREADS_D4 1
4771 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4774 # consider threads found
4775 ol_with_threads=found
4778 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4779 echo "configure:4780: checking for LinuxThreads pthread.h" >&5
4780 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 cat > conftest.$ac_ext <<EOF
4784 #line 4785 "configure"
4785 #include "confdefs.h"
4786 #include <pthread.h>
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4791 ol_cv_header_linux_threads=yes
4794 ol_cv_header_linux_threads=no
4801 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4802 if test $ol_cv_header_linux_threads = yes; then
4803 cat >> confdefs.h <<\EOF
4804 #define HAVE_LINUX_THREADS 1
4811 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4812 echo "configure:4813: checking for pthread_create in default libraries" >&5
4813 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4817 if test "$cross_compiling" = yes; then
4818 ol_cv_pthread_create=yes
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4824 #include <pthread.h>
4826 #define NULL (void*)0
4829 static void *task(p)
4832 return (void *) (p == NULL);
4835 int main(argc, argv)
4842 /* make sure pthread_create() isn't just a stub */
4843 #if HAVE_PTHREADS_D4
4844 status = pthread_create(&t, pthread_attr_default, task, NULL);
4846 status = pthread_create(&t, NULL, task, NULL);
4849 if( status ) return status;
4851 /* make sure pthread_detach() isn't just a stub */
4852 #if HAVE_PTHREADS_D4
4853 status = pthread_detach( &t );
4855 status = pthread_detach( t );
4858 if( status ) return status;
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4866 ol_cv_pthread_create=yes
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 ol_cv_pthread_create=no
4878 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4880 if test $ol_cv_pthread_create != no ; then
4881 ol_link_threads=posix
4885 # Pthread try link: -mt (ol_cv_pthread_mt)
4886 if test "$ol_link_threads" = no ; then
4888 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4889 echo "configure:4890: checking for pthread link with -mt" >&5
4890 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4902 #include <pthread.h>
4904 #define NULL (void*)0
4911 #if HAVE_PTHREADS_D4
4912 pthread_create(&t, pthread_attr_default, NULL, NULL);
4913 pthread_detach( &t );
4915 pthread_create(&t, NULL, NULL, NULL);
4916 pthread_detach( t );
4918 #ifdef HAVE_LINUX_THREADS
4919 pthread_kill_other_threads_np();
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4926 ol_cv_pthread_mt=yes
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4940 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4942 if test $ol_cv_pthread_mt = yes ; then
4943 ol_link_pthreads="-mt"
4944 ol_link_threads=posix
4948 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4949 if test "$ol_link_threads" = no ; then
4951 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4952 echo "configure:4953: checking for pthread link with -kthread" >&5
4953 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4959 LIBS="-kthread $LIBS"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4965 #include <pthread.h>
4967 #define NULL (void*)0
4974 #if HAVE_PTHREADS_D4
4975 pthread_create(&t, pthread_attr_default, NULL, NULL);
4976 pthread_detach( &t );
4978 pthread_create(&t, NULL, NULL, NULL);
4979 pthread_detach( t );
4981 #ifdef HAVE_LINUX_THREADS
4982 pthread_kill_other_threads_np();
4987 if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4989 ol_cv_pthread_kthread=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 ol_cv_pthread_kthread=no
5003 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5005 if test $ol_cv_pthread_kthread = yes ; then
5006 ol_link_pthreads="-kthread"
5007 ol_link_threads=posix
5011 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5012 if test "$ol_link_threads" = no ; then
5014 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5015 echo "configure:5016: checking for pthread link with -pthread" >&5
5016 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5022 LIBS="-pthread $LIBS"
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5028 #include <pthread.h>
5030 #define NULL (void*)0
5037 #if HAVE_PTHREADS_D4
5038 pthread_create(&t, pthread_attr_default, NULL, NULL);
5039 pthread_detach( &t );
5041 pthread_create(&t, NULL, NULL, NULL);
5042 pthread_detach( t );
5044 #ifdef HAVE_LINUX_THREADS
5045 pthread_kill_other_threads_np();
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 ol_cv_pthread_pthread=yes
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5057 ol_cv_pthread_pthread=no
5066 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5068 if test $ol_cv_pthread_pthread = yes ; then
5069 ol_link_pthreads="-pthread"
5070 ol_link_threads=posix
5074 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5075 if test "$ol_link_threads" = no ; then
5077 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5078 echo "configure:5079: checking for pthread link with -pthreads" >&5
5079 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5085 LIBS="-pthreads $LIBS"
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5091 #include <pthread.h>
5093 #define NULL (void*)0
5100 #if HAVE_PTHREADS_D4
5101 pthread_create(&t, pthread_attr_default, NULL, NULL);
5102 pthread_detach( &t );
5104 pthread_create(&t, NULL, NULL, NULL);
5105 pthread_detach( t );
5107 #ifdef HAVE_LINUX_THREADS
5108 pthread_kill_other_threads_np();
5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 ol_cv_pthread_pthreads=yes
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 ol_cv_pthread_pthreads=no
5129 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5131 if test $ol_cv_pthread_pthreads = yes ; then
5132 ol_link_pthreads="-pthreads"
5133 ol_link_threads=posix
5137 # Pthread try link: -thread (ol_cv_pthread_thread)
5138 if test "$ol_link_threads" = no ; then
5140 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5141 echo "configure:5142: checking for pthread link with -thread" >&5
5142 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5148 LIBS="-thread $LIBS"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5154 #include <pthread.h>
5156 #define NULL (void*)0
5163 #if HAVE_PTHREADS_D4
5164 pthread_create(&t, pthread_attr_default, NULL, NULL);
5165 pthread_detach( &t );
5167 pthread_create(&t, NULL, NULL, NULL);
5168 pthread_detach( t );
5170 #ifdef HAVE_LINUX_THREADS
5171 pthread_kill_other_threads_np();
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 ol_cv_pthread_thread=yes
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 ol_cv_pthread_thread=no
5192 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5194 if test $ol_cv_pthread_thread = yes ; then
5195 ol_link_pthreads="-thread"
5196 ol_link_threads=posix
5201 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5202 if test "$ol_link_threads" = no ; then
5203 # try -lpthread -lmach -lexc -lc_r
5204 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5205 echo "configure:5206: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5206 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5212 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5218 #include <pthread.h>
5220 #define NULL (void*)0
5227 #if HAVE_PTHREADS_D4
5228 pthread_create(&t, pthread_attr_default, NULL, NULL);
5229 pthread_detach( &t );
5231 pthread_create(&t, NULL, NULL, NULL);
5232 pthread_detach( t );
5234 #ifdef HAVE_LINUX_THREADS
5235 pthread_kill_other_threads_np();
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5247 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5256 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5258 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5259 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5260 ol_link_threads=posix
5264 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5265 if test "$ol_link_threads" = no ; then
5266 # try -lpthread -lmach -lexc
5267 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5268 echo "configure:5269: checking for pthread link with -lpthread -lmach -lexc" >&5
5269 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5270 echo $ac_n "(cached) $ac_c" 1>&6
5275 LIBS="-lpthread -lmach -lexc $LIBS"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5281 #include <pthread.h>
5283 #define NULL (void*)0
5290 #if HAVE_PTHREADS_D4
5291 pthread_create(&t, pthread_attr_default, NULL, NULL);
5292 pthread_detach( &t );
5294 pthread_create(&t, NULL, NULL, NULL);
5295 pthread_detach( t );
5297 #ifdef HAVE_LINUX_THREADS
5298 pthread_kill_other_threads_np();
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 ol_cv_pthread_lpthread_lmach_lexc=yes
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 ol_cv_pthread_lpthread_lmach_lexc=no
5319 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5321 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5322 ol_link_pthreads="-lpthread -lmach -lexc"
5323 ol_link_threads=posix
5328 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5329 if test "$ol_link_threads" = no ; then
5330 # try -lpthread -Wl,-woff,85
5331 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5332 echo "configure:5333: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5333 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5339 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5345 #include <pthread.h>
5347 #define NULL (void*)0
5354 #if HAVE_PTHREADS_D4
5355 pthread_create(&t, pthread_attr_default, NULL, NULL);
5356 pthread_detach( &t );
5358 pthread_create(&t, NULL, NULL, NULL);
5359 pthread_detach( t );
5361 #ifdef HAVE_LINUX_THREADS
5362 pthread_kill_other_threads_np();
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5369 ol_cv_pthread_lib_lpthread_woff=yes
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 ol_cv_pthread_lib_lpthread_woff=no
5383 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5385 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5386 ol_link_pthreads="-lpthread -Wl,-woff,85"
5387 ol_link_threads=posix
5392 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5393 if test "$ol_link_threads" = no ; then
5395 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5396 echo "configure:5397: checking for pthread link with -lpthread" >&5
5397 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5403 LIBS="-lpthread $LIBS"
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5409 #include <pthread.h>
5411 #define NULL (void*)0
5418 #if HAVE_PTHREADS_D4
5419 pthread_create(&t, pthread_attr_default, NULL, NULL);
5420 pthread_detach( &t );
5422 pthread_create(&t, NULL, NULL, NULL);
5423 pthread_detach( t );
5425 #ifdef HAVE_LINUX_THREADS
5426 pthread_kill_other_threads_np();
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 ol_cv_pthread_lpthread=yes
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 ol_cv_pthread_lpthread=no
5447 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5449 if test $ol_cv_pthread_lpthread = yes ; then
5450 ol_link_pthreads="-lpthread"
5451 ol_link_threads=posix
5455 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5456 if test "$ol_link_threads" = no ; then
5458 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5459 echo "configure:5460: checking for pthread link with -lc_r" >&5
5460 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5472 #include <pthread.h>
5474 #define NULL (void*)0
5481 #if HAVE_PTHREADS_D4
5482 pthread_create(&t, pthread_attr_default, NULL, NULL);
5483 pthread_detach( &t );
5485 pthread_create(&t, NULL, NULL, NULL);
5486 pthread_detach( t );
5488 #ifdef HAVE_LINUX_THREADS
5489 pthread_kill_other_threads_np();
5494 if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5496 ol_cv_pthread_lc_r=yes
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 ol_cv_pthread_lc_r=no
5510 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5512 if test $ol_cv_pthread_lc_r = yes ; then
5513 ol_link_pthreads="-lc_r"
5514 ol_link_threads=posix
5519 # Pthread try link: -threads (ol_cv_pthread_threads)
5520 if test "$ol_link_threads" = no ; then
5522 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5523 echo "configure:5524: checking for pthread link with -threads" >&5
5524 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5530 LIBS="-threads $LIBS"
5532 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure"
5534 #include "confdefs.h"
5536 #include <pthread.h>
5538 #define NULL (void*)0
5545 #if HAVE_PTHREADS_D4
5546 pthread_create(&t, pthread_attr_default, NULL, NULL);
5547 pthread_detach( &t );
5549 pthread_create(&t, NULL, NULL, NULL);
5550 pthread_detach( t );
5552 #ifdef HAVE_LINUX_THREADS
5553 pthread_kill_other_threads_np();
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5560 ol_cv_pthread_threads=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 ol_cv_pthread_threads=no
5574 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5576 if test $ol_cv_pthread_threads = yes ; then
5577 ol_link_pthreads="-threads"
5578 ol_link_threads=posix
5583 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5584 if test "$ol_link_threads" = no ; then
5585 # try -lpthreads -lmach -lexc -lc_r
5586 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5587 echo "configure:5588: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5588 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5594 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5600 #include <pthread.h>
5602 #define NULL (void*)0
5609 #if HAVE_PTHREADS_D4
5610 pthread_create(&t, pthread_attr_default, NULL, NULL);
5611 pthread_detach( &t );
5613 pthread_create(&t, NULL, NULL, NULL);
5614 pthread_detach( t );
5616 #ifdef HAVE_LINUX_THREADS
5617 pthread_kill_other_threads_np();
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5638 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5640 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5641 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5642 ol_link_threads=posix
5646 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5647 if test "$ol_link_threads" = no ; then
5648 # try -lpthreads -lmach -lexc
5649 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5650 echo "configure:5651: checking for pthread link with -lpthreads -lmach -lexc" >&5
5651 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5657 LIBS="-lpthreads -lmach -lexc $LIBS"
5659 cat > conftest.$ac_ext <<EOF
5660 #line 5661 "configure"
5661 #include "confdefs.h"
5663 #include <pthread.h>
5665 #define NULL (void*)0
5672 #if HAVE_PTHREADS_D4
5673 pthread_create(&t, pthread_attr_default, NULL, NULL);
5674 pthread_detach( &t );
5676 pthread_create(&t, NULL, NULL, NULL);
5677 pthread_detach( t );
5679 #ifdef HAVE_LINUX_THREADS
5680 pthread_kill_other_threads_np();
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5687 ol_cv_pthread_lpthreads_lmach_lexc=yes
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5692 ol_cv_pthread_lpthreads_lmach_lexc=no
5701 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5703 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5704 ol_link_pthreads="-lpthreads -lmach -lexc"
5705 ol_link_threads=posix
5709 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5710 if test "$ol_link_threads" = no ; then
5711 # try -lpthreads -lexc
5712 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5713 echo "configure:5714: checking for pthread link with -lpthreads -lexc" >&5
5714 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5720 LIBS="-lpthreads -lexc $LIBS"
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5726 #include <pthread.h>
5728 #define NULL (void*)0
5735 #if HAVE_PTHREADS_D4
5736 pthread_create(&t, pthread_attr_default, NULL, NULL);
5737 pthread_detach( &t );
5739 pthread_create(&t, NULL, NULL, NULL);
5740 pthread_detach( t );
5742 #ifdef HAVE_LINUX_THREADS
5743 pthread_kill_other_threads_np();
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 ol_cv_pthread_lpthreads_lexc=yes
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 ol_cv_pthread_lpthreads_lexc=no
5764 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5766 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5767 ol_link_pthreads="-lpthreads -lexc"
5768 ol_link_threads=posix
5773 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5774 if test "$ol_link_threads" = no ; then
5776 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5777 echo "configure:5778: checking for pthread link with -lpthreads" >&5
5778 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5784 LIBS="-lpthreads $LIBS"
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5790 #include <pthread.h>
5792 #define NULL (void*)0
5799 #if HAVE_PTHREADS_D4
5800 pthread_create(&t, pthread_attr_default, NULL, NULL);
5801 pthread_detach( &t );
5803 pthread_create(&t, NULL, NULL, NULL);
5804 pthread_detach( t );
5806 #ifdef HAVE_LINUX_THREADS
5807 pthread_kill_other_threads_np();
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814 ol_cv_pthread_lib_lpthreads=yes
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 ol_cv_pthread_lib_lpthreads=no
5828 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5830 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5831 ol_link_pthreads="-lpthreads"
5832 ol_link_threads=posix
5837 if test $ol_link_threads != no ; then
5838 cat >> confdefs.h <<\EOF
5839 #define HAVE_PTHREADS 1
5843 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5845 save_CPPFLAGS="$CPPFLAGS"
5847 LIBS="$LTHREAD_LIBS $LIBS"
5849 for ac_func in sched_yield pthread_yield
5851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_func" >&5
5853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 /* System header to define __stub macros and hopefully few prototypes,
5860 which can conflict with char $ac_func(); below. */
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5869 /* The GNU C library defines this for functions which it implements
5870 to always fail with ENOSYS. Some functions are actually named
5871 something starting with __ and the normal name is an alias. */
5872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5882 eval "ac_cv_func_$ac_func=yes"
5884 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 eval "ac_cv_func_$ac_func=no"
5892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5893 echo "$ac_t""yes" 1>&6
5894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5895 cat >> confdefs.h <<EOF
5896 #define $ac_tr_func 1
5900 echo "$ac_t""no" 1>&6
5905 if test $ac_cv_func_sched_yield = no -a \
5906 $ac_cv_func_pthread_yield = no ; then
5907 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5908 echo "configure:5909: checking for sched_yield in -lrt" >&5
5909 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5911 echo $ac_n "(cached) $ac_c" 1>&6
5913 ac_save_LIBS="$LIBS"
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5929 eval "ac_cv_lib_$ac_lib_var=yes"
5931 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5
5934 eval "ac_cv_lib_$ac_lib_var=no"
5937 LIBS="$ac_save_LIBS"
5940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5943 cat >> confdefs.h <<\EOF
5944 #define HAVE_SCHED_YIELD 1
5947 ac_cv_func_sched_yield=yes
5949 echo "$ac_t""no" 1>&6
5950 ac_cv_func_sched_yield=no
5954 if test $ac_cv_func_sched_yield = no -a \
5955 $ac_cv_func_pthread_yield = no ; then
5956 for ac_func in thr_yield
5958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5959 echo "configure:5960: checking for $ac_func" >&5
5960 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 /* System header to define __stub macros and hopefully few prototypes,
5967 which can conflict with char $ac_func(); below. */
5969 /* Override any gcc2 internal prototype to avoid an error. */
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5976 /* The GNU C library defines this for functions which it implements
5977 to always fail with ENOSYS. Some functions are actually named
5978 something starting with __ and the normal name is an alias. */
5979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5989 eval "ac_cv_func_$ac_func=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval "ac_cv_func_$ac_func=no"
5999 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6000 echo "$ac_t""yes" 1>&6
6001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6002 cat >> confdefs.h <<EOF
6003 #define $ac_tr_func 1
6007 echo "$ac_t""no" 1>&6
6012 if test $ac_cv_func_sched_yield = no -a \
6013 $ac_cv_func_pthread_yield = no -a \
6014 "$ac_cv_func_thr_yield" = no ; then
6015 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6018 for ac_func in pthread_kill
6020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6021 echo "configure:6022: checking for $ac_func" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char $ac_func(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_$ac_func=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_$ac_func=no"
6061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_func 1
6069 echo "$ac_t""no" 1>&6
6074 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6075 echo "configure:6076: checking for pthread_detach with <pthread.h>" >&5
6076 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6077 echo $ac_n "(cached) $ac_c" 1>&6
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6084 #include <pthread.h>
6086 #define NULL (void*)0
6090 pthread_detach(NULL);
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 ol_cv_func_pthread_detach=yes
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 ol_cv_func_pthread_detach=no
6106 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6108 if test $ol_cv_func_pthread_detach = no ; then
6109 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6112 cat >> confdefs.h <<\EOF
6113 #define HAVE_PTHREAD_DETACH 1
6118 pthread_setconcurrency \
6119 pthread_getconcurrency \
6120 thr_setconcurrency \
6121 thr_getconcurrency \
6124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6125 echo "configure:6126: checking for $ac_func" >&5
6126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char $ac_func(); below. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6142 /* The GNU C library defines this for functions which it implements
6143 to always fail with ENOSYS. Some functions are actually named
6144 something starting with __ and the normal name is an alias. */
6145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_func_$ac_func=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_func_$ac_func=no"
6165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6168 cat >> confdefs.h <<EOF
6169 #define $ac_tr_func 1
6173 echo "$ac_t""no" 1>&6
6179 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6180 echo "configure:6181: checking for pthread_kill_other_threads_np" >&5
6181 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6182 echo $ac_n "(cached) $ac_c" 1>&6
6184 cat > conftest.$ac_ext <<EOF
6185 #line 6186 "configure"
6186 #include "confdefs.h"
6187 /* System header to define __stub macros and hopefully few prototypes,
6188 which can conflict with char pthread_kill_other_threads_np(); below. */
6190 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6193 char pthread_kill_other_threads_np();
6197 /* The GNU C library defines this for functions which it implements
6198 to always fail with ENOSYS. Some functions are actually named
6199 something starting with __ and the normal name is an alias. */
6200 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6203 pthread_kill_other_threads_np();
6208 if { (eval echo configure:6209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6210 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6212 echo "configure: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6220 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6221 echo "$ac_t""yes" 1>&6
6224 echo "$ac_t""no" 1>&6
6227 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6228 echo "configure:6229: checking for LinuxThreads implementation" >&5
6229 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6235 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6240 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6241 echo "configure:6242: checking for LinuxThreads consistency" >&5
6242 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6243 echo $ac_n "(cached) $ac_c" 1>&6
6246 if test $ol_cv_header_linux_threads = yes -a \
6247 $ol_cv_sys_linux_threads = yes; then
6248 ol_cv_linux_threads=yes
6249 elif test $ol_cv_header_linux_threads = no -a \
6250 $ol_cv_sys_linux_threads = no; then
6251 ol_cv_linux_threads=no
6253 ol_cv_linux_threads=error
6258 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6261 if test $ol_cv_linux_threads = error; then
6262 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6265 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6266 echo "configure:6267: checking if pthread_create() works" >&5
6267 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6268 echo $ac_n "(cached) $ac_c" 1>&6
6271 if test "$cross_compiling" = yes; then
6272 ol_cv_pthread_create_works=yes
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6278 #include <pthread.h>
6280 #define NULL (void*)0
6283 static void *task(p)
6286 return (void *) (p == NULL);
6289 int main(argc, argv)
6294 #if HAVE_PTHREADS_D4
6295 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6297 exit(pthread_create(&t, NULL, task, NULL));
6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6304 ol_cv_pthread_create_works=yes
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6309 ol_cv_pthread_create_works=no
6316 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6318 if test $ol_cv_pthread_create_works = no ; then
6319 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6322 if test $ol_with_yielding_select = auto ; then
6323 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6324 echo "configure:6325: checking if select yields when using pthreads" >&5
6325 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6329 if test "$cross_compiling" = yes; then
6331 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6337 #include <sys/types.h>
6338 #include <sys/time.h>
6340 #include <pthread.h>
6342 #define NULL (void*) 0
6345 static int fildes[2];
6347 static void *task(p)
6359 FD_SET(fildes[0], &rfds);
6361 /* we're not interested in any fds */
6362 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6369 exit(0); /* if we exit here, the select blocked the whole process */
6372 int main(argc, argv)
6378 /* create a pipe to select */
6379 if(pipe(&fildes[0])) {
6384 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6385 (void) pthread_setconcurrency(2);
6387 #ifdef HAVE_THR_SETCONCURRENCY
6388 /* Set Solaris LWP concurrency to 2 */
6389 thr_setconcurrency(2);
6393 #if HAVE_PTHREADS_D4
6394 pthread_create(&t, pthread_attr_default, task, NULL);
6396 pthread_create(&t, NULL, task, NULL);
6399 #if HAVE_SCHED_YIELD
6400 sched_yield(); /* make sure task runs first */
6402 #ifdef HAVE_PTHREAD_YIELD
6403 pthread_yield(); /* make sure task runs first */
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6412 ol_cv_pthread_select_yields=no
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 ol_cv_pthread_select_yields=yes
6424 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6426 if test $ol_cv_pthread_select_yields = yes ; then
6427 ol_with_yielding_select=yes
6431 CPPFLAGS="$save_CPPFLAGS"
6434 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6438 if test $ol_with_threads = posix ; then
6439 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6443 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6444 -o $ol_with_threads = mach ; then
6446 for ac_hdr in mach/cthreads.h
6448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_hdr" >&5
6451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6460 { (eval echo configure:6461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6462 if test -z "$ac_err"; then
6464 eval "ac_cv_header_$ac_safe=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 eval "ac_cv_header_$ac_safe=no"
6474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6477 cat >> confdefs.h <<EOF
6478 #define $ac_tr_hdr 1
6482 echo "$ac_t""no" 1>&6
6486 if test $ac_cv_header_mach_cthreads_h = yes ; then
6487 ol_with_threads=found
6489 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6490 echo "configure:6491: checking for cthread_fork" >&5
6491 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char cthread_fork(); below. */
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char cthread_fork();
6507 /* The GNU C library defines this for functions which it implements
6508 to always fail with ENOSYS. Some functions are actually named
6509 something starting with __ and the normal name is an alias. */
6510 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 eval "ac_cv_func_cthread_fork=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_func_cthread_fork=no"
6530 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6534 echo "$ac_t""no" 1>&6
6538 if test $ol_link_threads = no ; then
6539 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6540 echo "configure:6541: checking for cthread_fork with -all_load" >&5
6541 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6542 echo $ac_n "(cached) $ac_c" 1>&6
6546 LIBS="-all_load $LIBS"
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 #include <mach/cthreads.h>
6553 cthread_fork((void *)0, (void *)0);
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 ol_cv_cthread_all_load=yes
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 ol_cv_cthread_all_load=no
6571 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6573 if test $ol_cv_cthread_all_load = yes ; then
6574 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6575 ol_link_threads=mach
6579 if test $ol_link_threads != no ; then
6580 : check for cthread specific functionality here
6581 cat >> confdefs.h <<\EOF
6582 #define HAVE_MACH_CTHREADS 1
6586 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6590 if test $ol_with_threads = mach ; then
6591 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6595 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6596 -o $ol_with_threads = lwp ; then
6598 for ac_hdr in thread.h synch.h
6600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_hdr" >&5
6603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6612 { (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614 if test -z "$ac_err"; then
6616 eval "ac_cv_header_$ac_safe=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_header_$ac_safe=no"
6626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_hdr 1
6634 echo "$ac_t""no" 1>&6
6638 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6639 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6640 echo "configure:6641: checking for thr_create in -lthread" >&5
6641 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 ac_save_LIBS="$LIBS"
6646 LIBS="-lthread $LIBS"
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 eval "ac_cv_lib_$ac_lib_var=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_lib_$ac_lib_var=no"
6669 LIBS="$ac_save_LIBS"
6672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6676 echo "$ac_t""no" 1>&6
6681 if test $have_thr = yes ; then
6682 cat >> confdefs.h <<\EOF
6686 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6689 if test $ol_with_yielding_select = auto ; then
6690 ol_with_yielding_select=yes
6694 thr_setconcurrency \
6695 thr_getconcurrency \
6698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6699 echo "configure:6700: checking for $ac_func" >&5
6700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 /* System header to define __stub macros and hopefully few prototypes,
6707 which can conflict with char $ac_func(); below. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6716 /* The GNU C library defines this for functions which it implements
6717 to always fail with ENOSYS. Some functions are actually named
6718 something starting with __ and the normal name is an alias. */
6719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 eval "ac_cv_func_$ac_func=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_func_$ac_func=no"
6739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6742 cat >> confdefs.h <<EOF
6743 #define $ac_tr_func 1
6747 echo "$ac_t""no" 1>&6
6754 for ac_hdr in lwp/lwp.h
6756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_hdr" >&5
6759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6768 { (eval echo configure:6769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6770 if test -z "$ac_err"; then
6772 eval "ac_cv_header_$ac_safe=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_header_$ac_safe=no"
6782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6785 cat >> confdefs.h <<EOF
6786 #define $ac_tr_hdr 1
6790 echo "$ac_t""no" 1>&6
6794 if test $ac_cv_header_lwp_lwp_h = yes ; then
6795 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6796 echo "configure:6797: checking for lwp_create in -llwp" >&5
6797 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 ac_save_LIBS="$LIBS"
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6817 eval "ac_cv_lib_$ac_lib_var=yes"
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 eval "ac_cv_lib_$ac_lib_var=no"
6825 LIBS="$ac_save_LIBS"
6828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6829 echo "$ac_t""yes" 1>&6
6832 echo "$ac_t""no" 1>&6
6837 if test $have_lwp = yes ; then
6838 cat >> confdefs.h <<\EOF
6842 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6845 if test $ol_with_yielding_select = auto ; then
6846 ol_with_yielding_select=no
6852 if test $ol_with_yielding_select = yes ; then
6853 cat >> confdefs.h <<\EOF
6854 #define HAVE_YIELDING_SELECT 1
6859 if test $ol_with_threads = manual ; then
6862 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6864 for ac_hdr in pthread.h sched.h
6866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_hdr" >&5
6869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6878 { (eval echo configure:6879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6880 if test -z "$ac_err"; then
6882 eval "ac_cv_header_$ac_safe=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_header_$ac_safe=no"
6892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_hdr 1
6900 echo "$ac_t""no" 1>&6
6904 for ac_func in sched_yield pthread_yield
6906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_func" >&5
6908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6924 /* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_func_$ac_func=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_func_$ac_func=no"
6947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h <<EOF
6951 #define $ac_tr_func 1
6955 echo "$ac_t""no" 1>&6
6960 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6961 echo "configure:6962: checking for LinuxThreads pthread.h" >&5
6962 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 #include <pthread.h>
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6973 ol_cv_header_linux_threads=yes
6976 ol_cv_header_linux_threads=no
6983 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6984 if test $ol_cv_header_linux_threads = yes; then
6985 cat >> confdefs.h <<\EOF
6986 #define HAVE_LINUX_THREADS 1
6992 for ac_hdr in mach/cthreads.h
6994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6996 echo "configure:6997: checking for $ac_hdr" >&5
6997 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6998 echo $ac_n "(cached) $ac_c" 1>&6
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7006 { (eval echo configure:7007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7008 if test -z "$ac_err"; then
7010 eval "ac_cv_header_$ac_safe=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_header_$ac_safe=no"
7020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7021 echo "$ac_t""yes" 1>&6
7022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7023 cat >> confdefs.h <<EOF
7024 #define $ac_tr_hdr 1
7028 echo "$ac_t""no" 1>&6
7032 for ac_hdr in lwp/lwp.h
7034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7036 echo "configure:7037: checking for $ac_hdr" >&5
7037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7046 { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7048 if test -z "$ac_err"; then
7050 eval "ac_cv_header_$ac_safe=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 eval "ac_cv_header_$ac_safe=no"
7060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_hdr 1
7068 echo "$ac_t""no" 1>&6
7072 for ac_hdr in thread.h synch.h
7074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7076 echo "configure:7077: checking for $ac_hdr" >&5
7077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7086 { (eval echo configure:7087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7088 if test -z "$ac_err"; then
7090 eval "ac_cv_header_$ac_safe=yes"
7093 echo "configure: failed program was:" >&5
7094 cat conftest.$ac_ext >&5
7096 eval "ac_cv_header_$ac_safe=no"
7100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7101 echo "$ac_t""yes" 1>&6
7102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7103 cat >> confdefs.h <<EOF
7104 #define $ac_tr_hdr 1
7108 echo "$ac_t""no" 1>&6
7114 if test $ol_link_threads != no ; then
7115 cat >> confdefs.h <<\EOF
7119 cat >> confdefs.h <<\EOF
7120 #define _REENTRANT 1
7123 cat >> confdefs.h <<\EOF
7124 #define THREAD_SAFE 1
7127 cat >> confdefs.h <<\EOF
7128 #define _THREAD_SAFE 1
7131 cat >> confdefs.h <<\EOF
7132 #define THREADSAFE 1
7135 cat >> confdefs.h <<\EOF
7136 #define _THREADSAFE 1
7140 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7141 echo "configure:7142: checking for thread specific errno" >&5
7142 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156 ol_cv_errno_thread_specific=yes
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7161 ol_cv_errno_thread_specific=no
7167 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7169 if test $ol_cv_errno_thread_specific != yes ; then
7170 LIBS="$LTHREAD_LIBS $LIBS"
7176 if test $ol_link_threads = no ; then
7177 if test $ol_with_threads = yes ; then
7178 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7181 if test $ol_with_threads = auto ; then
7182 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7186 cat >> confdefs.h <<\EOF
7187 #define NO_THREADS 1
7193 if test $ol_link_threads != no ; then
7194 cat >> confdefs.h <<\EOF
7195 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7202 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7203 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7204 echo "configure:7205: checking for DB2 library" >&5
7205 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7209 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7210 echo "configure:7211: checking for db_open in -ldb" >&5
7211 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 ac_save_LIBS="$LIBS"
7217 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7236 eval "ac_cv_lib_$ac_lib_var=no"
7239 LIBS="$ac_save_LIBS"
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7246 echo "$ac_t""no" 1>&6
7254 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7258 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7260 echo "configure:7261: checking for $ac_hdr" >&5
7261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7270 { (eval echo configure:7271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7272 if test -z "$ac_err"; then
7274 eval "ac_cv_header_$ac_safe=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_header_$ac_safe=no"
7284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7287 cat >> confdefs.h <<EOF
7288 #define $ac_tr_hdr 1
7292 echo "$ac_t""no" 1>&6
7296 if test $ac_cv_header_db_h = yes ; then
7297 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7298 echo "configure:7299: checking if db.h is DB2" >&5
7299 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7300 echo $ac_n "(cached) $ac_c" 1>&6
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7308 /* this check could be improved */
7309 # ifdef DB_VERSION_MAJOR
7310 # if DB_VERSION_MAJOR == 2
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 egrep "__db_version_2" >/dev/null 2>&1; then
7319 ol_cv_header_db2=yes
7328 echo "$ac_t""$ol_cv_header_db2" 1>&6
7335 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7336 echo "configure:7337: checking for Berkeley DB2" >&5
7337 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7341 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7342 ol_cv_berkeley_db2=no
7344 ol_cv_berkeley_db2=yes
7349 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7350 if test $ol_cv_berkeley_db2 = yes ; then
7351 cat >> confdefs.h <<\EOF
7352 #define HAVE_BERKELEY_DB2 1
7358 if test $ol_cv_berkeley_db2 = yes ; then
7360 ol_with_ldbm_api=db2
7362 if test $ol_with_ldbm_type = hash ; then
7363 cat >> confdefs.h <<\EOF
7364 #define LDBM_USE_DBHASH 1
7368 cat >> confdefs.h <<\EOF
7369 #define LDBM_USE_DBBTREE 1
7374 if test $ol_cv_lib_db2 != yes ; then
7375 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7381 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7385 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7386 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7387 echo "configure:7388: checking for Berkeley DB library" >&5
7388 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7392 for ac_hdr in db1/db.h
7394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7396 echo "configure:7397: checking for $ac_hdr" >&5
7397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7398 echo $ac_n "(cached) $ac_c" 1>&6
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7406 { (eval echo configure:7407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7408 if test -z "$ac_err"; then
7410 eval "ac_cv_header_$ac_safe=yes"
7413 echo "configure: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7416 eval "ac_cv_header_$ac_safe=no"
7420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7421 echo "$ac_t""yes" 1>&6
7422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7423 cat >> confdefs.h <<EOF
7424 #define $ac_tr_hdr 1
7428 echo "$ac_t""no" 1>&6
7433 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7434 echo "configure:7435: checking for dbopen" >&5
7435 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* System header to define __stub macros and hopefully few prototypes,
7442 which can conflict with char dbopen(); below. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7451 /* The GNU C library defines this for functions which it implements
7452 to always fail with ENOSYS. Some functions are actually named
7453 something starting with __ and the normal name is an alias. */
7454 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7462 if { (eval echo configure:7463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7464 eval "ac_cv_func_dbopen=yes"
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 eval "ac_cv_func_dbopen=no"
7474 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7480 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7481 echo "configure:7482: checking for dbopen in -ldb1" >&5
7482 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7486 ac_save_LIBS="$LIBS"
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 /* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7502 eval "ac_cv_lib_$ac_lib_var=yes"
7504 echo "configure: failed program was:" >&5
7505 cat conftest.$ac_ext >&5
7507 eval "ac_cv_lib_$ac_lib_var=no"
7510 LIBS="$ac_save_LIBS"
7513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7514 echo "$ac_t""yes" 1>&6
7517 echo "$ac_t""no" 1>&6
7519 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7520 echo "configure:7521: checking for dbopen in -ldb" >&5
7521 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7525 ac_save_LIBS="$LIBS"
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7541 eval "ac_cv_lib_$ac_lib_var=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 eval "ac_cv_lib_$ac_lib_var=no"
7549 LIBS="$ac_save_LIBS"
7552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7553 echo "$ac_t""yes" 1>&6
7556 echo "$ac_t""no" 1>&6
7570 echo "$ac_t""$ol_cv_lib_db" 1>&6
7573 for ac_hdr in db_185.h
7575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7577 echo "configure:7578: checking for $ac_hdr" >&5
7578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7587 { (eval echo configure:7588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7589 if test -z "$ac_err"; then
7591 eval "ac_cv_header_$ac_safe=yes"
7594 echo "configure: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7597 eval "ac_cv_header_$ac_safe=no"
7601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7604 cat >> confdefs.h <<EOF
7605 #define $ac_tr_hdr 1
7609 echo "$ac_t""no" 1>&6
7613 if test "$ol_cv_header_db2" = yes ; then
7615 ol_cv_header_db=$ac_cv_header_db_185_h
7617 ol_cv_header_db=$ac_cv_header_db_h
7622 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7623 echo "configure:7624: checking for Berkeley DB" >&5
7624 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7628 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7629 ol_cv_berkeley_db=no
7631 ol_cv_berkeley_db=yes
7636 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7637 if test $ol_cv_berkeley_db = yes ; then
7638 cat >> confdefs.h <<\EOF
7639 #define HAVE_BERKELEY_DB 1
7645 if test $ol_cv_berkeley_db = yes ; then
7649 if test $ol_with_ldbm_type = hash ; then
7650 cat >> confdefs.h <<\EOF
7651 #define LDBM_USE_DBHASH 1
7655 cat >> confdefs.h <<\EOF
7656 #define LDBM_USE_DBBTREE 1
7661 if test $ol_cv_lib_db != yes ; then
7662 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7667 if test $ol_with_ldbm_api = manual ; then
7670 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7672 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_hdr" >&5
7677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7686 { (eval echo configure:7687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7688 if test -z "$ac_err"; then
7690 eval "ac_cv_header_$ac_safe=yes"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7696 eval "ac_cv_header_$ac_safe=no"
7700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7701 echo "$ac_t""yes" 1>&6
7702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7703 cat >> confdefs.h <<EOF
7704 #define $ac_tr_hdr 1
7708 echo "$ac_t""no" 1>&6
7714 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7715 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7716 ol_with_ldbm_api=none
7719 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7720 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7721 echo "configure:7722: checking for MDBM library" >&5
7722 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7726 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7727 echo "configure:7728: checking for mdbm_set_chain" >&5
7728 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char mdbm_set_chain(); below. */
7737 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7740 char mdbm_set_chain();
7744 /* The GNU C library defines this for functions which it implements
7745 to always fail with ENOSYS. Some functions are actually named
7746 something starting with __ and the normal name is an alias. */
7747 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7757 eval "ac_cv_func_mdbm_set_chain=yes"
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7762 eval "ac_cv_func_mdbm_set_chain=no"
7767 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7771 echo "$ac_t""no" 1>&6
7773 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7774 echo "configure:7775: checking for mdbm_set_chain in -lmdbm" >&5
7775 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 ac_save_LIBS="$LIBS"
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787 char mdbm_set_chain();
7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7795 eval "ac_cv_lib_$ac_lib_var=yes"
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7800 eval "ac_cv_lib_$ac_lib_var=no"
7803 LIBS="$ac_save_LIBS"
7806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7807 echo "$ac_t""yes" 1>&6
7808 ol_cv_lib_mdbm=-lmdbm
7810 echo "$ac_t""no" 1>&6
7821 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7824 for ac_hdr in mdbm.h
7826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7828 echo "configure:7829: checking for $ac_hdr" >&5
7829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 cat > conftest.$ac_ext <<EOF
7833 #line 7834 "configure"
7834 #include "confdefs.h"
7837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7838 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7840 if test -z "$ac_err"; then
7842 eval "ac_cv_header_$ac_safe=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7848 eval "ac_cv_header_$ac_safe=no"
7852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7853 echo "$ac_t""yes" 1>&6
7854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7855 cat >> confdefs.h <<EOF
7856 #define $ac_tr_hdr 1
7860 echo "$ac_t""no" 1>&6
7864 echo $ac_n "checking for db""... $ac_c" 1>&6
7865 echo "configure:7866: checking for db" >&5
7866 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7870 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7878 echo "$ac_t""$ol_cv_mdbm" 1>&6
7879 if test $ol_cv_mdbm = yes ; then
7880 cat >> confdefs.h <<\EOF
7887 if test $ol_cv_mdbm = yes ; then
7889 ol_with_ldbm_api=mdbm
7890 if test $ol_cv_lib_mdbm != yes ; then
7891 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7896 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7897 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7898 echo "configure:7899: checking for GDBM library" >&5
7899 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7903 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7904 echo "configure:7905: checking for gdbm_open" >&5
7905 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 /* System header to define __stub macros and hopefully few prototypes,
7912 which can conflict with char gdbm_open(); below. */
7914 /* Override any gcc2 internal prototype to avoid an error. */
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7921 /* The GNU C library defines this for functions which it implements
7922 to always fail with ENOSYS. Some functions are actually named
7923 something starting with __ and the normal name is an alias. */
7924 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7934 eval "ac_cv_func_gdbm_open=yes"
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 eval "ac_cv_func_gdbm_open=no"
7944 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7945 echo "$ac_t""yes" 1>&6
7948 echo "$ac_t""no" 1>&6
7950 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7951 echo "configure:7952: checking for gdbm_open in -lgdbm" >&5
7952 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 ac_save_LIBS="$LIBS"
7958 cat > conftest.$ac_ext <<EOF
7959 #line 7960 "configure"
7960 #include "confdefs.h"
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 eval "ac_cv_lib_$ac_lib_var=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7977 eval "ac_cv_lib_$ac_lib_var=no"
7980 LIBS="$ac_save_LIBS"
7983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7984 echo "$ac_t""yes" 1>&6
7985 ol_cv_lib_gdbm=-lgdbm
7987 echo "$ac_t""no" 1>&6
7998 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8001 for ac_hdr in gdbm.h
8003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8005 echo "configure:8006: checking for $ac_hdr" >&5
8006 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8019 eval "ac_cv_header_$ac_safe=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_header_$ac_safe=no"
8029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8032 cat >> confdefs.h <<EOF
8033 #define $ac_tr_hdr 1
8037 echo "$ac_t""no" 1>&6
8041 echo $ac_n "checking for db""... $ac_c" 1>&6
8042 echo "configure:8043: checking for db" >&5
8043 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8047 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8055 echo "$ac_t""$ol_cv_gdbm" 1>&6
8056 if test $ol_cv_gdbm = yes ; then
8057 cat >> confdefs.h <<\EOF
8064 if test $ol_cv_gdbm = yes ; then
8066 ol_with_ldbm_api=gdbm
8068 if test $ol_cv_lib_gdbm != yes ; then
8069 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8074 if test $ol_with_ldbm_api = auto ; then
8075 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8076 elif test $ol_with_ldbm_api = ndbm ; then
8077 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8078 echo "configure:8079: checking for NDBM library" >&5
8079 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8083 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8084 echo "configure:8085: checking for dbm_open" >&5
8085 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 /* System header to define __stub macros and hopefully few prototypes,
8092 which can conflict with char dbm_open(); below. */
8094 /* Override any gcc2 internal prototype to avoid an error. */
8095 /* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8101 /* The GNU C library defines this for functions which it implements
8102 to always fail with ENOSYS. Some functions are actually named
8103 something starting with __ and the normal name is an alias. */
8104 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8112 if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8114 eval "ac_cv_func_dbm_open=yes"
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 eval "ac_cv_func_dbm_open=no"
8124 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8128 echo "$ac_t""no" 1>&6
8130 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8131 echo "configure:8132: checking for dbm_open in -lndbm" >&5
8132 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8136 ac_save_LIBS="$LIBS"
8138 cat > conftest.$ac_ext <<EOF
8139 #line 8140 "configure"
8140 #include "confdefs.h"
8141 /* Override any gcc2 internal prototype to avoid an error. */
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8150 if { (eval echo configure:8151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 eval "ac_cv_lib_$ac_lib_var=yes"
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8157 eval "ac_cv_lib_$ac_lib_var=no"
8160 LIBS="$ac_save_LIBS"
8163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8164 echo "$ac_t""yes" 1>&6
8165 ol_cv_lib_ndbm=-lndbm
8167 echo "$ac_t""no" 1>&6
8169 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8170 echo "configure:8171: checking for dbm_open in -ldbm" >&5
8171 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 ac_save_LIBS="$LIBS"
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 /* Override any gcc2 internal prototype to avoid an error. */
8181 /* We use char because int might match the return type of a gcc2
8182 builtin and then its argument prototype would still apply. */
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8191 eval "ac_cv_lib_$ac_lib_var=yes"
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8196 eval "ac_cv_lib_$ac_lib_var=no"
8199 LIBS="$ac_save_LIBS"
8202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8203 echo "$ac_t""yes" 1>&6
8204 ol_cv_lib_ndbm=-ldbm
8206 echo "$ac_t""no" 1>&6
8219 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8222 for ac_hdr in ndbm.h
8224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8226 echo "configure:8227: checking for $ac_hdr" >&5
8227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8228 echo $ac_n "(cached) $ac_c" 1>&6
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8236 { (eval echo configure:8237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8238 if test -z "$ac_err"; then
8240 eval "ac_cv_header_$ac_safe=yes"
8243 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8246 eval "ac_cv_header_$ac_safe=no"
8250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8251 echo "$ac_t""yes" 1>&6
8252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8253 cat >> confdefs.h <<EOF
8254 #define $ac_tr_hdr 1
8258 echo "$ac_t""no" 1>&6
8262 echo $ac_n "checking for db""... $ac_c" 1>&6
8263 echo "configure:8264: checking for db" >&5
8264 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8268 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8276 echo "$ac_t""$ol_cv_ndbm" 1>&6
8277 if test $ol_cv_ndbm = yes ; then
8278 cat >> confdefs.h <<\EOF
8285 if test $ol_cv_ndbm = yes ; then
8287 ol_with_ldbm_api=ndbm
8289 if test $ol_cv_lib_ndbm != yes ; then
8290 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8295 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8296 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8297 if test $ol_enable_ldbm = yes ; then
8298 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8301 echo "configure: warning: disabling LDBM" 1>&2
8305 if test $ol_enable_wrappers != no ; then
8306 for ac_hdr in tcpd.h
8308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_hdr" >&5
8311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8320 { (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8322 if test -z "$ac_err"; then
8324 eval "ac_cv_header_$ac_safe=yes"
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 eval "ac_cv_header_$ac_safe=no"
8334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8337 cat >> confdefs.h <<EOF
8338 #define $ac_tr_hdr 1
8342 echo "$ac_t""no" 1>&6
8347 if test $ac_cv_header_tcpd_h != yes ; then
8350 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8351 echo "configure:8352: checking for main in -lwrap" >&5
8352 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 ac_save_LIBS="$LIBS"
8358 cat > conftest.$ac_ext <<EOF
8359 #line 8360 "configure"
8360 #include "confdefs.h"
8366 if { (eval echo configure:8367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8368 eval "ac_cv_lib_$ac_lib_var=yes"
8370 echo "configure: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8373 eval "ac_cv_lib_$ac_lib_var=no"
8376 LIBS="$ac_save_LIBS"
8379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8380 echo "$ac_t""yes" 1>&6
8383 echo "$ac_t""no" 1>&6
8389 if test $have_wrappers = yes ; then
8390 cat >> confdefs.h <<\EOF
8394 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8396 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8397 echo "configure:8398: checking for main in -lnsl" >&5
8398 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8402 ac_save_LIBS="$LIBS"
8404 cat > conftest.$ac_ext <<EOF
8405 #line 8406 "configure"
8406 #include "confdefs.h"
8412 if { (eval echo configure:8413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8414 eval "ac_cv_lib_$ac_lib_var=yes"
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 eval "ac_cv_lib_$ac_lib_var=no"
8422 LIBS="$ac_save_LIBS"
8425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8426 echo "$ac_t""yes" 1>&6
8427 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8429 cat >> confdefs.h <<EOF
8430 #define $ac_tr_lib 1
8436 echo "$ac_t""no" 1>&6
8440 echo "configure: warning: could not find -lwrap" 1>&2
8441 if test $ol_enable_wrappers = yes ; then
8442 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8445 echo "configure: warning: disabling wrappers support" 1>&2
8446 ol_enable_wrappers=no
8450 if test $ol_enable_syslog != no ; then
8451 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8452 echo "configure:8453: checking for openlog" >&5
8453 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char openlog(); below. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_openlog) || defined (__stub___openlog)
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482 eval "ac_cv_func_openlog=yes"
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 eval "ac_cv_func_openlog=no"
8492 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8496 echo "$ac_t""no" 1>&6
8499 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8500 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8502 ol_enable_syslog=$ac_cv_func_openlog
8505 if test $ol_enable_dmalloc != no ; then
8506 for ac_hdr in dmalloc.h
8508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8510 echo "configure:8511: checking for $ac_hdr" >&5
8511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8520 { (eval echo configure:8521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8522 if test -z "$ac_err"; then
8524 eval "ac_cv_header_$ac_safe=yes"
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 eval "ac_cv_header_$ac_safe=no"
8534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_hdr 1
8542 echo "$ac_t""no" 1>&6
8546 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8547 echo "configure:8548: checking for dmalloc_shutdown in -ldmalloc" >&5
8548 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 ac_save_LIBS="$LIBS"
8553 LIBS="-ldmalloc $LIBS"
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char dmalloc_shutdown();
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8568 eval "ac_cv_lib_$ac_lib_var=yes"
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8573 eval "ac_cv_lib_$ac_lib_var=no"
8576 LIBS="$ac_save_LIBS"
8579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8580 echo "$ac_t""yes" 1>&6
8581 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8583 cat >> confdefs.h <<EOF
8584 #define $ac_tr_lib 1
8587 LIBS="-ldmalloc $LIBS"
8590 echo "$ac_t""no" 1>&6
8595 if test $ol_enable_tcl != no ; then
8598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8600 echo "configure:8601: checking for $ac_hdr" >&5
8601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8602 echo $ac_n "(cached) $ac_c" 1>&6
8604 cat > conftest.$ac_ext <<EOF
8605 #line 8606 "configure"
8606 #include "confdefs.h"
8609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8610 { (eval echo configure:8611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8612 if test -z "$ac_err"; then
8614 eval "ac_cv_header_$ac_safe=yes"
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 eval "ac_cv_header_$ac_safe=no"
8624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8627 cat >> confdefs.h <<EOF
8628 #define $ac_tr_hdr 1
8632 echo "$ac_t""no" 1>&6
8637 if test $ac_cv_header_tcl_h != yes ; then
8640 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8641 echo "configure:8642: checking for main in -ltcl" >&5
8642 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8646 ac_save_LIBS="$LIBS"
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8658 eval "ac_cv_lib_$ac_lib_var=yes"
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8663 eval "ac_cv_lib_$ac_lib_var=no"
8666 LIBS="$ac_save_LIBS"
8669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8670 echo "$ac_t""yes" 1>&6
8671 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8673 echo "$ac_t""no" 1>&6
8678 if test $have_tcl != yes; then
8679 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8680 echo "configure:8681: checking for main in -ltcl7.6" >&5
8681 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 ac_save_LIBS="$LIBS"
8686 LIBS="-ltcl7.6 $LIBS"
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8695 if { (eval echo configure:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8697 eval "ac_cv_lib_$ac_lib_var=yes"
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8702 eval "ac_cv_lib_$ac_lib_var=no"
8705 LIBS="$ac_save_LIBS"
8708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8709 echo "$ac_t""yes" 1>&6
8710 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8712 echo "$ac_t""no" 1>&6
8718 if test $have_tcl != yes; then
8719 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8720 echo "configure:8721: checking for main in -ltcl8.0" >&5
8721 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 ac_save_LIBS="$LIBS"
8726 LIBS="-ltcl8.0 $LIBS"
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8737 eval "ac_cv_lib_$ac_lib_var=yes"
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 eval "ac_cv_lib_$ac_lib_var=no"
8745 LIBS="$ac_save_LIBS"
8748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8749 echo "$ac_t""yes" 1>&6
8750 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8752 echo "$ac_t""no" 1>&6
8759 if test $have_tcl != yes ; then
8760 echo "configure: warning: could not find -ltcl" 1>&2
8761 if test $ol_enable_tcl = yes ; then
8762 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8769 # ud needs termcap (should insert check here)
8771 for ac_hdr in termcap.h ncurses.h
8773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8775 echo "configure:8776: checking for $ac_hdr" >&5
8776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8779 cat > conftest.$ac_ext <<EOF
8780 #line 8781 "configure"
8781 #include "confdefs.h"
8784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8785 { (eval echo configure:8786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8787 if test -z "$ac_err"; then
8789 eval "ac_cv_header_$ac_safe=yes"
8792 echo "configure: failed program was:" >&5
8793 cat conftest.$ac_ext >&5
8795 eval "ac_cv_header_$ac_safe=no"
8799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8802 cat >> confdefs.h <<EOF
8803 #define $ac_tr_hdr 1
8807 echo "$ac_t""no" 1>&6
8812 if test $ol_link_termcap = no ; then
8813 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8814 echo "configure:8815: checking for tputs in -ltermcap" >&5
8815 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8819 ac_save_LIBS="$LIBS"
8820 LIBS="-ltermcap $LIBS"
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 /* Override any gcc2 internal prototype to avoid an error. */
8825 /* We use char because int might match the return type of a gcc2
8826 builtin and then its argument prototype would still apply. */
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8835 eval "ac_cv_lib_$ac_lib_var=yes"
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8840 eval "ac_cv_lib_$ac_lib_var=no"
8843 LIBS="$ac_save_LIBS"
8846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8847 echo "$ac_t""yes" 1>&6
8850 echo "$ac_t""no" 1>&6
8854 if test $have_termcap = yes ; then
8855 cat >> confdefs.h <<\EOF
8856 #define HAVE_TERMCAP 1
8860 TERMCAP_LIBS=-ltermcap
8864 if test $ol_link_termcap = no ; then
8865 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8866 echo "configure:8867: checking for initscr in -lncurses" >&5
8867 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8871 ac_save_LIBS="$LIBS"
8872 LIBS="-lncurses $LIBS"
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 /* Override any gcc2 internal prototype to avoid an error. */
8877 /* We use char because int might match the return type of a gcc2
8878 builtin and then its argument prototype would still apply. */
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 eval "ac_cv_lib_$ac_lib_var=yes"
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8892 eval "ac_cv_lib_$ac_lib_var=no"
8895 LIBS="$ac_save_LIBS"
8898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8902 echo "$ac_t""no" 1>&6
8906 if test $have_ncurses = yes ; then
8907 cat >> confdefs.h <<\EOF
8908 #define HAVE_NCURSES 1
8912 TERMCAP_LIBS=-lncurses
8916 if test $ol_link_termcap = no ; then
8917 cat >> confdefs.h <<\EOF
8918 #define NO_TERMCAP 1
8925 if test $ol_with_readline != no ; then
8926 for ac_hdr in readline/readline.h readline/history.h
8928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8930 echo "configure:8931: checking for $ac_hdr" >&5
8931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8932 echo $ac_n "(cached) $ac_c" 1>&6
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8940 { (eval echo configure:8941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8942 if test -z "$ac_err"; then
8944 eval "ac_cv_header_$ac_safe=yes"
8947 echo "configure: failed program was:" >&5
8948 cat conftest.$ac_ext >&5
8950 eval "ac_cv_header_$ac_safe=no"
8954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8955 echo "$ac_t""yes" 1>&6
8956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8957 cat >> confdefs.h <<EOF
8958 #define $ac_tr_hdr 1
8962 echo "$ac_t""no" 1>&6
8967 if test $ac_cv_header_readline_readline_h = yes ; then
8969 LIBS="$TERMCAP_LIBS $LIBS"
8970 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8971 echo "configure:8972: checking for readline in -lreadline" >&5
8972 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8976 ac_save_LIBS="$LIBS"
8977 LIBS="-lreadline $LIBS"
8978 cat > conftest.$ac_ext <<EOF
8979 #line 8980 "configure"
8980 #include "confdefs.h"
8981 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 eval "ac_cv_lib_$ac_lib_var=yes"
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8997 eval "ac_cv_lib_$ac_lib_var=no"
9000 LIBS="$ac_save_LIBS"
9003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9007 echo "$ac_t""no" 1>&6
9013 if test $have_readline = yes ; then
9014 ol_with_readline=found
9015 ol_link_readline=yes
9017 READLINE_LIBS="-lreadline"
9022 if test $ol_link_readline = yes ; then
9023 cat >> confdefs.h <<\EOF
9024 #define HAVE_READLINE 1
9030 # FreeBSD (and others) have crypt(3) in -lcrypt
9031 if test $ol_enable_crypt != no ; then
9032 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9033 echo "configure:9034: checking for crypt" >&5
9034 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040 /* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char crypt(); below. */
9043 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9050 /* The GNU C library defines this for functions which it implements
9051 to always fail with ENOSYS. Some functions are actually named
9052 something starting with __ and the normal name is an alias. */
9053 #if defined (__stub_crypt) || defined (__stub___crypt)
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9063 eval "ac_cv_func_crypt=yes"
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9068 eval "ac_cv_func_crypt=no"
9073 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9074 echo "$ac_t""yes" 1>&6
9077 echo "$ac_t""no" 1>&6
9079 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9080 echo "configure:9081: checking for crypt in -lcrypt" >&5
9081 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9085 ac_save_LIBS="$LIBS"
9086 LIBS="-lcrypt $LIBS"
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9099 if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9101 eval "ac_cv_lib_$ac_lib_var=yes"
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9106 eval "ac_cv_lib_$ac_lib_var=no"
9109 LIBS="$ac_save_LIBS"
9112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9113 echo "$ac_t""yes" 1>&6
9114 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9117 echo "$ac_t""no" 1>&6
9124 if test $have_crypt = yes ; then
9125 cat >> confdefs.h <<\EOF
9126 #define HAVE_CRYPT 1
9130 echo "configure: warning: could not find crypt" 1>&2
9131 if test $ol_enable_crypt = yes ; then
9132 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9135 echo "configure: warning: disabling crypt support" 1>&2
9140 # FreeBSD (and others) have setproctitle(3) in -lutil
9141 if test $ol_enable_proctitle != no ; then
9142 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9143 echo "configure:9144: checking for setproctitle" >&5
9144 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 /* System header to define __stub macros and hopefully few prototypes,
9151 which can conflict with char setproctitle(); below. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9154 /* We use char because int might match the return type of a gcc2
9155 builtin and then its argument prototype would still apply. */
9156 char setproctitle();
9160 /* The GNU C library defines this for functions which it implements
9161 to always fail with ENOSYS. Some functions are actually named
9162 something starting with __ and the normal name is an alias. */
9163 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9171 if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173 eval "ac_cv_func_setproctitle=yes"
9175 echo "configure: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9178 eval "ac_cv_func_setproctitle=no"
9183 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9184 echo "$ac_t""yes" 1>&6
9185 have_setproctitle=yes
9187 echo "$ac_t""no" 1>&6
9189 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9190 echo "configure:9191: checking for setproctitle in -lutil" >&5
9191 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9193 echo $ac_n "(cached) $ac_c" 1>&6
9195 ac_save_LIBS="$LIBS"
9197 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure"
9199 #include "confdefs.h"
9200 /* Override any gcc2 internal prototype to avoid an error. */
9201 /* We use char because int might match the return type of a gcc2
9202 builtin and then its argument prototype would still apply. */
9203 char setproctitle();
9209 if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9211 eval "ac_cv_lib_$ac_lib_var=yes"
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 eval "ac_cv_lib_$ac_lib_var=no"
9219 LIBS="$ac_save_LIBS"
9222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9224 have_setproctitle=yes
9225 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9227 echo "$ac_t""no" 1>&6
9228 have_setproctitle=no
9229 LIBOBJS="$LIBOBJS setproctitle.o"
9235 if test $have_setproctitle = yes ; then
9236 cat >> confdefs.h <<\EOF
9237 #define HAVE_SETPROCTITLE 1
9244 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9245 echo "configure:9246: checking for EBCDIC" >&5
9246 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9255 #include <__ASCII__/generate_error.h>
9259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9260 { (eval echo configure:9261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9262 if test -z "$ac_err"; then
9264 ol_cv_cpp_ebcdic=yes
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9275 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9276 if test $ol_cv_cpp_ebcdic = yes ; then
9277 cat >> confdefs.h <<\EOF
9278 #define HAVE_EBCDIC 1
9283 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9284 echo "configure:9285: checking for ANSI C header files" >&5
9285 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9297 { (eval echo configure:9298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9299 if test -z "$ac_err"; then
9301 ol_cv_header_stdc=yes
9304 echo "configure: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9307 ol_cv_header_stdc=no
9311 if test $ol_cv_header_stdc = yes; then
9312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9319 egrep "memchr" >/dev/null 2>&1; then
9323 ol_cv_header_stdc=no
9329 if test $ol_cv_header_stdc = yes; then
9330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9337 egrep "free" >/dev/null 2>&1; then
9341 ol_cv_header_stdc=no
9347 if test $ol_cv_header_stdc = yes; then
9348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9349 if test "$cross_compiling" = yes; then
9352 cat > conftest.$ac_ext <<EOF
9353 #line 9354 "configure"
9354 #include "confdefs.h"
9357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9360 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9361 || ('j' <= (c) && (c) <= 'r') \
9362 || ('s' <= (c) && (c) <= 'z'))
9363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9366 int main () { int i; for (i = 0; i < 256; i++)
9367 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9375 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9378 ol_cv_header_stdc=no
9386 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9387 if test $ol_cv_header_stdc = yes; then
9388 cat >> confdefs.h <<\EOF
9389 #define STDC_HEADERS 1
9393 ac_cv_header_stdc=disable
9396 if test $ol_cv_header_stdc != yes; then
9397 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9401 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9404 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9405 echo "configure:9406: checking for $ac_hdr that defines DIR" >&5
9406 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 #include <sys/types.h>
9418 if { (eval echo configure:9419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9420 eval "ac_cv_header_dirent_$ac_safe=yes"
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 eval "ac_cv_header_dirent_$ac_safe=no"
9429 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9430 echo "$ac_t""yes" 1>&6
9431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9432 cat >> confdefs.h <<EOF
9433 #define $ac_tr_hdr 1
9435 ac_header_dirent=$ac_hdr; break
9437 echo "$ac_t""no" 1>&6
9440 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9441 if test $ac_header_dirent = dirent.h; then
9442 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9443 echo "configure:9444: checking for opendir in -ldir" >&5
9444 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9448 ac_save_LIBS="$LIBS"
9450 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure"
9452 #include "confdefs.h"
9453 /* Override any gcc2 internal prototype to avoid an error. */
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9462 if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9464 eval "ac_cv_lib_$ac_lib_var=yes"
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9469 eval "ac_cv_lib_$ac_lib_var=no"
9472 LIBS="$ac_save_LIBS"
9475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9479 echo "$ac_t""no" 1>&6
9483 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9484 echo "configure:9485: checking for opendir in -lx" >&5
9485 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9489 ac_save_LIBS="$LIBS"
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 /* Override any gcc2 internal prototype to avoid an error. */
9495 /* We use char because int might match the return type of a gcc2
9496 builtin and then its argument prototype would still apply. */
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9505 eval "ac_cv_lib_$ac_lib_var=yes"
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 eval "ac_cv_lib_$ac_lib_var=no"
9513 LIBS="$ac_save_LIBS"
9516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9517 echo "$ac_t""yes" 1>&6
9520 echo "$ac_t""no" 1>&6
9525 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9526 echo "configure:9527: checking for sys/wait.h that is POSIX.1 compatible" >&5
9527 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #include <sys/wait.h>
9536 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9539 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9544 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9547 if { (eval echo configure:9548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9549 ac_cv_header_sys_wait_h=yes
9551 echo "configure: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9554 ac_cv_header_sys_wait_h=no
9559 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9560 if test $ac_cv_header_sys_wait_h = yes; then
9561 cat >> confdefs.h <<\EOF
9562 #define HAVE_SYS_WAIT_H 1
9567 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9568 echo "configure:9569: checking POSIX termios" >&5
9569 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9572 cat > conftest.$ac_ext <<EOF
9573 #line 9574 "configure"
9574 #include "confdefs.h"
9575 #include <sys/types.h>
9577 #include <termios.h>
9579 /* SunOS 4.0.3 has termios.h but not the library calls. */
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9585 am_cv_sys_posix_termios=yes
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 am_cv_sys_posix_termios=no
9595 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9598 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9599 echo "configure:9600: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9600 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9603 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9605 gwinsz_in_termios_h=no
9606 if test $am_cv_sys_posix_termios = yes; then
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #include <sys/types.h>
9611 # include <termios.h>
9617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9618 egrep "yes" >/dev/null 2>&1; then
9620 gwinsz_in_termios_h=yes
9626 if test $gwinsz_in_termios_h = no; then
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 #include <sys/types.h>
9631 # include <sys/ioctl.h>
9637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9638 egrep "yes" >/dev/null 2>&1; then
9640 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9648 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9649 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9650 cat >> confdefs.h <<\EOF
9651 #define GWINSZ_IN_SYS_IOCTL 1
9656 if test $am_cv_sys_posix_termios = yes ; then
9657 cat >> confdefs.h <<\EOF
9658 #define HAVE_POSIX_TERMIOS 1
9704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9706 echo "configure:9707: checking for $ac_hdr" >&5
9707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9710 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure"
9712 #include "confdefs.h"
9715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9716 { (eval echo configure:9717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9718 if test -z "$ac_err"; then
9720 eval "ac_cv_header_$ac_safe=yes"
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 eval "ac_cv_header_$ac_safe=no"
9730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9733 cat >> confdefs.h <<EOF
9734 #define $ac_tr_hdr 1
9738 echo "$ac_t""no" 1>&6
9743 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9744 echo "configure:9745: checking for uid_t in sys/types.h" >&5
9745 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9746 echo $ac_n "(cached) $ac_c" 1>&6
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 #include <sys/types.h>
9753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9754 egrep "uid_t" >/dev/null 2>&1; then
9756 ac_cv_type_uid_t=yes
9765 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9766 if test $ac_cv_type_uid_t = no; then
9767 cat >> confdefs.h <<\EOF
9771 cat >> confdefs.h <<\EOF
9777 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9778 echo "configure:9779: checking type of array argument to getgroups" >&5
9779 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9782 if test "$cross_compiling" = yes; then
9783 ac_cv_type_getgroups=cross
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9787 "configure"
9787 #include "confdefs.h"
9789 /* Thanks to Mike Rendell for this test. */
9790 #include <sys/types.h>
9793 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9798 union { gid_t gval; long lval; } val;
9801 for (i = 0; i < NGID; i++)
9802 gidset[i] = val.gval;
9803 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9805 /* Exit non-zero if getgroups seems to require an array of ints. This
9806 happens when gid_t is short but getgroups modifies an array of ints. */
9807 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9811 if { (eval echo configure:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9813 ac_cv_type_getgroups=gid_t
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9818 ac_cv_type_getgroups=int
9823 if test $ac_cv_type_getgroups = cross; then
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9830 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9832 ac_cv_type_getgroups=gid_t
9835 ac_cv_type_getgroups=int
9842 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9843 cat >> confdefs.h <<EOF
9844 #define GETGROUPS_T $ac_cv_type_getgroups
9847 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9848 echo "configure:9849: checking for ANSI C header files" >&5
9849 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9850 echo $ac_n "(cached) $ac_c" 1>&6
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure"
9854 #include "confdefs.h"
9860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9861 { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9863 if test -z "$ac_err"; then
9865 ac_cv_header_stdc=yes
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9871 ac_cv_header_stdc=no
9875 if test $ac_cv_header_stdc = yes; then
9876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9883 egrep "memchr" >/dev/null 2>&1; then
9887 ac_cv_header_stdc=no
9893 if test $ac_cv_header_stdc = yes; then
9894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9901 egrep "free" >/dev/null 2>&1; then
9905 ac_cv_header_stdc=no
9911 if test $ac_cv_header_stdc = yes; then
9912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9913 if test "$cross_compiling" = yes; then
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9920 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9921 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9923 int main () { int i; for (i = 0; i < 256; i++)
9924 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9935 ac_cv_header_stdc=no
9943 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9944 if test $ac_cv_header_stdc = yes; then
9945 cat >> confdefs.h <<\EOF
9946 #define STDC_HEADERS 1
9951 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9952 echo "configure:9953: checking for mode_t" >&5
9953 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9959 #include <sys/types.h>
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9968 ac_cv_type_mode_t=yes
9971 ac_cv_type_mode_t=no
9976 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9977 if test $ac_cv_type_mode_t = no; then
9978 cat >> confdefs.h <<\EOF
9984 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9985 echo "configure:9986: checking for off_t" >&5
9986 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9987 echo $ac_n "(cached) $ac_c" 1>&6
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 #include <sys/types.h>
9998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9999 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10001 ac_cv_type_off_t=yes
10004 ac_cv_type_off_t=no
10009 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10010 if test $ac_cv_type_off_t = no; then
10011 cat >> confdefs.h <<\EOF
10017 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10018 echo "configure:10019: checking for pid_t" >&5
10019 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 #include <sys/types.h>
10027 #include <stdlib.h>
10028 #include <stddef.h>
10031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10032 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10034 ac_cv_type_pid_t=yes
10037 ac_cv_type_pid_t=no
10042 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10043 if test $ac_cv_type_pid_t = no; then
10044 cat >> confdefs.h <<\EOF
10050 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10051 echo "configure:10052: checking for ptrdiff_t" >&5
10052 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10055 cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure"
10057 #include "confdefs.h"
10058 #include <stddef.h>
10063 if { (eval echo configure:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10065 am_cv_type_ptrdiff_t=yes
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10070 am_cv_type_ptrdiff_t=no
10075 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10076 if test $am_cv_type_ptrdiff_t = yes; then
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_PTRDIFF_T 1
10083 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10084 echo "configure:10085: checking return type of signal handlers" >&5
10085 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10088 cat > conftest.$ac_ext <<EOF
10089 #line 10090 "configure"
10090 #include "confdefs.h"
10091 #include <sys/types.h>
10092 #include <signal.h>
10097 extern "C" void (*signal (int, void (*)(int)))(int);
10099 void (*signal ()) ();
10106 if { (eval echo configure:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 ac_cv_type_signal=void
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10113 ac_cv_type_signal=int
10118 echo "$ac_t""$ac_cv_type_signal" 1>&6
10119 cat >> confdefs.h <<EOF
10120 #define RETSIGTYPE $ac_cv_type_signal
10124 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10125 echo "configure:10126: checking for sig_atomic_t" >&5
10126 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10132 #include <signal.h>
10134 sig_atomic_t atomic;
10137 if { (eval echo configure:10138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10139 ol_cv_type_sig_atomic_t=yes
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10144 ol_cv_type_sig_atomic_t=no
10149 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10150 if test $ol_cv_type_sig_atomic_t = no; then
10151 cat >> confdefs.h <<\EOF
10152 #define sig_atomic_t int
10157 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10158 echo "configure:10159: checking for size_t" >&5
10159 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 #include <sys/types.h>
10167 #include <stdlib.h>
10168 #include <stddef.h>
10171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10172 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10174 ac_cv_type_size_t=yes
10177 ac_cv_type_size_t=no
10182 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10183 if test $ac_cv_type_size_t = no; then
10184 cat >> confdefs.h <<\EOF
10185 #define size_t unsigned
10190 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10191 echo "configure:10192: checking for st_blksize in struct stat" >&5
10192 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 #include <sys/types.h>
10199 #include <sys/stat.h>
10201 struct stat s; s.st_blksize;
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10206 ac_cv_struct_st_blksize=yes
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10211 ac_cv_struct_st_blksize=no
10216 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10217 if test $ac_cv_struct_st_blksize = yes; then
10218 cat >> confdefs.h <<\EOF
10219 #define HAVE_ST_BLKSIZE 1
10224 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10225 echo "configure:10226: checking whether time.h and sys/time.h may both be included" >&5
10226 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10229 cat > conftest.$ac_ext <<EOF
10230 #line 10231 "configure"
10231 #include "confdefs.h"
10232 #include <sys/types.h>
10233 #include <sys/time.h>
10239 if { (eval echo configure:10240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10241 ac_cv_header_time=yes
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10246 ac_cv_header_time=no
10251 echo "$ac_t""$ac_cv_header_time" 1>&6
10252 if test $ac_cv_header_time = yes; then
10253 cat >> confdefs.h <<\EOF
10254 #define TIME_WITH_SYS_TIME 1
10259 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10260 echo "configure:10261: checking whether struct tm is in sys/time.h or time.h" >&5
10261 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 #include <sys/types.h>
10270 struct tm *tp; tp->tm_sec;
10273 if { (eval echo configure:10274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10275 ac_cv_struct_tm=time.h
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 ac_cv_struct_tm=sys/time.h
10285 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10286 if test $ac_cv_struct_tm = sys/time.h; then
10287 cat >> confdefs.h <<\EOF
10288 #define TM_IN_SYS_TIME 1
10293 # test for pw_gecos in struct passwd
10294 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10295 echo "configure:10296: checking struct passwd for pw_gecos" >&5
10296 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10307 pwd.pw_gecos = pwd.pw_name;
10311 if { (eval echo configure:10312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313 ol_cv_struct_passwd_pw_gecos=yes
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 ol_cv_struct_passwd_pw_gecos=no
10323 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10324 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10325 cat >> confdefs.h <<\EOF
10326 #define HAVE_PW_GECOS 1
10333 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10334 echo "configure:10335: checking if toupper() requires islower()" >&5
10335 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10339 if test "$cross_compiling" = yes; then
10340 ol_cv_c_upper_lower=safe
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10349 if ('C' == toupper('C'))
10355 if { (eval echo configure:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10357 ol_cv_c_upper_lower=no
10359 echo "configure: failed program was:" >&5
10360 cat conftest.$ac_ext >&5
10362 ol_cv_c_upper_lower=yes
10369 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10370 if test $ol_cv_c_upper_lower != no ; then
10371 cat >> confdefs.h <<\EOF
10372 #define C_UPPER_LOWER 1
10377 echo $ac_n "checking for working const""... $ac_c" 1>&6
10378 echo "configure:10379: checking for working const" >&5
10379 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10380 echo $ac_n "(cached) $ac_c" 1>&6
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10388 /* Ultrix mips cc rejects this. */
10389 typedef int charset[2]; const charset x;
10390 /* SunOS 4.1.1 cc rejects this. */
10391 char const *const *ccp;
10393 /* NEC SVR4.0.2 mips cc rejects this. */
10394 struct point {int x, y;};
10395 static struct point const zero = {0,0};
10396 /* AIX XL C 1.02.0.0 rejects this.
10397 It does not let you subtract one const X* pointer from another in an arm
10398 of an if-expression whose if-part is not a constant expression */
10399 const char *g = "string";
10400 ccp = &g + (g ? g-g : 0);
10401 /* HPUX 7.0 cc rejects these. */
10404 ccp = (char const *const *) p;
10405 { /* SCO 3.2v4 cc rejects this. */
10407 char const *s = 0 ? (char *) 0 : (char const *) 0;
10411 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10412 int x[] = {25, 17};
10413 const int *foo = &x[0];
10416 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10417 typedef const int *iptr;
10421 { /* AIX XL C 1.02.0.0 rejects this saying
10422 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10423 struct s { int j; const int *ap[3]; };
10424 struct s *b; b->j = 5;
10426 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10427 const int foo = 10;
10432 if { (eval echo configure:10433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10444 echo "$ac_t""$ac_cv_c_const" 1>&6
10445 if test $ac_cv_c_const = no; then
10446 cat >> confdefs.h <<\EOF
10452 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10453 echo "configure:10454: checking if compiler understands volatile" >&5
10454 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10455 echo $ac_n "(cached) $ac_c" 1>&6
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10462 volatile int a; int * volatile b = x ? &y : &z;
10463 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10467 if { (eval echo configure:10468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10469 ol_cv_c_volatile=yes
10471 echo "configure: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10474 ol_cv_c_volatile=no
10479 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10480 if test $ol_cv_c_volatile = yes; then
10483 cat >> confdefs.h <<\EOF
10490 if test $cross_compiling = yes ; then
10491 cat >> confdefs.h <<\EOF
10492 #define CROSS_COMPILING 1
10496 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10497 echo "configure:10498: checking whether byte ordering is bigendian" >&5
10498 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10501 ac_cv_c_bigendian=unknown
10502 # See if sys/param.h defines the BYTE_ORDER macro.
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <sys/types.h>
10507 #include <sys/param.h>
10510 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10511 bogus endian macros
10515 if { (eval echo configure:10516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10517 # It does; now see whether it defined to BIG_ENDIAN or not.
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10522 #include <sys/param.h>
10525 #if BYTE_ORDER != BIG_ENDIAN
10530 if { (eval echo configure:10531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10532 ac_cv_c_bigendian=yes
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10537 ac_cv_c_bigendian=no
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10545 if test $ac_cv_c_bigendian = unknown; then
10546 if test "$cross_compiling" = yes; then
10547 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10549 cat > conftest.$ac_ext <<EOF
10550 #line 10551 "configure"
10551 #include "confdefs.h"
10553 /* Are we little or big endian? From Harbison&Steele. */
10557 char c[sizeof (long)];
10560 exit (u.c[sizeof (long) - 1] == 1);
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10565 ac_cv_c_bigendian=no
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 ac_cv_c_bigendian=yes
10578 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10579 if test $ac_cv_c_bigendian = yes; then
10580 cat >> confdefs.h <<\EOF
10581 #define WORDS_BIGENDIAN 1
10586 echo $ac_n "checking size of short""... $ac_c" 1>&6
10587 echo "configure:10588: checking size of short" >&5
10588 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10591 if test "$cross_compiling" = yes; then
10592 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10600 FILE *f=fopen("conftestval", "w");
10602 fprintf(f, "%d\n", sizeof(short));
10606 if { (eval echo configure:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10608 ac_cv_sizeof_short=`cat conftestval`
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10613 ac_cv_sizeof_short=0
10619 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10620 cat >> confdefs.h <<EOF
10621 #define SIZEOF_SHORT $ac_cv_sizeof_short
10625 echo $ac_n "checking size of int""... $ac_c" 1>&6
10626 echo "configure:10627: checking size of int" >&5
10627 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10630 if test "$cross_compiling" = yes; then
10631 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10639 FILE *f=fopen("conftestval", "w");
10641 fprintf(f, "%d\n", sizeof(int));
10645 if { (eval echo configure:10646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10647 ac_cv_sizeof_int=`cat conftestval`
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10658 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10659 cat >> confdefs.h <<EOF
10660 #define SIZEOF_INT $ac_cv_sizeof_int
10664 echo $ac_n "checking size of long""... $ac_c" 1>&6
10665 echo "configure:10666: checking size of long" >&5
10666 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10667 echo $ac_n "(cached) $ac_c" 1>&6
10669 if test "$cross_compiling" = yes; then
10670 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10678 FILE *f=fopen("conftestval", "w");
10680 fprintf(f, "%d\n", sizeof(long));
10684 if { (eval echo configure:10685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10686 ac_cv_sizeof_long=`cat conftestval`
10688 echo "configure: failed program was:" >&5
10689 cat conftest.$ac_ext >&5
10691 ac_cv_sizeof_long=0
10697 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10698 cat >> confdefs.h <<EOF
10699 #define SIZEOF_LONG $ac_cv_sizeof_long
10705 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10706 echo "configure:10707: checking for 8-bit clean memcmp" >&5
10707 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10710 if test "$cross_compiling" = yes; then
10711 ac_cv_func_memcmp_clean=no
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10719 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10720 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10724 if { (eval echo configure:10725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10726 ac_cv_func_memcmp_clean=yes
10728 echo "configure: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10731 ac_cv_func_memcmp_clean=no
10738 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10739 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10741 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10742 echo "configure:10743: checking for strftime" >&5
10743 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749 /* System header to define __stub macros and hopefully few prototypes,
10750 which can conflict with char strftime(); below. */
10751 #include <assert.h>
10752 /* Override any gcc2 internal prototype to avoid an error. */
10753 /* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
10759 /* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762 #if defined (__stub_strftime) || defined (__stub___strftime)
10770 if { (eval echo configure:10771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10772 eval "ac_cv_func_strftime=yes"
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 eval "ac_cv_func_strftime=no"
10782 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10783 echo "$ac_t""yes" 1>&6
10784 cat >> confdefs.h <<\EOF
10785 #define HAVE_STRFTIME 1
10789 echo "$ac_t""no" 1>&6
10790 # strftime is in -lintl on SCO UNIX.
10791 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10792 echo "configure:10793: checking for strftime in -lintl" >&5
10793 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10797 ac_save_LIBS="$LIBS"
10798 LIBS="-lintl $LIBS"
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 /* Override any gcc2 internal prototype to avoid an error. */
10803 /* We use char because int might match the return type of a gcc2
10804 builtin and then its argument prototype would still apply. */
10811 if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10813 eval "ac_cv_lib_$ac_lib_var=yes"
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10818 eval "ac_cv_lib_$ac_lib_var=no"
10821 LIBS="$ac_save_LIBS"
10824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10826 cat >> confdefs.h <<\EOF
10827 #define HAVE_STRFTIME 1
10830 LIBS="-lintl $LIBS"
10832 echo "$ac_t""no" 1>&6
10838 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10839 echo "configure:10840: checking for vprintf" >&5
10840 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10841 echo $ac_n "(cached) $ac_c" 1>&6
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char vprintf(); below. */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error. */
10850 /* We use char because int might match the return type of a gcc2
10851 builtin and then its argument prototype would still apply. */
10856 /* The GNU C library defines this for functions which it implements
10857 to always fail with ENOSYS. Some functions are actually named
10858 something starting with __ and the normal name is an alias. */
10859 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10869 eval "ac_cv_func_vprintf=yes"
10871 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5
10874 eval "ac_cv_func_vprintf=no"
10879 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10881 cat >> confdefs.h <<\EOF
10882 #define HAVE_VPRINTF 1
10886 echo "$ac_t""no" 1>&6
10889 if test "$ac_cv_func_vprintf" != yes; then
10890 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10891 echo "configure:10892: checking for _doprnt" >&5
10892 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10895 cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 /* System header to define __stub macros and hopefully few prototypes,
10899 which can conflict with char _doprnt(); below. */
10900 #include <assert.h>
10901 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10908 /* The GNU C library defines this for functions which it implements
10909 to always fail with ENOSYS. Some functions are actually named
10910 something starting with __ and the normal name is an alias. */
10911 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_func__doprnt=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_func__doprnt=no"
10931 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10933 cat >> confdefs.h <<\EOF
10934 #define HAVE_DOPRNT 1
10938 echo "$ac_t""no" 1>&6
10944 if test $ac_cv_func_vprintf = yes ; then
10945 for ac_func in vsnprintf vsprintf
10947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10948 echo "configure:10949: checking for $ac_func" >&5
10949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10952 cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10955 /* System header to define __stub macros and hopefully few prototypes,
10956 which can conflict with char $ac_func(); below. */
10957 #include <assert.h>
10958 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10965 /* The GNU C library defines this for functions which it implements
10966 to always fail with ENOSYS. Some functions are actually named
10967 something starting with __ and the normal name is an alias. */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978 eval "ac_cv_func_$ac_func=yes"
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10983 eval "ac_cv_func_$ac_func=no"
10988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10989 echo "$ac_t""yes" 1>&6
10990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10991 cat >> confdefs.h <<EOF
10992 #define $ac_tr_func 1
10996 echo "$ac_t""no" 1>&6
11043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11044 echo "configure:11045: checking for $ac_func" >&5
11045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 /* System header to define __stub macros and hopefully few prototypes,
11052 which can conflict with char $ac_func(); below. */
11053 #include <assert.h>
11054 /* Override any gcc2 internal prototype to avoid an error. */
11055 /* We use char because int might match the return type of a gcc2
11056 builtin and then its argument prototype would still apply. */
11061 /* The GNU C library defines this for functions which it implements
11062 to always fail with ENOSYS. Some functions are actually named
11063 something starting with __ and the normal name is an alias. */
11064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11072 if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11074 eval "ac_cv_func_$ac_func=yes"
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11079 eval "ac_cv_func_$ac_func=no"
11084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11085 echo "$ac_t""yes" 1>&6
11086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11087 cat >> confdefs.h <<EOF
11088 #define $ac_tr_func 1
11092 echo "$ac_t""no" 1>&6
11097 for ac_func in getopt tempnam
11099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11100 echo "configure:11101: checking for $ac_func" >&5
11101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 /* System header to define __stub macros and hopefully few prototypes,
11108 which can conflict with char $ac_func(); below. */
11109 #include <assert.h>
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11117 /* The GNU C library defines this for functions which it implements
11118 to always fail with ENOSYS. Some functions are actually named
11119 something starting with __ and the normal name is an alias. */
11120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11130 eval "ac_cv_func_$ac_func=yes"
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 eval "ac_cv_func_$ac_func=no"
11140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11141 echo "$ac_t""yes" 1>&6
11142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11143 cat >> confdefs.h <<EOF
11144 #define $ac_tr_func 1
11148 echo "$ac_t""no" 1>&6
11149 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11155 # Check Configuration
11157 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11158 echo "configure:11159: checking declaration of sys_errlist" >&5
11159 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11163 cat > conftest.$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11168 #include <sys/types.h>
11171 char *c = (char *) *sys_errlist
11174 if { (eval echo configure:11175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11176 ol_cv_dcl_sys_errlist=yes
11178 echo "configure: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11181 ol_cv_dcl_sys_errlist=no
11186 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11187 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11188 if test $ol_cv_dcl_sys_errlist = no ; then
11189 cat >> confdefs.h <<\EOF
11190 #define DECL_SYS_ERRLIST 1
11193 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11194 echo "configure:11195: checking existence of sys_errlist" >&5
11195 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11204 char *c = (char *) *sys_errlist
11207 if { (eval echo configure:11208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11209 ol_cv_have_sys_errlist=yes
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 ol_cv_have_sys_errlist=no
11219 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11220 if test $ol_cv_have_sys_errlist = yes ; then
11221 cat >> confdefs.h <<\EOF
11222 #define HAVE_SYS_ERRLIST 1
11230 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
11231 echo "configure:11232: checking strdup declaration" >&5
11232 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11240 #include <string.h>
11242 extern char *(strdup)();
11245 if { (eval echo configure:11246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11247 ol_cv_dcl_strdup=yes
11249 echo "configure: failed program was:" >&5
11250 cat conftest.$ac_ext >&5
11252 ol_cv_dcl_strdup=no
11257 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
11258 if test $ol_cv_dcl_strdup = yes ; then
11259 cat >> confdefs.h <<\EOF
11260 #define DECL_STRDUP 1
11267 if test "$ol_enable_debug" != no ; then
11268 cat >> confdefs.h <<\EOF
11269 #define LDAP_DEBUG 1
11273 if test "$ol_enable_syslog" = yes ; then
11274 cat >> confdefs.h <<\EOF
11275 #define LDAP_SYSLOG 1
11279 if test "$ol_enable_libui" = yes ; then
11280 cat >> confdefs.h <<\EOF
11281 #define LDAP_LIBUI 1
11285 if test "$ol_enable_cache" = no ; then
11286 cat >> confdefs.h <<\EOF
11287 #define LDAP_NOCACHE 1
11291 if test "$ol_enable_dns" != no ; then
11292 cat >> confdefs.h <<\EOF
11293 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11297 if test "$ol_enable_proctitle" != no ; then
11298 cat >> confdefs.h <<\EOF
11299 #define LDAP_PROCTITLE 1
11303 if test "$ol_enable_referrals" != no ; then
11304 cat >> confdefs.h <<\EOF
11305 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11309 if test "$ol_enable_cldap" != no ; then
11310 cat >> confdefs.h <<\EOF
11311 #define LDAP_CONNECTIONLESS 1
11316 if test "$ol_enable_aclgroups" != no ; then
11317 cat >> confdefs.h <<\EOF
11318 #define SLAPD_ACLGROUPS 1
11322 if test "$ol_enable_crypt" != no ; then
11323 cat >> confdefs.h <<\EOF
11324 #define SLAPD_CRYPT 1
11328 if test "$ol_enable_cleartext" != no ; then
11329 cat >> confdefs.h <<\EOF
11330 #define SLAPD_CLEARTEXT 1
11334 if test "$ol_enable_phonetic" != no ; then
11335 cat >> confdefs.h <<\EOF
11336 #define SLAPD_PHONETIC 1
11340 if test "$ol_enable_rlookups" != no ; then
11341 cat >> confdefs.h <<\EOF
11342 #define SLAPD_RLOOKUPS 1
11347 if test "$ol_link_modules" != no ; then
11348 cat >> confdefs.h <<\EOF
11349 #define SLAPD_MODULES 1
11355 if test "$ol_link_bdb2" != no ; then
11356 cat >> confdefs.h <<\EOF
11357 #define SLAPD_BDB2 1
11364 if test "$ol_link_ldbm" != no ; then
11365 cat >> confdefs.h <<\EOF
11366 #define SLAPD_LDBM 1
11373 if test "$ol_enable_passwd" != no ; then
11374 cat >> confdefs.h <<\EOF
11375 #define SLAPD_PASSWD 1
11382 if test "$ol_link_perl" != no ; then
11383 cat >> confdefs.h <<\EOF
11384 #define SLAPD_PERL 1
11391 if test "$ol_enable_shell" != no ; then
11392 cat >> confdefs.h <<\EOF
11393 #define SLAPD_SHELL 1
11400 if test "$ol_enable_tcl" != no ; then
11401 cat >> confdefs.h <<\EOF
11402 #define SLAPD_TCL 1
11409 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11410 $BUILD_SLAPD = yes ; then
11414 if test "$ol_link_isode" != no ; then
11451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11453 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11454 # Let make expand exec_prefix.
11455 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11457 # Any assignment to VPATH causes Sun make to only execute
11458 # the first set of double-colon rules, so remove it if not needed.
11459 # If there is a colon in the path, we need to keep it.
11460 if test "x$srcdir" = x.; then
11461 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11466 DEFS=-DHAVE_CONFIG_H
11468 # Without the "./", some shells look in PATH for config.status.
11469 : ${CONFIG_STATUS=./config.status}
11471 echo creating $CONFIG_STATUS
11472 rm -f $CONFIG_STATUS
11473 cat > $CONFIG_STATUS <<EOF
11475 # Generated automatically by configure.
11476 # Run this file to recreate the current configuration.
11477 # This directory was configured as follows,
11478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11480 # $0 $ac_configure_args
11482 # Compiler output produced by configure, useful for debugging
11483 # configure, is in ./config.log if it exists.
11485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11488 case "\$ac_option" in
11489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11490 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11491 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11492 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11493 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11495 -help | --help | --hel | --he | --h)
11496 echo "\$ac_cs_usage"; exit 0 ;;
11497 *) echo "\$ac_cs_usage"; exit 1 ;;
11501 ac_given_srcdir=$srcdir
11502 ac_given_INSTALL="$INSTALL"
11504 trap 'rm -fr `echo "\
11505 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11506 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11507 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11508 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11509 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11510 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11511 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11512 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11513 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11514 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11515 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11516 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11517 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11518 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11519 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11520 include/Makefile:build/top.mk:include/Makefile.in \
11521 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11522 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11523 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11524 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11525 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11526 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11527 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11528 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11529 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11530 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11531 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11532 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11533 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11534 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11535 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11536 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11537 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11538 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11539 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11540 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11541 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11542 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11543 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11544 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11545 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11546 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11548 cat >> $CONFIG_STATUS <<EOF
11550 # Protect against being on the right side of a sed subst in config.status.
11551 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11552 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11556 s%@CFLAGS@%$CFLAGS%g
11557 s%@CPPFLAGS@%$CPPFLAGS%g
11558 s%@CXXFLAGS@%$CXXFLAGS%g
11559 s%@FFLAGS@%$FFLAGS%g
11561 s%@LDFLAGS@%$LDFLAGS%g
11563 s%@exec_prefix@%$exec_prefix%g
11564 s%@prefix@%$prefix%g
11565 s%@program_transform_name@%$program_transform_name%g
11566 s%@bindir@%$bindir%g
11567 s%@sbindir@%$sbindir%g
11568 s%@libexecdir@%$libexecdir%g
11569 s%@datadir@%$datadir%g
11570 s%@sysconfdir@%$sysconfdir%g
11571 s%@sharedstatedir@%$sharedstatedir%g
11572 s%@localstatedir@%$localstatedir%g
11573 s%@libdir@%$libdir%g
11574 s%@includedir@%$includedir%g
11575 s%@oldincludedir@%$oldincludedir%g
11576 s%@infodir@%$infodir%g
11577 s%@mandir@%$mandir%g
11578 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11579 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11580 s%@INSTALL_DATA@%$INSTALL_DATA%g
11581 s%@PACKAGE@%$PACKAGE%g
11582 s%@VERSION@%$VERSION%g
11583 s%@ACLOCAL@%$ACLOCAL%g
11584 s%@AUTOCONF@%$AUTOCONF%g
11585 s%@AUTOMAKE@%$AUTOMAKE%g
11586 s%@AUTOHEADER@%$AUTOHEADER%g
11587 s%@MAKEINFO@%$MAKEINFO%g
11588 s%@SET_MAKE@%$SET_MAKE%g
11589 s%@top_builddir@%$top_builddir%g
11590 s%@ldap_subdir@%$ldap_subdir%g
11592 s%@host_alias@%$host_alias%g
11593 s%@host_cpu@%$host_cpu%g
11594 s%@host_vendor@%$host_vendor%g
11595 s%@host_os@%$host_os%g
11596 s%@RANLIB@%$RANLIB%g
11601 s%@LIBTOOL@%$LIBTOOL%g
11604 s%@SENDMAIL@%$SENDMAIL%g
11605 s%@EDITOR@%$EDITOR%g
11606 s%@FINGER@%$FINGER%g
11607 s%@GLIBCONFIG@%$GLIBCONFIG%g
11608 s%@PERLBIN@%$PERLBIN%g
11610 s%@EXEEXT@%$EXEEXT%g
11611 s%@OBJEXT@%$OBJEXT%g
11613 s%@LIBOBJS@%$LIBOBJS%g
11614 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11615 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11616 s%@BUILD_BDB2@%$BUILD_BDB2%g
11617 s%@BUILD_LDBM@%$BUILD_LDBM%g
11618 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11619 s%@BUILD_PERL@%$BUILD_PERL%g
11620 s%@BUILD_SHELL@%$BUILD_SHELL%g
11621 s%@BUILD_TCL@%$BUILD_TCL%g
11622 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11623 s%@LDAP_LIBS@%$LDAP_LIBS%g
11624 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11625 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11626 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11627 s%@LDBM_LIBS@%$LDBM_LIBS%g
11628 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11629 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11630 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11631 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11632 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11633 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11634 s%@KRB_LIBS@%$KRB_LIBS%g
11635 s%@READLINE_LIBS@%$READLINE_LIBS%g
11636 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11637 s%@TLS_LIBS@%$TLS_LIBS%g
11642 cat >> $CONFIG_STATUS <<\EOF
11644 # Split the substitutions into bite-sized pieces for seds with
11645 # small command number limits, like on Digital OSF/1 and HP-UX.
11646 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11647 ac_file=1 # Number of current file.
11648 ac_beg=1 # First line for current file.
11649 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11652 while $ac_more_lines; do
11653 if test $ac_beg -gt 1; then
11654 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11656 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11658 if test ! -s conftest.s$ac_file; then
11659 ac_more_lines=false
11660 rm -f conftest.s$ac_file
11662 if test -z "$ac_sed_cmds"; then
11663 ac_sed_cmds="sed -f conftest.s$ac_file"
11665 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11667 ac_file=`expr $ac_file + 1`
11669 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11672 if test -z "$ac_sed_cmds"; then
11677 cat >> $CONFIG_STATUS <<EOF
11679 CONFIG_FILES=\${CONFIG_FILES-"\
11680 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11681 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11682 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11683 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11684 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11685 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11686 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11687 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11688 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11689 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11690 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11691 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11692 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11693 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11694 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11695 include/Makefile:build/top.mk:include/Makefile.in \
11696 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11697 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11698 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11699 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11700 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11701 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11702 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11703 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11704 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11705 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11706 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11707 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11708 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11709 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11710 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11711 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11712 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11713 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11714 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11715 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11716 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11717 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11718 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11719 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11720 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11723 cat >> $CONFIG_STATUS <<\EOF
11724 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11725 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11727 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11728 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11729 *) ac_file_in="${ac_file}.in" ;;
11732 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11734 # Remove last slash and all that follows it. Not all systems have dirname.
11735 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11736 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11737 # The file is in a subdirectory.
11738 test ! -d "$ac_dir" && mkdir "$ac_dir"
11739 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11740 # A "../" for each directory in $ac_dir_suffix.
11741 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11743 ac_dir_suffix= ac_dots=
11746 case "$ac_given_srcdir" in
11748 if test -z "$ac_dots"; then top_srcdir=.
11749 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11750 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11751 *) # Relative path.
11752 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11753 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11756 case "$ac_given_INSTALL" in
11757 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11758 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11761 echo creating "$ac_file"
11763 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11765 *Makefile*) ac_comsub="1i\\
11766 # $configure_input" ;;
11770 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11772 s%@configure_input@%$configure_input%g
11773 s%@srcdir@%$srcdir%g
11774 s%@top_srcdir@%$top_srcdir%g
11775 s%@INSTALL@%$INSTALL%g
11776 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11780 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11781 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11783 # ac_d sets the value in "#define NAME VALUE" lines.
11784 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11785 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11788 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11789 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11790 ac_uB='\([ ]\)%\1#\2define\3'
11793 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11794 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11795 ac_eB='$%\1#\2define\3'
11799 if test "${CONFIG_HEADERS+set}" != set; then
11801 cat >> $CONFIG_STATUS <<EOF
11802 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11804 cat >> $CONFIG_STATUS <<\EOF
11806 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11807 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11809 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11810 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11811 *) ac_file_in="${ac_file}.in" ;;
11814 echo creating $ac_file
11816 rm -f conftest.frag conftest.in conftest.out
11817 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11818 cat $ac_file_inputs > conftest.in
11822 # Transform confdefs.h into a sed script conftest.vals that substitutes
11823 # the proper values into config.h.in to produce config.h. And first:
11824 # Protect against being on the right side of a sed subst in config.status.
11825 # Protect against being in an unquoted here document in config.status.
11826 rm -f conftest.vals
11827 cat > conftest.hdr <<\EOF
11830 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11834 sed -n -f conftest.hdr confdefs.h > conftest.vals
11837 # This sed command replaces #undef with comments. This is necessary, for
11838 # example, in the case of _POSIX_SOURCE, which is predefined and required
11839 # on some systems where configure will not decide to define it.
11840 cat >> conftest.vals <<\EOF
11841 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11844 # Break up conftest.vals because some shells have a limit on
11845 # the size of here documents, and old seds have small limits too.
11847 rm -f conftest.tail
11850 ac_lines=`grep -c . conftest.vals`
11851 # grep -c gives empty output for an empty file on some AIX systems.
11852 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11853 # Write a limited-size here document to conftest.frag.
11854 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11855 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11857 sed -f conftest.frag conftest.in > conftest.out
11859 mv conftest.out conftest.in
11860 ' >> $CONFIG_STATUS
11861 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11862 rm -f conftest.vals
11863 mv conftest.tail conftest.vals
11865 rm -f conftest.vals
11867 cat >> $CONFIG_STATUS <<\EOF
11868 rm -f conftest.frag conftest.h
11869 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11870 cat conftest.in >> conftest.h
11872 if cmp -s $ac_file conftest.h 2>/dev/null; then
11873 echo "$ac_file is unchanged"
11876 # Remove last slash and all that follows it. Not all systems have dirname.
11877 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11878 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11879 # The file is in a subdirectory.
11880 test ! -d "$ac_dir" && mkdir "$ac_dir"
11883 mv conftest.h $ac_file
11888 cat >> $CONFIG_STATUS <<EOF
11891 cat >> $CONFIG_STATUS <<\EOF
11894 echo Please \"make depend\" to build dependencies
11898 chmod +x $CONFIG_STATUS
11899 rm -fr confdefs* $ac_clean_files
11900 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1