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-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
786 missing_dir=`cd $ac_aux_dir && pwd`
787 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788 echo "configure:789: checking for working aclocal" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 ACLOCAL="$missing_dir/missing aclocal"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoconf" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOCONF="$missing_dir/missing autoconf"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working automake""... $ac_c" 1>&6
814 echo "configure:815: checking for working automake" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (automake --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOMAKE="$missing_dir/missing automake"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoheader" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
832 AUTOHEADER=autoheader
833 echo "$ac_t""found" 1>&6
835 AUTOHEADER="$missing_dir/missing autoheader"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
840 echo "configure:841: checking for working makeinfo" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 MAKEINFO="$missing_dir/missing makeinfo"
849 echo "$ac_t""missing" 1>&6
854 cat >> confdefs.h <<EOF
855 #define OPENLDAP_PACKAGE "$PACKAGE"
858 cat >> confdefs.h <<EOF
859 #define OPENLDAP_VERSION "$VERSION"
865 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
866 echo "configure:867: checking configure arguments" >&5
871 cat >> confdefs.h <<\EOF
872 #define HAVE_MKVERSION 1
876 ldap_subdir="openldap"
878 # Check whether --with-subdir or --without-subdir was given.
879 if test "${with_subdir+set}" = set; then
880 withval="$with_subdir"
882 if test "$withval" = "no"; then
884 elif test "$withval" != "yes"; then
885 ldap_subdir="$withval"
891 # OpenLDAP --enable-debug
892 # Check whether --enable-debug or --disable-debug was given.
893 if test "${enable_debug+set}" = set; then
894 enableval="$enable_debug"
897 for ol_val in auto yes no ; do
898 if test "$enableval" = "$ol_val" ; then
902 if test "$ol_arg" = "invalid" ; then
903 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
905 ol_enable_debug="$ol_arg"
908 ol_enable_debug="yes"
911 # OpenLDAP --enable-syslog
912 # Check whether --enable-syslog or --disable-syslog was given.
913 if test "${enable_syslog+set}" = set; then
914 enableval="$enable_syslog"
917 for ol_val in auto yes no ; do
918 if test "$enableval" = "$ol_val" ; then
922 if test "$ol_arg" = "invalid" ; then
923 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
925 ol_enable_syslog="$ol_arg"
928 ol_enable_syslog="auto"
930 # end --enable-syslog
931 # OpenLDAP --enable-proctitle
932 # Check whether --enable-proctitle or --disable-proctitle was given.
933 if test "${enable_proctitle+set}" = set; then
934 enableval="$enable_proctitle"
937 for ol_val in auto yes no ; do
938 if test "$enableval" = "$ol_val" ; then
942 if test "$ol_arg" = "invalid" ; then
943 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
945 ol_enable_proctitle="$ol_arg"
948 ol_enable_proctitle="yes"
950 # end --enable-proctitle
951 # OpenLDAP --enable-cache
952 # Check whether --enable-cache or --disable-cache was given.
953 if test "${enable_cache+set}" = set; then
954 enableval="$enable_cache"
957 for ol_val in auto yes no ; do
958 if test "$enableval" = "$ol_val" ; then
962 if test "$ol_arg" = "invalid" ; then
963 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
965 ol_enable_cache="$ol_arg"
968 ol_enable_cache="yes"
971 # OpenLDAP --enable-dns
972 # Check whether --enable-dns or --disable-dns was given.
973 if test "${enable_dns+set}" = set; then
974 enableval="$enable_dns"
977 for ol_val in auto yes no ; do
978 if test "$enableval" = "$ol_val" ; then
982 if test "$ol_arg" = "invalid" ; then
983 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
985 ol_enable_dns="$ol_arg"
991 # OpenLDAP --enable-referrals
992 # Check whether --enable-referrals or --disable-referrals was given.
993 if test "${enable_referrals+set}" = set; then
994 enableval="$enable_referrals"
997 for ol_val in auto yes no ; do
998 if test "$enableval" = "$ol_val" ; then
1002 if test "$ol_arg" = "invalid" ; then
1003 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1005 ol_enable_referrals="$ol_arg"
1008 ol_enable_referrals="yes"
1010 # end --enable-referrals
1011 # OpenLDAP --enable-cldap
1012 # Check whether --enable-cldap or --disable-cldap was given.
1013 if test "${enable_cldap+set}" = set; then
1014 enableval="$enable_cldap"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1025 ol_enable_cldap="$ol_arg"
1028 ol_enable_cldap="no"
1030 # end --enable-cldap
1031 # OpenLDAP --enable-x_compile
1032 # Check whether --enable-x_compile or --disable-x_compile was given.
1033 if test "${enable_x_compile+set}" = set; then
1034 enableval="$enable_x_compile"
1037 for ol_val in yes no ; do
1038 if test "$enableval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1045 ol_enable_x_compile="$ol_arg"
1048 ol_enable_x_compile="no"
1050 # end --enable-x_compile
1052 # OpenLDAP --enable-dmalloc
1053 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1054 if test "${enable_dmalloc+set}" = set; then
1055 enableval="$enable_dmalloc"
1058 for ol_val in auto yes no ; do
1059 if test "$enableval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1066 ol_enable_dmalloc="$ol_arg"
1069 ol_enable_dmalloc="no"
1071 # end --enable-dmalloc
1073 # OpenLDAP --with-kerberos
1074 # Check whether --with-kerberos or --without-kerberos was given.
1075 if test "${with_kerberos+set}" = set; then
1076 withval="$with_kerberos"
1079 for ol_val in auto k5 k4 afs yes no ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1087 ol_with_kerberos="$ol_arg"
1090 ol_with_kerberos="auto"
1092 # end --with-kerberos
1094 # OpenLDAP --with-readline
1095 # Check whether --with-readline or --without-readline was given.
1096 if test "${with_readline+set}" = set; then
1097 withval="$with_readline"
1100 for ol_val in auto yes no ; do
1101 if test "$withval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1108 ol_with_readline="$ol_arg"
1111 ol_with_readline="auto"
1113 # end --with-readline
1115 # OpenLDAP --with-threads
1116 # Check whether --with-threads or --without-threads was given.
1117 if test "${with_threads+set}" = set; then
1118 withval="$with_threads"
1121 for ol_val in auto posix mach lwp yes no manual ; do
1122 if test "$withval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1129 ol_with_threads="$ol_arg"
1132 ol_with_threads="auto"
1134 # end --with-threads
1136 # OpenLDAP --with-tls
1137 # Check whether --with-tls or --without-tls was given.
1138 if test "${with_tls+set}" = set; then
1142 for ol_val in auto ssleay openssl yes no ; do
1143 if test "$withval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1150 ol_with_tls="$ol_arg"
1157 # OpenLDAP --with-yielding_select
1158 # Check whether --with-yielding_select or --without-yielding_select was given.
1159 if test "${with_yielding_select+set}" = set; then
1160 withval="$with_yielding_select"
1163 for ol_val in auto yes no manual ; do
1164 if test "$withval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1171 ol_with_yielding_select="$ol_arg"
1174 ol_with_yielding_select="auto"
1176 # end --with-yielding_select
1180 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1181 if test "${with_xxldapdoptions+set}" = set; then
1182 withval="$with_xxldapdoptions"
1186 # OpenLDAP --enable-ldapd
1187 # Check whether --enable-ldapd or --disable-ldapd was given.
1188 if test "${enable_ldapd+set}" = set; then
1189 enableval="$enable_ldapd"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1200 ol_enable_ldapd="$ol_arg"
1203 ol_enable_ldapd="no"
1205 # end --enable-ldapd
1207 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1208 if test "${with_xxslapdoptions+set}" = set; then
1209 withval="$with_xxslapdoptions"
1213 # OpenLDAP --enable-slapd
1214 # Check whether --enable-slapd or --disable-slapd was given.
1215 if test "${enable_slapd+set}" = set; then
1216 enableval="$enable_slapd"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1227 ol_enable_slapd="$ol_arg"
1230 ol_enable_slapd="yes"
1232 # end --enable-slapd
1233 # OpenLDAP --enable-aclgroups
1234 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1235 if test "${enable_aclgroups+set}" = set; then
1236 enableval="$enable_aclgroups"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1247 ol_enable_aclgroups="$ol_arg"
1250 ol_enable_aclgroups="auto"
1252 # end --enable-aclgroups
1253 # OpenLDAP --enable-cleartext
1254 # Check whether --enable-cleartext or --disable-cleartext was given.
1255 if test "${enable_cleartext+set}" = set; then
1256 enableval="$enable_cleartext"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1267 ol_enable_cleartext="$ol_arg"
1270 ol_enable_cleartext="yes"
1272 # end --enable-cleartext
1273 # OpenLDAP --enable-crypt
1274 # Check whether --enable-crypt or --disable-crypt was given.
1275 if test "${enable_crypt+set}" = set; then
1276 enableval="$enable_crypt"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1287 ol_enable_crypt="$ol_arg"
1290 ol_enable_crypt="auto"
1292 # end --enable-crypt
1293 # OpenLDAP --enable-modules
1294 # Check whether --enable-modules or --disable-modules was given.
1295 if test "${enable_modules+set}" = set; then
1296 enableval="$enable_modules"
1299 for ol_val in auto yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1307 ol_enable_modules="$ol_arg"
1310 ol_enable_modules="no"
1312 # end --enable-modules
1313 # OpenLDAP --enable-phonetic
1314 # Check whether --enable-phonetic or --disable-phonetic was given.
1315 if test "${enable_phonetic+set}" = set; then
1316 enableval="$enable_phonetic"
1319 for ol_val in auto yes no ; do
1320 if test "$enableval" = "$ol_val" ; then
1324 if test "$ol_arg" = "invalid" ; then
1325 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1327 ol_enable_phonetic="$ol_arg"
1330 ol_enable_phonetic="no"
1332 # end --enable-phonetic
1333 # OpenLDAP --enable-rlookups
1334 # Check whether --enable-rlookups or --disable-rlookups was given.
1335 if test "${enable_rlookups+set}" = set; then
1336 enableval="$enable_rlookups"
1339 for ol_val in auto yes no ; do
1340 if test "$enableval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1347 ol_enable_rlookups="$ol_arg"
1350 ol_enable_rlookups="auto"
1352 # end --enable-rlookups
1353 # OpenLDAP --enable-wrappers
1354 # Check whether --enable-wrappers or --disable-wrappers was given.
1355 if test "${enable_wrappers+set}" = set; then
1356 enableval="$enable_wrappers"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1367 ol_enable_wrappers="$ol_arg"
1370 ol_enable_wrappers="no"
1372 # end --enable-wrappers
1374 # OpenLDAP --enable-bdb2
1375 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1376 if test "${enable_bdb2+set}" = set; then
1377 enableval="$enable_bdb2"
1380 for ol_val in auto yes no ; do
1381 if test "$enableval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1388 ol_enable_bdb2="$ol_arg"
1394 # OpenLDAP --enable-ldap
1395 # Check whether --enable-ldap or --disable-ldap was given.
1396 if test "${enable_ldap+set}" = set; then
1397 enableval="$enable_ldap"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1408 ol_enable_ldap="$ol_arg"
1414 # OpenLDAP --enable-ldbm
1415 # Check whether --enable-ldbm or --disable-ldbm was given.
1416 if test "${enable_ldbm+set}" = set; then
1417 enableval="$enable_ldbm"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1428 ol_enable_ldbm="$ol_arg"
1431 ol_enable_ldbm="yes"
1434 # OpenLDAP --with-ldbm_api
1435 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1436 if test "${with_ldbm_api+set}" = set; then
1437 withval="$with_ldbm_api"
1440 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1448 ol_with_ldbm_api="$ol_arg"
1451 ol_with_ldbm_api="auto"
1453 # end --with-ldbm_api
1455 # OpenLDAP --with-ldbm_type
1456 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1457 if test "${with_ldbm_type+set}" = set; then
1458 withval="$with_ldbm_type"
1461 for ol_val in auto btree hash ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1469 ol_with_ldbm_type="$ol_arg"
1472 ol_with_ldbm_type="auto"
1474 # end --with-ldbm_type
1477 # OpenLDAP --enable-passwd
1478 # Check whether --enable-passwd or --disable-passwd was given.
1479 if test "${enable_passwd+set}" = set; then
1480 enableval="$enable_passwd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1491 ol_enable_passwd="$ol_arg"
1494 ol_enable_passwd="no"
1496 # end --enable-passwd
1497 # OpenLDAP --enable-perl
1498 # Check whether --enable-perl or --disable-perl was given.
1499 if test "${enable_perl+set}" = set; then
1500 enableval="$enable_perl"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1511 ol_enable_perl="$ol_arg"
1517 # OpenLDAP --enable-shell
1518 # Check whether --enable-shell or --disable-shell was given.
1519 if test "${enable_shell+set}" = set; then
1520 enableval="$enable_shell"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1531 ol_enable_shell="$ol_arg"
1534 ol_enable_shell="no"
1536 # end --enable-shell
1537 # OpenLDAP --enable-tcl
1538 # Check whether --enable-tcl or --disable-tcl was given.
1539 if test "${enable_tcl+set}" = set; then
1540 enableval="$enable_tcl"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1551 ol_enable_tcl="$ol_arg"
1558 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1559 if test "${with_xxslurpdoptions+set}" = set; then
1560 withval="$with_xxslurpdoptions"
1564 # OpenLDAP --enable-slurpd
1565 # Check whether --enable-slurpd or --disable-slurpd was given.
1566 if test "${enable_slurpd+set}" = set; then
1567 enableval="$enable_slurpd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1578 ol_enable_slurpd="$ol_arg"
1581 ol_enable_slurpd="auto"
1583 # end --enable-slurpd
1585 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1586 if test "${with_xxliboptions+set}" = set; then
1587 withval="$with_xxliboptions"
1591 # Check whether --enable-static or --disable-static was given.
1592 if test "${enable_static+set}" = set; then
1593 enableval="$enable_static"
1594 p=${PACKAGE-default}
1595 case "$enableval" in
1596 yes) enable_static=yes ;;
1597 no) enable_static=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-shared or --disable-shared was given.
1615 if test "${enable_shared+set}" = set; then
1616 enableval="$enable_shared"
1617 p=${PACKAGE-default}
1618 case "$enableval" in
1619 yes) enable_shared=yes ;;
1620 no) enable_shared=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1639 if test $ol_enable_dns = yes ; then
1640 if test $ol_enable_referrals = no ; then
1641 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1643 if test $ol_enable_referrals = auto ; then
1644 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1645 ol_enable_referrals=yes
1649 if test $ol_enable_slapd = no ; then
1650 if test $ol_enable_bdb2 = yes ; then
1651 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1653 if test $ol_enable_ldap = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1656 if test $ol_enable_ldbm = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1659 if test $ol_enable_passwd = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1662 if test $ol_enable_perl = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1665 if test $ol_enable_shell = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1668 if test $ol_enable_tcl = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1671 if test $ol_enable_aclgroups = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1674 if test $ol_enable_modules = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1677 if test $ol_enable_wrappers = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1680 if test $ol_enable_phonetic = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1683 if test $ol_enable_rlookups = yes ; then
1684 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1692 if test $ol_enable_slurpd = yes ; then
1693 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1696 # force settings to no
1705 ol_enable_aclgroups=no
1706 ol_enable_modules=no
1707 ol_enable_phonetic=no
1708 ol_enable_rlookups=no
1709 ol_enable_wrappers=no
1712 ol_with_ldbm_type=no
1716 elif test $ol_enable_ldbm = no ; then
1718 if test $ol_with_ldbm_api != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1722 if test $ol_with_ldbm_type != auto ; then
1723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1726 if test $ol_enable_bdb2 = yes ; then
1727 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1730 if test $ol_enable_modules != yes -a \
1731 $ol_enable_ldap = no -a \
1732 $ol_enable_passwd = no -a \
1733 $ol_enable_perl = no -a \
1734 $ol_enable_shell = no -a \
1735 $ol_enable_tcl = no ; then
1736 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1740 ol_with_ldbm_type=no
1742 elif test $ol_enable_bdb2 = yes ; then
1744 if test $ol_with_ldbm_api != auto -a \
1745 $ol_with_ldbm_api != db2 ; then
1746 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1749 ol_with_ldbm_api=db2
1753 if test $ol_enable_bdb2 != no ; then
1754 if test $ol_with_ldbm_api != auto -a \
1755 $ol_with_ldbm_api != db2 ; then
1756 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1761 if test $ol_with_ldbm_api = gdbm -a \
1762 $ol_with_ldbm_type = btree ; then
1763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1765 if test $ol_with_ldbm_api = mdbm -a \
1766 $ol_with_ldbm_type = btree ; then
1767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1769 if test $ol_with_ldbm_api = ndbm -a \
1770 $ol_with_ldbm_type = btree ; then
1771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1775 if test $ol_enable_slurpd = yes ; then
1776 if test $ol_with_threads = no ; then
1777 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1781 echo "$ac_t""done" 1>&6
1806 SLAPD_MODULES_LDFLAGS=
1807 SLAPD_MODULES_CPPFLAGS=
1810 SLAPD_PERL_CPPFLAGS=
1819 if test "${host_os}" != "cygwin" ; then
1824 # Make sure we can run config.sub.
1825 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1826 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1829 echo $ac_n "checking host system type""... $ac_c" 1>&6
1830 echo "configure:1831: checking host system type" >&5
1833 case "$host_alias" in
1837 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1838 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1840 *) host_alias=$nonopt ;;
1844 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1845 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1846 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1847 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1848 echo "$ac_t""$host" 1>&6
1850 # Extract the first word of "ranlib", so it can be a program name with args.
1851 set dummy ranlib; ac_word=$2
1852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1853 echo "configure:1854: checking for $ac_word" >&5
1854 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 if test -n "$RANLIB"; then
1858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1862 for ac_dir in $ac_dummy; do
1863 test -z "$ac_dir" && ac_dir=.
1864 if test -f $ac_dir/$ac_word; then
1865 ac_cv_prog_RANLIB="ranlib"
1870 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1873 RANLIB="$ac_cv_prog_RANLIB"
1874 if test -n "$RANLIB"; then
1875 echo "$ac_t""$RANLIB" 1>&6
1877 echo "$ac_t""no" 1>&6
1880 # Extract the first word of "gcc", so it can be a program name with args.
1881 set dummy gcc; ac_word=$2
1882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_word" >&5
1884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 if test -n "$CC"; then
1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1903 if test -n "$CC"; then
1904 echo "$ac_t""$CC" 1>&6
1906 echo "$ac_t""no" 1>&6
1909 if test -z "$CC"; then
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1913 echo "configure:1914: checking for $ac_word" >&5
1914 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1923 for ac_dir in $ac_dummy; do
1924 test -z "$ac_dir" && ac_dir=.
1925 if test -f $ac_dir/$ac_word; then
1926 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1927 ac_prog_rejected=yes
1935 if test $ac_prog_rejected = yes; then
1936 # We found a bogon in the path, so make sure we never use it.
1937 set dummy $ac_cv_prog_CC
1939 if test $# -gt 0; then
1940 # We chose a different compiler from the bogus one.
1941 # However, it has the same basename, so the bogon will be chosen
1942 # first if we set CC to just the basename; use the full file name.
1944 set dummy "$ac_dir/$ac_word" "$@"
1952 if test -n "$CC"; then
1953 echo "$ac_t""$CC" 1>&6
1955 echo "$ac_t""no" 1>&6
1958 if test -z "$CC"; then
1959 case "`uname -s`" in
1961 # Extract the first word of "cl", so it can be a program name with args.
1962 set dummy cl; ac_word=$2
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_word" >&5
1965 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1973 for ac_dir in $ac_dummy; do
1974 test -z "$ac_dir" && ac_dir=.
1975 if test -f $ac_dir/$ac_word; then
1984 if test -n "$CC"; then
1985 echo "$ac_t""$CC" 1>&6
1987 echo "$ac_t""no" 1>&6
1992 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1995 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2000 ac_cpp='$CPP $CPPFLAGS'
2001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2002 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2003 cross_compiling=$ac_cv_prog_cc_cross
2005 cat > conftest.$ac_ext << EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2012 if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2013 ac_cv_prog_cc_works=yes
2014 # If we can't run a trivial program, we are probably using a cross compiler.
2015 if (./conftest; exit) 2>/dev/null; then
2016 ac_cv_prog_cc_cross=no
2018 ac_cv_prog_cc_cross=yes
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 ac_cv_prog_cc_works=no
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 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2034 if test $ac_cv_prog_cc_works = no; then
2035 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2037 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2038 echo "configure:2039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2039 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2040 cross_compiling=$ac_cv_prog_cc_cross
2042 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2043 echo "configure:2044: checking whether we are using GNU C" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.c <<EOF
2052 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2059 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2061 if test $ac_cv_prog_gcc = yes; then
2067 ac_test_CFLAGS="${CFLAGS+set}"
2068 ac_save_CFLAGS="$CFLAGS"
2070 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether ${CC-cc} accepts -g" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 echo 'void f(){}' > conftest.c
2076 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2085 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2086 if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS="$ac_save_CFLAGS"
2088 elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2095 if test "$GCC" = yes; then
2102 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2103 if test "${with_gnu_ld+set}" = set; then
2104 withval="$with_gnu_ld"
2105 test "$withval" = no || with_gnu_ld=yes
2112 if test "$ac_cv_prog_gcc" = yes; then
2113 # Check if gcc -print-prog-name=ld gives a path.
2114 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ld used by GCC" >&5
2116 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2118 # Accept absolute paths.
2120 test -z "$LD" && LD="$ac_prog"
2123 # If it fails, then pretend we aren't using GCC.
2127 # If it is relative, then search for the first ld in PATH.
2131 elif test "$with_gnu_ld" = yes; then
2132 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2133 echo "configure:2134: checking for GNU ld" >&5
2135 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2136 echo "configure:2137: checking for non-GNU ld" >&5
2138 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 if test -z "$LD"; then
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2143 for ac_dir in $PATH; do
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f "$ac_dir/$ac_prog"; then
2146 ac_cv_path_LD="$ac_dir/$ac_prog"
2147 # Check to see if the program is GNU ld. I'd rather use --version,
2148 # but apparently some GNU ld's only accept -v.
2149 # Break only if it was the GNU/non-GNU ld that we prefer.
2150 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2151 test "$with_gnu_ld" != no && break
2153 test "$with_gnu_ld" != yes && break
2159 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2164 if test -n "$LD"; then
2165 echo "$ac_t""$LD" 1>&6
2167 echo "$ac_t""no" 1>&6
2169 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2171 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2172 echo "configure:2173: checking if the linker ($LD) is GNU ld" >&5
2173 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2177 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2178 ac_cv_prog_gnu_ld=yes
2180 ac_cv_prog_gnu_ld=no
2184 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2187 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2188 echo "configure:2189: checking for BSD-compatible nm" >&5
2189 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2194 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2198 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2199 test -z "$ac_dir" && ac_dir=.
2200 if test -f $ac_dir/nm; then
2201 # Check to see if the nm accepts a BSD-compat flag.
2202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2203 # nm: unknown option "B" ignored
2204 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2205 ac_cv_path_NM="$ac_dir/nm -B"
2206 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2207 ac_cv_path_NM="$ac_dir/nm -p"
2209 ac_cv_path_NM="$ac_dir/nm"
2215 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2221 echo "$ac_t""$NM" 1>&6
2224 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether ln -s works" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2230 if ln -s X conftestdata 2>/dev/null
2233 ac_cv_prog_LN_S="ln -s"
2238 LN_S="$ac_cv_prog_LN_S"
2239 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2240 echo "$ac_t""yes" 1>&6
2242 echo "$ac_t""no" 1>&6
2245 # Always use our own libtool.
2246 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2248 # Check for any special flags to pass to ltconfig.
2250 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2251 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2252 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2253 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2254 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2256 # Some flags need to be propagated to the compiler or linker for good
2260 # Find out which ABI we are using.
2261 echo '#line 2262 "configure"' > conftest.$ac_ext
2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2263 case "`/usr/bin/file conftest.o`" in
2279 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2280 CFLAGS="$CFLAGS -belf"
2284 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2285 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2286 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2287 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2288 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2289 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2292 for ac_prog in mawk gawk nawk awk
2294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2295 set dummy $ac_prog; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 if test -n "$AWK"; then
2302 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_AWK="$ac_prog"
2316 AWK="$ac_cv_prog_AWK"
2317 if test -n "$AWK"; then
2318 echo "$ac_t""$AWK" 1>&6
2320 echo "$ac_t""no" 1>&6
2323 test -n "$AWK" && break
2326 # test for ln hardlink support
2327 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether ln works" >&5
2329 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 rm -f conftest.src conftest.dst
2333 echo "conftest" > conftest.src
2334 if ln conftest.src conftest.dst 2>/dev/null
2336 ol_cv_prog_LN_H="ln"
2338 ol_cv_prog_LN_H="cp"
2340 rm -f conftest.src conftest.dst
2343 LN_H="$ol_cv_prog_LN_H"
2344 if test "$ol_cv_prog_LN_H" = "ln"; then
2345 echo "$ac_t""yes" 1>&6
2347 echo "$ac_t""no" 1>&6
2350 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2351 echo "configure:2352: checking whether ln -s works" >&5
2352 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2356 if ln -s X conftestdata 2>/dev/null
2359 ac_cv_prog_LN_S="ln -s"
2364 LN_S="$ac_cv_prog_LN_S"
2365 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2366 echo "$ac_t""yes" 1>&6
2368 echo "$ac_t""no" 1>&6
2372 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2376 # Extract the first word of "sendmail", so it can be a program name with args.
2377 set dummy sendmail; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2388 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2392 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2393 for ac_dir in $ac_dummy; do
2394 test -z "$ac_dir" && ac_dir=.
2395 if test -f $ac_dir/$ac_word; then
2396 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2401 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2405 SENDMAIL="$ac_cv_path_SENDMAIL"
2406 if test -n "$SENDMAIL"; then
2407 echo "$ac_t""$SENDMAIL" 1>&6
2409 echo "$ac_t""no" 1>&6
2412 # Extract the first word of "vi", so it can be a program name with args.
2413 set dummy vi; ac_word=$2
2414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2415 echo "configure:2416: checking for $ac_word" >&5
2416 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2424 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2428 ac_dummy="$PATH:/usr/ucb"
2429 for ac_dir in $ac_dummy; do
2430 test -z "$ac_dir" && ac_dir=.
2431 if test -f $ac_dir/$ac_word; then
2432 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2437 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2441 EDITOR="$ac_cv_path_EDITOR"
2442 if test -n "$EDITOR"; then
2443 echo "$ac_t""$EDITOR" 1>&6
2445 echo "$ac_t""no" 1>&6
2448 # Extract the first word of "finger", so it can be a program name with args.
2449 set dummy finger; ac_word=$2
2450 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2451 echo "configure:2452: checking for $ac_word" >&5
2452 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2457 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2460 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2464 ac_dummy="$PATH:/usr/ucb"
2465 for ac_dir in $ac_dummy; do
2466 test -z "$ac_dir" && ac_dir=.
2467 if test -f $ac_dir/$ac_word; then
2468 ac_cv_path_FINGER="$ac_dir/$ac_word"
2473 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2477 FINGER="$ac_cv_path_FINGER"
2478 if test -n "$FINGER"; then
2479 echo "$ac_t""$FINGER" 1>&6
2481 echo "$ac_t""no" 1>&6
2486 if test $ol_enable_modules != no ; then
2487 # Extract the first word of "glib-config", so it can be a program name with args.
2488 set dummy glib-config; ac_word=$2
2489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_word" >&5
2491 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 case "$GLIBCONFIG" in
2496 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2499 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2504 for ac_dir in $ac_dummy; do
2505 test -z "$ac_dir" && ac_dir=.
2506 if test -f $ac_dir/$ac_word; then
2507 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2515 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2516 if test -n "$GLIBCONFIG"; then
2517 echo "$ac_t""$GLIBCONFIG" 1>&6
2519 echo "$ac_t""no" 1>&6
2523 if test "no$GLIBCONFIG" = "no" ; then
2524 if test $ol_enable_modules = yes ; then
2525 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2529 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2530 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2531 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2538 if test $ol_enable_perl != no ; then
2539 # Extract the first word of "perl", so it can be a program name with args.
2540 set dummy perl; ac_word=$2
2541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_word" >&5
2543 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2548 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2551 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2559 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2564 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2568 PERLBIN="$ac_cv_path_PERLBIN"
2569 if test -n "$PERLBIN"; then
2570 echo "$ac_t""$PERLBIN" 1>&6
2572 echo "$ac_t""no" 1>&6
2576 if test "no$PERLBIN" = "no" ; then
2577 if test $ol_enable_perl = yes ; then
2578 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2582 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2583 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2590 echo "configure:2591: checking how to run the C preprocessor" >&5
2591 # On Suns, sometimes $CPP names a directory.
2592 if test -n "$CPP" && test -d "$CPP"; then
2595 if test -z "$CPP"; then
2596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 # This must be in double quotes, not single quotes, because CPP may get
2600 # substituted into the Makefile and "${CC-cc}" will confuse make.
2602 # On the NeXT, cc -E runs the code through the compiler's parser,
2603 # not just through cpp.
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 CPP="${CC-cc} -E -traditional-cpp"
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628 { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630 if test -z "$ac_err"; then
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2637 CPP="${CC-cc} -nologo -E"
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2645 { (eval echo configure:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2647 if test -z "$ac_err"; then
2651 echo "configure: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2661 ac_cv_prog_CPP="$CPP"
2663 CPP="$ac_cv_prog_CPP"
2665 ac_cv_prog_CPP="$CPP"
2667 echo "$ac_t""$CPP" 1>&6
2670 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2671 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2673 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2674 echo "configure: warning: programs compiled here do run here..." 1>&2
2675 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2677 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2678 echo "configure: warning: programs compiled here do not run here..." 1>&2
2679 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2682 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2683 echo "configure:2684: checking for AIX" >&5
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2693 egrep "yes" >/dev/null 2>&1; then
2695 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2696 #define _ALL_SOURCE 1
2701 echo "$ac_t""no" 1>&6
2706 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2707 echo "configure:2708: checking for POSIXized ISC" >&5
2708 if test -d /etc/conf/kconfig.d &&
2709 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2711 echo "$ac_t""yes" 1>&6
2712 ISC=yes # If later tests want to check for ISC.
2713 cat >> confdefs.h <<\EOF
2714 #define _POSIX_SOURCE 1
2717 if test "$GCC" = yes; then
2723 echo "$ac_t""no" 1>&6
2727 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2728 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2729 echo "configure:2730: checking for minix/config.h" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <minix/config.h>
2738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2739 { (eval echo configure:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2741 if test -z "$ac_err"; then
2743 eval "ac_cv_header_$ac_safe=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 eval "ac_cv_header_$ac_safe=no"
2753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2757 echo "$ac_t""no" 1>&6
2761 if test "$MINIX" = yes; then
2762 cat >> confdefs.h <<\EOF
2763 #define _POSIX_SOURCE 1
2766 cat >> confdefs.h <<\EOF
2767 #define _POSIX_1_SOURCE 2
2770 cat >> confdefs.h <<\EOF
2777 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2778 echo "configure:2779: checking for be_app in -lbe" >&5
2779 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 ac_save_LIBS="$LIBS"
2784 LIBS="-lbe -lroot -lnet $LIBS"
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2799 eval "ac_cv_lib_$ac_lib_var=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_lib_$ac_lib_var=no"
2807 LIBS="$ac_save_LIBS"
2810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2811 echo "$ac_t""yes" 1>&6
2812 LIBS="$LIBS -lbe -lroot -lnet"
2814 echo "$ac_t""no" 1>&6
2819 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2820 echo "configure:2821: checking for Cygwin environment" >&5
2821 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2831 #define __CYGWIN__ __CYGWIN32__
2836 if { (eval echo configure:2837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2840 echo "configure: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2849 echo "$ac_t""$ac_cv_cygwin" 1>&6
2851 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2852 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2853 echo "configure:2854: checking for mingw32 environment" >&5
2854 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2878 echo "$ac_t""$ac_cv_mingw32" 1>&6
2880 test "$ac_cv_mingw32" = yes && MINGW32=yes
2883 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2884 echo "configure:2885: checking for executable suffix" >&5
2885 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2892 echo 'int main () { return 0; }' > conftest.$ac_ext
2894 if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2895 for file in conftest.*; do
2897 *.c | *.o | *.obj) ;;
2898 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2902 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2905 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2910 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2911 echo "$ac_t""${ac_cv_exeext}" 1>&6
2914 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2915 echo "configure:2916: checking for object suffix" >&5
2916 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2920 echo 'int i = 1;' > conftest.$ac_ext
2921 if { (eval echo configure:2922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2922 for ac_file in conftest.*; do
2925 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2929 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2934 echo "$ac_t""$ac_cv_objext" 1>&6
2935 OBJEXT=$ac_cv_objext
2936 ac_objext=$ac_cv_objext
2939 cat >> confdefs.h <<EOF
2940 #define EXEEXT "${EXEEXT}"
2947 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2948 echo "configure:2949: checking for ${CC-cc} option to accept ANSI C" >&5
2949 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 am_cv_prog_cc_stdc=no
2954 # Don't try gcc -ansi; that turns off useful extensions and
2955 # breaks some systems' header files.
2956 # AIX -qlanglvl=ansi
2957 # Ultrix and OSF/1 -std1
2958 # HP-UX -Aa -D_HPUX_SOURCE
2959 # SVR4 -Xc -D__EXTENSIONS__
2960 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2962 CC="$ac_save_CC $ac_arg"
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2968 #include <sys/types.h>
2969 #include <sys/stat.h>
2970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2971 struct buf { int x; };
2972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2984 s = g (p, va_arg (v,int));
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3001 if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3003 am_cv_prog_cc_stdc="$ac_arg"; break
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3014 if test -z "$am_cv_prog_cc_stdc"; then
3015 echo "$ac_t""none needed" 1>&6
3017 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3019 case "x$am_cv_prog_cc_stdc" in
3021 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3024 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3025 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3031 echo $ac_n "checking for socket""... $ac_c" 1>&6
3032 echo "configure:3033: checking for socket" >&5
3033 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* System header to define __stub macros and hopefully few prototypes,
3040 which can conflict with char socket(); below. */
3042 /* Override any gcc2 internal prototype to avoid an error. */
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3049 /* The GNU C library defines this for functions which it implements
3050 to always fail with ENOSYS. Some functions are actually named
3051 something starting with __ and the normal name is an alias. */
3052 #if defined (__stub_socket) || defined (__stub___socket)
3060 if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3062 eval "ac_cv_func_socket=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.$ac_ext >&5
3067 eval "ac_cv_func_socket=no"
3072 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3076 echo "$ac_t""no" 1>&6
3078 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3079 echo "configure:3080: checking for main in -lsocket" >&5
3080 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_save_LIBS="$LIBS"
3085 LIBS="-lsocket $LIBS"
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3096 eval "ac_cv_lib_$ac_lib_var=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_lib_$ac_lib_var=no"
3104 LIBS="$ac_save_LIBS"
3107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3111 cat >> confdefs.h <<EOF
3112 #define $ac_tr_lib 1
3115 LIBS="-lsocket $LIBS"
3118 echo "$ac_t""no" 1>&6
3121 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3122 echo "configure:3123: checking for main in -lnet" >&5
3123 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 ac_save_LIBS="$LIBS"
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3137 if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3139 eval "ac_cv_lib_$ac_lib_var=yes"
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 eval "ac_cv_lib_$ac_lib_var=no"
3147 LIBS="$ac_save_LIBS"
3150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3151 echo "$ac_t""yes" 1>&6
3152 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3153 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3154 cat >> confdefs.h <<EOF
3155 #define $ac_tr_lib 1
3161 echo "$ac_t""no" 1>&6
3164 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3165 echo "configure:3166: checking for socket in -lnet" >&5
3166 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_save_LIBS="$LIBS"
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3186 eval "ac_cv_lib_$ac_lib_var=yes"
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 eval "ac_cv_lib_$ac_lib_var=no"
3194 LIBS="$ac_save_LIBS"
3197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3198 echo "$ac_t""yes" 1>&6
3199 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3200 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3201 cat >> confdefs.h <<EOF
3202 #define $ac_tr_lib 1
3208 echo "$ac_t""no" 1>&6
3211 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3212 echo "configure:3213: checking for main in -lnsl_s" >&5
3213 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_save_LIBS="$LIBS"
3218 LIBS="-lnsl_s $LIBS"
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3229 eval "ac_cv_lib_$ac_lib_var=yes"
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 eval "ac_cv_lib_$ac_lib_var=no"
3237 LIBS="$ac_save_LIBS"
3240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3244 cat >> confdefs.h <<EOF
3245 #define $ac_tr_lib 1
3248 LIBS="-lnsl_s $LIBS"
3251 echo "$ac_t""no" 1>&6
3254 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3255 echo "configure:3256: checking for main in -lnsl" >&5
3256 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 ac_save_LIBS="$LIBS"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272 eval "ac_cv_lib_$ac_lib_var=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3277 eval "ac_cv_lib_$ac_lib_var=no"
3280 LIBS="$ac_save_LIBS"
3283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3287 cat >> confdefs.h <<EOF
3288 #define $ac_tr_lib 1
3294 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3298 echo "configure:3299: checking for socket in -linet" >&5
3299 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_save_LIBS="$LIBS"
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 eval "ac_cv_lib_$ac_lib_var=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "ac_cv_lib_$ac_lib_var=no"
3327 LIBS="$ac_save_LIBS"
3330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3334 cat >> confdefs.h <<EOF
3335 #define $ac_tr_lib 1
3341 echo "$ac_t""no" 1>&6
3344 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3345 echo "configure:3346: checking for main in -lgen" >&5
3346 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3348 echo $ac_n "(cached) $ac_c" 1>&6
3350 ac_save_LIBS="$LIBS"
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 eval "ac_cv_lib_$ac_lib_var=yes"
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 eval "ac_cv_lib_$ac_lib_var=no"
3370 LIBS="$ac_save_LIBS"
3373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3377 cat >> confdefs.h <<EOF
3378 #define $ac_tr_lib 1
3384 echo "$ac_t""no" 1>&6
3391 for ac_func in res_search
3393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_func" >&5
3395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* System header to define __stub macros and hopefully few prototypes,
3402 which can conflict with char $ac_func(); below. */
3404 /* Override any gcc2 internal prototype to avoid an error. */
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3411 /* The GNU C library defines this for functions which it implements
3412 to always fail with ENOSYS. Some functions are actually named
3413 something starting with __ and the normal name is an alias. */
3414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 eval "ac_cv_func_$ac_func=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_func_$ac_func=no"
3434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3437 cat >> confdefs.h <<EOF
3438 #define $ac_tr_func 1
3442 echo "$ac_t""no" 1>&6
3446 if test $ac_cv_func_res_search = "no" ; then
3447 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3448 echo "configure:3449: checking for res_search in -lbind" >&5
3449 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_save_LIBS="$LIBS"
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_lib_$ac_lib_var=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_lib_$ac_lib_var=no"
3477 LIBS="$ac_save_LIBS"
3480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3484 cat >> confdefs.h <<EOF
3485 #define $ac_tr_lib 1
3491 echo "$ac_t""no" 1>&6
3494 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3495 cat >> confdefs.h <<\EOF
3496 #define HAVE_RES_SEARCH 1
3500 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3501 echo "configure:3502: checking for res_search in -lresolv" >&5
3502 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 ac_save_LIBS="$LIBS"
3507 LIBS="-lresolv $LIBS"
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 /* Override any gcc2 internal prototype to avoid an error. */
3512 /* We use char because int might match the return type of a gcc2
3513 builtin and then its argument prototype would still apply. */
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3522 eval "ac_cv_lib_$ac_lib_var=yes"
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 eval "ac_cv_lib_$ac_lib_var=no"
3530 LIBS="$ac_save_LIBS"
3533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3535 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3537 cat >> confdefs.h <<EOF
3538 #define $ac_tr_lib 1
3541 LIBS="-lresolv $LIBS"
3544 echo "$ac_t""no" 1>&6
3547 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3548 cat >> confdefs.h <<\EOF
3549 #define HAVE_RES_SEARCH 1
3556 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3557 echo "configure:3558: checking for sigset in -lV3" >&5
3558 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 ac_save_LIBS="$LIBS"
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* Override any gcc2 internal prototype to avoid an error. */
3568 /* We use char because int might match the return type of a gcc2
3569 builtin and then its argument prototype would still apply. */
3576 if { (eval echo configure:3577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3578 eval "ac_cv_lib_$ac_lib_var=yes"
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3583 eval "ac_cv_lib_$ac_lib_var=no"
3586 LIBS="$ac_save_LIBS"
3589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3590 echo "$ac_t""yes" 1>&6
3591 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3592 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3593 cat >> confdefs.h <<EOF
3594 #define $ac_tr_lib 1
3600 echo "$ac_t""no" 1>&6
3604 for ac_hdr in regex.h
3606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_hdr" >&5
3609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3618 { (eval echo configure:3619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3620 if test -z "$ac_err"; then
3622 eval "ac_cv_header_$ac_safe=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_header_$ac_safe=no"
3632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3633 echo "$ac_t""yes" 1>&6
3634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3635 cat >> confdefs.h <<EOF
3636 #define $ac_tr_hdr 1
3640 echo "$ac_t""no" 1>&6
3644 if test "$ac_cv_header_regex_h" != yes ; then
3645 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3647 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3648 echo "configure:3649: checking for regfree" >&5
3649 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* System header to define __stub macros and hopefully few prototypes,
3656 which can conflict with char regfree(); below. */
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3665 /* The GNU C library defines this for functions which it implements
3666 to always fail with ENOSYS. Some functions are actually named
3667 something starting with __ and the normal name is an alias. */
3668 #if defined (__stub_regfree) || defined (__stub___regfree)
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678 eval "ac_cv_func_regfree=yes"
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3683 eval "ac_cv_func_regfree=no"
3688 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3692 echo "$ac_t""no" 1>&6
3693 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3697 echo $ac_n "checking for select""... $ac_c" 1>&6
3698 echo "configure:3699: checking for select" >&5
3699 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char select(); below. */
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3715 /* The GNU C library defines this for functions which it implements
3716 to always fail with ENOSYS. Some functions are actually named
3717 something starting with __ and the normal name is an alias. */
3718 #if defined (__stub_select) || defined (__stub___select)
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 eval "ac_cv_func_select=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 eval "ac_cv_func_select=no"
3738 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3742 echo "$ac_t""no" 1>&6
3743 { echo "configure: error: select() required." 1>&2; exit 1; }
3747 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3748 echo "configure:3749: checking types of arguments for select()" >&5
3749 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3759 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3760 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #ifdef HAVE_SYS_TYPES_H
3765 #include <sys/types.h>
3767 #ifdef HAVE_SYS_TIME_H
3768 #include <sys/time.h>
3770 #ifdef HAVE_SYS_SELECT_H
3771 #include <sys/select.h>
3773 #ifdef HAVE_SYS_SOCKET_H
3774 #include <sys/socket.h>
3776 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);
3781 if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 ac_not_found=no ; break 3
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3800 if test "$ac_not_found" = yes; then
3801 ac_cv_func_select_arg1=int
3802 ac_cv_func_select_arg234='int *'
3803 ac_cv_func_select_arg5='struct timeval *'
3805 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3806 cat >> confdefs.h <<EOF
3807 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3810 cat >> confdefs.h <<EOF
3811 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3814 cat >> confdefs.h <<EOF
3815 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3822 if test $ol_enable_ldapd != no ; then
3823 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3825 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3826 echo "configure:3827: checking for main in -lxtpp" >&5
3827 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 ac_save_LIBS="$LIBS"
3832 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3843 eval "ac_cv_lib_$ac_lib_var=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_lib_$ac_lib_var=no"
3851 LIBS="$ac_save_LIBS"
3854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3858 cat >> confdefs.h <<\EOF
3862 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3865 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3870 echo "configure:3871: checking for main in -ldsap" >&5
3871 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS="$LIBS"
3876 LIBS="-ldsap -lisode $LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887 eval "ac_cv_lib_$ac_lib_var=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_lib_$ac_lib_var=no"
3895 LIBS="$ac_save_LIBS"
3898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3902 cat >> confdefs.h <<\EOF
3906 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3909 echo "$ac_t""no" 1>&6
3913 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3914 echo "configure:3915: checking for main in -lisode" >&5
3915 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 ac_save_LIBS="$LIBS"
3920 LIBS="-lisode $LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 eval "ac_cv_lib_$ac_lib_var=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_lib_$ac_lib_var=no"
3939 LIBS="$ac_save_LIBS"
3942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3946 cat >> confdefs.h <<\EOF
3947 #define HAVE_ISODE 1
3950 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3953 echo "$ac_t""no" 1>&6
3959 if test $ol_link_isode != no; then
3960 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3961 echo "configure:3962: checking for main in -lpp" >&5
3962 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 ac_save_LIBS="$LIBS"
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 eval "ac_cv_lib_$ac_lib_var=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_lib_$ac_lib_var=no"
3986 LIBS="$ac_save_LIBS"
3989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3992 cat >> confdefs.h <<\EOF
3996 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3999 echo "$ac_t""no" 1>&6
4004 # Extract the first word of "pepsy", so it can be a program name with args.
4005 set dummy pepsy; ac_word=$2
4006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4007 echo "configure:4008: checking for $ac_word" >&5
4008 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4013 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4016 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4021 for ac_dir in $ac_dummy; do
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f $ac_dir/$ac_word; then
4024 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4032 PEPSY="$ac_cv_path_PEPSY"
4033 if test -n "$PEPSY"; then
4034 echo "$ac_t""$PEPSY" 1>&6
4036 echo "$ac_t""no" 1>&6
4043 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4044 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_hdr" >&5
4049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4058 { (eval echo configure:4059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4060 if test -z "$ac_err"; then
4062 eval "ac_cv_header_$ac_safe=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 eval "ac_cv_header_$ac_safe=no"
4072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4075 cat >> confdefs.h <<EOF
4076 #define $ac_tr_hdr 1
4080 echo "$ac_t""no" 1>&6
4085 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4086 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4087 echo "configure:4088: checking for main in -lkrb4" >&5
4088 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 ac_save_LIBS="$LIBS"
4093 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4104 eval "ac_cv_lib_$ac_lib_var=yes"
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4109 eval "ac_cv_lib_$ac_lib_var=no"
4112 LIBS="$ac_save_LIBS"
4115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4116 echo "$ac_t""yes" 1>&6
4119 echo "$ac_t""no" 1>&6
4124 if test $have_k5 = yes ; then
4125 ol_with_kerberos=found
4126 ol_link_kerberos=yes
4128 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4130 LIBS="$KRB_LIBS $LIBS"
4132 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4133 echo "configure:4134: checking for des_debug in Kerberos libraries" >&5
4134 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4139 LIBS="$KRB_LIBS $LIBS"
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4144 #include <kerberosIV/krb.h>
4145 #include <kerberosIV/des.h>
4146 extern int des_debug;
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 ol_cv_var_des_debug=yes
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 ol_cv_var_des_debug=no
4168 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4170 if test $ol_cv_var_des_debug = yes ; then
4171 cat >> confdefs.h <<\EOF
4172 #define HAVE_DES_DEBUG 1
4182 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4183 for ac_hdr in krb.h des.h
4185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4187 echo "configure:4188: checking for $ac_hdr" >&5
4188 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4197 { (eval echo configure:4198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4199 if test -z "$ac_err"; then
4201 eval "ac_cv_header_$ac_safe=yes"
4204 echo "configure: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4207 eval "ac_cv_header_$ac_safe=no"
4211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4214 cat >> confdefs.h <<EOF
4215 #define $ac_tr_hdr 1
4219 echo "$ac_t""no" 1>&6
4224 if test $ac_cv_header_krb_h = yes ; then
4225 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4226 echo "configure:4227: checking for main in -lkrb" >&5
4227 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 ac_save_LIBS="$LIBS"
4232 LIBS="-lkrb -ldes $LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4243 eval "ac_cv_lib_$ac_lib_var=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_lib_$ac_lib_var=no"
4251 LIBS="$ac_save_LIBS"
4254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4258 echo "$ac_t""no" 1>&6
4263 if test $have_k4 = yes ; then
4264 ol_with_kerberos=found
4265 ol_link_kerberos=yes
4267 KRB_LIBS="-lkrb -ldes"
4272 if test $ol_link_kerberos = yes ; then
4273 cat >> confdefs.h <<\EOF
4274 #define HAVE_KERBEROS 1
4280 if test $ol_with_tls != no ; then
4284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4286 echo "configure:4287: checking for $ac_hdr" >&5
4287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4296 { (eval echo configure:4297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4298 if test -z "$ac_err"; then
4300 eval "ac_cv_header_$ac_safe=yes"
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 eval "ac_cv_header_$ac_safe=no"
4310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4311 echo "$ac_t""yes" 1>&6
4312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4313 cat >> confdefs.h <<EOF
4314 #define $ac_tr_hdr 1
4318 echo "$ac_t""no" 1>&6
4323 if test $ac_cv_header_ssl_h = yes ; then
4324 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4325 echo "configure:4326: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4326 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_save_LIBS="$LIBS"
4331 LIBS="-lssl -lcrypto $LIBS"
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4338 char SSLeay_add_ssl_algorithms();
4341 SSLeay_add_ssl_algorithms()
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 eval "ac_cv_lib_$ac_lib_var=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 eval "ac_cv_lib_$ac_lib_var=no"
4354 LIBS="$ac_save_LIBS"
4357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4362 echo "$ac_t""no" 1>&6
4367 if test $have_ssleay = no ; then
4368 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4369 echo "configure:4370: checking for ssl3_accept in -lssl" >&5
4370 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 ac_save_LIBS="$LIBS"
4375 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 eval "ac_cv_lib_$ac_lib_var=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_lib_$ac_lib_var=no"
4398 LIBS="$ac_save_LIBS"
4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4406 echo "$ac_t""no" 1>&6
4412 if test $have_ssleay = yes ; then
4416 cat >> confdefs.h <<\EOF
4417 #define HAVE_SSLEAY 1
4421 if test $need_rsaref = yes; then
4422 cat >> confdefs.h <<\EOF
4423 #define HAVE_RSAREF 1
4427 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4429 TLS_LIBS="-lssl -lcrypto"
4435 if test $ol_link_tls = yes ; then
4436 cat >> confdefs.h <<\EOF
4444 gethostbyname_r gethostbyaddr_r \
4447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_func" >&5
4449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* System header to define __stub macros and hopefully few prototypes,
4456 which can conflict with char $ac_func(); below. */
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4465 /* The GNU C library defines this for functions which it implements
4466 to always fail with ENOSYS. Some functions are actually named
4467 something starting with __ and the normal name is an alias. */
4468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 eval "ac_cv_func_$ac_func=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_func_$ac_func=no"
4488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4491 cat >> confdefs.h <<EOF
4492 #define $ac_tr_func 1
4496 echo "$ac_t""no" 1>&6
4501 if test "$ac_cv_func_ctime_r" = no ; then
4502 ol_cv_func_ctime_r_nargs=0
4504 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4505 echo "configure:4506: checking number of arguments of ctime_r" >&5
4506 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4514 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4517 if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4519 ol_cv_func_ctime_r_nargs=3
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4529 time_t ti; char *buffer; ctime_r(&ti,buffer);
4532 if { (eval echo configure:4533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4534 ol_cv_func_ctime_r_nargs=2
4536 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5
4539 ol_cv_func_ctime_r_nargs=0
4546 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4547 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4548 cat >> confdefs.h <<EOF
4549 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4556 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4557 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4558 echo "configure:4559: checking number of arguments of gethostbyname_r" >&5
4559 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <sys/types.h>
4566 #include <sys/socket.h>
4567 #include <netinet/in.h>
4569 #define BUFSIZE (sizeof(struct hostent)+10)
4571 struct hostent hent; char buffer[BUFSIZE];
4572 int bufsize=BUFSIZE;int h_errno;
4573 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4574 buffer, bufsize, &h_errno);
4577 if { (eval echo configure:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4579 ol_cv_func_gethostbyname_r_nargs=5
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4587 #include <sys/types.h>
4588 #include <sys/socket.h>
4589 #include <netinet/in.h>
4591 #define BUFSIZE (sizeof(struct hostent)+10)
4593 struct hostent hent;struct hostent *rhent;
4594 char buffer[BUFSIZE];
4595 int bufsize=BUFSIZE;int h_errno;
4596 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4600 if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4602 ol_cv_func_gethostbyname_r_nargs=6
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4607 ol_cv_func_gethostbyname_r_nargs=0
4614 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4615 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4616 cat >> confdefs.h <<EOF
4617 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4623 ol_cv_func_gethostbyname_r_nargs=0
4626 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4627 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4628 echo "configure:4629: checking number of arguments of gethostbyaddr_r" >&5
4629 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 #include <sys/types.h>
4636 #include <sys/socket.h>
4637 #include <netinet/in.h>
4639 #define BUFSIZE (sizeof(struct hostent)+10)
4641 struct hostent hent; char buffer[BUFSIZE];
4643 size_t alen=sizeof(struct in_addr);
4644 int bufsize=BUFSIZE;int h_errno;
4645 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4646 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4649 if { (eval echo configure:4650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4651 ol_cv_func_gethostbyaddr_r_nargs=7
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <sys/types.h>
4660 #include <sys/socket.h>
4661 #include <netinet/in.h>
4663 #define BUFSIZE (sizeof(struct hostent)+10)
4665 struct hostent hent;
4666 struct hostent *rhent; char buffer[BUFSIZE];
4668 size_t alen=sizeof(struct in_addr);
4669 int bufsize=BUFSIZE;int h_errno;
4670 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4671 alen, AF_INET, &hent, buffer, bufsize,
4675 if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4677 ol_cv_func_gethostbyaddr_r_nargs=8
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 ol_cv_func_gethostbyaddr_r_nargs=0
4689 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4690 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4691 cat >> confdefs.h <<EOF
4692 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4698 ol_cv_func_gethostbyaddr_r_nargs=0
4701 if test "$ac_cv_func_ctime_r" = yes \
4702 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4703 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4704 -a "$ac_cv_func_gethostbyname_r" = yes \
4705 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4706 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4707 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4708 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4709 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4712 cat >> confdefs.h <<\EOF
4713 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4719 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4720 -o $ol_with_threads = posix ; then
4722 for ac_hdr in pthread.h sched.h
4724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4726 echo "configure:4727: checking for $ac_hdr" >&5
4727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4728 echo $ac_n "(cached) $ac_c" 1>&6
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4736 { (eval echo configure:4737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4738 if test -z "$ac_err"; then
4740 eval "ac_cv_header_$ac_safe=yes"
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4746 eval "ac_cv_header_$ac_safe=no"
4750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4753 cat >> confdefs.h <<EOF
4754 #define $ac_tr_hdr 1
4758 echo "$ac_t""no" 1>&6
4763 if test $ac_cv_header_pthread_h = yes ; then
4764 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4765 echo "configure:4766: checking POSIX thread version" >&5
4766 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4774 # include <pthread.h>
4775 /* this check could be improved */
4776 # ifdef PTHREAD_ONCE_INIT
4777 pthread_version_final
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 egrep "pthread_version_final" >/dev/null 2>&1; then
4784 ol_pthread_final=yes
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4796 # include <pthread.h>
4797 /* this check could be improved */
4798 # ifdef pthread_once_init
4799 pthread_version_draft4
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4806 ol_pthread_draft4=yes
4809 ol_pthread_draft4=no
4814 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4815 ol_cv_pthread_version=final
4816 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4817 ol_cv_pthread_version=draft4
4819 ol_cv_pthread_version=unknown
4824 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4827 if test $ol_cv_pthread_version = final ; then
4828 cat >> confdefs.h <<\EOF
4829 #define HAVE_PTHREADS_FINAL 1
4832 elif test $ol_cv_pthread_version = draft4 ; then
4833 cat >> confdefs.h <<\EOF
4834 #define HAVE_PTHREADS_D4 1
4838 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4841 # consider threads found
4842 ol_with_threads=found
4845 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4846 echo "configure:4847: checking for LinuxThreads pthread.h" >&5
4847 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <pthread.h>
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4858 ol_cv_header_linux_threads=yes
4861 ol_cv_header_linux_threads=no
4868 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4869 if test $ol_cv_header_linux_threads = yes; then
4870 cat >> confdefs.h <<\EOF
4871 #define HAVE_LINUX_THREADS 1
4878 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4879 echo "configure:4880: checking for pthread_create in default libraries" >&5
4880 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4884 if test "$cross_compiling" = yes; then
4885 ol_cv_pthread_create=yes
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4891 #include <pthread.h>
4893 #define NULL (void*)0
4896 static void *task(p)
4899 return (void *) (p == NULL);
4902 int main(argc, argv)
4909 /* make sure pthread_create() isn't just a stub */
4910 #if HAVE_PTHREADS_D4
4911 status = pthread_create(&t, pthread_attr_default, task, NULL);
4913 status = pthread_create(&t, NULL, task, NULL);
4916 if( status ) return status;
4918 /* make sure pthread_detach() isn't just a stub */
4919 #if HAVE_PTHREADS_D4
4920 status = pthread_detach( &t );
4922 status = pthread_detach( t );
4925 if( status ) return status;
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4933 ol_cv_pthread_create=yes
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 ol_cv_pthread_create=no
4945 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4947 if test $ol_cv_pthread_create != no ; then
4948 ol_link_threads=posix
4952 # Pthread try link: -mt (ol_cv_pthread_mt)
4953 if test "$ol_link_threads" = no ; then
4955 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4956 echo "configure:4957: checking for pthread link with -mt" >&5
4957 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4969 #include <pthread.h>
4971 #define NULL (void*)0
4978 #if HAVE_PTHREADS_D4
4979 pthread_create(&t, pthread_attr_default, NULL, NULL);
4980 pthread_detach( &t );
4982 pthread_create(&t, NULL, NULL, NULL);
4983 pthread_detach( t );
4985 #ifdef HAVE_LINUX_THREADS
4986 pthread_kill_other_threads_np();
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993 ol_cv_pthread_mt=yes
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
5007 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5009 if test $ol_cv_pthread_mt = yes ; then
5010 ol_link_pthreads="-mt"
5011 ol_link_threads=posix
5015 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5016 if test "$ol_link_threads" = no ; then
5018 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5019 echo "configure:5020: checking for pthread link with -kthread" >&5
5020 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5026 LIBS="-kthread $LIBS"
5028 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5032 #include <pthread.h>
5034 #define NULL (void*)0
5041 #if HAVE_PTHREADS_D4
5042 pthread_create(&t, pthread_attr_default, NULL, NULL);
5043 pthread_detach( &t );
5045 pthread_create(&t, NULL, NULL, NULL);
5046 pthread_detach( t );
5048 #ifdef HAVE_LINUX_THREADS
5049 pthread_kill_other_threads_np();
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 ol_cv_pthread_kthread=yes
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 ol_cv_pthread_kthread=no
5070 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5072 if test $ol_cv_pthread_kthread = yes ; then
5073 ol_link_pthreads="-kthread"
5074 ol_link_threads=posix
5078 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5079 if test "$ol_link_threads" = no ; then
5081 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5082 echo "configure:5083: checking for pthread link with -pthread" >&5
5083 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5089 LIBS="-pthread $LIBS"
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5095 #include <pthread.h>
5097 #define NULL (void*)0
5104 #if HAVE_PTHREADS_D4
5105 pthread_create(&t, pthread_attr_default, NULL, NULL);
5106 pthread_detach( &t );
5108 pthread_create(&t, NULL, NULL, NULL);
5109 pthread_detach( t );
5111 #ifdef HAVE_LINUX_THREADS
5112 pthread_kill_other_threads_np();
5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 ol_cv_pthread_pthread=yes
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5124 ol_cv_pthread_pthread=no
5133 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5135 if test $ol_cv_pthread_pthread = yes ; then
5136 ol_link_pthreads="-pthread"
5137 ol_link_threads=posix
5141 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5142 if test "$ol_link_threads" = no ; then
5144 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5145 echo "configure:5146: checking for pthread link with -pthreads" >&5
5146 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5152 LIBS="-pthreads $LIBS"
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5158 #include <pthread.h>
5160 #define NULL (void*)0
5167 #if HAVE_PTHREADS_D4
5168 pthread_create(&t, pthread_attr_default, NULL, NULL);
5169 pthread_detach( &t );
5171 pthread_create(&t, NULL, NULL, NULL);
5172 pthread_detach( t );
5174 #ifdef HAVE_LINUX_THREADS
5175 pthread_kill_other_threads_np();
5180 if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5182 ol_cv_pthread_pthreads=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 ol_cv_pthread_pthreads=no
5196 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5198 if test $ol_cv_pthread_pthreads = yes ; then
5199 ol_link_pthreads="-pthreads"
5200 ol_link_threads=posix
5204 # Pthread try link: -thread (ol_cv_pthread_thread)
5205 if test "$ol_link_threads" = no ; then
5207 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5208 echo "configure:5209: checking for pthread link with -thread" >&5
5209 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5215 LIBS="-thread $LIBS"
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5221 #include <pthread.h>
5223 #define NULL (void*)0
5230 #if HAVE_PTHREADS_D4
5231 pthread_create(&t, pthread_attr_default, NULL, NULL);
5232 pthread_detach( &t );
5234 pthread_create(&t, NULL, NULL, NULL);
5235 pthread_detach( t );
5237 #ifdef HAVE_LINUX_THREADS
5238 pthread_kill_other_threads_np();
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 ol_cv_pthread_thread=yes
5247 echo "configure: failed program was:" >&5
5248 cat conftest.$ac_ext >&5
5250 ol_cv_pthread_thread=no
5259 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5261 if test $ol_cv_pthread_thread = yes ; then
5262 ol_link_pthreads="-thread"
5263 ol_link_threads=posix
5268 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5269 if test "$ol_link_threads" = no ; then
5270 # try -lpthread -lmach -lexc -lc_r
5271 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5272 echo "configure:5273: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5273 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5279 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5281 cat > conftest.$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5285 #include <pthread.h>
5287 #define NULL (void*)0
5294 #if HAVE_PTHREADS_D4
5295 pthread_create(&t, pthread_attr_default, NULL, NULL);
5296 pthread_detach( &t );
5298 pthread_create(&t, NULL, NULL, NULL);
5299 pthread_detach( t );
5301 #ifdef HAVE_LINUX_THREADS
5302 pthread_kill_other_threads_np();
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5323 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5325 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5326 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5327 ol_link_threads=posix
5331 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5332 if test "$ol_link_threads" = no ; then
5333 # try -lpthread -lmach -lexc
5334 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5335 echo "configure:5336: checking for pthread link with -lpthread -lmach -lexc" >&5
5336 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5342 LIBS="-lpthread -lmach -lexc $LIBS"
5344 cat > conftest.$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5348 #include <pthread.h>
5350 #define NULL (void*)0
5357 #if HAVE_PTHREADS_D4
5358 pthread_create(&t, pthread_attr_default, NULL, NULL);
5359 pthread_detach( &t );
5361 pthread_create(&t, NULL, NULL, NULL);
5362 pthread_detach( t );
5364 #ifdef HAVE_LINUX_THREADS
5365 pthread_kill_other_threads_np();
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 ol_cv_pthread_lpthread_lmach_lexc=yes
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 ol_cv_pthread_lpthread_lmach_lexc=no
5386 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5388 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5389 ol_link_pthreads="-lpthread -lmach -lexc"
5390 ol_link_threads=posix
5395 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5396 if test "$ol_link_threads" = no ; then
5397 # try -lpthread -Wl,-woff,85
5398 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5399 echo "configure:5400: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5400 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5406 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5412 #include <pthread.h>
5414 #define NULL (void*)0
5421 #if HAVE_PTHREADS_D4
5422 pthread_create(&t, pthread_attr_default, NULL, NULL);
5423 pthread_detach( &t );
5425 pthread_create(&t, NULL, NULL, NULL);
5426 pthread_detach( t );
5428 #ifdef HAVE_LINUX_THREADS
5429 pthread_kill_other_threads_np();
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 ol_cv_pthread_lib_lpthread_woff=yes
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 ol_cv_pthread_lib_lpthread_woff=no
5450 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5452 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5453 ol_link_pthreads="-lpthread -Wl,-woff,85"
5454 ol_link_threads=posix
5459 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5460 if test "$ol_link_threads" = no ; then
5462 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5463 echo "configure:5464: checking for pthread link with -lpthread" >&5
5464 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5470 LIBS="-lpthread $LIBS"
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5476 #include <pthread.h>
5478 #define NULL (void*)0
5485 #if HAVE_PTHREADS_D4
5486 pthread_create(&t, pthread_attr_default, NULL, NULL);
5487 pthread_detach( &t );
5489 pthread_create(&t, NULL, NULL, NULL);
5490 pthread_detach( t );
5492 #ifdef HAVE_LINUX_THREADS
5493 pthread_kill_other_threads_np();
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5500 ol_cv_pthread_lpthread=yes
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5505 ol_cv_pthread_lpthread=no
5514 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5516 if test $ol_cv_pthread_lpthread = yes ; then
5517 ol_link_pthreads="-lpthread"
5518 ol_link_threads=posix
5522 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5523 if test "$ol_link_threads" = no ; then
5525 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5526 echo "configure:5527: checking for pthread link with -lc_r" >&5
5527 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5535 cat > conftest.$ac_ext <<EOF
5536 #line 5537 "configure"
5537 #include "confdefs.h"
5539 #include <pthread.h>
5541 #define NULL (void*)0
5548 #if HAVE_PTHREADS_D4
5549 pthread_create(&t, pthread_attr_default, NULL, NULL);
5550 pthread_detach( &t );
5552 pthread_create(&t, NULL, NULL, NULL);
5553 pthread_detach( t );
5555 #ifdef HAVE_LINUX_THREADS
5556 pthread_kill_other_threads_np();
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 ol_cv_pthread_lc_r=yes
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5568 ol_cv_pthread_lc_r=no
5577 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5579 if test $ol_cv_pthread_lc_r = yes ; then
5580 ol_link_pthreads="-lc_r"
5581 ol_link_threads=posix
5586 # Pthread try link: -threads (ol_cv_pthread_threads)
5587 if test "$ol_link_threads" = no ; then
5589 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5590 echo "configure:5591: checking for pthread link with -threads" >&5
5591 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5597 LIBS="-threads $LIBS"
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5603 #include <pthread.h>
5605 #define NULL (void*)0
5612 #if HAVE_PTHREADS_D4
5613 pthread_create(&t, pthread_attr_default, NULL, NULL);
5614 pthread_detach( &t );
5616 pthread_create(&t, NULL, NULL, NULL);
5617 pthread_detach( t );
5619 #ifdef HAVE_LINUX_THREADS
5620 pthread_kill_other_threads_np();
5625 if { (eval echo configure:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5627 ol_cv_pthread_threads=yes
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5632 ol_cv_pthread_threads=no
5641 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5643 if test $ol_cv_pthread_threads = yes ; then
5644 ol_link_pthreads="-threads"
5645 ol_link_threads=posix
5650 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5651 if test "$ol_link_threads" = no ; then
5652 # try -lpthreads -lmach -lexc -lc_r
5653 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5654 echo "configure:5655: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5655 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5661 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5667 #include <pthread.h>
5669 #define NULL (void*)0
5676 #if HAVE_PTHREADS_D4
5677 pthread_create(&t, pthread_attr_default, NULL, NULL);
5678 pthread_detach( &t );
5680 pthread_create(&t, NULL, NULL, NULL);
5681 pthread_detach( t );
5683 #ifdef HAVE_LINUX_THREADS
5684 pthread_kill_other_threads_np();
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5705 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5707 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5708 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5709 ol_link_threads=posix
5713 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5714 if test "$ol_link_threads" = no ; then
5715 # try -lpthreads -lmach -lexc
5716 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5717 echo "configure:5718: checking for pthread link with -lpthreads -lmach -lexc" >&5
5718 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5724 LIBS="-lpthreads -lmach -lexc $LIBS"
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5730 #include <pthread.h>
5732 #define NULL (void*)0
5739 #if HAVE_PTHREADS_D4
5740 pthread_create(&t, pthread_attr_default, NULL, NULL);
5741 pthread_detach( &t );
5743 pthread_create(&t, NULL, NULL, NULL);
5744 pthread_detach( t );
5746 #ifdef HAVE_LINUX_THREADS
5747 pthread_kill_other_threads_np();
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 ol_cv_pthread_lpthreads_lmach_lexc=yes
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 ol_cv_pthread_lpthreads_lmach_lexc=no
5768 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5770 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5771 ol_link_pthreads="-lpthreads -lmach -lexc"
5772 ol_link_threads=posix
5776 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5777 if test "$ol_link_threads" = no ; then
5778 # try -lpthreads -lexc
5779 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5780 echo "configure:5781: checking for pthread link with -lpthreads -lexc" >&5
5781 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5787 LIBS="-lpthreads -lexc $LIBS"
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <pthread.h>
5795 #define NULL (void*)0
5802 #if HAVE_PTHREADS_D4
5803 pthread_create(&t, pthread_attr_default, NULL, NULL);
5804 pthread_detach( &t );
5806 pthread_create(&t, NULL, NULL, NULL);
5807 pthread_detach( t );
5809 #ifdef HAVE_LINUX_THREADS
5810 pthread_kill_other_threads_np();
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 ol_cv_pthread_lpthreads_lexc=yes
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 ol_cv_pthread_lpthreads_lexc=no
5831 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5833 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5834 ol_link_pthreads="-lpthreads -lexc"
5835 ol_link_threads=posix
5840 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5841 if test "$ol_link_threads" = no ; then
5843 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5844 echo "configure:5845: checking for pthread link with -lpthreads" >&5
5845 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5851 LIBS="-lpthreads $LIBS"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5857 #include <pthread.h>
5859 #define NULL (void*)0
5866 #if HAVE_PTHREADS_D4
5867 pthread_create(&t, pthread_attr_default, NULL, NULL);
5868 pthread_detach( &t );
5870 pthread_create(&t, NULL, NULL, NULL);
5871 pthread_detach( t );
5873 #ifdef HAVE_LINUX_THREADS
5874 pthread_kill_other_threads_np();
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 ol_cv_pthread_lib_lpthreads=yes
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 ol_cv_pthread_lib_lpthreads=no
5895 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5897 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5898 ol_link_pthreads="-lpthreads"
5899 ol_link_threads=posix
5904 if test $ol_link_threads != no ; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_PTHREADS 1
5910 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5912 save_CPPFLAGS="$CPPFLAGS"
5914 LIBS="$LTHREAD_LIBS $LIBS"
5916 for ac_func in sched_yield pthread_yield
5918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5919 echo "configure:5920: checking for $ac_func" >&5
5920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 /* System header to define __stub macros and hopefully few prototypes,
5927 which can conflict with char $ac_func(); below. */
5929 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5936 /* The GNU C library defines this for functions which it implements
5937 to always fail with ENOSYS. Some functions are actually named
5938 something starting with __ and the normal name is an alias. */
5939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5947 if { (eval echo configure:5948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 eval "ac_cv_func_$ac_func=yes"
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5954 eval "ac_cv_func_$ac_func=no"
5959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5960 echo "$ac_t""yes" 1>&6
5961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5962 cat >> confdefs.h <<EOF
5963 #define $ac_tr_func 1
5967 echo "$ac_t""no" 1>&6
5972 if test $ac_cv_func_sched_yield = no -a \
5973 $ac_cv_func_pthread_yield = no ; then
5974 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5975 echo "configure:5976: checking for sched_yield in -lrt" >&5
5976 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 ac_save_LIBS="$LIBS"
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 eval "ac_cv_lib_$ac_lib_var=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_lib_$ac_lib_var=no"
6004 LIBS="$ac_save_LIBS"
6007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6009 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6010 cat >> confdefs.h <<\EOF
6011 #define HAVE_SCHED_YIELD 1
6014 ac_cv_func_sched_yield=yes
6016 echo "$ac_t""no" 1>&6
6017 ac_cv_func_sched_yield=no
6021 if test $ac_cv_func_sched_yield = no -a \
6022 $ac_cv_func_pthread_yield = no ; then
6023 for ac_func in thr_yield
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056 eval "ac_cv_func_$ac_func=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_func_$ac_func=no"
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_func 1
6074 echo "$ac_t""no" 1>&6
6079 if test $ac_cv_func_sched_yield = no -a \
6080 $ac_cv_func_pthread_yield = no -a \
6081 "$ac_cv_func_thr_yield" = no ; then
6082 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6085 for ac_func in pthread_kill
6087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6088 echo "configure:6089: checking for $ac_func" >&5
6089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 /* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char $ac_func(); below. */
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6105 /* The GNU C library defines this for functions which it implements
6106 to always fail with ENOSYS. Some functions are actually named
6107 something starting with __ and the normal name is an alias. */
6108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6118 eval "ac_cv_func_$ac_func=yes"
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 eval "ac_cv_func_$ac_func=no"
6128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6129 echo "$ac_t""yes" 1>&6
6130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6131 cat >> confdefs.h <<EOF
6132 #define $ac_tr_func 1
6136 echo "$ac_t""no" 1>&6
6141 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6142 echo "configure:6143: checking for pthread_detach with <pthread.h>" >&5
6143 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6151 #include <pthread.h>
6153 #define NULL (void*)0
6157 pthread_detach(NULL);
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6162 ol_cv_func_pthread_detach=yes
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6167 ol_cv_func_pthread_detach=no
6173 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6175 if test $ol_cv_func_pthread_detach = no ; then
6176 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6179 cat >> confdefs.h <<\EOF
6180 #define HAVE_PTHREAD_DETACH 1
6185 pthread_setconcurrency \
6186 pthread_getconcurrency \
6187 thr_setconcurrency \
6188 thr_getconcurrency \
6191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6192 echo "configure:6193: checking for $ac_func" >&5
6193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char $ac_func(); below. */
6202 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6209 /* The GNU C library defines this for functions which it implements
6210 to always fail with ENOSYS. Some functions are actually named
6211 something starting with __ and the normal name is an alias. */
6212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222 eval "ac_cv_func_$ac_func=yes"
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6227 eval "ac_cv_func_$ac_func=no"
6232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6233 echo "$ac_t""yes" 1>&6
6234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6235 cat >> confdefs.h <<EOF
6236 #define $ac_tr_func 1
6240 echo "$ac_t""no" 1>&6
6246 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6247 echo "configure:6248: checking for pthread_kill_other_threads_np" >&5
6248 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 /* System header to define __stub macros and hopefully few prototypes,
6255 which can conflict with char pthread_kill_other_threads_np(); below. */
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6260 char pthread_kill_other_threads_np();
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6270 pthread_kill_other_threads_np();
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6277 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6282 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6287 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6291 echo "$ac_t""no" 1>&6
6294 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6295 echo "configure:6296: checking for LinuxThreads implementation" >&5
6296 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6302 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6307 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6308 echo "configure:6309: checking for LinuxThreads consistency" >&5
6309 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6310 echo $ac_n "(cached) $ac_c" 1>&6
6313 if test $ol_cv_header_linux_threads = yes -a \
6314 $ol_cv_sys_linux_threads = yes; then
6315 ol_cv_linux_threads=yes
6316 elif test $ol_cv_header_linux_threads = no -a \
6317 $ol_cv_sys_linux_threads = no; then
6318 ol_cv_linux_threads=no
6320 ol_cv_linux_threads=error
6325 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6328 if test $ol_cv_linux_threads = error; then
6329 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6332 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6333 echo "configure:6334: checking if pthread_create() works" >&5
6334 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6338 if test "$cross_compiling" = yes; then
6339 ol_cv_pthread_create_works=yes
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6345 #include <pthread.h>
6347 #define NULL (void*)0
6350 static void *task(p)
6353 return (void *) (p == NULL);
6356 int main(argc, argv)
6361 #if HAVE_PTHREADS_D4
6362 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6364 exit(pthread_create(&t, NULL, task, NULL));
6369 if { (eval echo configure:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6371 ol_cv_pthread_create_works=yes
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 ol_cv_pthread_create_works=no
6383 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6385 if test $ol_cv_pthread_create_works = no ; then
6386 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6389 if test $ol_with_yielding_select = auto ; then
6390 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6391 echo "configure:6392: checking if select yields when using pthreads" >&5
6392 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6396 if test "$cross_compiling" = yes; then
6398 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6404 #include <sys/types.h>
6405 #include <sys/time.h>
6407 #include <pthread.h>
6409 #define NULL (void*) 0
6412 static int fildes[2];
6414 static void *task(p)
6426 FD_SET(fildes[0], &rfds);
6428 /* we're not interested in any fds */
6429 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6436 exit(0); /* if we exit here, the select blocked the whole process */
6439 int main(argc, argv)
6445 /* create a pipe to select */
6446 if(pipe(&fildes[0])) {
6451 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6452 (void) pthread_setconcurrency(2);
6454 #ifdef HAVE_THR_SETCONCURRENCY
6455 /* Set Solaris LWP concurrency to 2 */
6456 thr_setconcurrency(2);
6460 #if HAVE_PTHREADS_D4
6461 pthread_create(&t, pthread_attr_default, task, NULL);
6463 pthread_create(&t, NULL, task, NULL);
6466 #if HAVE_SCHED_YIELD
6467 sched_yield(); /* make sure task runs first */
6469 #ifdef HAVE_PTHREAD_YIELD
6470 pthread_yield(); /* make sure task runs first */
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6479 ol_cv_pthread_select_yields=no
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 ol_cv_pthread_select_yields=yes
6491 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6493 if test $ol_cv_pthread_select_yields = yes ; then
6494 ol_with_yielding_select=yes
6498 CPPFLAGS="$save_CPPFLAGS"
6501 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6505 if test $ol_with_threads = posix ; then
6506 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6510 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6511 -o $ol_with_threads = mach ; then
6513 for ac_hdr in mach/cthreads.h
6515 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6516 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6517 echo "configure:6518: checking for $ac_hdr" >&5
6518 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6527 { (eval echo configure:6528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6529 if test -z "$ac_err"; then
6531 eval "ac_cv_header_$ac_safe=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_header_$ac_safe=no"
6541 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6542 echo "$ac_t""yes" 1>&6
6543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6544 cat >> confdefs.h <<EOF
6545 #define $ac_tr_hdr 1
6549 echo "$ac_t""no" 1>&6
6553 if test $ac_cv_header_mach_cthreads_h = yes ; then
6554 ol_with_threads=found
6556 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6557 echo "configure:6558: checking for cthread_fork" >&5
6558 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char cthread_fork(); below. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6570 char cthread_fork();
6574 /* The GNU C library defines this for functions which it implements
6575 to always fail with ENOSYS. Some functions are actually named
6576 something starting with __ and the normal name is an alias. */
6577 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_func_cthread_fork=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_func_cthread_fork=no"
6597 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6601 echo "$ac_t""no" 1>&6
6605 if test $ol_link_threads = no ; then
6606 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6607 echo "configure:6608: checking for cthread_fork with -all_load" >&5
6608 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6613 LIBS="-all_load $LIBS"
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 #include <mach/cthreads.h>
6620 cthread_fork((void *)0, (void *)0);
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 ol_cv_cthread_all_load=yes
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 ol_cv_cthread_all_load=no
6638 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6640 if test $ol_cv_cthread_all_load = yes ; then
6641 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6642 ol_link_threads=mach
6646 if test $ol_link_threads != no ; then
6647 : check for cthread specific functionality here
6648 cat >> confdefs.h <<\EOF
6649 #define HAVE_MACH_CTHREADS 1
6653 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6657 if test $ol_with_threads = mach ; then
6658 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6662 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6663 -o $ol_with_threads = lwp ; then
6665 for ac_hdr in thread.h synch.h
6667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6669 echo "configure:6670: checking for $ac_hdr" >&5
6670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6679 { (eval echo configure:6680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6681 if test -z "$ac_err"; then
6683 eval "ac_cv_header_$ac_safe=yes"
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 eval "ac_cv_header_$ac_safe=no"
6693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6696 cat >> confdefs.h <<EOF
6697 #define $ac_tr_hdr 1
6701 echo "$ac_t""no" 1>&6
6705 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6706 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6707 echo "configure:6708: checking for thr_create in -lthread" >&5
6708 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6712 ac_save_LIBS="$LIBS"
6713 LIBS="-lthread $LIBS"
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure"
6716 #include "confdefs.h"
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6726 if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6728 eval "ac_cv_lib_$ac_lib_var=yes"
6730 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 eval "ac_cv_lib_$ac_lib_var=no"
6736 LIBS="$ac_save_LIBS"
6739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6743 echo "$ac_t""no" 1>&6
6748 if test $have_thr = yes ; then
6749 cat >> confdefs.h <<\EOF
6753 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6756 if test $ol_with_yielding_select = auto ; then
6757 ol_with_yielding_select=yes
6761 thr_setconcurrency \
6762 thr_getconcurrency \
6765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_func" >&5
6767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* System header to define __stub macros and hopefully few prototypes,
6774 which can conflict with char $ac_func(); below. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6783 /* The GNU C library defines this for functions which it implements
6784 to always fail with ENOSYS. Some functions are actually named
6785 something starting with __ and the normal name is an alias. */
6786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 eval "ac_cv_func_$ac_func=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 eval "ac_cv_func_$ac_func=no"
6806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_func 1
6814 echo "$ac_t""no" 1>&6
6821 for ac_hdr in lwp/lwp.h
6823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_hdr" >&5
6826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6835 { (eval echo configure:6836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6837 if test -z "$ac_err"; then
6839 eval "ac_cv_header_$ac_safe=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_header_$ac_safe=no"
6849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6852 cat >> confdefs.h <<EOF
6853 #define $ac_tr_hdr 1
6857 echo "$ac_t""no" 1>&6
6861 if test $ac_cv_header_lwp_lwp_h = yes ; then
6862 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6863 echo "configure:6864: checking for lwp_create in -llwp" >&5
6864 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6866 echo $ac_n "(cached) $ac_c" 1>&6
6868 ac_save_LIBS="$LIBS"
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_lib_$ac_lib_var=yes"
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_lib_$ac_lib_var=no"
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6899 echo "$ac_t""no" 1>&6
6904 if test $have_lwp = yes ; then
6905 cat >> confdefs.h <<\EOF
6909 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6912 if test $ol_with_yielding_select = auto ; then
6913 ol_with_yielding_select=no
6919 if test $ol_with_yielding_select = yes ; then
6920 cat >> confdefs.h <<\EOF
6921 #define HAVE_YIELDING_SELECT 1
6926 if test $ol_with_threads = manual ; then
6929 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6931 for ac_hdr in pthread.h sched.h
6933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_hdr" >&5
6936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6945 { (eval echo configure:6946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6947 if test -z "$ac_err"; then
6949 eval "ac_cv_header_$ac_safe=yes"
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 eval "ac_cv_header_$ac_safe=no"
6959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6960 echo "$ac_t""yes" 1>&6
6961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6962 cat >> confdefs.h <<EOF
6963 #define $ac_tr_hdr 1
6967 echo "$ac_t""no" 1>&6
6971 for ac_func in sched_yield pthread_yield
6973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6974 echo "configure:6975: checking for $ac_func" >&5
6975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 /* System header to define __stub macros and hopefully few prototypes,
6982 which can conflict with char $ac_func(); below. */
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7004 eval "ac_cv_func_$ac_func=yes"
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 eval "ac_cv_func_$ac_func=no"
7014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7015 echo "$ac_t""yes" 1>&6
7016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7017 cat >> confdefs.h <<EOF
7018 #define $ac_tr_func 1
7022 echo "$ac_t""no" 1>&6
7027 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7028 echo "configure:7029: checking for LinuxThreads pthread.h" >&5
7029 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7035 #include <pthread.h>
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7040 ol_cv_header_linux_threads=yes
7043 ol_cv_header_linux_threads=no
7050 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7051 if test $ol_cv_header_linux_threads = yes; then
7052 cat >> confdefs.h <<\EOF
7053 #define HAVE_LINUX_THREADS 1
7059 for ac_hdr in mach/cthreads.h
7061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_hdr" >&5
7064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7073 { (eval echo configure:7074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7075 if test -z "$ac_err"; then
7077 eval "ac_cv_header_$ac_safe=yes"
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7083 eval "ac_cv_header_$ac_safe=no"
7087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7088 echo "$ac_t""yes" 1>&6
7089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7090 cat >> confdefs.h <<EOF
7091 #define $ac_tr_hdr 1
7095 echo "$ac_t""no" 1>&6
7099 for ac_hdr in lwp/lwp.h
7101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7103 echo "configure:7104: checking for $ac_hdr" >&5
7104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7107 cat > conftest.$ac_ext <<EOF
7108 #line 7109 "configure"
7109 #include "confdefs.h"
7112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7113 { (eval echo configure:7114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7115 if test -z "$ac_err"; then
7117 eval "ac_cv_header_$ac_safe=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_header_$ac_safe=no"
7127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7130 cat >> confdefs.h <<EOF
7131 #define $ac_tr_hdr 1
7135 echo "$ac_t""no" 1>&6
7139 for ac_hdr in thread.h synch.h
7141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_hdr" >&5
7144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7153 { (eval echo configure:7154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7155 if test -z "$ac_err"; then
7157 eval "ac_cv_header_$ac_safe=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_header_$ac_safe=no"
7167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7168 echo "$ac_t""yes" 1>&6
7169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7170 cat >> confdefs.h <<EOF
7171 #define $ac_tr_hdr 1
7175 echo "$ac_t""no" 1>&6
7181 if test $ol_link_threads != no ; then
7182 cat >> confdefs.h <<\EOF
7186 cat >> confdefs.h <<\EOF
7187 #define _REENTRANT 1
7190 cat >> confdefs.h <<\EOF
7191 #define THREAD_SAFE 1
7194 cat >> confdefs.h <<\EOF
7195 #define _THREAD_SAFE 1
7198 cat >> confdefs.h <<\EOF
7199 #define THREADSAFE 1
7202 cat >> confdefs.h <<\EOF
7203 #define _THREADSAFE 1
7207 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7208 echo "configure:7209: checking for thread specific errno" >&5
7209 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7223 ol_cv_errno_thread_specific=yes
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 ol_cv_errno_thread_specific=no
7234 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7236 if test $ol_cv_errno_thread_specific != yes ; then
7237 LIBS="$LTHREAD_LIBS $LIBS"
7243 if test $ol_link_threads = no ; then
7244 if test $ol_with_threads = yes ; then
7245 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7248 if test $ol_with_threads = auto ; then
7249 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7253 cat >> confdefs.h <<\EOF
7254 #define NO_THREADS 1
7260 if test $ol_link_threads != no ; then
7261 cat >> confdefs.h <<\EOF
7262 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7269 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7270 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7271 echo "configure:7272: checking for DB2 library" >&5
7272 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7276 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7277 echo "configure:7278: checking for db_open in -ldb" >&5
7278 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7280 echo $ac_n "(cached) $ac_c" 1>&6
7282 ac_save_LIBS="$LIBS"
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* Override any gcc2 internal prototype to avoid an error. */
7288 /* We use char because int might match the return type of a gcc2
7289 builtin and then its argument prototype would still apply. */
7296 if { (eval echo configure:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7298 eval "ac_cv_lib_$ac_lib_var=yes"
7300 echo "configure: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7303 eval "ac_cv_lib_$ac_lib_var=no"
7306 LIBS="$ac_save_LIBS"
7309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7313 echo "$ac_t""no" 1>&6
7321 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_hdr" >&5
7328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7337 { (eval echo configure:7338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7339 if test -z "$ac_err"; then
7341 eval "ac_cv_header_$ac_safe=yes"
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7347 eval "ac_cv_header_$ac_safe=no"
7351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7354 cat >> confdefs.h <<EOF
7355 #define $ac_tr_hdr 1
7359 echo "$ac_t""no" 1>&6
7363 if test $ac_cv_header_db_h = yes ; then
7364 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7365 echo "configure:7366: checking if db.h is DB2" >&5
7366 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7375 /* this check could be improved */
7376 # ifdef DB_VERSION_MAJOR
7377 # if DB_VERSION_MAJOR == 2
7383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 egrep "__db_version_2" >/dev/null 2>&1; then
7386 ol_cv_header_db2=yes
7395 echo "$ac_t""$ol_cv_header_db2" 1>&6
7402 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7403 echo "configure:7404: checking for Berkeley DB2" >&5
7404 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7405 echo $ac_n "(cached) $ac_c" 1>&6
7408 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7409 ol_cv_berkeley_db2=no
7411 ol_cv_berkeley_db2=yes
7416 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7417 if test $ol_cv_berkeley_db2 = yes ; then
7418 cat >> confdefs.h <<\EOF
7419 #define HAVE_BERKELEY_DB2 1
7425 if test $ol_cv_berkeley_db2 = yes ; then
7427 ol_with_ldbm_api=db2
7429 if test $ol_with_ldbm_type = hash ; then
7430 cat >> confdefs.h <<\EOF
7431 #define LDBM_USE_DBHASH 1
7435 cat >> confdefs.h <<\EOF
7436 #define LDBM_USE_DBBTREE 1
7441 if test $ol_cv_lib_db2 != yes ; then
7442 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7448 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7452 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7453 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7454 echo "configure:7455: checking for Berkeley DB library" >&5
7455 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7459 for ac_hdr in db1/db.h
7461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_hdr" >&5
7464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7473 { (eval echo configure:7474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7475 if test -z "$ac_err"; then
7477 eval "ac_cv_header_$ac_safe=yes"
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7483 eval "ac_cv_header_$ac_safe=no"
7487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7490 cat >> confdefs.h <<EOF
7491 #define $ac_tr_hdr 1
7495 echo "$ac_t""no" 1>&6
7500 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7501 echo "configure:7502: checking for dbopen" >&5
7502 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 /* System header to define __stub macros and hopefully few prototypes,
7509 which can conflict with char dbopen(); below. */
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7518 /* The GNU C library defines this for functions which it implements
7519 to always fail with ENOSYS. Some functions are actually named
7520 something starting with __ and the normal name is an alias. */
7521 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7529 if { (eval echo configure:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7531 eval "ac_cv_func_dbopen=yes"
7533 echo "configure: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7536 eval "ac_cv_func_dbopen=no"
7541 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7542 echo "$ac_t""yes" 1>&6
7545 echo "$ac_t""no" 1>&6
7547 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7548 echo "configure:7549: checking for dbopen in -ldb1" >&5
7549 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 ac_save_LIBS="$LIBS"
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7567 if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7569 eval "ac_cv_lib_$ac_lib_var=yes"
7571 echo "configure: failed program was:" >&5
7572 cat conftest.$ac_ext >&5
7574 eval "ac_cv_lib_$ac_lib_var=no"
7577 LIBS="$ac_save_LIBS"
7580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7581 echo "$ac_t""yes" 1>&6
7584 echo "$ac_t""no" 1>&6
7586 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7587 echo "configure:7588: checking for dbopen in -ldb" >&5
7588 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7590 echo $ac_n "(cached) $ac_c" 1>&6
7592 ac_save_LIBS="$LIBS"
7594 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure"
7596 #include "confdefs.h"
7597 /* Override any gcc2 internal prototype to avoid an error. */
7598 /* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7608 eval "ac_cv_lib_$ac_lib_var=yes"
7610 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7613 eval "ac_cv_lib_$ac_lib_var=no"
7616 LIBS="$ac_save_LIBS"
7619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7620 echo "$ac_t""yes" 1>&6
7623 echo "$ac_t""no" 1>&6
7637 echo "$ac_t""$ol_cv_lib_db" 1>&6
7640 for ac_hdr in db_185.h
7642 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7643 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7644 echo "configure:7645: checking for $ac_hdr" >&5
7645 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7654 { (eval echo configure:7655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7656 if test -z "$ac_err"; then
7658 eval "ac_cv_header_$ac_safe=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 eval "ac_cv_header_$ac_safe=no"
7668 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7669 echo "$ac_t""yes" 1>&6
7670 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7671 cat >> confdefs.h <<EOF
7672 #define $ac_tr_hdr 1
7676 echo "$ac_t""no" 1>&6
7680 if test "$ol_cv_header_db2" = yes ; then
7682 ol_cv_header_db=$ac_cv_header_db_185_h
7684 ol_cv_header_db=$ac_cv_header_db_h
7689 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7690 echo "configure:7691: checking for Berkeley DB" >&5
7691 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7695 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7696 ol_cv_berkeley_db=no
7698 ol_cv_berkeley_db=yes
7703 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7704 if test $ol_cv_berkeley_db = yes ; then
7705 cat >> confdefs.h <<\EOF
7706 #define HAVE_BERKELEY_DB 1
7712 if test $ol_cv_berkeley_db = yes ; then
7716 if test $ol_with_ldbm_type = hash ; then
7717 cat >> confdefs.h <<\EOF
7718 #define LDBM_USE_DBHASH 1
7722 cat >> confdefs.h <<\EOF
7723 #define LDBM_USE_DBBTREE 1
7728 if test $ol_cv_lib_db != yes ; then
7729 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7734 if test $ol_with_ldbm_api = manual ; then
7737 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7739 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7743 echo "configure:7744: checking for $ac_hdr" >&5
7744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7753 { (eval echo configure:7754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7755 if test -z "$ac_err"; then
7757 eval "ac_cv_header_$ac_safe=yes"
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7763 eval "ac_cv_header_$ac_safe=no"
7767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7768 echo "$ac_t""yes" 1>&6
7769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7770 cat >> confdefs.h <<EOF
7771 #define $ac_tr_hdr 1
7775 echo "$ac_t""no" 1>&6
7781 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7782 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7783 ol_with_ldbm_api=none
7786 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7787 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7788 echo "configure:7789: checking for MDBM library" >&5
7789 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7793 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7794 echo "configure:7795: checking for mdbm_set_chain" >&5
7795 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 cat > conftest.$ac_ext <<EOF
7799 #line 7800 "configure"
7800 #include "confdefs.h"
7801 /* System header to define __stub macros and hopefully few prototypes,
7802 which can conflict with char mdbm_set_chain(); below. */
7804 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807 char mdbm_set_chain();
7811 /* The GNU C library defines this for functions which it implements
7812 to always fail with ENOSYS. Some functions are actually named
7813 something starting with __ and the normal name is an alias. */
7814 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7822 if { (eval echo configure:7823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7824 eval "ac_cv_func_mdbm_set_chain=yes"
7826 echo "configure: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7829 eval "ac_cv_func_mdbm_set_chain=no"
7834 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7835 echo "$ac_t""yes" 1>&6
7838 echo "$ac_t""no" 1>&6
7840 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7841 echo "configure:7842: checking for mdbm_set_chain in -lmdbm" >&5
7842 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 ac_save_LIBS="$LIBS"
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7854 char mdbm_set_chain();
7860 if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 eval "ac_cv_lib_$ac_lib_var=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7867 eval "ac_cv_lib_$ac_lib_var=no"
7870 LIBS="$ac_save_LIBS"
7873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ol_cv_lib_mdbm=-lmdbm
7877 echo "$ac_t""no" 1>&6
7888 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7891 for ac_hdr in mdbm.h
7893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7895 echo "configure:7896: checking for $ac_hdr" >&5
7896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7905 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7907 if test -z "$ac_err"; then
7909 eval "ac_cv_header_$ac_safe=yes"
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7915 eval "ac_cv_header_$ac_safe=no"
7919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7920 echo "$ac_t""yes" 1>&6
7921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7922 cat >> confdefs.h <<EOF
7923 #define $ac_tr_hdr 1
7927 echo "$ac_t""no" 1>&6
7931 echo $ac_n "checking for db""... $ac_c" 1>&6
7932 echo "configure:7933: checking for db" >&5
7933 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7937 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7945 echo "$ac_t""$ol_cv_mdbm" 1>&6
7946 if test $ol_cv_mdbm = yes ; then
7947 cat >> confdefs.h <<\EOF
7954 if test $ol_cv_mdbm = yes ; then
7956 ol_with_ldbm_api=mdbm
7957 if test $ol_cv_lib_mdbm != yes ; then
7958 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7963 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7964 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7965 echo "configure:7966: checking for GDBM library" >&5
7966 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7970 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7971 echo "configure:7972: checking for gdbm_open" >&5
7972 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 /* System header to define __stub macros and hopefully few prototypes,
7979 which can conflict with char gdbm_open(); below. */
7981 /* Override any gcc2 internal prototype to avoid an error. */
7982 /* We use char because int might match the return type of a gcc2
7983 builtin and then its argument prototype would still apply. */
7988 /* The GNU C library defines this for functions which it implements
7989 to always fail with ENOSYS. Some functions are actually named
7990 something starting with __ and the normal name is an alias. */
7991 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7999 if { (eval echo configure:8000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001 eval "ac_cv_func_gdbm_open=yes"
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8006 eval "ac_cv_func_gdbm_open=no"
8011 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8012 echo "$ac_t""yes" 1>&6
8015 echo "$ac_t""no" 1>&6
8017 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8018 echo "configure:8019: checking for gdbm_open in -lgdbm" >&5
8019 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8020 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8023 ac_save_LIBS="$LIBS"
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8028 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8037 if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 eval "ac_cv_lib_$ac_lib_var=yes"
8041 echo "configure: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 eval "ac_cv_lib_$ac_lib_var=no"
8047 LIBS="$ac_save_LIBS"
8050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8051 echo "$ac_t""yes" 1>&6
8052 ol_cv_lib_gdbm=-lgdbm
8054 echo "$ac_t""no" 1>&6
8065 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8068 for ac_hdr in gdbm.h
8070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8072 echo "configure:8073: checking for $ac_hdr" >&5
8073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8084 if test -z "$ac_err"; then
8086 eval "ac_cv_header_$ac_safe=yes"
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8092 eval "ac_cv_header_$ac_safe=no"
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8099 cat >> confdefs.h <<EOF
8100 #define $ac_tr_hdr 1
8104 echo "$ac_t""no" 1>&6
8108 echo $ac_n "checking for db""... $ac_c" 1>&6
8109 echo "configure:8110: checking for db" >&5
8110 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8114 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8122 echo "$ac_t""$ol_cv_gdbm" 1>&6
8123 if test $ol_cv_gdbm = yes ; then
8124 cat >> confdefs.h <<\EOF
8131 if test $ol_cv_gdbm = yes ; then
8133 ol_with_ldbm_api=gdbm
8135 if test $ol_cv_lib_gdbm != yes ; then
8136 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8141 if test $ol_with_ldbm_api = auto ; then
8142 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8143 elif test $ol_with_ldbm_api = ndbm ; then
8144 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8145 echo "configure:8146: checking for NDBM library" >&5
8146 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6
8150 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8151 echo "configure:8152: checking for dbm_open" >&5
8152 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8155 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure"
8157 #include "confdefs.h"
8158 /* System header to define __stub macros and hopefully few prototypes,
8159 which can conflict with char dbm_open(); below. */
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8168 /* The GNU C library defines this for functions which it implements
8169 to always fail with ENOSYS. Some functions are actually named
8170 something starting with __ and the normal name is an alias. */
8171 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 eval "ac_cv_func_dbm_open=yes"
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 eval "ac_cv_func_dbm_open=no"
8191 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8192 echo "$ac_t""yes" 1>&6
8195 echo "$ac_t""no" 1>&6
8197 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8198 echo "configure:8199: checking for dbm_open in -lndbm" >&5
8199 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8201 echo $ac_n "(cached) $ac_c" 1>&6
8203 ac_save_LIBS="$LIBS"
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8219 eval "ac_cv_lib_$ac_lib_var=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 eval "ac_cv_lib_$ac_lib_var=no"
8227 LIBS="$ac_save_LIBS"
8230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8231 echo "$ac_t""yes" 1>&6
8232 ol_cv_lib_ndbm=-lndbm
8234 echo "$ac_t""no" 1>&6
8236 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8237 echo "configure:8238: checking for dbm_open in -ldbm" >&5
8238 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8242 ac_save_LIBS="$LIBS"
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8256 if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8258 eval "ac_cv_lib_$ac_lib_var=yes"
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 eval "ac_cv_lib_$ac_lib_var=no"
8266 LIBS="$ac_save_LIBS"
8269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8270 echo "$ac_t""yes" 1>&6
8271 ol_cv_lib_ndbm=-ldbm
8273 echo "$ac_t""no" 1>&6
8286 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8289 for ac_hdr in ndbm.h
8291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $ac_hdr" >&5
8294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8297 cat > conftest.$ac_ext <<EOF
8298 #line 8299 "configure"
8299 #include "confdefs.h"
8302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8303 { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8305 if test -z "$ac_err"; then
8307 eval "ac_cv_header_$ac_safe=yes"
8310 echo "configure: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8313 eval "ac_cv_header_$ac_safe=no"
8317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8320 cat >> confdefs.h <<EOF
8321 #define $ac_tr_hdr 1
8325 echo "$ac_t""no" 1>&6
8329 echo $ac_n "checking for db""... $ac_c" 1>&6
8330 echo "configure:8331: checking for db" >&5
8331 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8335 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8343 echo "$ac_t""$ol_cv_ndbm" 1>&6
8344 if test $ol_cv_ndbm = yes ; then
8345 cat >> confdefs.h <<\EOF
8352 if test $ol_cv_ndbm = yes ; then
8354 ol_with_ldbm_api=ndbm
8356 if test $ol_cv_lib_ndbm != yes ; then
8357 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8362 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8363 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8364 if test $ol_enable_ldbm = yes ; then
8365 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8368 echo "configure: warning: disabling LDBM" 1>&2
8372 if test $ol_enable_wrappers != no ; then
8373 for ac_hdr in tcpd.h
8375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_hdr" >&5
8378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8387 { (eval echo configure:8388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8389 if test -z "$ac_err"; then
8391 eval "ac_cv_header_$ac_safe=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_header_$ac_safe=no"
8401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8402 echo "$ac_t""yes" 1>&6
8403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8404 cat >> confdefs.h <<EOF
8405 #define $ac_tr_hdr 1
8409 echo "$ac_t""no" 1>&6
8414 if test $ac_cv_header_tcpd_h != yes ; then
8417 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8418 echo "configure:8419: checking for main in -lwrap" >&5
8419 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 ac_save_LIBS="$LIBS"
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 eval "ac_cv_lib_$ac_lib_var=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_lib_$ac_lib_var=no"
8443 LIBS="$ac_save_LIBS"
8446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8447 echo "$ac_t""yes" 1>&6
8450 echo "$ac_t""no" 1>&6
8456 if test $have_wrappers = yes ; then
8457 cat >> confdefs.h <<\EOF
8461 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8463 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8464 echo "configure:8465: checking for main in -lnsl" >&5
8465 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 ac_save_LIBS="$LIBS"
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8479 if { (eval echo configure:8480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8481 eval "ac_cv_lib_$ac_lib_var=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_lib_$ac_lib_var=no"
8489 LIBS="$ac_save_LIBS"
8492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8494 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8496 cat >> confdefs.h <<EOF
8497 #define $ac_tr_lib 1
8503 echo "$ac_t""no" 1>&6
8507 echo "configure: warning: could not find -lwrap" 1>&2
8508 if test $ol_enable_wrappers = yes ; then
8509 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8512 echo "configure: warning: disabling wrappers support" 1>&2
8513 ol_enable_wrappers=no
8517 if test $ol_enable_syslog != no ; then
8518 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8519 echo "configure:8520: checking for openlog" >&5
8520 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8526 /* System header to define __stub macros and hopefully few prototypes,
8527 which can conflict with char openlog(); below. */
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_openlog) || defined (__stub___openlog)
8547 if { (eval echo configure:8548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8549 eval "ac_cv_func_openlog=yes"
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8554 eval "ac_cv_func_openlog=no"
8559 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8560 echo "$ac_t""yes" 1>&6
8563 echo "$ac_t""no" 1>&6
8566 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8567 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8569 ol_enable_syslog=$ac_cv_func_openlog
8572 if test $ol_enable_dmalloc != no ; then
8573 for ac_hdr in dmalloc.h
8575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8577 echo "configure:8578: checking for $ac_hdr" >&5
8578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8587 { (eval echo configure:8588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8589 if test -z "$ac_err"; then
8591 eval "ac_cv_header_$ac_safe=yes"
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 eval "ac_cv_header_$ac_safe=no"
8601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8602 echo "$ac_t""yes" 1>&6
8603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8604 cat >> confdefs.h <<EOF
8605 #define $ac_tr_hdr 1
8609 echo "$ac_t""no" 1>&6
8613 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8614 echo "configure:8615: checking for dmalloc_shutdown in -ldmalloc" >&5
8615 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8617 echo $ac_n "(cached) $ac_c" 1>&6
8619 ac_save_LIBS="$LIBS"
8620 LIBS="-ldmalloc $LIBS"
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8624 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char dmalloc_shutdown();
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 eval "ac_cv_lib_$ac_lib_var=yes"
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 eval "ac_cv_lib_$ac_lib_var=no"
8643 LIBS="$ac_save_LIBS"
8646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8647 echo "$ac_t""yes" 1>&6
8648 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8650 cat >> confdefs.h <<EOF
8651 #define $ac_tr_lib 1
8654 LIBS="-ldmalloc $LIBS"
8657 echo "$ac_t""no" 1>&6
8662 if test $ol_enable_tcl != no ; then
8665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8667 echo "configure:8668: checking for $ac_hdr" >&5
8668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8677 { (eval echo configure:8678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8679 if test -z "$ac_err"; then
8681 eval "ac_cv_header_$ac_safe=yes"
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 eval "ac_cv_header_$ac_safe=no"
8691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8692 echo "$ac_t""yes" 1>&6
8693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8694 cat >> confdefs.h <<EOF
8695 #define $ac_tr_hdr 1
8699 echo "$ac_t""no" 1>&6
8704 if test $ac_cv_header_tcl_h != yes ; then
8707 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8708 echo "configure:8709: checking for main in -ltcl" >&5
8709 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8711 echo $ac_n "(cached) $ac_c" 1>&6
8713 ac_save_LIBS="$LIBS"
8715 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8723 if { (eval echo configure:8724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 eval "ac_cv_lib_$ac_lib_var=yes"
8727 echo "configure: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8730 eval "ac_cv_lib_$ac_lib_var=no"
8733 LIBS="$ac_save_LIBS"
8736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8737 echo "$ac_t""yes" 1>&6
8738 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8740 echo "$ac_t""no" 1>&6
8745 if test $have_tcl != yes; then
8746 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8747 echo "configure:8748: checking for main in -ltcl7.6" >&5
8748 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8752 ac_save_LIBS="$LIBS"
8753 LIBS="-ltcl7.6 $LIBS"
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8762 if { (eval echo configure:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8764 eval "ac_cv_lib_$ac_lib_var=yes"
8766 echo "configure: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8769 eval "ac_cv_lib_$ac_lib_var=no"
8772 LIBS="$ac_save_LIBS"
8775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8776 echo "$ac_t""yes" 1>&6
8777 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8779 echo "$ac_t""no" 1>&6
8785 if test $have_tcl != yes; then
8786 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8787 echo "configure:8788: checking for main in -ltcl8.0" >&5
8788 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8790 echo $ac_n "(cached) $ac_c" 1>&6
8792 ac_save_LIBS="$LIBS"
8793 LIBS="-ltcl8.0 $LIBS"
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8804 eval "ac_cv_lib_$ac_lib_var=yes"
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8809 eval "ac_cv_lib_$ac_lib_var=no"
8812 LIBS="$ac_save_LIBS"
8815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8816 echo "$ac_t""yes" 1>&6
8817 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8819 echo "$ac_t""no" 1>&6
8826 if test $have_tcl != yes ; then
8827 echo "configure: warning: could not find -ltcl" 1>&2
8828 if test $ol_enable_tcl = yes ; then
8829 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8836 # ud needs termcap (should insert check here)
8838 for ac_hdr in termcap.h ncurses.h
8840 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8841 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_hdr" >&5
8843 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8846 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure"
8848 #include "confdefs.h"
8851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8852 { (eval echo configure:8853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8854 if test -z "$ac_err"; then
8856 eval "ac_cv_header_$ac_safe=yes"
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 eval "ac_cv_header_$ac_safe=no"
8866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8867 echo "$ac_t""yes" 1>&6
8868 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8869 cat >> confdefs.h <<EOF
8870 #define $ac_tr_hdr 1
8874 echo "$ac_t""no" 1>&6
8879 if test $ol_link_termcap = no ; then
8880 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8881 echo "configure:8882: checking for tputs in -ltermcap" >&5
8882 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 ac_save_LIBS="$LIBS"
8887 LIBS="-ltermcap $LIBS"
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 /* Override any gcc2 internal prototype to avoid an error. */
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 eval "ac_cv_lib_$ac_lib_var=yes"
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 eval "ac_cv_lib_$ac_lib_var=no"
8910 LIBS="$ac_save_LIBS"
8913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8917 echo "$ac_t""no" 1>&6
8921 if test $have_termcap = yes ; then
8922 cat >> confdefs.h <<\EOF
8923 #define HAVE_TERMCAP 1
8927 TERMCAP_LIBS=-ltermcap
8931 if test $ol_link_termcap = no ; then
8932 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8933 echo "configure:8934: checking for initscr in -lncurses" >&5
8934 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 ac_save_LIBS="$LIBS"
8939 LIBS="-lncurses $LIBS"
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8943 /* Override any gcc2 internal prototype to avoid an error. */
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8952 if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 eval "ac_cv_lib_$ac_lib_var=yes"
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8959 eval "ac_cv_lib_$ac_lib_var=no"
8962 LIBS="$ac_save_LIBS"
8965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6
8969 echo "$ac_t""no" 1>&6
8973 if test $have_ncurses = yes ; then
8974 cat >> confdefs.h <<\EOF
8975 #define HAVE_NCURSES 1
8979 TERMCAP_LIBS=-lncurses
8983 if test $ol_link_termcap = no ; then
8984 cat >> confdefs.h <<\EOF
8985 #define NO_TERMCAP 1
8992 if test $ol_with_readline != no ; then
8993 for ac_hdr in readline/readline.h readline/history.h
8995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8997 echo "configure:8998: checking for $ac_hdr" >&5
8998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 cat > conftest.$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9007 { (eval echo configure:9008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9009 if test -z "$ac_err"; then
9011 eval "ac_cv_header_$ac_safe=yes"
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 eval "ac_cv_header_$ac_safe=no"
9021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9022 echo "$ac_t""yes" 1>&6
9023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9024 cat >> confdefs.h <<EOF
9025 #define $ac_tr_hdr 1
9029 echo "$ac_t""no" 1>&6
9034 if test $ac_cv_header_readline_readline_h = yes ; then
9036 LIBS="$TERMCAP_LIBS $LIBS"
9037 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9038 echo "configure:9039: checking for readline in -lreadline" >&5
9039 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9041 echo $ac_n "(cached) $ac_c" 1>&6
9043 ac_save_LIBS="$LIBS"
9044 LIBS="-lreadline $LIBS"
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 /* Override any gcc2 internal prototype to avoid an error. */
9049 /* We use char because int might match the return type of a gcc2
9050 builtin and then its argument prototype would still apply. */
9057 if { (eval echo configure:9058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9059 eval "ac_cv_lib_$ac_lib_var=yes"
9061 echo "configure: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9064 eval "ac_cv_lib_$ac_lib_var=no"
9067 LIBS="$ac_save_LIBS"
9070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9071 echo "$ac_t""yes" 1>&6
9074 echo "$ac_t""no" 1>&6
9080 if test $have_readline = yes ; then
9081 ol_with_readline=found
9082 ol_link_readline=yes
9084 READLINE_LIBS="-lreadline"
9089 if test $ol_link_readline = yes ; then
9090 cat >> confdefs.h <<\EOF
9091 #define HAVE_READLINE 1
9097 # FreeBSD (and others) have crypt(3) in -lcrypt
9098 if test $ol_enable_crypt != no ; then
9099 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9100 echo "configure:9101: checking for crypt" >&5
9101 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char crypt(); below. */
9110 /* Override any gcc2 internal prototype to avoid an error. */
9111 /* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9117 /* The GNU C library defines this for functions which it implements
9118 to always fail with ENOSYS. Some functions are actually named
9119 something starting with __ and the normal name is an alias. */
9120 #if defined (__stub_crypt) || defined (__stub___crypt)
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9130 eval "ac_cv_func_crypt=yes"
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9135 eval "ac_cv_func_crypt=no"
9140 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9141 echo "$ac_t""yes" 1>&6
9144 echo "$ac_t""no" 1>&6
9146 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9147 echo "configure:9148: checking for crypt in -lcrypt" >&5
9148 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9152 ac_save_LIBS="$LIBS"
9153 LIBS="-lcrypt $LIBS"
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 /* Override any gcc2 internal prototype to avoid an error. */
9158 /* We use char because int might match the return type of a gcc2
9159 builtin and then its argument prototype would still apply. */
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 eval "ac_cv_lib_$ac_lib_var=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_lib_$ac_lib_var=no"
9176 LIBS="$ac_save_LIBS"
9179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9184 echo "$ac_t""no" 1>&6
9191 if test $have_crypt = yes ; then
9192 cat >> confdefs.h <<\EOF
9193 #define HAVE_CRYPT 1
9197 echo "configure: warning: could not find crypt" 1>&2
9198 if test $ol_enable_crypt = yes ; then
9199 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9202 echo "configure: warning: disabling crypt support" 1>&2
9207 # FreeBSD (and others) have setproctitle(3) in -lutil
9208 if test $ol_enable_proctitle != no ; then
9209 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9210 echo "configure:9211: checking for setproctitle" >&5
9211 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 /* System header to define __stub macros and hopefully few prototypes,
9218 which can conflict with char setproctitle(); below. */
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 /* We use char because int might match the return type of a gcc2
9222 builtin and then its argument prototype would still apply. */
9223 char setproctitle();
9227 /* The GNU C library defines this for functions which it implements
9228 to always fail with ENOSYS. Some functions are actually named
9229 something starting with __ and the normal name is an alias. */
9230 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9240 eval "ac_cv_func_setproctitle=yes"
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9245 eval "ac_cv_func_setproctitle=no"
9250 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9251 echo "$ac_t""yes" 1>&6
9252 have_setproctitle=yes
9254 echo "$ac_t""no" 1>&6
9256 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9257 echo "configure:9258: checking for setproctitle in -lutil" >&5
9258 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9262 ac_save_LIBS="$LIBS"
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9270 char setproctitle();
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9278 eval "ac_cv_lib_$ac_lib_var=yes"
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9283 eval "ac_cv_lib_$ac_lib_var=no"
9286 LIBS="$ac_save_LIBS"
9289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9290 echo "$ac_t""yes" 1>&6
9291 have_setproctitle=yes
9292 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9294 echo "$ac_t""no" 1>&6
9295 have_setproctitle=no
9296 LIBOBJS="$LIBOBJS setproctitle.o"
9302 if test $have_setproctitle = yes ; then
9303 cat >> confdefs.h <<\EOF
9304 #define HAVE_SETPROCTITLE 1
9311 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9312 echo "configure:9313: checking for EBCDIC" >&5
9313 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9322 #include <__ASCII__/generate_error.h>
9326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9327 { (eval echo configure:9328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9329 if test -z "$ac_err"; then
9331 ol_cv_cpp_ebcdic=yes
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9342 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9343 if test $ol_cv_cpp_ebcdic = yes ; then
9344 cat >> confdefs.h <<\EOF
9345 #define HAVE_EBCDIC 1
9350 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9351 echo "configure:9352: checking for ANSI C header files" >&5
9352 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9355 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9364 { (eval echo configure:9365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9366 if test -z "$ac_err"; then
9368 ol_cv_header_stdc=yes
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 ol_cv_header_stdc=no
9378 if test $ol_cv_header_stdc = yes; then
9379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 egrep "memchr" >/dev/null 2>&1; then
9390 ol_cv_header_stdc=no
9396 if test $ol_cv_header_stdc = yes; then
9397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9404 egrep "free" >/dev/null 2>&1; then
9408 ol_cv_header_stdc=no
9414 if test $ol_cv_header_stdc = yes; then
9415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9416 if test "$cross_compiling" = yes; then
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9427 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9428 || ('j' <= (c) && (c) <= 'r') \
9429 || ('s' <= (c) && (c) <= 'z'))
9430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9433 int main () { int i; for (i = 0; i < 256; i++)
9434 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9442 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5
9445 ol_cv_header_stdc=no
9453 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9454 if test $ol_cv_header_stdc = yes; then
9455 cat >> confdefs.h <<\EOF
9456 #define STDC_HEADERS 1
9460 ac_cv_header_stdc=disable
9463 if test $ol_cv_header_stdc != yes; then
9464 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9468 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9471 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9472 echo "configure:9473: checking for $ac_hdr that defines DIR" >&5
9473 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9476 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 #include <sys/types.h>
9485 if { (eval echo configure:9486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9487 eval "ac_cv_header_dirent_$ac_safe=yes"
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9492 eval "ac_cv_header_dirent_$ac_safe=no"
9496 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9497 echo "$ac_t""yes" 1>&6
9498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9499 cat >> confdefs.h <<EOF
9500 #define $ac_tr_hdr 1
9502 ac_header_dirent=$ac_hdr; break
9504 echo "$ac_t""no" 1>&6
9507 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9508 if test $ac_header_dirent = dirent.h; then
9509 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9510 echo "configure:9511: checking for opendir in -ldir" >&5
9511 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9515 ac_save_LIBS="$LIBS"
9517 cat > conftest.$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 /* Override any gcc2 internal prototype to avoid an error. */
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9529 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9531 eval "ac_cv_lib_$ac_lib_var=yes"
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 eval "ac_cv_lib_$ac_lib_var=no"
9539 LIBS="$ac_save_LIBS"
9542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9546 echo "$ac_t""no" 1>&6
9550 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9551 echo "configure:9552: checking for opendir in -lx" >&5
9552 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9554 echo $ac_n "(cached) $ac_c" 1>&6
9556 ac_save_LIBS="$LIBS"
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9572 eval "ac_cv_lib_$ac_lib_var=yes"
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9577 eval "ac_cv_lib_$ac_lib_var=no"
9580 LIBS="$ac_save_LIBS"
9583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9584 echo "$ac_t""yes" 1>&6
9587 echo "$ac_t""no" 1>&6
9592 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9593 echo "configure:9594: checking for sys/wait.h that is POSIX.1 compatible" >&5
9594 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9600 #include <sys/types.h>
9601 #include <sys/wait.h>
9603 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9606 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9614 if { (eval echo configure:9615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9616 ac_cv_header_sys_wait_h=yes
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 ac_cv_header_sys_wait_h=no
9626 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9627 if test $ac_cv_header_sys_wait_h = yes; then
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_SYS_WAIT_H 1
9634 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9635 echo "configure:9636: checking POSIX termios" >&5
9636 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9639 cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9642 #include <sys/types.h>
9644 #include <termios.h>
9646 /* SunOS 4.0.3 has termios.h but not the library calls. */
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9652 am_cv_sys_posix_termios=yes
9654 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5
9657 am_cv_sys_posix_termios=no
9662 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9665 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9666 echo "configure:9667: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9667 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9670 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9672 gwinsz_in_termios_h=no
9673 if test $am_cv_sys_posix_termios = yes; then
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9677 #include <sys/types.h>
9678 # include <termios.h>
9684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9685 egrep "yes" >/dev/null 2>&1; then
9687 gwinsz_in_termios_h=yes
9693 if test $gwinsz_in_termios_h = no; then
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 #include <sys/types.h>
9698 # include <sys/ioctl.h>
9704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9705 egrep "yes" >/dev/null 2>&1; then
9707 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9715 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9716 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9717 cat >> confdefs.h <<\EOF
9718 #define GWINSZ_IN_SYS_IOCTL 1
9723 if test $am_cv_sys_posix_termios = yes ; then
9724 cat >> confdefs.h <<\EOF
9725 #define HAVE_POSIX_TERMIOS 1
9770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9772 echo "configure:9773: checking for $ac_hdr" >&5
9773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9776 cat > conftest.$ac_ext <<EOF
9777 #line 9778 "configure"
9778 #include "confdefs.h"
9781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9782 { (eval echo configure:9783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9784 if test -z "$ac_err"; then
9786 eval "ac_cv_header_$ac_safe=yes"
9789 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9792 eval "ac_cv_header_$ac_safe=no"
9796 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9797 echo "$ac_t""yes" 1>&6
9798 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9799 cat >> confdefs.h <<EOF
9800 #define $ac_tr_hdr 1
9804 echo "$ac_t""no" 1>&6
9809 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9810 echo "configure:9811: checking for uid_t in sys/types.h" >&5
9811 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9812 echo $ac_n "(cached) $ac_c" 1>&6
9814 cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure"
9816 #include "confdefs.h"
9817 #include <sys/types.h>
9819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9820 egrep "uid_t" >/dev/null 2>&1; then
9822 ac_cv_type_uid_t=yes
9831 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9832 if test $ac_cv_type_uid_t = no; then
9833 cat >> confdefs.h <<\EOF
9837 cat >> confdefs.h <<\EOF
9843 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9844 echo "configure:9845: checking type of array argument to getgroups" >&5
9845 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9848 if test "$cross_compiling" = yes; then
9849 ac_cv_type_getgroups=cross
9851 cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9855 /* Thanks to Mike Rendell for this test. */
9856 #include <sys/types.h>
9859 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9864 union { gid_t gval; long lval; } val;
9867 for (i = 0; i < NGID; i++)
9868 gidset[i] = val.gval;
9869 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9871 /* Exit non-zero if getgroups seems to require an array of ints. This
9872 happens when gid_t is short but getgroups modifies an array of ints. */
9873 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9879 ac_cv_type_getgroups=gid_t
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 ac_cv_type_getgroups=int
9889 if test $ac_cv_type_getgroups = cross; then
9890 cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9898 ac_cv_type_getgroups=gid_t
9901 ac_cv_type_getgroups=int
9908 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9909 cat >> confdefs.h <<EOF
9910 #define GETGROUPS_T $ac_cv_type_getgroups
9913 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9914 echo "configure:9915: checking for ANSI C header files" >&5
9915 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9927 { (eval echo configure:9928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9929 if test -z "$ac_err"; then
9931 ac_cv_header_stdc=yes
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9937 ac_cv_header_stdc=no
9941 if test $ac_cv_header_stdc = yes; then
9942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9949 egrep "memchr" >/dev/null 2>&1; then
9953 ac_cv_header_stdc=no
9959 if test $ac_cv_header_stdc = yes; then
9960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967 egrep "free" >/dev/null 2>&1; then
9971 ac_cv_header_stdc=no
9977 if test $ac_cv_header_stdc = yes; then
9978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9979 if test "$cross_compiling" = yes; then
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9986 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9987 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9989 int main () { int i; for (i = 0; i < 256; i++)
9990 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9994 if { (eval echo configure:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9998 echo "configure: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10001 ac_cv_header_stdc=no
10009 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10010 if test $ac_cv_header_stdc = yes; then
10011 cat >> confdefs.h <<\EOF
10012 #define STDC_HEADERS 1
10017 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10018 echo "configure:10019: checking for mode_t" >&5
10019 if eval "test \"`echo '$''{'ac_cv_type_mode_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])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10034 ac_cv_type_mode_t=yes
10037 ac_cv_type_mode_t=no
10042 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10043 if test $ac_cv_type_mode_t = no; then
10044 cat >> confdefs.h <<\EOF
10050 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10051 echo "configure:10052: checking for off_t" >&5
10052 if eval "test \"`echo '$''{'ac_cv_type_off_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 <sys/types.h>
10060 #include <stdlib.h>
10061 #include <stddef.h>
10064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10065 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10067 ac_cv_type_off_t=yes
10070 ac_cv_type_off_t=no
10075 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10076 if test $ac_cv_type_off_t = no; then
10077 cat >> confdefs.h <<\EOF
10083 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10084 echo "configure:10085: checking for pid_t" >&5
10085 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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>
10093 #include <stdlib.h>
10094 #include <stddef.h>
10097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10098 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10100 ac_cv_type_pid_t=yes
10103 ac_cv_type_pid_t=no
10108 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10109 if test $ac_cv_type_pid_t = no; then
10110 cat >> confdefs.h <<\EOF
10116 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10117 echo "configure:10118: checking for ptrdiff_t" >&5
10118 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10124 #include <stddef.h>
10129 if { (eval echo configure:10130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10131 am_cv_type_ptrdiff_t=yes
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10136 am_cv_type_ptrdiff_t=no
10141 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10142 if test $am_cv_type_ptrdiff_t = yes; then
10143 cat >> confdefs.h <<\EOF
10144 #define HAVE_PTRDIFF_T 1
10149 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10150 echo "configure:10151: checking return type of signal handlers" >&5
10151 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10154 cat > conftest.$ac_ext <<EOF
10155 #line 10156 "configure"
10156 #include "confdefs.h"
10157 #include <sys/types.h>
10158 #include <signal.h>
10163 extern "C" void (*signal (int, void (*)(int)))(int);
10165 void (*signal ()) ();
10172 if { (eval echo configure:10173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10174 ac_cv_type_signal=void
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10179 ac_cv_type_signal=int
10184 echo "$ac_t""$ac_cv_type_signal" 1>&6
10185 cat >> confdefs.h <<EOF
10186 #define RETSIGTYPE $ac_cv_type_signal
10190 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10191 echo "configure:10192: checking for sig_atomic_t" >&5
10192 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+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 <signal.h>
10200 sig_atomic_t atomic;
10203 if { (eval echo configure:10204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 ol_cv_type_sig_atomic_t=yes
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 ol_cv_type_sig_atomic_t=no
10215 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10216 if test $ol_cv_type_sig_atomic_t = no; then
10217 cat >> confdefs.h <<\EOF
10218 #define sig_atomic_t int
10223 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10224 echo "configure:10225: checking for size_t" >&5
10225 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 #include <sys/types.h>
10233 #include <stdlib.h>
10234 #include <stddef.h>
10237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10238 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10240 ac_cv_type_size_t=yes
10243 ac_cv_type_size_t=no
10248 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10249 if test $ac_cv_type_size_t = no; then
10250 cat >> confdefs.h <<\EOF
10251 #define size_t unsigned
10256 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10257 echo "configure:10258: checking for st_blksize in struct stat" >&5
10258 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <sys/types.h>
10265 #include <sys/stat.h>
10267 struct stat s; s.st_blksize;
10270 if { (eval echo configure:10271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10272 ac_cv_struct_st_blksize=yes
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10277 ac_cv_struct_st_blksize=no
10282 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10283 if test $ac_cv_struct_st_blksize = yes; then
10284 cat >> confdefs.h <<\EOF
10285 #define HAVE_ST_BLKSIZE 1
10290 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10291 echo "configure:10292: checking whether time.h and sys/time.h may both be included" >&5
10292 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10293 echo $ac_n "(cached) $ac_c" 1>&6
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10298 #include <sys/types.h>
10299 #include <sys/time.h>
10305 if { (eval echo configure:10306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10307 ac_cv_header_time=yes
10309 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5
10312 ac_cv_header_time=no
10317 echo "$ac_t""$ac_cv_header_time" 1>&6
10318 if test $ac_cv_header_time = yes; then
10319 cat >> confdefs.h <<\EOF
10320 #define TIME_WITH_SYS_TIME 1
10325 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10326 echo "configure:10327: checking whether struct tm is in sys/time.h or time.h" >&5
10327 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include <sys/types.h>
10336 struct tm *tp; tp->tm_sec;
10339 if { (eval echo configure:10340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10341 ac_cv_struct_tm=time.h
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10346 ac_cv_struct_tm=sys/time.h
10351 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10352 if test $ac_cv_struct_tm = sys/time.h; then
10353 cat >> confdefs.h <<\EOF
10354 #define TM_IN_SYS_TIME 1
10359 # test for pw_gecos in struct passwd
10360 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10361 echo "configure:10362: checking struct passwd for pw_gecos" >&5
10362 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10366 cat > conftest.$ac_ext <<EOF
10367 #line 10368 "configure"
10368 #include "confdefs.h"
10373 pwd.pw_gecos = pwd.pw_name;
10377 if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10379 ol_cv_struct_passwd_pw_gecos=yes
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10384 ol_cv_struct_passwd_pw_gecos=no
10389 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10390 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10391 cat >> confdefs.h <<\EOF
10392 #define HAVE_PW_GECOS 1
10399 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10400 echo "configure:10401: checking if toupper() requires islower()" >&5
10401 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10405 if test "$cross_compiling" = yes; then
10406 ol_cv_c_upper_lower=safe
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10415 if ('C' == toupper('C'))
10421 if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10423 ol_cv_c_upper_lower=no
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 ol_cv_c_upper_lower=yes
10435 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10436 if test $ol_cv_c_upper_lower != no ; then
10437 cat >> confdefs.h <<\EOF
10438 #define C_UPPER_LOWER 1
10443 echo $ac_n "checking for working const""... $ac_c" 1>&6
10444 echo "configure:10445: checking for working const" >&5
10445 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10448 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure"
10450 #include "confdefs.h"
10454 /* Ultrix mips cc rejects this. */
10455 typedef int charset[2]; const charset x;
10456 /* SunOS 4.1.1 cc rejects this. */
10457 char const *const *ccp;
10459 /* NEC SVR4.0.2 mips cc rejects this. */
10460 struct point {int x, y;};
10461 static struct point const zero = {0,0};
10462 /* AIX XL C 1.02.0.0 rejects this.
10463 It does not let you subtract one const X* pointer from another in an arm
10464 of an if-expression whose if-part is not a constant expression */
10465 const char *g = "string";
10466 ccp = &g + (g ? g-g : 0);
10467 /* HPUX 7.0 cc rejects these. */
10470 ccp = (char const *const *) p;
10471 { /* SCO 3.2v4 cc rejects this. */
10473 char const *s = 0 ? (char *) 0 : (char const *) 0;
10477 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10478 int x[] = {25, 17};
10479 const int *foo = &x[0];
10482 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10483 typedef const int *iptr;
10487 { /* AIX XL C 1.02.0.0 rejects this saying
10488 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10489 struct s { int j; const int *ap[3]; };
10490 struct s *b; b->j = 5;
10492 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10493 const int foo = 10;
10498 if { (eval echo configure:10499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10510 echo "$ac_t""$ac_cv_c_const" 1>&6
10511 if test $ac_cv_c_const = no; then
10512 cat >> confdefs.h <<\EOF
10518 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10519 echo "configure:10520: checking if compiler understands volatile" >&5
10520 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10523 cat > conftest.$ac_ext <<EOF
10524 #line 10525 "configure"
10525 #include "confdefs.h"
10528 volatile int a; int * volatile b = x ? &y : &z;
10529 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10533 if { (eval echo configure:10534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10535 ol_cv_c_volatile=yes
10537 echo "configure: failed program was:" >&5
10538 cat conftest.$ac_ext >&5
10540 ol_cv_c_volatile=no
10545 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10546 if test $ol_cv_c_volatile = yes; then
10549 cat >> confdefs.h <<\EOF
10556 if test $cross_compiling = yes ; then
10557 cat >> confdefs.h <<\EOF
10558 #define CROSS_COMPILING 1
10562 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10563 echo "configure:10564: checking whether byte ordering is bigendian" >&5
10564 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 ac_cv_c_bigendian=unknown
10568 # See if sys/param.h defines the BYTE_ORDER macro.
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10572 #include <sys/types.h>
10573 #include <sys/param.h>
10576 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10577 bogus endian macros
10581 if { (eval echo configure:10582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10583 # It does; now see whether it defined to BIG_ENDIAN or not.
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 #include <sys/types.h>
10588 #include <sys/param.h>
10591 #if BYTE_ORDER != BIG_ENDIAN
10596 if { (eval echo configure:10597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10598 ac_cv_c_bigendian=yes
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 ac_cv_c_bigendian=no
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10611 if test $ac_cv_c_bigendian = unknown; then
10612 if test "$cross_compiling" = yes; then
10613 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure"
10617 #include "confdefs.h"
10619 /* Are we little or big endian? From Harbison&Steele. */
10623 char c[sizeof (long)];
10626 exit (u.c[sizeof (long) - 1] == 1);
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 ac_cv_c_bigendian=no
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 ac_cv_c_bigendian=yes
10644 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10645 if test $ac_cv_c_bigendian = yes; then
10646 cat >> confdefs.h <<\EOF
10647 #define WORDS_BIGENDIAN 1
10652 echo $ac_n "checking size of short""... $ac_c" 1>&6
10653 echo "configure:10654: checking size of short" >&5
10654 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10657 if test "$cross_compiling" = yes; then
10658 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10666 FILE *f=fopen("conftestval", "w");
10668 fprintf(f, "%d\n", sizeof(short));
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10674 ac_cv_sizeof_short=`cat conftestval`
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 ac_cv_sizeof_short=0
10685 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10686 cat >> confdefs.h <<EOF
10687 #define SIZEOF_SHORT $ac_cv_sizeof_short
10691 echo $ac_n "checking size of int""... $ac_c" 1>&6
10692 echo "configure:10693: checking size of int" >&5
10693 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10696 if test "$cross_compiling" = yes; then
10697 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10705 FILE *f=fopen("conftestval", "w");
10707 fprintf(f, "%d\n", sizeof(int));
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10713 ac_cv_sizeof_int=`cat conftestval`
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10724 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10725 cat >> confdefs.h <<EOF
10726 #define SIZEOF_INT $ac_cv_sizeof_int
10730 echo $ac_n "checking size of long""... $ac_c" 1>&6
10731 echo "configure:10732: checking size of long" >&5
10732 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10733 echo $ac_n "(cached) $ac_c" 1>&6
10735 if test "$cross_compiling" = yes; then
10736 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10744 FILE *f=fopen("conftestval", "w");
10746 fprintf(f, "%d\n", sizeof(long));
10750 if { (eval echo configure:10751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10752 ac_cv_sizeof_long=`cat conftestval`
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10757 ac_cv_sizeof_long=0
10763 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10764 cat >> confdefs.h <<EOF
10765 #define SIZEOF_LONG $ac_cv_sizeof_long
10771 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10772 echo "configure:10773: checking for 8-bit clean memcmp" >&5
10773 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10774 echo $ac_n "(cached) $ac_c" 1>&6
10776 if test "$cross_compiling" = yes; then
10777 ac_cv_func_memcmp_clean=no
10779 cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10785 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10786 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10790 if { (eval echo configure:10791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10792 ac_cv_func_memcmp_clean=yes
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 ac_cv_func_memcmp_clean=no
10804 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10805 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10807 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10808 echo "configure:10809: checking for strftime" >&5
10809 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10810 echo $ac_n "(cached) $ac_c" 1>&6
10812 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char strftime(); below. */
10817 #include <assert.h>
10818 /* Override any gcc2 internal prototype to avoid an error. */
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10825 /* The GNU C library defines this for functions which it implements
10826 to always fail with ENOSYS. Some functions are actually named
10827 something starting with __ and the normal name is an alias. */
10828 #if defined (__stub_strftime) || defined (__stub___strftime)
10836 if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10838 eval "ac_cv_func_strftime=yes"
10840 echo "configure: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10843 eval "ac_cv_func_strftime=no"
10848 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10850 cat >> confdefs.h <<\EOF
10851 #define HAVE_STRFTIME 1
10855 echo "$ac_t""no" 1>&6
10856 # strftime is in -lintl on SCO UNIX.
10857 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10858 echo "configure:10859: checking for strftime in -lintl" >&5
10859 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10863 ac_save_LIBS="$LIBS"
10864 LIBS="-lintl $LIBS"
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 /* Override any gcc2 internal prototype to avoid an error. */
10869 /* We use char because int might match the return type of a gcc2
10870 builtin and then its argument prototype would still apply. */
10877 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10879 eval "ac_cv_lib_$ac_lib_var=yes"
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 eval "ac_cv_lib_$ac_lib_var=no"
10887 LIBS="$ac_save_LIBS"
10890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892 cat >> confdefs.h <<\EOF
10893 #define HAVE_STRFTIME 1
10896 LIBS="-lintl $LIBS"
10898 echo "$ac_t""no" 1>&6
10904 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10905 echo "configure:10906: checking for vprintf" >&5
10906 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 /* System header to define __stub macros and hopefully few prototypes,
10913 which can conflict with char vprintf(); below. */
10914 #include <assert.h>
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10922 /* The GNU C library defines this for functions which it implements
10923 to always fail with ENOSYS. Some functions are actually named
10924 something starting with __ and the normal name is an alias. */
10925 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10933 if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10935 eval "ac_cv_func_vprintf=yes"
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10940 eval "ac_cv_func_vprintf=no"
10945 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h <<\EOF
10948 #define HAVE_VPRINTF 1
10952 echo "$ac_t""no" 1>&6
10955 if test "$ac_cv_func_vprintf" != yes; then
10956 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10957 echo "configure:10958: checking for _doprnt" >&5
10958 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 /* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char _doprnt(); below. */
10966 #include <assert.h>
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10974 /* The GNU C library defines this for functions which it implements
10975 to always fail with ENOSYS. Some functions are actually named
10976 something starting with __ and the normal name is an alias. */
10977 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 eval "ac_cv_func__doprnt=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 eval "ac_cv_func__doprnt=no"
10997 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10998 echo "$ac_t""yes" 1>&6
10999 cat >> confdefs.h <<\EOF
11000 #define HAVE_DOPRNT 1
11004 echo "$ac_t""no" 1>&6
11010 if test $ac_cv_func_vprintf = yes ; then
11011 for ac_func in vsnprintf vsprintf
11013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11014 echo "configure:11015: checking for $ac_func" >&5
11015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11021 /* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char $ac_func(); below. */
11023 #include <assert.h>
11024 /* Override any gcc2 internal prototype to avoid an error. */
11025 /* We use char because int might match the return type of a gcc2
11026 builtin and then its argument prototype would still apply. */
11031 /* The GNU C library defines this for functions which it implements
11032 to always fail with ENOSYS. Some functions are actually named
11033 something starting with __ and the normal name is an alias. */
11034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11042 if { (eval echo configure:11043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044 eval "ac_cv_func_$ac_func=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_func_$ac_func=no"
11054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11057 cat >> confdefs.h <<EOF
11058 #define $ac_tr_func 1
11062 echo "$ac_t""no" 1>&6
11109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11110 echo "configure:11111: checking for $ac_func" >&5
11111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func(); below. */
11119 #include <assert.h>
11120 /* Override any gcc2 internal prototype to avoid an error. */
11121 /* We use char because int might match the return type of a gcc2
11122 builtin and then its argument prototype would still apply. */
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11138 if { (eval echo configure:11139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11140 eval "ac_cv_func_$ac_func=yes"
11142 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5
11145 eval "ac_cv_func_$ac_func=no"
11150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11151 echo "$ac_t""yes" 1>&6
11152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11153 cat >> confdefs.h <<EOF
11154 #define $ac_tr_func 1
11158 echo "$ac_t""no" 1>&6
11163 for ac_func in getopt tempnam
11165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11166 echo "configure:11167: checking for $ac_func" >&5
11167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char $ac_func(); below. */
11175 #include <assert.h>
11176 /* Override any gcc2 internal prototype to avoid an error. */
11177 /* We use char because int might match the return type of a gcc2
11178 builtin and then its argument prototype would still apply. */
11183 /* The GNU C library defines this for functions which it implements
11184 to always fail with ENOSYS. Some functions are actually named
11185 something starting with __ and the normal name is an alias. */
11186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11196 eval "ac_cv_func_$ac_func=yes"
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11201 eval "ac_cv_func_$ac_func=no"
11206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_func 1
11214 echo "$ac_t""no" 1>&6
11215 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11221 # Check Configuration
11223 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11224 echo "configure:11225: checking declaration of sys_errlist" >&5
11225 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11234 #include <sys/types.h>
11237 char *c = (char *) *sys_errlist
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11242 ol_cv_dcl_sys_errlist=yes
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 ol_cv_dcl_sys_errlist=no
11252 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11253 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11254 if test $ol_cv_dcl_sys_errlist = no ; then
11255 cat >> confdefs.h <<\EOF
11256 #define DECL_SYS_ERRLIST 1
11259 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11260 echo "configure:11261: checking existence of sys_errlist" >&5
11261 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11265 cat > conftest.$ac_ext <<EOF
11266 #line 11267 "configure"
11267 #include "confdefs.h"
11270 char *c = (char *) *sys_errlist
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 ol_cv_have_sys_errlist=yes
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 ol_cv_have_sys_errlist=no
11285 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11286 if test $ol_cv_have_sys_errlist = yes ; then
11287 cat >> confdefs.h <<\EOF
11288 #define HAVE_SYS_ERRLIST 1
11296 if test "$ol_enable_debug" != no ; then
11297 cat >> confdefs.h <<\EOF
11298 #define LDAP_DEBUG 1
11302 if test "$ol_enable_syslog" = yes ; then
11303 cat >> confdefs.h <<\EOF
11304 #define LDAP_SYSLOG 1
11308 if test "$ol_enable_libui" = yes ; then
11309 cat >> confdefs.h <<\EOF
11310 #define LDAP_LIBUI 1
11314 if test "$ol_enable_cache" = no ; then
11315 cat >> confdefs.h <<\EOF
11316 #define LDAP_NOCACHE 1
11320 if test "$ol_enable_dns" != no ; then
11321 cat >> confdefs.h <<\EOF
11322 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11326 if test "$ol_enable_proctitle" != no ; then
11327 cat >> confdefs.h <<\EOF
11328 #define LDAP_PROCTITLE 1
11332 if test "$ol_enable_referrals" != no ; then
11333 cat >> confdefs.h <<\EOF
11334 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11338 if test "$ol_enable_cldap" != no ; then
11339 cat >> confdefs.h <<\EOF
11340 #define LDAP_CONNECTIONLESS 1
11345 if test "$ol_enable_aclgroups" != no ; then
11346 cat >> confdefs.h <<\EOF
11347 #define SLAPD_ACLGROUPS 1
11351 if test "$ol_enable_crypt" != no ; then
11352 cat >> confdefs.h <<\EOF
11353 #define SLAPD_CRYPT 1
11357 if test "$ol_enable_cleartext" != no ; then
11358 cat >> confdefs.h <<\EOF
11359 #define SLAPD_CLEARTEXT 1
11363 if test "$ol_enable_phonetic" != no ; then
11364 cat >> confdefs.h <<\EOF
11365 #define SLAPD_PHONETIC 1
11369 if test "$ol_enable_rlookups" != no ; then
11370 cat >> confdefs.h <<\EOF
11371 #define SLAPD_RLOOKUPS 1
11376 if test "$ol_link_modules" != no ; then
11377 cat >> confdefs.h <<\EOF
11378 #define SLAPD_MODULES 1
11384 if test "$ol_link_bdb2" != no ; then
11385 cat >> confdefs.h <<\EOF
11386 #define SLAPD_BDB2 1
11393 if test "$ol_enable_ldap" != no ; then
11394 cat >> confdefs.h <<\EOF
11395 #define SLAPD_LDAP 1
11402 if test "$ol_link_ldbm" != no ; then
11403 cat >> confdefs.h <<\EOF
11404 #define SLAPD_LDBM 1
11411 if test "$ol_enable_passwd" != no ; then
11412 cat >> confdefs.h <<\EOF
11413 #define SLAPD_PASSWD 1
11420 if test "$ol_link_perl" != no ; then
11421 cat >> confdefs.h <<\EOF
11422 #define SLAPD_PERL 1
11429 if test "$ol_enable_shell" != no ; then
11430 cat >> confdefs.h <<\EOF
11431 #define SLAPD_SHELL 1
11438 if test "$ol_enable_tcl" != no ; then
11439 cat >> confdefs.h <<\EOF
11440 #define SLAPD_TCL 1
11447 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11448 $BUILD_SLAPD = yes ; then
11452 if test "$ol_link_isode" != no ; then
11490 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11493 # Let make expand exec_prefix.
11494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11496 # Any assignment to VPATH causes Sun make to only execute
11497 # the first set of double-colon rules, so remove it if not needed.
11498 # If there is a colon in the path, we need to keep it.
11499 if test "x$srcdir" = x.; then
11500 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11503 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11505 DEFS=-DHAVE_CONFIG_H
11507 # Without the "./", some shells look in PATH for config.status.
11508 : ${CONFIG_STATUS=./config.status}
11510 echo creating $CONFIG_STATUS
11511 rm -f $CONFIG_STATUS
11512 cat > $CONFIG_STATUS <<EOF
11514 # Generated automatically by configure.
11515 # Run this file to recreate the current configuration.
11516 # This directory was configured as follows,
11517 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11519 # $0 $ac_configure_args
11521 # Compiler output produced by configure, useful for debugging
11522 # configure, is in ./config.log if it exists.
11524 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11527 case "\$ac_option" in
11528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11529 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11530 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11531 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11532 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11534 -help | --help | --hel | --he | --h)
11535 echo "\$ac_cs_usage"; exit 0 ;;
11536 *) echo "\$ac_cs_usage"; exit 1 ;;
11540 ac_given_srcdir=$srcdir
11541 ac_given_INSTALL="$INSTALL"
11543 trap 'rm -fr `echo "\
11544 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11545 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11546 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11547 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11548 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11549 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11550 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11551 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11552 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11553 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11554 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11555 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11556 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11557 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11558 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11559 include/Makefile:build/top.mk:include/Makefile.in \
11560 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11561 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11562 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11563 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11564 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11565 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11566 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11567 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11568 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11569 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11570 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11571 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11572 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11573 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11574 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11575 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11576 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11577 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11578 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11579 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11580 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11581 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11582 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11583 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11584 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11585 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11586 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11588 cat >> $CONFIG_STATUS <<EOF
11590 # Protect against being on the right side of a sed subst in config.status.
11591 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11592 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11596 s%@CFLAGS@%$CFLAGS%g
11597 s%@CPPFLAGS@%$CPPFLAGS%g
11598 s%@CXXFLAGS@%$CXXFLAGS%g
11599 s%@FFLAGS@%$FFLAGS%g
11601 s%@LDFLAGS@%$LDFLAGS%g
11603 s%@exec_prefix@%$exec_prefix%g
11604 s%@prefix@%$prefix%g
11605 s%@program_transform_name@%$program_transform_name%g
11606 s%@bindir@%$bindir%g
11607 s%@sbindir@%$sbindir%g
11608 s%@libexecdir@%$libexecdir%g
11609 s%@datadir@%$datadir%g
11610 s%@sysconfdir@%$sysconfdir%g
11611 s%@sharedstatedir@%$sharedstatedir%g
11612 s%@localstatedir@%$localstatedir%g
11613 s%@libdir@%$libdir%g
11614 s%@includedir@%$includedir%g
11615 s%@oldincludedir@%$oldincludedir%g
11616 s%@infodir@%$infodir%g
11617 s%@mandir@%$mandir%g
11618 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11619 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11620 s%@INSTALL_DATA@%$INSTALL_DATA%g
11621 s%@PACKAGE@%$PACKAGE%g
11622 s%@VERSION@%$VERSION%g
11623 s%@ACLOCAL@%$ACLOCAL%g
11624 s%@AUTOCONF@%$AUTOCONF%g
11625 s%@AUTOMAKE@%$AUTOMAKE%g
11626 s%@AUTOHEADER@%$AUTOHEADER%g
11627 s%@MAKEINFO@%$MAKEINFO%g
11628 s%@SET_MAKE@%$SET_MAKE%g
11629 s%@top_builddir@%$top_builddir%g
11630 s%@ldap_subdir@%$ldap_subdir%g
11632 s%@host_alias@%$host_alias%g
11633 s%@host_cpu@%$host_cpu%g
11634 s%@host_vendor@%$host_vendor%g
11635 s%@host_os@%$host_os%g
11636 s%@RANLIB@%$RANLIB%g
11641 s%@LIBTOOL@%$LIBTOOL%g
11644 s%@SENDMAIL@%$SENDMAIL%g
11645 s%@EDITOR@%$EDITOR%g
11646 s%@FINGER@%$FINGER%g
11647 s%@GLIBCONFIG@%$GLIBCONFIG%g
11648 s%@PERLBIN@%$PERLBIN%g
11650 s%@EXEEXT@%$EXEEXT%g
11651 s%@OBJEXT@%$OBJEXT%g
11653 s%@LIBOBJS@%$LIBOBJS%g
11654 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11655 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11656 s%@BUILD_BDB2@%$BUILD_BDB2%g
11657 s%@BUILD_LDAP@%$BUILD_LDAP%g
11658 s%@BUILD_LDBM@%$BUILD_LDBM%g
11659 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11660 s%@BUILD_PERL@%$BUILD_PERL%g
11661 s%@BUILD_SHELL@%$BUILD_SHELL%g
11662 s%@BUILD_TCL@%$BUILD_TCL%g
11663 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11664 s%@LDAP_LIBS@%$LDAP_LIBS%g
11665 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11666 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11667 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11668 s%@LDBM_LIBS@%$LDBM_LIBS%g
11669 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11670 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11671 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11672 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11673 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11674 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11675 s%@KRB_LIBS@%$KRB_LIBS%g
11676 s%@READLINE_LIBS@%$READLINE_LIBS%g
11677 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11678 s%@TLS_LIBS@%$TLS_LIBS%g
11683 cat >> $CONFIG_STATUS <<\EOF
11685 # Split the substitutions into bite-sized pieces for seds with
11686 # small command number limits, like on Digital OSF/1 and HP-UX.
11687 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11688 ac_file=1 # Number of current file.
11689 ac_beg=1 # First line for current file.
11690 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11693 while $ac_more_lines; do
11694 if test $ac_beg -gt 1; then
11695 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11697 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11699 if test ! -s conftest.s$ac_file; then
11700 ac_more_lines=false
11701 rm -f conftest.s$ac_file
11703 if test -z "$ac_sed_cmds"; then
11704 ac_sed_cmds="sed -f conftest.s$ac_file"
11706 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11708 ac_file=`expr $ac_file + 1`
11710 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11713 if test -z "$ac_sed_cmds"; then
11718 cat >> $CONFIG_STATUS <<EOF
11720 CONFIG_FILES=\${CONFIG_FILES-"\
11721 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11722 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11723 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11724 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11725 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11726 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11727 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11728 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11729 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11730 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11731 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11732 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11733 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11734 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11735 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11736 include/Makefile:build/top.mk:include/Makefile.in \
11737 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11738 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11739 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11740 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11741 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11742 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11743 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11744 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11745 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11746 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11747 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11748 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11749 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11750 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11751 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11752 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11753 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11754 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11755 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11756 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11757 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11758 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11759 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11760 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11761 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11762 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11765 cat >> $CONFIG_STATUS <<\EOF
11766 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11771 *) ac_file_in="${ac_file}.in" ;;
11774 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11776 # Remove last slash and all that follows it. Not all systems have dirname.
11777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11779 # The file is in a subdirectory.
11780 test ! -d "$ac_dir" && mkdir "$ac_dir"
11781 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11782 # A "../" for each directory in $ac_dir_suffix.
11783 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11785 ac_dir_suffix= ac_dots=
11788 case "$ac_given_srcdir" in
11790 if test -z "$ac_dots"; then top_srcdir=.
11791 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11792 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11793 *) # Relative path.
11794 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11795 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11798 case "$ac_given_INSTALL" in
11799 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11800 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11803 echo creating "$ac_file"
11805 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11807 *Makefile*) ac_comsub="1i\\
11808 # $configure_input" ;;
11812 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11814 s%@configure_input@%$configure_input%g
11815 s%@srcdir@%$srcdir%g
11816 s%@top_srcdir@%$top_srcdir%g
11817 s%@INSTALL@%$INSTALL%g
11818 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11822 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11823 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11825 # ac_d sets the value in "#define NAME VALUE" lines.
11826 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11827 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11830 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11831 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11832 ac_uB='\([ ]\)%\1#\2define\3'
11835 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11836 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11837 ac_eB='$%\1#\2define\3'
11841 if test "${CONFIG_HEADERS+set}" != set; then
11843 cat >> $CONFIG_STATUS <<EOF
11844 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11846 cat >> $CONFIG_STATUS <<\EOF
11848 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11851 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11852 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11853 *) ac_file_in="${ac_file}.in" ;;
11856 echo creating $ac_file
11858 rm -f conftest.frag conftest.in conftest.out
11859 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11860 cat $ac_file_inputs > conftest.in
11864 # Transform confdefs.h into a sed script conftest.vals that substitutes
11865 # the proper values into config.h.in to produce config.h. And first:
11866 # Protect against being on the right side of a sed subst in config.status.
11867 # Protect against being in an unquoted here document in config.status.
11868 rm -f conftest.vals
11869 cat > conftest.hdr <<\EOF
11872 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11876 sed -n -f conftest.hdr confdefs.h > conftest.vals
11879 # This sed command replaces #undef with comments. This is necessary, for
11880 # example, in the case of _POSIX_SOURCE, which is predefined and required
11881 # on some systems where configure will not decide to define it.
11882 cat >> conftest.vals <<\EOF
11883 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11886 # Break up conftest.vals because some shells have a limit on
11887 # the size of here documents, and old seds have small limits too.
11889 rm -f conftest.tail
11892 ac_lines=`grep -c . conftest.vals`
11893 # grep -c gives empty output for an empty file on some AIX systems.
11894 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11895 # Write a limited-size here document to conftest.frag.
11896 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11897 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11899 sed -f conftest.frag conftest.in > conftest.out
11901 mv conftest.out conftest.in
11902 ' >> $CONFIG_STATUS
11903 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11904 rm -f conftest.vals
11905 mv conftest.tail conftest.vals
11907 rm -f conftest.vals
11909 cat >> $CONFIG_STATUS <<\EOF
11910 rm -f conftest.frag conftest.h
11911 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11912 cat conftest.in >> conftest.h
11914 if cmp -s $ac_file conftest.h 2>/dev/null; then
11915 echo "$ac_file is unchanged"
11918 # Remove last slash and all that follows it. Not all systems have dirname.
11919 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11920 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11921 # The file is in a subdirectory.
11922 test ! -d "$ac_dir" && mkdir "$ac_dir"
11925 mv conftest.h $ac_file
11930 cat >> $CONFIG_STATUS <<EOF
11933 cat >> $CONFIG_STATUS <<\EOF
11936 echo Please \"make depend\" to build dependencies
11940 chmod +x $CONFIG_STATUS
11941 rm -fr confdefs* $ac_clean_files
11942 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1