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=
1820 if test -z "${CC}"; then
1823 # Extract the first word of "$ac_prog", so it can be a program name with args.
1824 set dummy $ac_prog; ac_word=$2
1825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1826 echo "configure:1827: checking for $ac_word" >&5
1827 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1835 for ac_dir in $ac_dummy; do
1836 test -z "$ac_dir" && ac_dir=.
1837 if test -f $ac_dir/$ac_word; then
1838 ac_cv_prog_CC="$ac_prog"
1846 if test -n "$CC"; then
1847 echo "$ac_t""$CC" 1>&6
1849 echo "$ac_t""no" 1>&6
1852 test -n "$CC" && break
1859 # Make sure we can run config.sub.
1860 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1861 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1864 echo $ac_n "checking host system type""... $ac_c" 1>&6
1865 echo "configure:1866: checking host system type" >&5
1868 case "$host_alias" in
1872 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1873 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1875 *) host_alias=$nonopt ;;
1879 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1880 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883 echo "$ac_t""$host" 1>&6
1887 *-*-aix*) $ol_host_os=aix ;;
1891 if test -z "$save_CC" -a "$CC" = cc -a "$ol_host_os" = aix ; then
1892 case "$ol_with_threads" in
1893 auto | yes | posix) ol_aix_threads=yes ;;
1897 if test ol_aix_threads = yes ; then
1898 for ac_prog in cc_r x1c_r
1900 # Extract the first word of "$ac_prog", so it can be a program name with args.
1901 set dummy $ac_prog; ac_word=$2
1902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $ac_word" >&5
1904 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 for ac_dir in $ac_dummy; do
1913 test -z "$ac_dir" && ac_dir=.
1914 if test -f $ac_dir/$ac_word; then
1915 ac_cv_prog_CC="$ac_prog"
1923 if test -n "$CC"; then
1924 echo "$ac_t""$CC" 1>&6
1926 echo "$ac_t""no" 1>&6
1929 test -n "$CC" && break
1933 if test "$CC" ; then
1934 if test $ol_with_threads != auto ; then
1935 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
1937 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
1941 ol_with_threads=posix
1942 ol_cv_pthread_create=yes
1946 # Extract the first word of "ranlib", so it can be a program name with args.
1947 set dummy ranlib; ac_word=$2
1948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1949 echo "configure:1950: checking for $ac_word" >&5
1950 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test -n "$RANLIB"; then
1954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1958 for ac_dir in $ac_dummy; do
1959 test -z "$ac_dir" && ac_dir=.
1960 if test -f $ac_dir/$ac_word; then
1961 ac_cv_prog_RANLIB="ranlib"
1966 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1969 RANLIB="$ac_cv_prog_RANLIB"
1970 if test -n "$RANLIB"; then
1971 echo "$ac_t""$RANLIB" 1>&6
1973 echo "$ac_t""no" 1>&6
1976 # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc; ac_word=$2
1978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1979 echo "configure:1980: checking for $ac_word" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 for ac_dir in $ac_dummy; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$ac_word; then
1999 if test -n "$CC"; then
2000 echo "$ac_t""$CC" 1>&6
2002 echo "$ac_t""no" 1>&6
2005 if test -z "$CC"; then
2006 # Extract the first word of "cc", so it can be a program name with args.
2007 set dummy cc; ac_word=$2
2008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_word" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2019 for ac_dir in $ac_dummy; do
2020 test -z "$ac_dir" && ac_dir=.
2021 if test -f $ac_dir/$ac_word; then
2022 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2023 ac_prog_rejected=yes
2031 if test $ac_prog_rejected = yes; then
2032 # We found a bogon in the path, so make sure we never use it.
2033 set dummy $ac_cv_prog_CC
2035 if test $# -gt 0; then
2036 # We chose a different compiler from the bogus one.
2037 # However, it has the same basename, so the bogon will be chosen
2038 # first if we set CC to just the basename; use the full file name.
2040 set dummy "$ac_dir/$ac_word" "$@"
2048 if test -n "$CC"; then
2049 echo "$ac_t""$CC" 1>&6
2051 echo "$ac_t""no" 1>&6
2054 if test -z "$CC"; then
2055 case "`uname -s`" in
2057 # Extract the first word of "cl", so it can be a program name with args.
2058 set dummy cl; ac_word=$2
2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_word" >&5
2061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2069 for ac_dir in $ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2080 if test -n "$CC"; then
2081 echo "$ac_t""$CC" 1>&6
2083 echo "$ac_t""no" 1>&6
2088 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2091 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2092 echo "configure:2093: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2095 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2098 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2099 cross_compiling=$ac_cv_prog_cc_cross
2101 cat > conftest.$ac_ext << EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 ac_cv_prog_cc_works=yes
2110 # If we can't run a trivial program, we are probably using a cross compiler.
2111 if (./conftest; exit) 2>/dev/null; then
2112 ac_cv_prog_cc_cross=no
2114 ac_cv_prog_cc_cross=yes
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 ac_cv_prog_cc_works=no
2123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2127 cross_compiling=$ac_cv_prog_cc_cross
2129 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2130 if test $ac_cv_prog_cc_works = no; then
2131 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2133 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2134 echo "configure:2135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2135 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2136 cross_compiling=$ac_cv_prog_cc_cross
2138 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2139 echo "configure:2140: checking whether we are using GNU C" >&5
2140 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.c <<EOF
2148 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2155 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2157 if test $ac_cv_prog_gcc = yes; then
2163 ac_test_CFLAGS="${CFLAGS+set}"
2164 ac_save_CFLAGS="$CFLAGS"
2166 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2167 echo "configure:2168: checking whether ${CC-cc} accepts -g" >&5
2168 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 echo 'void f(){}' > conftest.c
2172 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2181 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2182 if test "$ac_test_CFLAGS" = set; then
2183 CFLAGS="$ac_save_CFLAGS"
2184 elif test $ac_cv_prog_cc_g = yes; then
2185 if test "$GCC" = yes; then
2191 if test "$GCC" = yes; then
2198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2199 if test "${with_gnu_ld+set}" = set; then
2200 withval="$with_gnu_ld"
2201 test "$withval" = no || with_gnu_ld=yes
2208 if test "$ac_cv_prog_gcc" = yes; then
2209 # Check if gcc -print-prog-name=ld gives a path.
2210 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2211 echo "configure:2212: checking for ld used by GCC" >&5
2212 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2214 # Accept absolute paths.
2216 test -z "$LD" && LD="$ac_prog"
2219 # If it fails, then pretend we aren't using GCC.
2223 # If it is relative, then search for the first ld in PATH.
2227 elif test "$with_gnu_ld" = yes; then
2228 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2229 echo "configure:2230: checking for GNU ld" >&5
2231 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2232 echo "configure:2233: checking for non-GNU ld" >&5
2234 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 if test -z "$LD"; then
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2239 for ac_dir in $PATH; do
2240 test -z "$ac_dir" && ac_dir=.
2241 if test -f "$ac_dir/$ac_prog"; then
2242 ac_cv_path_LD="$ac_dir/$ac_prog"
2243 # Check to see if the program is GNU ld. I'd rather use --version,
2244 # but apparently some GNU ld's only accept -v.
2245 # Break only if it was the GNU/non-GNU ld that we prefer.
2246 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2247 test "$with_gnu_ld" != no && break
2249 test "$with_gnu_ld" != yes && break
2255 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2260 if test -n "$LD"; then
2261 echo "$ac_t""$LD" 1>&6
2263 echo "$ac_t""no" 1>&6
2265 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2267 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2268 echo "configure:2269: checking if the linker ($LD) is GNU ld" >&5
2269 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2273 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2274 ac_cv_prog_gnu_ld=yes
2276 ac_cv_prog_gnu_ld=no
2280 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2283 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2284 echo "configure:2285: checking for BSD-compatible nm" >&5
2285 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2290 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2294 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2295 test -z "$ac_dir" && ac_dir=.
2296 if test -f $ac_dir/nm; then
2297 # Check to see if the nm accepts a BSD-compat flag.
2298 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2299 # nm: unknown option "B" ignored
2300 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2301 ac_cv_path_NM="$ac_dir/nm -B"
2302 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2303 ac_cv_path_NM="$ac_dir/nm -p"
2305 ac_cv_path_NM="$ac_dir/nm"
2311 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2317 echo "$ac_t""$NM" 1>&6
2320 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether ln -s works" >&5
2322 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2326 if ln -s X conftestdata 2>/dev/null
2329 ac_cv_prog_LN_S="ln -s"
2334 LN_S="$ac_cv_prog_LN_S"
2335 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2336 echo "$ac_t""yes" 1>&6
2338 echo "$ac_t""no" 1>&6
2341 # Always use our own libtool.
2342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2344 # Check for any special flags to pass to ltconfig.
2346 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2347 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2348 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2349 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2350 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2352 # Some flags need to be propagated to the compiler or linker for good
2356 # Find out which ABI we are using.
2357 echo '#line 2358 "configure"' > conftest.$ac_ext
2358 if { (eval echo configure:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2359 case "`/usr/bin/file conftest.o`" in
2375 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2376 CFLAGS="$CFLAGS -belf"
2380 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2381 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2382 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2383 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2384 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2385 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2388 for ac_prog in mawk gawk nawk awk
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2393 echo "configure:2394: checking for $ac_word" >&5
2394 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 if test -n "$AWK"; then
2398 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2402 for ac_dir in $ac_dummy; do
2403 test -z "$ac_dir" && ac_dir=.
2404 if test -f $ac_dir/$ac_word; then
2405 ac_cv_prog_AWK="$ac_prog"
2412 AWK="$ac_cv_prog_AWK"
2413 if test -n "$AWK"; then
2414 echo "$ac_t""$AWK" 1>&6
2416 echo "$ac_t""no" 1>&6
2419 test -n "$AWK" && break
2422 # test for ln hardlink support
2423 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2424 echo "configure:2425: checking whether ln works" >&5
2425 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 rm -f conftest.src conftest.dst
2429 echo "conftest" > conftest.src
2430 if ln conftest.src conftest.dst 2>/dev/null
2432 ol_cv_prog_LN_H="ln"
2434 ol_cv_prog_LN_H="cp"
2436 rm -f conftest.src conftest.dst
2439 LN_H="$ol_cv_prog_LN_H"
2440 if test "$ol_cv_prog_LN_H" = "ln"; then
2441 echo "$ac_t""yes" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2447 echo "configure:2448: checking whether ln -s works" >&5
2448 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2452 if ln -s X conftestdata 2>/dev/null
2455 ac_cv_prog_LN_S="ln -s"
2460 LN_S="$ac_cv_prog_LN_S"
2461 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2462 echo "$ac_t""yes" 1>&6
2464 echo "$ac_t""no" 1>&6
2468 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2472 # Extract the first word of "sendmail", so it can be a program name with args.
2473 set dummy sendmail; ac_word=$2
2474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2475 echo "configure:2476: checking for $ac_word" >&5
2476 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2481 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2484 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2488 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2489 for ac_dir in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir=.
2491 if test -f $ac_dir/$ac_word; then
2492 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2497 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2501 SENDMAIL="$ac_cv_path_SENDMAIL"
2502 if test -n "$SENDMAIL"; then
2503 echo "$ac_t""$SENDMAIL" 1>&6
2505 echo "$ac_t""no" 1>&6
2508 # Extract the first word of "vi", so it can be a program name with args.
2509 set dummy vi; ac_word=$2
2510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_word" >&5
2512 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2517 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2520 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2524 ac_dummy="$PATH:/usr/ucb"
2525 for ac_dir in $ac_dummy; do
2526 test -z "$ac_dir" && ac_dir=.
2527 if test -f $ac_dir/$ac_word; then
2528 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2533 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2537 EDITOR="$ac_cv_path_EDITOR"
2538 if test -n "$EDITOR"; then
2539 echo "$ac_t""$EDITOR" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 # Extract the first word of "finger", so it can be a program name with args.
2545 set dummy finger; ac_word=$2
2546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_word" >&5
2548 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2553 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2556 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2560 ac_dummy="$PATH:/usr/ucb"
2561 for ac_dir in $ac_dummy; do
2562 test -z "$ac_dir" && ac_dir=.
2563 if test -f $ac_dir/$ac_word; then
2564 ac_cv_path_FINGER="$ac_dir/$ac_word"
2569 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2573 FINGER="$ac_cv_path_FINGER"
2574 if test -n "$FINGER"; then
2575 echo "$ac_t""$FINGER" 1>&6
2577 echo "$ac_t""no" 1>&6
2582 if test $ol_enable_modules != no ; then
2583 # Extract the first word of "glib-config", so it can be a program name with args.
2584 set dummy glib-config; ac_word=$2
2585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_word" >&5
2587 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 case "$GLIBCONFIG" in
2592 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2595 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2600 for ac_dir in $ac_dummy; do
2601 test -z "$ac_dir" && ac_dir=.
2602 if test -f $ac_dir/$ac_word; then
2603 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2611 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2612 if test -n "$GLIBCONFIG"; then
2613 echo "$ac_t""$GLIBCONFIG" 1>&6
2615 echo "$ac_t""no" 1>&6
2619 if test "no$GLIBCONFIG" = "no" ; then
2620 if test $ol_enable_modules = yes ; then
2621 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2625 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2626 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2627 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2634 if test $ol_enable_perl != no ; then
2635 # Extract the first word of "perl", so it can be a program name with args.
2636 set dummy perl; ac_word=$2
2637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_word" >&5
2639 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2644 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2647 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2652 for ac_dir in $ac_dummy; do
2653 test -z "$ac_dir" && ac_dir=.
2654 if test -f $ac_dir/$ac_word; then
2655 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2660 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2664 PERLBIN="$ac_cv_path_PERLBIN"
2665 if test -n "$PERLBIN"; then
2666 echo "$ac_t""$PERLBIN" 1>&6
2668 echo "$ac_t""no" 1>&6
2672 if test "no$PERLBIN" = "no" ; then
2673 if test $ol_enable_perl = yes ; then
2674 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2678 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2679 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2685 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2686 echo "configure:2687: checking how to run the C preprocessor" >&5
2687 # On Suns, sometimes $CPP names a directory.
2688 if test -n "$CPP" && test -d "$CPP"; then
2691 if test -z "$CPP"; then
2692 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 # This must be in double quotes, not single quotes, because CPP may get
2696 # substituted into the Makefile and "${CC-cc}" will confuse make.
2698 # On the NeXT, cc -E runs the code through the compiler's parser,
2699 # not just through cpp.
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2716 CPP="${CC-cc} -E -traditional-cpp"
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 CPP="${CC-cc} -nologo -E"
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2741 { (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2743 if test -z "$ac_err"; then
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2757 ac_cv_prog_CPP="$CPP"
2759 CPP="$ac_cv_prog_CPP"
2761 ac_cv_prog_CPP="$CPP"
2763 echo "$ac_t""$CPP" 1>&6
2766 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2767 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2769 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2770 echo "configure: warning: programs compiled here do run here..." 1>&2
2771 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2773 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2774 echo "configure: warning: programs compiled here do not run here..." 1>&2
2775 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2778 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2779 echo "configure:2780: checking for AIX" >&5
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 egrep "yes" >/dev/null 2>&1; then
2791 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2792 #define _ALL_SOURCE 1
2797 echo "$ac_t""no" 1>&6
2802 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2803 echo "configure:2804: checking for POSIXized ISC" >&5
2804 if test -d /etc/conf/kconfig.d &&
2805 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2807 echo "$ac_t""yes" 1>&6
2808 ISC=yes # If later tests want to check for ISC.
2809 cat >> confdefs.h <<\EOF
2810 #define _POSIX_SOURCE 1
2813 if test "$GCC" = yes; then
2819 echo "$ac_t""no" 1>&6
2823 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2825 echo "configure:2826: checking for minix/config.h" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <minix/config.h>
2834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2839 eval "ac_cv_header_$ac_safe=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_header_$ac_safe=no"
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""no" 1>&6
2857 if test "$MINIX" = yes; then
2858 cat >> confdefs.h <<\EOF
2859 #define _POSIX_SOURCE 1
2862 cat >> confdefs.h <<\EOF
2863 #define _POSIX_1_SOURCE 2
2866 cat >> confdefs.h <<\EOF
2873 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2874 echo "configure:2875: checking for be_app in -lbe" >&5
2875 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_save_LIBS="$LIBS"
2880 LIBS="-lbe -lroot -lnet $LIBS"
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 /* Override any gcc2 internal prototype to avoid an error. */
2885 /* We use char because int might match the return type of a gcc2
2886 builtin and then its argument prototype would still apply. */
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2895 eval "ac_cv_lib_$ac_lib_var=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 eval "ac_cv_lib_$ac_lib_var=no"
2903 LIBS="$ac_save_LIBS"
2906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2907 echo "$ac_t""yes" 1>&6
2908 LIBS="$LIBS -lbe -lroot -lnet"
2910 echo "$ac_t""no" 1>&6
2915 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2916 echo "configure:2917: checking for Cygwin environment" >&5
2917 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2927 #define __CYGWIN__ __CYGWIN32__
2932 if { (eval echo configure:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2945 echo "$ac_t""$ac_cv_cygwin" 1>&6
2947 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2948 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2949 echo "configure:2950: checking for mingw32 environment" >&5
2950 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2974 echo "$ac_t""$ac_cv_mingw32" 1>&6
2976 test "$ac_cv_mingw32" = yes && MINGW32=yes
2979 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2980 echo "configure:2981: checking for executable suffix" >&5
2981 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2988 echo 'int main () { return 0; }' > conftest.$ac_ext
2990 if { (eval echo configure:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2991 for file in conftest.*; do
2993 *.c | *.o | *.obj) ;;
2994 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2998 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3001 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3006 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3007 echo "$ac_t""${ac_cv_exeext}" 1>&6
3010 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3011 echo "configure:3012: checking for object suffix" >&5
3012 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3016 echo 'int i = 1;' > conftest.$ac_ext
3017 if { (eval echo configure:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 for ac_file in conftest.*; do
3021 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3025 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3030 echo "$ac_t""$ac_cv_objext" 1>&6
3031 OBJEXT=$ac_cv_objext
3032 ac_objext=$ac_cv_objext
3035 cat >> confdefs.h <<EOF
3036 #define EXEEXT "${EXEEXT}"
3043 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3044 echo "configure:3045: checking for ${CC-cc} option to accept ANSI C" >&5
3045 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 am_cv_prog_cc_stdc=no
3050 # Don't try gcc -ansi; that turns off useful extensions and
3051 # breaks some systems' header files.
3052 # AIX -qlanglvl=ansi
3053 # Ultrix and OSF/1 -std1
3054 # HP-UX -Aa -D_HPUX_SOURCE
3055 # SVR4 -Xc -D__EXTENSIONS__
3056 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3058 CC="$ac_save_CC $ac_arg"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3064 #include <sys/types.h>
3065 #include <sys/stat.h>
3066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3067 struct buf { int x; };
3068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3069 static char *e (p, i)
3075 static char *f (char * (*g) (char **, int), char **p, ...)
3080 s = g (p, va_arg (v,int));
3084 int test (int i, double x);
3085 struct s1 {int (*f) (int a);};
3086 struct s2 {int (*f) (double a);};
3087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099 am_cv_prog_cc_stdc="$ac_arg"; break
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3110 if test -z "$am_cv_prog_cc_stdc"; then
3111 echo "$ac_t""none needed" 1>&6
3113 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3115 case "x$am_cv_prog_cc_stdc" in
3117 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3120 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3121 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3125 # test for make depend flag
3128 if test -z "${MKDEP}"; then
3130 if test -z "${MKDEP_FLAGS}"; then
3131 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3132 echo "configure:3133: checking for ${OL_MKDEP} depend flag" >&5
3133 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3138 for flag in "-M" "-xM"; do
3139 cat > conftest.c <<EOF
3142 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3143 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3146 OL_MKDEP_FLAGS="$flag"
3154 echo "$ac_t""$ol_cv_mkdep" 1>&6
3157 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3162 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3167 if test "${ol_cv_mkdep}" = no ; then
3168 # this will soon become an error
3169 echo "configure: warning: do not know how to generate dependencies" 1>&2
3174 echo $ac_n "checking for socket""... $ac_c" 1>&6
3175 echo "configure:3176: checking for socket" >&5
3176 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* System header to define __stub macros and hopefully few prototypes,
3183 which can conflict with char socket(); below. */
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3192 /* The GNU C library defines this for functions which it implements
3193 to always fail with ENOSYS. Some functions are actually named
3194 something starting with __ and the normal name is an alias. */
3195 #if defined (__stub_socket) || defined (__stub___socket)
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3205 eval "ac_cv_func_socket=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 eval "ac_cv_func_socket=no"
3215 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3219 echo "$ac_t""no" 1>&6
3221 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3222 echo "configure:3223: checking for main in -lsocket" >&5
3223 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 ac_save_LIBS="$LIBS"
3228 LIBS="-lsocket $LIBS"
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3237 if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239 eval "ac_cv_lib_$ac_lib_var=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3244 eval "ac_cv_lib_$ac_lib_var=no"
3247 LIBS="$ac_save_LIBS"
3250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3254 cat >> confdefs.h <<EOF
3255 #define $ac_tr_lib 1
3258 LIBS="-lsocket $LIBS"
3261 echo "$ac_t""no" 1>&6
3264 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3265 echo "configure:3266: checking for main in -lnet" >&5
3266 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 ac_save_LIBS="$LIBS"
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 eval "ac_cv_lib_$ac_lib_var=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_lib_$ac_lib_var=no"
3290 LIBS="$ac_save_LIBS"
3293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3294 echo "$ac_t""yes" 1>&6
3295 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3297 cat >> confdefs.h <<EOF
3298 #define $ac_tr_lib 1
3304 echo "$ac_t""no" 1>&6
3307 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3308 echo "configure:3309: checking for socket in -lnet" >&5
3309 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 ac_save_LIBS="$LIBS"
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3327 if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3329 eval "ac_cv_lib_$ac_lib_var=yes"
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3334 eval "ac_cv_lib_$ac_lib_var=no"
3337 LIBS="$ac_save_LIBS"
3340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3341 echo "$ac_t""yes" 1>&6
3342 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3344 cat >> confdefs.h <<EOF
3345 #define $ac_tr_lib 1
3351 echo "$ac_t""no" 1>&6
3354 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3355 echo "configure:3356: checking for main in -lnsl_s" >&5
3356 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 ac_save_LIBS="$LIBS"
3361 LIBS="-lnsl_s $LIBS"
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 eval "ac_cv_lib_$ac_lib_var=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_lib_$ac_lib_var=no"
3380 LIBS="$ac_save_LIBS"
3383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3387 cat >> confdefs.h <<EOF
3388 #define $ac_tr_lib 1
3391 LIBS="-lnsl_s $LIBS"
3394 echo "$ac_t""no" 1>&6
3397 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3398 echo "configure:3399: checking for main in -lnsl" >&5
3399 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 ac_save_LIBS="$LIBS"
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_lib_$ac_lib_var=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_lib_$ac_lib_var=no"
3423 LIBS="$ac_save_LIBS"
3426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3430 cat >> confdefs.h <<EOF
3431 #define $ac_tr_lib 1
3437 echo "$ac_t""no" 1>&6
3440 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3441 echo "configure:3442: checking for socket in -linet" >&5
3442 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 ac_save_LIBS="$LIBS"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3462 eval "ac_cv_lib_$ac_lib_var=yes"
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3467 eval "ac_cv_lib_$ac_lib_var=no"
3470 LIBS="$ac_save_LIBS"
3473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3477 cat >> confdefs.h <<EOF
3478 #define $ac_tr_lib 1
3484 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3488 echo "configure:3489: checking for main in -lgen" >&5
3489 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 ac_save_LIBS="$LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 eval "ac_cv_lib_$ac_lib_var=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_lib_$ac_lib_var=no"
3513 LIBS="$ac_save_LIBS"
3516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3520 cat >> confdefs.h <<EOF
3521 #define $ac_tr_lib 1
3527 echo "$ac_t""no" 1>&6
3534 for ac_func in res_search
3536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3537 echo "configure:3538: checking for $ac_func" >&5
3538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 /* System header to define __stub macros and hopefully few prototypes,
3545 which can conflict with char $ac_func(); below. */
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3554 /* The GNU C library defines this for functions which it implements
3555 to always fail with ENOSYS. Some functions are actually named
3556 something starting with __ and the normal name is an alias. */
3557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3567 eval "ac_cv_func_$ac_func=yes"
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 eval "ac_cv_func_$ac_func=no"
3577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3580 cat >> confdefs.h <<EOF
3581 #define $ac_tr_func 1
3585 echo "$ac_t""no" 1>&6
3589 if test $ac_cv_func_res_search = "no" ; then
3590 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3591 echo "configure:3592: checking for res_search in -lbind" >&5
3592 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 ac_save_LIBS="$LIBS"
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 /* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3612 eval "ac_cv_lib_$ac_lib_var=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 eval "ac_cv_lib_$ac_lib_var=no"
3620 LIBS="$ac_save_LIBS"
3623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3626 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3627 cat >> confdefs.h <<EOF
3628 #define $ac_tr_lib 1
3634 echo "$ac_t""no" 1>&6
3637 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3638 cat >> confdefs.h <<\EOF
3639 #define HAVE_RES_SEARCH 1
3643 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3644 echo "configure:3645: checking for res_search in -lresolv" >&5
3645 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 ac_save_LIBS="$LIBS"
3650 LIBS="-lresolv $LIBS"
3651 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_lib_$ac_lib_var=no"
3673 LIBS="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3680 cat >> confdefs.h <<EOF
3681 #define $ac_tr_lib 1
3684 LIBS="-lresolv $LIBS"
3687 echo "$ac_t""no" 1>&6
3690 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3691 cat >> confdefs.h <<\EOF
3692 #define HAVE_RES_SEARCH 1
3699 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3700 echo "configure:3701: checking for sigset in -lV3" >&5
3701 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 ac_save_LIBS="$LIBS"
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3719 if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3721 eval "ac_cv_lib_$ac_lib_var=yes"
3723 echo "configure: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3726 eval "ac_cv_lib_$ac_lib_var=no"
3729 LIBS="$ac_save_LIBS"
3732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3733 echo "$ac_t""yes" 1>&6
3734 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3735 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3736 cat >> confdefs.h <<EOF
3737 #define $ac_tr_lib 1
3743 echo "$ac_t""no" 1>&6
3747 for ac_hdr in regex.h
3749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3751 echo "configure:3752: checking for $ac_hdr" >&5
3752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3761 { (eval echo configure:3762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3763 if test -z "$ac_err"; then
3765 eval "ac_cv_header_$ac_safe=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_header_$ac_safe=no"
3775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3776 echo "$ac_t""yes" 1>&6
3777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3778 cat >> confdefs.h <<EOF
3779 #define $ac_tr_hdr 1
3783 echo "$ac_t""no" 1>&6
3787 if test "$ac_cv_header_regex_h" != yes ; then
3788 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3790 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3791 echo "configure:3792: checking for regfree" >&5
3792 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* System header to define __stub macros and hopefully few prototypes,
3799 which can conflict with char regfree(); below. */
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_regfree) || defined (__stub___regfree)
3819 if { (eval echo configure:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3821 eval "ac_cv_func_regfree=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 eval "ac_cv_func_regfree=no"
3831 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3835 echo "$ac_t""no" 1>&6
3836 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3840 echo $ac_n "checking for select""... $ac_c" 1>&6
3841 echo "configure:3842: checking for select" >&5
3842 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3848 /* System header to define __stub macros and hopefully few prototypes,
3849 which can conflict with char select(); below. */
3851 /* Override any gcc2 internal prototype to avoid an error. */
3852 /* We use char because int might match the return type of a gcc2
3853 builtin and then its argument prototype would still apply. */
3858 /* The GNU C library defines this for functions which it implements
3859 to always fail with ENOSYS. Some functions are actually named
3860 something starting with __ and the normal name is an alias. */
3861 #if defined (__stub_select) || defined (__stub___select)
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3871 eval "ac_cv_func_select=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3876 eval "ac_cv_func_select=no"
3881 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3885 echo "$ac_t""no" 1>&6
3886 { echo "configure: error: select() required." 1>&2; exit 1; }
3890 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3891 echo "configure:3892: checking types of arguments for select()" >&5
3892 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3902 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3903 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #ifdef HAVE_SYS_TYPES_H
3908 #include <sys/types.h>
3910 #ifdef HAVE_SYS_TIME_H
3911 #include <sys/time.h>
3913 #ifdef HAVE_SYS_SELECT_H
3914 #include <sys/select.h>
3916 #ifdef HAVE_SYS_SOCKET_H
3917 #include <sys/socket.h>
3919 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);
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 ac_not_found=no ; break 3
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3943 if test "$ac_not_found" = yes; then
3944 ac_cv_func_select_arg1=int
3945 ac_cv_func_select_arg234='int *'
3946 ac_cv_func_select_arg5='struct timeval *'
3948 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3949 cat >> confdefs.h <<EOF
3950 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3953 cat >> confdefs.h <<EOF
3954 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3957 cat >> confdefs.h <<EOF
3958 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3965 if test $ol_enable_ldapd != no ; then
3966 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3968 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3969 echo "configure:3970: checking for main in -lxtpp" >&5
3970 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 ac_save_LIBS="$LIBS"
3975 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 eval "ac_cv_lib_$ac_lib_var=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 eval "ac_cv_lib_$ac_lib_var=no"
3994 LIBS="$ac_save_LIBS"
3997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
4001 cat >> confdefs.h <<\EOF
4005 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4008 echo "$ac_t""no" 1>&6
4012 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4013 echo "configure:4014: checking for main in -ldsap" >&5
4014 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 ac_save_LIBS="$LIBS"
4019 LIBS="-ldsap -lisode $LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 eval "ac_cv_lib_$ac_lib_var=yes"
4032 echo "configure: failed program was:" >&5
4033 cat conftest.$ac_ext >&5
4035 eval "ac_cv_lib_$ac_lib_var=no"
4038 LIBS="$ac_save_LIBS"
4041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4045 cat >> confdefs.h <<\EOF
4049 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4052 echo "$ac_t""no" 1>&6
4056 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4057 echo "configure:4058: checking for main in -lisode" >&5
4058 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 ac_save_LIBS="$LIBS"
4063 LIBS="-lisode $LIBS"
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_ISODE 1
4093 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4096 echo "$ac_t""no" 1>&6
4102 if test $ol_link_isode != no; then
4103 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4104 echo "configure:4105: checking for main in -lpp" >&5
4105 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 ac_save_LIBS="$LIBS"
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4121 eval "ac_cv_lib_$ac_lib_var=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 eval "ac_cv_lib_$ac_lib_var=no"
4129 LIBS="$ac_save_LIBS"
4132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4135 cat >> confdefs.h <<\EOF
4139 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4142 echo "$ac_t""no" 1>&6
4147 # Extract the first word of "pepsy", so it can be a program name with args.
4148 set dummy pepsy; ac_word=$2
4149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4150 echo "configure:4151: checking for $ac_word" >&5
4151 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4156 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4159 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4164 for ac_dir in $ac_dummy; do
4165 test -z "$ac_dir" && ac_dir=.
4166 if test -f $ac_dir/$ac_word; then
4167 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4175 PEPSY="$ac_cv_path_PEPSY"
4176 if test -n "$PEPSY"; then
4177 echo "$ac_t""$PEPSY" 1>&6
4179 echo "$ac_t""no" 1>&6
4186 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4187 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_hdr" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_hdr 1
4223 echo "$ac_t""no" 1>&6
4228 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4229 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4230 echo "configure:4231: checking for main in -lkrb4" >&5
4231 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_save_LIBS="$LIBS"
4236 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 eval "ac_cv_lib_$ac_lib_var=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_lib_$ac_lib_var=no"
4255 LIBS="$ac_save_LIBS"
4258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4259 echo "$ac_t""yes" 1>&6
4262 echo "$ac_t""no" 1>&6
4267 if test $have_k5 = yes ; then
4268 ol_with_kerberos=found
4269 ol_link_kerberos=yes
4271 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4273 LIBS="$KRB_LIBS $LIBS"
4275 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4276 echo "configure:4277: checking for des_debug in Kerberos libraries" >&5
4277 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4282 LIBS="$KRB_LIBS $LIBS"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4287 #include <kerberosIV/krb.h>
4288 #include <kerberosIV/des.h>
4289 extern int des_debug;
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 ol_cv_var_des_debug=yes
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 ol_cv_var_des_debug=no
4311 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4313 if test $ol_cv_var_des_debug = yes ; then
4314 cat >> confdefs.h <<\EOF
4315 #define HAVE_DES_DEBUG 1
4325 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4326 for ac_hdr in krb.h des.h
4328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_hdr" >&5
4331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4340 { (eval echo configure:4341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4342 if test -z "$ac_err"; then
4344 eval "ac_cv_header_$ac_safe=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_header_$ac_safe=no"
4354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_hdr 1
4362 echo "$ac_t""no" 1>&6
4367 if test $ac_cv_header_krb_h = yes ; then
4368 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4369 echo "configure:4370: checking for main in -lkrb" >&5
4370 ac_lib_var=`echo krb'_'main | 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="-lkrb -ldes $LIBS"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4384 if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386 eval "ac_cv_lib_$ac_lib_var=yes"
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 eval "ac_cv_lib_$ac_lib_var=no"
4394 LIBS="$ac_save_LIBS"
4397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4398 echo "$ac_t""yes" 1>&6
4401 echo "$ac_t""no" 1>&6
4406 if test $have_k4 = yes ; then
4407 ol_with_kerberos=found
4408 ol_link_kerberos=yes
4410 KRB_LIBS="-lkrb -ldes"
4415 if test $ol_link_kerberos = yes ; then
4416 cat >> confdefs.h <<\EOF
4417 #define HAVE_KERBEROS 1
4423 if test $ol_with_tls != no ; then
4427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_hdr" >&5
4430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 cat > conftest.$ac_ext <<EOF
4434 #line 4435 "configure"
4435 #include "confdefs.h"
4438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4439 { (eval echo configure:4440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4441 if test -z "$ac_err"; then
4443 eval "ac_cv_header_$ac_safe=yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4449 eval "ac_cv_header_$ac_safe=no"
4453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4456 cat >> confdefs.h <<EOF
4457 #define $ac_tr_hdr 1
4461 echo "$ac_t""no" 1>&6
4466 if test $ac_cv_header_ssl_h = yes ; then
4467 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4468 echo "configure:4469: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4469 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 ac_save_LIBS="$LIBS"
4474 LIBS="-lssl -lcrypto $LIBS"
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 /* Override any gcc2 internal prototype to avoid an error. */
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4481 char SSLeay_add_ssl_algorithms();
4484 SSLeay_add_ssl_algorithms()
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4489 eval "ac_cv_lib_$ac_lib_var=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_lib_$ac_lib_var=no"
4497 LIBS="$ac_save_LIBS"
4500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4505 echo "$ac_t""no" 1>&6
4510 if test $have_ssleay = no ; then
4511 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4512 echo "configure:4513: checking for ssl3_accept in -lssl" >&5
4513 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 ac_save_LIBS="$LIBS"
4518 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 eval "ac_cv_lib_$ac_lib_var=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 eval "ac_cv_lib_$ac_lib_var=no"
4541 LIBS="$ac_save_LIBS"
4544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4549 echo "$ac_t""no" 1>&6
4555 if test $have_ssleay = yes ; then
4559 cat >> confdefs.h <<\EOF
4560 #define HAVE_SSLEAY 1
4564 if test $need_rsaref = yes; then
4565 cat >> confdefs.h <<\EOF
4566 #define HAVE_RSAREF 1
4570 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4572 TLS_LIBS="-lssl -lcrypto"
4578 if test $ol_link_tls = yes ; then
4579 cat >> confdefs.h <<\EOF
4587 gethostbyname_r gethostbyaddr_r \
4590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_func" >&5
4592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4621 eval "ac_cv_func_$ac_func=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4626 eval "ac_cv_func_$ac_func=no"
4631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_func 1
4639 echo "$ac_t""no" 1>&6
4644 if test "$ac_cv_func_ctime_r" = no ; then
4645 ol_cv_func_ctime_r_nargs=0
4647 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4648 echo "configure:4649: checking number of arguments of ctime_r" >&5
4649 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 ol_cv_func_ctime_r_nargs=3
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4672 time_t ti; char *buffer; ctime_r(&ti,buffer);
4675 if { (eval echo configure:4676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4677 ol_cv_func_ctime_r_nargs=2
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 ol_cv_func_ctime_r_nargs=0
4689 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4690 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4691 cat >> confdefs.h <<EOF
4692 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4699 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4700 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4701 echo "configure:4702: checking number of arguments of gethostbyname_r" >&5
4702 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 #include <sys/types.h>
4709 #include <sys/socket.h>
4710 #include <netinet/in.h>
4712 #define BUFSIZE (sizeof(struct hostent)+10)
4714 struct hostent hent; char buffer[BUFSIZE];
4715 int bufsize=BUFSIZE;int h_errno;
4716 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4717 buffer, bufsize, &h_errno);
4720 if { (eval echo configure:4721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4722 ol_cv_func_gethostbyname_r_nargs=5
4724 echo "configure: failed program was:" >&5
4725 cat conftest.$ac_ext >&5
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <sys/types.h>
4731 #include <sys/socket.h>
4732 #include <netinet/in.h>
4734 #define BUFSIZE (sizeof(struct hostent)+10)
4736 struct hostent hent;struct hostent *rhent;
4737 char buffer[BUFSIZE];
4738 int bufsize=BUFSIZE;int h_errno;
4739 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4743 if { (eval echo configure:4744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4745 ol_cv_func_gethostbyname_r_nargs=6
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 ol_cv_func_gethostbyname_r_nargs=0
4757 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4758 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4759 cat >> confdefs.h <<EOF
4760 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4766 ol_cv_func_gethostbyname_r_nargs=0
4769 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4770 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4771 echo "configure:4772: checking number of arguments of gethostbyaddr_r" >&5
4772 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 #include <sys/types.h>
4779 #include <sys/socket.h>
4780 #include <netinet/in.h>
4782 #define BUFSIZE (sizeof(struct hostent)+10)
4784 struct hostent hent; char buffer[BUFSIZE];
4786 size_t alen=sizeof(struct in_addr);
4787 int bufsize=BUFSIZE;int h_errno;
4788 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4789 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4792 if { (eval echo configure:4793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4794 ol_cv_func_gethostbyaddr_r_nargs=7
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <sys/types.h>
4803 #include <sys/socket.h>
4804 #include <netinet/in.h>
4806 #define BUFSIZE (sizeof(struct hostent)+10)
4808 struct hostent hent;
4809 struct hostent *rhent; char buffer[BUFSIZE];
4811 size_t alen=sizeof(struct in_addr);
4812 int bufsize=BUFSIZE;int h_errno;
4813 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4814 alen, AF_INET, &hent, buffer, bufsize,
4818 if { (eval echo configure:4819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4820 ol_cv_func_gethostbyaddr_r_nargs=8
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4825 ol_cv_func_gethostbyaddr_r_nargs=0
4832 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4833 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4834 cat >> confdefs.h <<EOF
4835 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4841 ol_cv_func_gethostbyaddr_r_nargs=0
4844 if test "$ac_cv_func_ctime_r" = yes \
4845 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4846 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4847 -a "$ac_cv_func_gethostbyname_r" = yes \
4848 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4849 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4850 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4851 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4852 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4855 cat >> confdefs.h <<\EOF
4856 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4862 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4863 -o $ol_with_threads = posix ; then
4865 for ac_hdr in pthread.h sched.h
4867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4869 echo "configure:4870: checking for $ac_hdr" >&5
4870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4879 { (eval echo configure:4880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4881 if test -z "$ac_err"; then
4883 eval "ac_cv_header_$ac_safe=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_header_$ac_safe=no"
4893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_hdr 1
4901 echo "$ac_t""no" 1>&6
4906 if test $ac_cv_header_pthread_h = yes ; then
4907 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4908 echo "configure:4909: checking POSIX thread version" >&5
4909 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4917 # include <pthread.h>
4918 /* this check could be improved */
4919 # ifdef PTHREAD_ONCE_INIT
4920 pthread_version_final
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925 egrep "pthread_version_final" >/dev/null 2>&1; then
4927 ol_pthread_final=yes
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4939 # include <pthread.h>
4940 /* this check could be improved */
4941 # ifdef pthread_once_init
4942 pthread_version_draft4
4946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4947 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4949 ol_pthread_draft4=yes
4952 ol_pthread_draft4=no
4957 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4958 ol_cv_pthread_version=final
4959 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4960 ol_cv_pthread_version=draft4
4962 ol_cv_pthread_version=unknown
4967 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4970 if test $ol_cv_pthread_version = final ; then
4971 cat >> confdefs.h <<\EOF
4972 #define HAVE_PTHREADS_FINAL 1
4975 elif test $ol_cv_pthread_version = draft4 ; then
4976 cat >> confdefs.h <<\EOF
4977 #define HAVE_PTHREADS_D4 1
4981 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4984 # consider threads found
4985 ol_with_threads=found
4988 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4989 echo "configure:4990: checking for LinuxThreads pthread.h" >&5
4990 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 #include <pthread.h>
4998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4999 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5001 ol_cv_header_linux_threads=yes
5004 ol_cv_header_linux_threads=no
5011 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5012 if test $ol_cv_header_linux_threads = yes; then
5013 cat >> confdefs.h <<\EOF
5014 #define HAVE_LINUX_THREADS 1
5021 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5022 echo "configure:5023: checking for pthread_create in default libraries" >&5
5023 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5027 if test "$cross_compiling" = yes; then
5028 ol_cv_pthread_create=yes
5030 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5034 #include <pthread.h>
5036 #define NULL (void*)0
5039 static void *task(p)
5042 return (void *) (p == NULL);
5045 int main(argc, argv)
5052 /* make sure pthread_create() isn't just a stub */
5053 #if HAVE_PTHREADS_D4
5054 status = pthread_create(&t, pthread_attr_default, task, NULL);
5056 status = pthread_create(&t, NULL, task, NULL);
5059 if( status ) return status;
5061 /* make sure pthread_detach() isn't just a stub */
5062 #if HAVE_PTHREADS_D4
5063 status = pthread_detach( &t );
5065 status = pthread_detach( t );
5068 if( status ) return status;
5074 if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5076 ol_cv_pthread_create=yes
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 ol_cv_pthread_create=no
5088 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5090 if test $ol_cv_pthread_create != no ; then
5091 ol_link_threads=posix
5095 # Pthread try link: -mt (ol_cv_pthread_mt)
5096 if test "$ol_link_threads" = no ; then
5098 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5099 echo "configure:5100: checking for pthread link with -mt" >&5
5100 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5112 #include <pthread.h>
5114 #define NULL (void*)0
5121 #if HAVE_PTHREADS_D4
5122 pthread_create(&t, pthread_attr_default, NULL, NULL);
5123 pthread_detach( &t );
5125 pthread_create(&t, NULL, NULL, NULL);
5126 pthread_detach( t );
5128 #ifdef HAVE_LINUX_THREADS
5129 pthread_kill_other_threads_np();
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5136 ol_cv_pthread_mt=yes
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5150 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5152 if test $ol_cv_pthread_mt = yes ; then
5153 ol_link_pthreads="-mt"
5154 ol_link_threads=posix
5158 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5159 if test "$ol_link_threads" = no ; then
5161 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5162 echo "configure:5163: checking for pthread link with -kthread" >&5
5163 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5169 LIBS="-kthread $LIBS"
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5175 #include <pthread.h>
5177 #define NULL (void*)0
5184 #if HAVE_PTHREADS_D4
5185 pthread_create(&t, pthread_attr_default, NULL, NULL);
5186 pthread_detach( &t );
5188 pthread_create(&t, NULL, NULL, NULL);
5189 pthread_detach( t );
5191 #ifdef HAVE_LINUX_THREADS
5192 pthread_kill_other_threads_np();
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5199 ol_cv_pthread_kthread=yes
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5204 ol_cv_pthread_kthread=no
5213 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5215 if test $ol_cv_pthread_kthread = yes ; then
5216 ol_link_pthreads="-kthread"
5217 ol_link_threads=posix
5221 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5222 if test "$ol_link_threads" = no ; then
5224 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5225 echo "configure:5226: checking for pthread link with -pthread" >&5
5226 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5232 LIBS="-pthread $LIBS"
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5238 #include <pthread.h>
5240 #define NULL (void*)0
5247 #if HAVE_PTHREADS_D4
5248 pthread_create(&t, pthread_attr_default, NULL, NULL);
5249 pthread_detach( &t );
5251 pthread_create(&t, NULL, NULL, NULL);
5252 pthread_detach( t );
5254 #ifdef HAVE_LINUX_THREADS
5255 pthread_kill_other_threads_np();
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 ol_cv_pthread_pthread=yes
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 ol_cv_pthread_pthread=no
5276 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5278 if test $ol_cv_pthread_pthread = yes ; then
5279 ol_link_pthreads="-pthread"
5280 ol_link_threads=posix
5284 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5285 if test "$ol_link_threads" = no ; then
5287 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5288 echo "configure:5289: checking for pthread link with -pthreads" >&5
5289 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5290 echo $ac_n "(cached) $ac_c" 1>&6
5295 LIBS="-pthreads $LIBS"
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5301 #include <pthread.h>
5303 #define NULL (void*)0
5310 #if HAVE_PTHREADS_D4
5311 pthread_create(&t, pthread_attr_default, NULL, NULL);
5312 pthread_detach( &t );
5314 pthread_create(&t, NULL, NULL, NULL);
5315 pthread_detach( t );
5317 #ifdef HAVE_LINUX_THREADS
5318 pthread_kill_other_threads_np();
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 ol_cv_pthread_pthreads=yes
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 ol_cv_pthread_pthreads=no
5339 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5341 if test $ol_cv_pthread_pthreads = yes ; then
5342 ol_link_pthreads="-pthreads"
5343 ol_link_threads=posix
5347 # Pthread try link: -thread (ol_cv_pthread_thread)
5348 if test "$ol_link_threads" = no ; then
5350 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5351 echo "configure:5352: checking for pthread link with -thread" >&5
5352 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5358 LIBS="-thread $LIBS"
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5364 #include <pthread.h>
5366 #define NULL (void*)0
5373 #if HAVE_PTHREADS_D4
5374 pthread_create(&t, pthread_attr_default, NULL, NULL);
5375 pthread_detach( &t );
5377 pthread_create(&t, NULL, NULL, NULL);
5378 pthread_detach( t );
5380 #ifdef HAVE_LINUX_THREADS
5381 pthread_kill_other_threads_np();
5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5388 ol_cv_pthread_thread=yes
5390 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5393 ol_cv_pthread_thread=no
5402 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5404 if test $ol_cv_pthread_thread = yes ; then
5405 ol_link_pthreads="-thread"
5406 ol_link_threads=posix
5411 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5412 if test "$ol_link_threads" = no ; then
5413 # try -lpthread -lmach -lexc -lc_r
5414 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5415 echo "configure:5416: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5416 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5422 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5428 #include <pthread.h>
5430 #define NULL (void*)0
5437 #if HAVE_PTHREADS_D4
5438 pthread_create(&t, pthread_attr_default, NULL, NULL);
5439 pthread_detach( &t );
5441 pthread_create(&t, NULL, NULL, NULL);
5442 pthread_detach( t );
5444 #ifdef HAVE_LINUX_THREADS
5445 pthread_kill_other_threads_np();
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5452 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5466 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5468 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5469 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5470 ol_link_threads=posix
5474 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5475 if test "$ol_link_threads" = no ; then
5476 # try -lpthread -lmach -lexc
5477 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5478 echo "configure:5479: checking for pthread link with -lpthread -lmach -lexc" >&5
5479 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5485 LIBS="-lpthread -lmach -lexc $LIBS"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5491 #include <pthread.h>
5493 #define NULL (void*)0
5500 #if HAVE_PTHREADS_D4
5501 pthread_create(&t, pthread_attr_default, NULL, NULL);
5502 pthread_detach( &t );
5504 pthread_create(&t, NULL, NULL, NULL);
5505 pthread_detach( t );
5507 #ifdef HAVE_LINUX_THREADS
5508 pthread_kill_other_threads_np();
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 ol_cv_pthread_lpthread_lmach_lexc=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 ol_cv_pthread_lpthread_lmach_lexc=no
5529 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5531 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5532 ol_link_pthreads="-lpthread -lmach -lexc"
5533 ol_link_threads=posix
5538 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5539 if test "$ol_link_threads" = no ; then
5540 # try -lpthread -Wl,-woff,85
5541 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5542 echo "configure:5543: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5543 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5549 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5555 #include <pthread.h>
5557 #define NULL (void*)0
5564 #if HAVE_PTHREADS_D4
5565 pthread_create(&t, pthread_attr_default, NULL, NULL);
5566 pthread_detach( &t );
5568 pthread_create(&t, NULL, NULL, NULL);
5569 pthread_detach( t );
5571 #ifdef HAVE_LINUX_THREADS
5572 pthread_kill_other_threads_np();
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 ol_cv_pthread_lib_lpthread_woff=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 ol_cv_pthread_lib_lpthread_woff=no
5593 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5595 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5596 ol_link_pthreads="-lpthread -Wl,-woff,85"
5597 ol_link_threads=posix
5602 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5603 if test "$ol_link_threads" = no ; then
5605 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5606 echo "configure:5607: checking for pthread link with -lpthread" >&5
5607 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5613 LIBS="-lpthread $LIBS"
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5619 #include <pthread.h>
5621 #define NULL (void*)0
5628 #if HAVE_PTHREADS_D4
5629 pthread_create(&t, pthread_attr_default, NULL, NULL);
5630 pthread_detach( &t );
5632 pthread_create(&t, NULL, NULL, NULL);
5633 pthread_detach( t );
5635 #ifdef HAVE_LINUX_THREADS
5636 pthread_kill_other_threads_np();
5641 if { (eval echo configure:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5643 ol_cv_pthread_lpthread=yes
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5648 ol_cv_pthread_lpthread=no
5657 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5659 if test $ol_cv_pthread_lpthread = yes ; then
5660 ol_link_pthreads="-lpthread"
5661 ol_link_threads=posix
5665 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5666 if test "$ol_link_threads" = no ; then
5668 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5669 echo "configure:5670: checking for pthread link with -lc_r" >&5
5670 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5682 #include <pthread.h>
5684 #define NULL (void*)0
5691 #if HAVE_PTHREADS_D4
5692 pthread_create(&t, pthread_attr_default, NULL, NULL);
5693 pthread_detach( &t );
5695 pthread_create(&t, NULL, NULL, NULL);
5696 pthread_detach( t );
5698 #ifdef HAVE_LINUX_THREADS
5699 pthread_kill_other_threads_np();
5704 if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 ol_cv_pthread_lc_r=yes
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 ol_cv_pthread_lc_r=no
5720 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5722 if test $ol_cv_pthread_lc_r = yes ; then
5723 ol_link_pthreads="-lc_r"
5724 ol_link_threads=posix
5729 # Pthread try link: -threads (ol_cv_pthread_threads)
5730 if test "$ol_link_threads" = no ; then
5732 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5733 echo "configure:5734: checking for pthread link with -threads" >&5
5734 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5740 LIBS="-threads $LIBS"
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5746 #include <pthread.h>
5748 #define NULL (void*)0
5755 #if HAVE_PTHREADS_D4
5756 pthread_create(&t, pthread_attr_default, NULL, NULL);
5757 pthread_detach( &t );
5759 pthread_create(&t, NULL, NULL, NULL);
5760 pthread_detach( t );
5762 #ifdef HAVE_LINUX_THREADS
5763 pthread_kill_other_threads_np();
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770 ol_cv_pthread_threads=yes
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 ol_cv_pthread_threads=no
5784 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5786 if test $ol_cv_pthread_threads = yes ; then
5787 ol_link_pthreads="-threads"
5788 ol_link_threads=posix
5793 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5794 if test "$ol_link_threads" = no ; then
5795 # try -lpthreads -lmach -lexc -lc_r
5796 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5797 echo "configure:5798: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5798 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5804 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5810 #include <pthread.h>
5812 #define NULL (void*)0
5819 #if HAVE_PTHREADS_D4
5820 pthread_create(&t, pthread_attr_default, NULL, NULL);
5821 pthread_detach( &t );
5823 pthread_create(&t, NULL, NULL, NULL);
5824 pthread_detach( t );
5826 #ifdef HAVE_LINUX_THREADS
5827 pthread_kill_other_threads_np();
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5848 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5850 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5851 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5852 ol_link_threads=posix
5856 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5857 if test "$ol_link_threads" = no ; then
5858 # try -lpthreads -lmach -lexc
5859 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5860 echo "configure:5861: checking for pthread link with -lpthreads -lmach -lexc" >&5
5861 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5867 LIBS="-lpthreads -lmach -lexc $LIBS"
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5873 #include <pthread.h>
5875 #define NULL (void*)0
5882 #if HAVE_PTHREADS_D4
5883 pthread_create(&t, pthread_attr_default, NULL, NULL);
5884 pthread_detach( &t );
5886 pthread_create(&t, NULL, NULL, NULL);
5887 pthread_detach( t );
5889 #ifdef HAVE_LINUX_THREADS
5890 pthread_kill_other_threads_np();
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897 ol_cv_pthread_lpthreads_lmach_lexc=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 ol_cv_pthread_lpthreads_lmach_lexc=no
5911 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5913 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5914 ol_link_pthreads="-lpthreads -lmach -lexc"
5915 ol_link_threads=posix
5919 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5920 if test "$ol_link_threads" = no ; then
5921 # try -lpthreads -lexc
5922 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5923 echo "configure:5924: checking for pthread link with -lpthreads -lexc" >&5
5924 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5925 echo $ac_n "(cached) $ac_c" 1>&6
5930 LIBS="-lpthreads -lexc $LIBS"
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5936 #include <pthread.h>
5938 #define NULL (void*)0
5945 #if HAVE_PTHREADS_D4
5946 pthread_create(&t, pthread_attr_default, NULL, NULL);
5947 pthread_detach( &t );
5949 pthread_create(&t, NULL, NULL, NULL);
5950 pthread_detach( t );
5952 #ifdef HAVE_LINUX_THREADS
5953 pthread_kill_other_threads_np();
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 ol_cv_pthread_lpthreads_lexc=yes
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 ol_cv_pthread_lpthreads_lexc=no
5974 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5976 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5977 ol_link_pthreads="-lpthreads -lexc"
5978 ol_link_threads=posix
5983 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5984 if test "$ol_link_threads" = no ; then
5986 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5987 echo "configure:5988: checking for pthread link with -lpthreads" >&5
5988 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5994 LIBS="-lpthreads $LIBS"
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
6000 #include <pthread.h>
6002 #define NULL (void*)0
6009 #if HAVE_PTHREADS_D4
6010 pthread_create(&t, pthread_attr_default, NULL, NULL);
6011 pthread_detach( &t );
6013 pthread_create(&t, NULL, NULL, NULL);
6014 pthread_detach( t );
6016 #ifdef HAVE_LINUX_THREADS
6017 pthread_kill_other_threads_np();
6022 if { (eval echo configure:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6024 ol_cv_pthread_lib_lpthreads=yes
6026 echo "configure: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 ol_cv_pthread_lib_lpthreads=no
6038 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6040 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6041 ol_link_pthreads="-lpthreads"
6042 ol_link_threads=posix
6047 if test $ol_link_threads != no ; then
6048 cat >> confdefs.h <<\EOF
6049 #define HAVE_PTHREADS 1
6053 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6055 save_CPPFLAGS="$CPPFLAGS"
6057 LIBS="$LTHREAD_LIBS $LIBS"
6059 for ac_func in sched_yield pthread_yield
6061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6062 echo "configure:6063: checking for $ac_func" >&5
6063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6064 echo $ac_n "(cached) $ac_c" 1>&6
6066 cat > conftest.$ac_ext <<EOF
6067 #line 6068 "configure"
6068 #include "confdefs.h"
6069 /* System header to define __stub macros and hopefully few prototypes,
6070 which can conflict with char $ac_func(); below. */
6072 /* Override any gcc2 internal prototype to avoid an error. */
6073 /* We use char because int might match the return type of a gcc2
6074 builtin and then its argument prototype would still apply. */
6079 /* The GNU C library defines this for functions which it implements
6080 to always fail with ENOSYS. Some functions are actually named
6081 something starting with __ and the normal name is an alias. */
6082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6092 eval "ac_cv_func_$ac_func=yes"
6094 echo "configure: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 eval "ac_cv_func_$ac_func=no"
6102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6105 cat >> confdefs.h <<EOF
6106 #define $ac_tr_func 1
6110 echo "$ac_t""no" 1>&6
6115 if test $ac_cv_func_sched_yield = no -a \
6116 $ac_cv_func_pthread_yield = no ; then
6117 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6118 echo "configure:6119: checking for sched_yield in -lrt" >&5
6119 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 ac_save_LIBS="$LIBS"
6125 cat > conftest.$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6128 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 eval "ac_cv_lib_$ac_lib_var=yes"
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 eval "ac_cv_lib_$ac_lib_var=no"
6147 LIBS="$ac_save_LIBS"
6150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6153 cat >> confdefs.h <<\EOF
6154 #define HAVE_SCHED_YIELD 1
6157 ac_cv_func_sched_yield=yes
6159 echo "$ac_t""no" 1>&6
6160 ac_cv_func_sched_yield=no
6164 if test $ac_cv_func_sched_yield = no -a \
6165 $ac_cv_func_pthread_yield = no ; then
6166 for ac_func in thr_yield
6168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6169 echo "configure:6170: checking for $ac_func" >&5
6170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* System header to define __stub macros and hopefully few prototypes,
6177 which can conflict with char $ac_func(); below. */
6179 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6186 /* The GNU C library defines this for functions which it implements
6187 to always fail with ENOSYS. Some functions are actually named
6188 something starting with __ and the normal name is an alias. */
6189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_func_$ac_func=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_func_$ac_func=no"
6209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6212 cat >> confdefs.h <<EOF
6213 #define $ac_tr_func 1
6217 echo "$ac_t""no" 1>&6
6222 if test $ac_cv_func_sched_yield = no -a \
6223 $ac_cv_func_pthread_yield = no -a \
6224 "$ac_cv_func_thr_yield" = no ; then
6225 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6228 for ac_func in pthread_kill
6230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6231 echo "configure:6232: checking for $ac_func" >&5
6232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 /* System header to define __stub macros and hopefully few prototypes,
6239 which can conflict with char $ac_func(); below. */
6241 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */
6248 /* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6259 if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6261 eval "ac_cv_func_$ac_func=yes"
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6266 eval "ac_cv_func_$ac_func=no"
6271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6272 echo "$ac_t""yes" 1>&6
6273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6274 cat >> confdefs.h <<EOF
6275 #define $ac_tr_func 1
6279 echo "$ac_t""no" 1>&6
6284 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6285 echo "configure:6286: checking for pthread_detach with <pthread.h>" >&5
6286 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6294 #include <pthread.h>
6296 #define NULL (void*)0
6300 pthread_detach(NULL);
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 ol_cv_func_pthread_detach=yes
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 ol_cv_func_pthread_detach=no
6316 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6318 if test $ol_cv_func_pthread_detach = no ; then
6319 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_PTHREAD_DETACH 1
6328 pthread_setconcurrency \
6329 pthread_getconcurrency \
6330 thr_setconcurrency \
6331 thr_getconcurrency \
6334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6335 echo "configure:6336: checking for $ac_func" >&5
6336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6339 cat > conftest.$ac_ext <<EOF
6340 #line 6341 "configure"
6341 #include "confdefs.h"
6342 /* System header to define __stub macros and hopefully few prototypes,
6343 which can conflict with char $ac_func(); below. */
6345 /* Override any gcc2 internal prototype to avoid an error. */
6346 /* We use char because int might match the return type of a gcc2
6347 builtin and then its argument prototype would still apply. */
6352 /* The GNU C library defines this for functions which it implements
6353 to always fail with ENOSYS. Some functions are actually named
6354 something starting with __ and the normal name is an alias. */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6363 if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 eval "ac_cv_func_$ac_func=yes"
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 eval "ac_cv_func_$ac_func=no"
6375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6378 cat >> confdefs.h <<EOF
6379 #define $ac_tr_func 1
6383 echo "$ac_t""no" 1>&6
6389 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6390 echo "configure:6391: checking for pthread_kill_other_threads_np" >&5
6391 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6397 /* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char pthread_kill_other_threads_np(); below. */
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 /* We use char because int might match the return type of a gcc2
6402 builtin and then its argument prototype would still apply. */
6403 char pthread_kill_other_threads_np();
6407 /* The GNU C library defines this for functions which it implements
6408 to always fail with ENOSYS. Some functions are actually named
6409 something starting with __ and the normal name is an alias. */
6410 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6413 pthread_kill_other_threads_np();
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6430 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6434 echo "$ac_t""no" 1>&6
6437 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6438 echo "configure:6439: checking for LinuxThreads implementation" >&5
6439 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6445 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6450 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6451 echo "configure:6452: checking for LinuxThreads consistency" >&5
6452 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6456 if test $ol_cv_header_linux_threads = yes -a \
6457 $ol_cv_sys_linux_threads = yes; then
6458 ol_cv_linux_threads=yes
6459 elif test $ol_cv_header_linux_threads = no -a \
6460 $ol_cv_sys_linux_threads = no; then
6461 ol_cv_linux_threads=no
6463 ol_cv_linux_threads=error
6468 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6471 if test $ol_cv_linux_threads = error; then
6472 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6475 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6476 echo "configure:6477: checking if pthread_create() works" >&5
6477 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6481 if test "$cross_compiling" = yes; then
6482 ol_cv_pthread_create_works=yes
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6488 #include <pthread.h>
6490 #define NULL (void*)0
6493 static void *task(p)
6496 return (void *) (p == NULL);
6499 int main(argc, argv)
6504 #if HAVE_PTHREADS_D4
6505 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6507 exit(pthread_create(&t, NULL, task, NULL));
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6514 ol_cv_pthread_create_works=yes
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 ol_cv_pthread_create_works=no
6526 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6528 if test $ol_cv_pthread_create_works = no ; then
6529 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6532 if test $ol_with_yielding_select = auto ; then
6533 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6534 echo "configure:6535: checking if select yields when using pthreads" >&5
6535 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6539 if test "$cross_compiling" = yes; then
6541 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6547 #include <sys/types.h>
6548 #include <sys/time.h>
6550 #include <pthread.h>
6552 #define NULL (void*) 0
6555 static int fildes[2];
6557 static void *task(p)
6569 FD_SET(fildes[0], &rfds);
6571 /* we're not interested in any fds */
6572 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6579 exit(0); /* if we exit here, the select blocked the whole process */
6582 int main(argc, argv)
6588 /* create a pipe to select */
6589 if(pipe(&fildes[0])) {
6594 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6595 (void) pthread_setconcurrency(2);
6597 #ifdef HAVE_THR_SETCONCURRENCY
6598 /* Set Solaris LWP concurrency to 2 */
6599 thr_setconcurrency(2);
6603 #if HAVE_PTHREADS_D4
6604 pthread_create(&t, pthread_attr_default, task, NULL);
6606 pthread_create(&t, NULL, task, NULL);
6609 #if HAVE_SCHED_YIELD
6610 sched_yield(); /* make sure task runs first */
6612 #ifdef HAVE_PTHREAD_YIELD
6613 pthread_yield(); /* make sure task runs first */
6620 if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6622 ol_cv_pthread_select_yields=no
6624 echo "configure: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6627 ol_cv_pthread_select_yields=yes
6634 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6636 if test $ol_cv_pthread_select_yields = yes ; then
6637 ol_with_yielding_select=yes
6641 CPPFLAGS="$save_CPPFLAGS"
6644 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6648 if test $ol_with_threads = posix ; then
6649 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6653 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6654 -o $ol_with_threads = mach ; then
6656 for ac_hdr in mach/cthreads.h
6658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_hdr" >&5
6661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6670 { (eval echo configure:6671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6672 if test -z "$ac_err"; then
6674 eval "ac_cv_header_$ac_safe=yes"
6677 echo "configure: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6680 eval "ac_cv_header_$ac_safe=no"
6684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6685 echo "$ac_t""yes" 1>&6
6686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6687 cat >> confdefs.h <<EOF
6688 #define $ac_tr_hdr 1
6692 echo "$ac_t""no" 1>&6
6696 if test $ac_cv_header_mach_cthreads_h = yes ; then
6697 ol_with_threads=found
6699 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6700 echo "configure:6701: checking for cthread_fork" >&5
6701 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char cthread_fork(); below. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6713 char cthread_fork();
6717 /* The GNU C library defines this for functions which it implements
6718 to always fail with ENOSYS. Some functions are actually named
6719 something starting with __ and the normal name is an alias. */
6720 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 eval "ac_cv_func_cthread_fork=yes"
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 eval "ac_cv_func_cthread_fork=no"
6740 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6744 echo "$ac_t""no" 1>&6
6748 if test $ol_link_threads = no ; then
6749 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6750 echo "configure:6751: checking for cthread_fork with -all_load" >&5
6751 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6756 LIBS="-all_load $LIBS"
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 #include <mach/cthreads.h>
6763 cthread_fork((void *)0, (void *)0);
6767 if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 ol_cv_cthread_all_load=yes
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 ol_cv_cthread_all_load=no
6781 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6783 if test $ol_cv_cthread_all_load = yes ; then
6784 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6785 ol_link_threads=mach
6789 if test $ol_link_threads != no ; then
6790 : check for cthread specific functionality here
6791 cat >> confdefs.h <<\EOF
6792 #define HAVE_MACH_CTHREADS 1
6796 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6800 if test $ol_with_threads = mach ; then
6801 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6805 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6806 -o $ol_with_threads = lwp ; then
6808 for ac_hdr in thread.h synch.h
6810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6812 echo "configure:6813: checking for $ac_hdr" >&5
6813 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6822 { (eval echo configure:6823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6824 if test -z "$ac_err"; then
6826 eval "ac_cv_header_$ac_safe=yes"
6829 echo "configure: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6832 eval "ac_cv_header_$ac_safe=no"
6836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6839 cat >> confdefs.h <<EOF
6840 #define $ac_tr_hdr 1
6844 echo "$ac_t""no" 1>&6
6848 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6849 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6850 echo "configure:6851: checking for thr_create in -lthread" >&5
6851 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 ac_save_LIBS="$LIBS"
6856 LIBS="-lthread $LIBS"
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_lib_$ac_lib_var=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_lib_$ac_lib_var=no"
6879 LIBS="$ac_save_LIBS"
6882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6886 echo "$ac_t""no" 1>&6
6891 if test $have_thr = yes ; then
6892 cat >> confdefs.h <<\EOF
6896 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6899 if test $ol_with_yielding_select = auto ; then
6900 ol_with_yielding_select=yes
6904 thr_setconcurrency \
6905 thr_getconcurrency \
6908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6909 echo "configure:6910: checking for $ac_func" >&5
6910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* System header to define __stub macros and hopefully few prototypes,
6917 which can conflict with char $ac_func(); below. */
6919 /* Override any gcc2 internal prototype to avoid an error. */
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6926 /* The GNU C library defines this for functions which it implements
6927 to always fail with ENOSYS. Some functions are actually named
6928 something starting with __ and the normal name is an alias. */
6929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 eval "ac_cv_func_$ac_func=yes"
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 eval "ac_cv_func_$ac_func=no"
6949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6952 cat >> confdefs.h <<EOF
6953 #define $ac_tr_func 1
6957 echo "$ac_t""no" 1>&6
6964 for ac_hdr in lwp/lwp.h
6966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6968 echo "configure:6969: checking for $ac_hdr" >&5
6969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6978 { (eval echo configure:6979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6980 if test -z "$ac_err"; then
6982 eval "ac_cv_header_$ac_safe=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval "ac_cv_header_$ac_safe=no"
6992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6995 cat >> confdefs.h <<EOF
6996 #define $ac_tr_hdr 1
7000 echo "$ac_t""no" 1>&6
7004 if test $ac_cv_header_lwp_lwp_h = yes ; then
7005 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7006 echo "configure:7007: checking for lwp_create in -llwp" >&5
7007 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 ac_save_LIBS="$LIBS"
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7016 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7027 eval "ac_cv_lib_$ac_lib_var=yes"
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7032 eval "ac_cv_lib_$ac_lib_var=no"
7035 LIBS="$ac_save_LIBS"
7038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7042 echo "$ac_t""no" 1>&6
7047 if test $have_lwp = yes ; then
7048 cat >> confdefs.h <<\EOF
7052 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7055 if test $ol_with_yielding_select = auto ; then
7056 ol_with_yielding_select=no
7062 if test $ol_with_yielding_select = yes ; then
7063 cat >> confdefs.h <<\EOF
7064 #define HAVE_YIELDING_SELECT 1
7069 if test $ol_with_threads = manual ; then
7072 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7074 for ac_hdr in pthread.h sched.h
7076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7078 echo "configure:7079: checking for $ac_hdr" >&5
7079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7090 if test -z "$ac_err"; then
7092 eval "ac_cv_header_$ac_safe=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_header_$ac_safe=no"
7102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7105 cat >> confdefs.h <<EOF
7106 #define $ac_tr_hdr 1
7110 echo "$ac_t""no" 1>&6
7114 for ac_func in sched_yield pthread_yield
7116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7117 echo "configure:7118: checking for $ac_func" >&5
7118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7121 cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure"
7123 #include "confdefs.h"
7124 /* System header to define __stub macros and hopefully few prototypes,
7125 which can conflict with char $ac_func(); below. */
7127 /* Override any gcc2 internal prototype to avoid an error. */
7128 /* We use char because int might match the return type of a gcc2
7129 builtin and then its argument prototype would still apply. */
7134 /* The GNU C library defines this for functions which it implements
7135 to always fail with ENOSYS. Some functions are actually named
7136 something starting with __ and the normal name is an alias. */
7137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7147 eval "ac_cv_func_$ac_func=yes"
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 eval "ac_cv_func_$ac_func=no"
7157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7158 echo "$ac_t""yes" 1>&6
7159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7160 cat >> confdefs.h <<EOF
7161 #define $ac_tr_func 1
7165 echo "$ac_t""no" 1>&6
7170 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7171 echo "configure:7172: checking for LinuxThreads pthread.h" >&5
7172 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7173 echo $ac_n "(cached) $ac_c" 1>&6
7175 cat > conftest.$ac_ext <<EOF
7176 #line 7177 "configure"
7177 #include "confdefs.h"
7178 #include <pthread.h>
7180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7183 ol_cv_header_linux_threads=yes
7186 ol_cv_header_linux_threads=no
7193 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7194 if test $ol_cv_header_linux_threads = yes; then
7195 cat >> confdefs.h <<\EOF
7196 #define HAVE_LINUX_THREADS 1
7202 for ac_hdr in mach/cthreads.h
7204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7206 echo "configure:7207: checking for $ac_hdr" >&5
7207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7208 echo $ac_n "(cached) $ac_c" 1>&6
7210 cat > conftest.$ac_ext <<EOF
7211 #line 7212 "configure"
7212 #include "confdefs.h"
7215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7216 { (eval echo configure:7217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7218 if test -z "$ac_err"; then
7220 eval "ac_cv_header_$ac_safe=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 eval "ac_cv_header_$ac_safe=no"
7230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7233 cat >> confdefs.h <<EOF
7234 #define $ac_tr_hdr 1
7238 echo "$ac_t""no" 1>&6
7242 for ac_hdr in lwp/lwp.h
7244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_hdr" >&5
7247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7256 { (eval echo configure:7257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7258 if test -z "$ac_err"; then
7260 eval "ac_cv_header_$ac_safe=yes"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 eval "ac_cv_header_$ac_safe=no"
7270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7273 cat >> confdefs.h <<EOF
7274 #define $ac_tr_hdr 1
7278 echo "$ac_t""no" 1>&6
7282 for ac_hdr in thread.h synch.h
7284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_hdr" >&5
7287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7296 { (eval echo configure:7297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7298 if test -z "$ac_err"; then
7300 eval "ac_cv_header_$ac_safe=yes"
7303 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 eval "ac_cv_header_$ac_safe=no"
7310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7311 echo "$ac_t""yes" 1>&6
7312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7313 cat >> confdefs.h <<EOF
7314 #define $ac_tr_hdr 1
7318 echo "$ac_t""no" 1>&6
7324 if test $ol_link_threads != no ; then
7325 cat >> confdefs.h <<\EOF
7329 cat >> confdefs.h <<\EOF
7330 #define _REENTRANT 1
7333 cat >> confdefs.h <<\EOF
7334 #define THREAD_SAFE 1
7337 cat >> confdefs.h <<\EOF
7338 #define _THREAD_SAFE 1
7341 cat >> confdefs.h <<\EOF
7342 #define THREADSAFE 1
7345 cat >> confdefs.h <<\EOF
7346 #define _THREADSAFE 1
7350 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7351 echo "configure:7352: checking for thread specific errno" >&5
7352 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 ol_cv_errno_thread_specific=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7371 ol_cv_errno_thread_specific=no
7377 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7379 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7380 echo "configure:7381: checking for thread specific h_errno" >&5
7381 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7385 cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7393 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7395 ol_cv_h_errno_thread_specific=yes
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 ol_cv_h_errno_thread_specific=no
7406 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7408 if test $ol_cv_errno_thread_specific != yes \
7409 -o $ol_cv_h_errno_thread_specific != yes ; then
7410 LIBS="$LTHREAD_LIBS $LIBS"
7416 if test $ol_link_threads = no ; then
7417 if test $ol_with_threads = yes ; then
7418 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7421 if test $ol_with_threads = auto ; then
7422 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7426 cat >> confdefs.h <<\EOF
7427 #define NO_THREADS 1
7433 if test $ol_link_threads != no ; then
7434 cat >> confdefs.h <<\EOF
7435 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7442 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7443 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7444 echo "configure:7445: checking for DB2 library" >&5
7445 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7446 echo $ac_n "(cached) $ac_c" 1>&6
7449 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7450 echo "configure:7451: checking for db_open in -ldb" >&5
7451 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 ac_save_LIBS="$LIBS"
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7476 eval "ac_cv_lib_$ac_lib_var=no"
7479 LIBS="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7486 echo "$ac_t""no" 1>&6
7494 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_hdr" >&5
7501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7510 { (eval echo configure:7511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7512 if test -z "$ac_err"; then
7514 eval "ac_cv_header_$ac_safe=yes"
7517 echo "configure: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7520 eval "ac_cv_header_$ac_safe=no"
7524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7527 cat >> confdefs.h <<EOF
7528 #define $ac_tr_hdr 1
7532 echo "$ac_t""no" 1>&6
7536 if test $ac_cv_header_db_h = yes ; then
7537 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7538 echo "configure:7539: checking if db.h is DB2" >&5
7539 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7543 cat > conftest.$ac_ext <<EOF
7544 #line 7545 "configure"
7545 #include "confdefs.h"
7548 /* this check could be improved */
7549 # ifdef DB_VERSION_MAJOR
7550 # if DB_VERSION_MAJOR == 2
7556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7557 egrep "__db_version_2" >/dev/null 2>&1; then
7559 ol_cv_header_db2=yes
7568 echo "$ac_t""$ol_cv_header_db2" 1>&6
7575 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7576 echo "configure:7577: checking for Berkeley DB2" >&5
7577 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7581 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7582 ol_cv_berkeley_db2=no
7584 ol_cv_berkeley_db2=yes
7589 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7590 if test $ol_cv_berkeley_db2 = yes ; then
7591 cat >> confdefs.h <<\EOF
7592 #define HAVE_BERKELEY_DB2 1
7598 if test $ol_cv_berkeley_db2 = yes ; then
7600 ol_with_ldbm_api=db2
7602 if test $ol_with_ldbm_type = hash ; then
7603 cat >> confdefs.h <<\EOF
7604 #define LDBM_USE_DBHASH 1
7608 cat >> confdefs.h <<\EOF
7609 #define LDBM_USE_DBBTREE 1
7614 if test $ol_cv_lib_db2 != yes ; then
7615 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7621 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7625 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7626 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7627 echo "configure:7628: checking for Berkeley DB library" >&5
7628 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7632 for ac_hdr in db1/db.h
7634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7636 echo "configure:7637: checking for $ac_hdr" >&5
7637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7646 { (eval echo configure:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7648 if test -z "$ac_err"; then
7650 eval "ac_cv_header_$ac_safe=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7656 eval "ac_cv_header_$ac_safe=no"
7660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7661 echo "$ac_t""yes" 1>&6
7662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7663 cat >> confdefs.h <<EOF
7664 #define $ac_tr_hdr 1
7668 echo "$ac_t""no" 1>&6
7673 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7674 echo "configure:7675: checking for dbopen" >&5
7675 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char dbopen(); below. */
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7691 /* The GNU C library defines this for functions which it implements
7692 to always fail with ENOSYS. Some functions are actually named
7693 something starting with __ and the normal name is an alias. */
7694 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7702 if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7704 eval "ac_cv_func_dbopen=yes"
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7709 eval "ac_cv_func_dbopen=no"
7714 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7718 echo "$ac_t""no" 1>&6
7720 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7721 echo "configure:7722: checking for dbopen in -ldb1" >&5
7722 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 ac_save_LIBS="$LIBS"
7728 cat > conftest.$ac_ext <<EOF
7729 #line 7730 "configure"
7730 #include "confdefs.h"
7731 /* Override any gcc2 internal prototype to avoid an error. */
7732 /* We use char because int might match the return type of a gcc2
7733 builtin and then its argument prototype would still apply. */
7740 if { (eval echo configure:7741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7742 eval "ac_cv_lib_$ac_lib_var=yes"
7744 echo "configure: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7747 eval "ac_cv_lib_$ac_lib_var=no"
7750 LIBS="$ac_save_LIBS"
7753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7754 echo "$ac_t""yes" 1>&6
7757 echo "$ac_t""no" 1>&6
7759 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7760 echo "configure:7761: checking for dbopen in -ldb" >&5
7761 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7765 ac_save_LIBS="$LIBS"
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781 eval "ac_cv_lib_$ac_lib_var=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_lib_$ac_lib_var=no"
7789 LIBS="$ac_save_LIBS"
7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7796 echo "$ac_t""no" 1>&6
7810 echo "$ac_t""$ol_cv_lib_db" 1>&6
7813 for ac_hdr in db_185.h
7815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_hdr" >&5
7818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7829 if test -z "$ac_err"; then
7831 eval "ac_cv_header_$ac_safe=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 eval "ac_cv_header_$ac_safe=no"
7841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7842 echo "$ac_t""yes" 1>&6
7843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7844 cat >> confdefs.h <<EOF
7845 #define $ac_tr_hdr 1
7849 echo "$ac_t""no" 1>&6
7853 if test "$ol_cv_header_db2" = yes ; then
7855 ol_cv_header_db=$ac_cv_header_db_185_h
7857 ol_cv_header_db=$ac_cv_header_db_h
7862 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7863 echo "configure:7864: checking for Berkeley DB" >&5
7864 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7868 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7869 ol_cv_berkeley_db=no
7871 ol_cv_berkeley_db=yes
7876 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7877 if test $ol_cv_berkeley_db = yes ; then
7878 cat >> confdefs.h <<\EOF
7879 #define HAVE_BERKELEY_DB 1
7885 if test $ol_cv_berkeley_db = yes ; then
7889 if test $ol_with_ldbm_type = hash ; then
7890 cat >> confdefs.h <<\EOF
7891 #define LDBM_USE_DBHASH 1
7895 cat >> confdefs.h <<\EOF
7896 #define LDBM_USE_DBBTREE 1
7901 if test $ol_cv_lib_db != yes ; then
7902 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7907 if test $ol_with_ldbm_api = manual ; then
7910 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7912 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7916 echo "configure:7917: checking for $ac_hdr" >&5
7917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
7920 cat > conftest.$ac_ext <<EOF
7921 #line 7922 "configure"
7922 #include "confdefs.h"
7925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7926 { (eval echo configure:7927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7928 if test -z "$ac_err"; then
7930 eval "ac_cv_header_$ac_safe=yes"
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7936 eval "ac_cv_header_$ac_safe=no"
7940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7941 echo "$ac_t""yes" 1>&6
7942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7943 cat >> confdefs.h <<EOF
7944 #define $ac_tr_hdr 1
7948 echo "$ac_t""no" 1>&6
7954 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7955 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7956 ol_with_ldbm_api=none
7959 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7960 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7961 echo "configure:7962: checking for MDBM library" >&5
7962 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7963 echo $ac_n "(cached) $ac_c" 1>&6
7966 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7967 echo "configure:7968: checking for mdbm_set_chain" >&5
7968 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 /* System header to define __stub macros and hopefully few prototypes,
7975 which can conflict with char mdbm_set_chain(); below. */
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char mdbm_set_chain();
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7997 eval "ac_cv_func_mdbm_set_chain=yes"
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8002 eval "ac_cv_func_mdbm_set_chain=no"
8007 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8008 echo "$ac_t""yes" 1>&6
8011 echo "$ac_t""no" 1>&6
8013 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8014 echo "configure:8015: checking for mdbm_set_chain in -lmdbm" >&5
8015 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8019 ac_save_LIBS="$LIBS"
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8024 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char mdbm_set_chain();
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8035 eval "ac_cv_lib_$ac_lib_var=yes"
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8040 eval "ac_cv_lib_$ac_lib_var=no"
8043 LIBS="$ac_save_LIBS"
8046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8047 echo "$ac_t""yes" 1>&6
8048 ol_cv_lib_mdbm=-lmdbm
8050 echo "$ac_t""no" 1>&6
8061 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8064 for ac_hdr in mdbm.h
8066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_hdr" >&5
8069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8082 eval "ac_cv_header_$ac_safe=yes"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8088 eval "ac_cv_header_$ac_safe=no"
8092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8095 cat >> confdefs.h <<EOF
8096 #define $ac_tr_hdr 1
8100 echo "$ac_t""no" 1>&6
8104 echo $ac_n "checking for db""... $ac_c" 1>&6
8105 echo "configure:8106: checking for db" >&5
8106 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8110 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8118 echo "$ac_t""$ol_cv_mdbm" 1>&6
8119 if test $ol_cv_mdbm = yes ; then
8120 cat >> confdefs.h <<\EOF
8127 if test $ol_cv_mdbm = yes ; then
8129 ol_with_ldbm_api=mdbm
8130 if test $ol_cv_lib_mdbm != yes ; then
8131 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8136 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8137 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8138 echo "configure:8139: checking for GDBM library" >&5
8139 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6
8143 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8144 echo "configure:8145: checking for gdbm_open" >&5
8145 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char gdbm_open(); below. */
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 /* We use char because int might match the return type of a gcc2
8156 builtin and then its argument prototype would still apply. */
8161 /* The GNU C library defines this for functions which it implements
8162 to always fail with ENOSYS. Some functions are actually named
8163 something starting with __ and the normal name is an alias. */
8164 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8172 if { (eval echo configure:8173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 eval "ac_cv_func_gdbm_open=yes"
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 eval "ac_cv_func_gdbm_open=no"
8184 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8188 echo "$ac_t""no" 1>&6
8190 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8191 echo "configure:8192: checking for gdbm_open in -lgdbm" >&5
8192 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8194 echo $ac_n "(cached) $ac_c" 1>&6
8196 ac_save_LIBS="$LIBS"
8198 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 /* Override any gcc2 internal prototype to avoid an error. */
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8210 if { (eval echo configure:8211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8212 eval "ac_cv_lib_$ac_lib_var=yes"
8214 echo "configure: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8217 eval "ac_cv_lib_$ac_lib_var=no"
8220 LIBS="$ac_save_LIBS"
8223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6
8225 ol_cv_lib_gdbm=-lgdbm
8227 echo "$ac_t""no" 1>&6
8238 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8241 for ac_hdr in gdbm.h
8243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8245 echo "configure:8246: checking for $ac_hdr" >&5
8246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8255 { (eval echo configure:8256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8257 if test -z "$ac_err"; then
8259 eval "ac_cv_header_$ac_safe=yes"
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8265 eval "ac_cv_header_$ac_safe=no"
8269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8270 echo "$ac_t""yes" 1>&6
8271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8272 cat >> confdefs.h <<EOF
8273 #define $ac_tr_hdr 1
8277 echo "$ac_t""no" 1>&6
8281 echo $ac_n "checking for db""... $ac_c" 1>&6
8282 echo "configure:8283: checking for db" >&5
8283 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8287 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8295 echo "$ac_t""$ol_cv_gdbm" 1>&6
8296 if test $ol_cv_gdbm = yes ; then
8297 cat >> confdefs.h <<\EOF
8304 if test $ol_cv_gdbm = yes ; then
8306 ol_with_ldbm_api=gdbm
8308 if test $ol_cv_lib_gdbm != yes ; then
8309 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8314 if test $ol_with_ldbm_api = auto ; then
8315 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8316 elif test $ol_with_ldbm_api = ndbm ; then
8317 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8318 echo "configure:8319: checking for NDBM library" >&5
8319 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8323 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8324 echo "configure:8325: checking for dbm_open" >&5
8325 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char dbm_open(); below. */
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8341 /* The GNU C library defines this for functions which it implements
8342 to always fail with ENOSYS. Some functions are actually named
8343 something starting with __ and the normal name is an alias. */
8344 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8354 eval "ac_cv_func_dbm_open=yes"
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8359 eval "ac_cv_func_dbm_open=no"
8364 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8365 echo "$ac_t""yes" 1>&6
8368 echo "$ac_t""no" 1>&6
8370 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8371 echo "configure:8372: checking for dbm_open in -lndbm" >&5
8372 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8376 ac_save_LIBS="$LIBS"
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 eval "ac_cv_lib_$ac_lib_var=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_lib_$ac_lib_var=no"
8400 LIBS="$ac_save_LIBS"
8403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8405 ol_cv_lib_ndbm=-lndbm
8407 echo "$ac_t""no" 1>&6
8409 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8410 echo "configure:8411: checking for dbm_open in -ldbm" >&5
8411 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 ac_save_LIBS="$LIBS"
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 /* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8429 if { (eval echo configure:8430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8431 eval "ac_cv_lib_$ac_lib_var=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 eval "ac_cv_lib_$ac_lib_var=no"
8439 LIBS="$ac_save_LIBS"
8442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8444 ol_cv_lib_ndbm=-ldbm
8446 echo "$ac_t""no" 1>&6
8459 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8462 for ac_hdr in ndbm.h
8464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8466 echo "configure:8467: checking for $ac_hdr" >&5
8467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then
8480 eval "ac_cv_header_$ac_safe=yes"
8483 echo "configure: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8486 eval "ac_cv_header_$ac_safe=no"
8490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8491 echo "$ac_t""yes" 1>&6
8492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8493 cat >> confdefs.h <<EOF
8494 #define $ac_tr_hdr 1
8498 echo "$ac_t""no" 1>&6
8502 echo $ac_n "checking for db""... $ac_c" 1>&6
8503 echo "configure:8504: checking for db" >&5
8504 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8505 echo $ac_n "(cached) $ac_c" 1>&6
8508 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8516 echo "$ac_t""$ol_cv_ndbm" 1>&6
8517 if test $ol_cv_ndbm = yes ; then
8518 cat >> confdefs.h <<\EOF
8525 if test $ol_cv_ndbm = yes ; then
8527 ol_with_ldbm_api=ndbm
8529 if test $ol_cv_lib_ndbm != yes ; then
8530 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8535 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8536 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8537 if test $ol_enable_ldbm = yes ; then
8538 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8541 echo "configure: warning: disabling LDBM" 1>&2
8545 if test $ol_enable_wrappers != no ; then
8546 for ac_hdr in tcpd.h
8548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8550 echo "configure:8551: checking for $ac_hdr" >&5
8551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8560 { (eval echo configure:8561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8562 if test -z "$ac_err"; then
8564 eval "ac_cv_header_$ac_safe=yes"
8567 echo "configure: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8570 eval "ac_cv_header_$ac_safe=no"
8574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8575 echo "$ac_t""yes" 1>&6
8576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8577 cat >> confdefs.h <<EOF
8578 #define $ac_tr_hdr 1
8582 echo "$ac_t""no" 1>&6
8587 if test $ac_cv_header_tcpd_h != yes ; then
8590 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8591 echo "configure:8592: checking for main in -lwrap" >&5
8592 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 ac_save_LIBS="$LIBS"
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8606 if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8608 eval "ac_cv_lib_$ac_lib_var=yes"
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8613 eval "ac_cv_lib_$ac_lib_var=no"
8616 LIBS="$ac_save_LIBS"
8619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8620 echo "$ac_t""yes" 1>&6
8623 echo "$ac_t""no" 1>&6
8629 if test $have_wrappers = yes ; then
8630 cat >> confdefs.h <<\EOF
8634 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8636 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8637 echo "configure:8638: checking for main in -lnsl" >&5
8638 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8642 ac_save_LIBS="$LIBS"
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 eval "ac_cv_lib_$ac_lib_var=yes"
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 eval "ac_cv_lib_$ac_lib_var=no"
8662 LIBS="$ac_save_LIBS"
8665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8666 echo "$ac_t""yes" 1>&6
8667 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8669 cat >> confdefs.h <<EOF
8670 #define $ac_tr_lib 1
8676 echo "$ac_t""no" 1>&6
8680 echo "configure: warning: could not find -lwrap" 1>&2
8681 if test $ol_enable_wrappers = yes ; then
8682 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8685 echo "configure: warning: disabling wrappers support" 1>&2
8686 ol_enable_wrappers=no
8690 if test $ol_enable_syslog != no ; then
8691 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8692 echo "configure:8693: checking for openlog" >&5
8693 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 /* System header to define __stub macros and hopefully few prototypes,
8700 which can conflict with char openlog(); below. */
8702 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8709 /* The GNU C library defines this for functions which it implements
8710 to always fail with ENOSYS. Some functions are actually named
8711 something starting with __ and the normal name is an alias. */
8712 #if defined (__stub_openlog) || defined (__stub___openlog)
8720 if { (eval echo configure:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 eval "ac_cv_func_openlog=yes"
8724 echo "configure: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8727 eval "ac_cv_func_openlog=no"
8732 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8733 echo "$ac_t""yes" 1>&6
8736 echo "$ac_t""no" 1>&6
8739 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8740 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8742 ol_enable_syslog=$ac_cv_func_openlog
8745 if test $ol_enable_dmalloc != no ; then
8746 for ac_hdr in dmalloc.h
8748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8750 echo "configure:8751: checking for $ac_hdr" >&5
8751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8760 { (eval echo configure:8761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8762 if test -z "$ac_err"; then
8764 eval "ac_cv_header_$ac_safe=yes"
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 eval "ac_cv_header_$ac_safe=no"
8774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8777 cat >> confdefs.h <<EOF
8778 #define $ac_tr_hdr 1
8782 echo "$ac_t""no" 1>&6
8786 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8787 echo "configure:8788: checking for dmalloc_shutdown in -ldmalloc" >&5
8788 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | 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="-ldmalloc $LIBS"
8794 cat > conftest.$ac_ext <<EOF
8795 #line 8796 "configure"
8796 #include "confdefs.h"
8797 /* Override any gcc2 internal prototype to avoid an error. */
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char dmalloc_shutdown();
8806 if { (eval echo configure:8807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808 eval "ac_cv_lib_$ac_lib_var=yes"
8810 echo "configure: failed program was:" >&5
8811 cat conftest.$ac_ext >&5
8813 eval "ac_cv_lib_$ac_lib_var=no"
8816 LIBS="$ac_save_LIBS"
8819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8822 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8823 cat >> confdefs.h <<EOF
8824 #define $ac_tr_lib 1
8827 LIBS="-ldmalloc $LIBS"
8830 echo "$ac_t""no" 1>&6
8835 if test $ol_enable_tcl != no ; then
8838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8840 echo "configure:8841: checking for $ac_hdr" >&5
8841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8850 { (eval echo configure:8851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8852 if test -z "$ac_err"; then
8854 eval "ac_cv_header_$ac_safe=yes"
8857 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8860 eval "ac_cv_header_$ac_safe=no"
8864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8865 echo "$ac_t""yes" 1>&6
8866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8867 cat >> confdefs.h <<EOF
8868 #define $ac_tr_hdr 1
8872 echo "$ac_t""no" 1>&6
8877 if test $ac_cv_header_tcl_h != yes ; then
8880 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8881 echo "configure:8882: checking for main in -ltcl" >&5
8882 ac_lib_var=`echo tcl'_'main | 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"
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 eval "ac_cv_lib_$ac_lib_var=yes"
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 eval "ac_cv_lib_$ac_lib_var=no"
8906 LIBS="$ac_save_LIBS"
8909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8910 echo "$ac_t""yes" 1>&6
8911 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8913 echo "$ac_t""no" 1>&6
8918 if test $have_tcl != yes; then
8919 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8920 echo "configure:8921: checking for main in -ltcl7.6" >&5
8921 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8925 ac_save_LIBS="$LIBS"
8926 LIBS="-ltcl7.6 $LIBS"
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8935 if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8937 eval "ac_cv_lib_$ac_lib_var=yes"
8939 echo "configure: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8942 eval "ac_cv_lib_$ac_lib_var=no"
8945 LIBS="$ac_save_LIBS"
8948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8949 echo "$ac_t""yes" 1>&6
8950 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8952 echo "$ac_t""no" 1>&6
8958 if test $have_tcl != yes; then
8959 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8960 echo "configure:8961: checking for main in -ltcl8.0" >&5
8961 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8963 echo $ac_n "(cached) $ac_c" 1>&6
8965 ac_save_LIBS="$LIBS"
8966 LIBS="-ltcl8.0 $LIBS"
8967 cat > conftest.$ac_ext <<EOF
8968 #line 8969 "configure"
8969 #include "confdefs.h"
8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8977 eval "ac_cv_lib_$ac_lib_var=yes"
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8982 eval "ac_cv_lib_$ac_lib_var=no"
8985 LIBS="$ac_save_LIBS"
8988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8989 echo "$ac_t""yes" 1>&6
8990 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8992 echo "$ac_t""no" 1>&6
8999 if test $have_tcl != yes ; then
9000 echo "configure: warning: could not find -ltcl" 1>&2
9001 if test $ol_enable_tcl = yes ; then
9002 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9009 # ud needs termcap (should insert check here)
9011 for ac_hdr in termcap.h ncurses.h
9013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9015 echo "configure:9016: checking for $ac_hdr" >&5
9016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9025 { (eval echo configure:9026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9027 if test -z "$ac_err"; then
9029 eval "ac_cv_header_$ac_safe=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_header_$ac_safe=no"
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9042 cat >> confdefs.h <<EOF
9043 #define $ac_tr_hdr 1
9047 echo "$ac_t""no" 1>&6
9052 if test $ol_link_termcap = no ; then
9053 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9054 echo "configure:9055: checking for tputs in -ltermcap" >&5
9055 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9059 ac_save_LIBS="$LIBS"
9060 LIBS="-ltermcap $LIBS"
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 /* Override any gcc2 internal prototype to avoid an error. */
9065 /* We use char because int might match the return type of a gcc2
9066 builtin and then its argument prototype would still apply. */
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9075 eval "ac_cv_lib_$ac_lib_var=yes"
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9080 eval "ac_cv_lib_$ac_lib_var=no"
9083 LIBS="$ac_save_LIBS"
9086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9087 echo "$ac_t""yes" 1>&6
9090 echo "$ac_t""no" 1>&6
9094 if test $have_termcap = yes ; then
9095 cat >> confdefs.h <<\EOF
9096 #define HAVE_TERMCAP 1
9100 TERMCAP_LIBS=-ltermcap
9104 if test $ol_link_termcap = no ; then
9105 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9106 echo "configure:9107: checking for initscr in -lncurses" >&5
9107 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9109 echo $ac_n "(cached) $ac_c" 1>&6
9111 ac_save_LIBS="$LIBS"
9112 LIBS="-lncurses $LIBS"
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9116 /* Override any gcc2 internal prototype to avoid an error. */
9117 /* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9127 eval "ac_cv_lib_$ac_lib_var=yes"
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9132 eval "ac_cv_lib_$ac_lib_var=no"
9135 LIBS="$ac_save_LIBS"
9138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9139 echo "$ac_t""yes" 1>&6
9142 echo "$ac_t""no" 1>&6
9146 if test $have_ncurses = yes ; then
9147 cat >> confdefs.h <<\EOF
9148 #define HAVE_NCURSES 1
9152 TERMCAP_LIBS=-lncurses
9156 if test $ol_link_termcap = no ; then
9157 cat >> confdefs.h <<\EOF
9158 #define NO_TERMCAP 1
9165 if test $ol_with_readline != no ; then
9166 for ac_hdr in readline/readline.h readline/history.h
9168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9170 echo "configure:9171: checking for $ac_hdr" >&5
9171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9172 echo $ac_n "(cached) $ac_c" 1>&6
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9180 { (eval echo configure:9181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9182 if test -z "$ac_err"; then
9184 eval "ac_cv_header_$ac_safe=yes"
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9190 eval "ac_cv_header_$ac_safe=no"
9194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9197 cat >> confdefs.h <<EOF
9198 #define $ac_tr_hdr 1
9202 echo "$ac_t""no" 1>&6
9207 if test $ac_cv_header_readline_readline_h = yes ; then
9209 LIBS="$TERMCAP_LIBS $LIBS"
9210 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9211 echo "configure:9212: checking for readline in -lreadline" >&5
9212 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9216 ac_save_LIBS="$LIBS"
9217 LIBS="-lreadline $LIBS"
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 /* Override any gcc2 internal prototype to avoid an error. */
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 eval "ac_cv_lib_$ac_lib_var=yes"
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9237 eval "ac_cv_lib_$ac_lib_var=no"
9240 LIBS="$ac_save_LIBS"
9243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9247 echo "$ac_t""no" 1>&6
9253 if test $have_readline = yes ; then
9254 ol_with_readline=found
9255 ol_link_readline=yes
9257 READLINE_LIBS="-lreadline"
9262 if test $ol_link_readline = yes ; then
9263 cat >> confdefs.h <<\EOF
9264 #define HAVE_READLINE 1
9270 # FreeBSD (and others) have crypt(3) in -lcrypt
9271 if test $ol_enable_crypt != no ; then
9272 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9273 echo "configure:9274: checking for crypt" >&5
9274 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9275 echo $ac_n "(cached) $ac_c" 1>&6
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 /* System header to define __stub macros and hopefully few prototypes,
9281 which can conflict with char crypt(); below. */
9283 /* Override any gcc2 internal prototype to avoid an error. */
9284 /* We use char because int might match the return type of a gcc2
9285 builtin and then its argument prototype would still apply. */
9290 /* The GNU C library defines this for functions which it implements
9291 to always fail with ENOSYS. Some functions are actually named
9292 something starting with __ and the normal name is an alias. */
9293 #if defined (__stub_crypt) || defined (__stub___crypt)
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9303 eval "ac_cv_func_crypt=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_func_crypt=no"
9313 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9314 echo "$ac_t""yes" 1>&6
9317 echo "$ac_t""no" 1>&6
9319 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9320 echo "configure:9321: checking for crypt in -lcrypt" >&5
9321 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9325 ac_save_LIBS="$LIBS"
9326 LIBS="-lcrypt $LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 eval "ac_cv_lib_$ac_lib_var=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_lib_$ac_lib_var=no"
9349 LIBS="$ac_save_LIBS"
9352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9357 echo "$ac_t""no" 1>&6
9364 if test $have_crypt = yes ; then
9365 cat >> confdefs.h <<\EOF
9366 #define HAVE_CRYPT 1
9370 echo "configure: warning: could not find crypt" 1>&2
9371 if test $ol_enable_crypt = yes ; then
9372 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9375 echo "configure: warning: disabling crypt support" 1>&2
9380 # FreeBSD (and others) have setproctitle(3) in -lutil
9381 if test $ol_enable_proctitle != no ; then
9382 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9383 echo "configure:9384: checking for setproctitle" >&5
9384 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 /* System header to define __stub macros and hopefully few prototypes,
9391 which can conflict with char setproctitle(); below. */
9393 /* Override any gcc2 internal prototype to avoid an error. */
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char setproctitle();
9400 /* The GNU C library defines this for functions which it implements
9401 to always fail with ENOSYS. Some functions are actually named
9402 something starting with __ and the normal name is an alias. */
9403 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 eval "ac_cv_func_setproctitle=yes"
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9418 eval "ac_cv_func_setproctitle=no"
9423 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9424 echo "$ac_t""yes" 1>&6
9425 have_setproctitle=yes
9427 echo "$ac_t""no" 1>&6
9429 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9430 echo "configure:9431: checking for setproctitle in -lutil" >&5
9431 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9433 echo $ac_n "(cached) $ac_c" 1>&6
9435 ac_save_LIBS="$LIBS"
9437 cat > conftest.$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9440 /* Override any gcc2 internal prototype to avoid an error. */
9441 /* We use char because int might match the return type of a gcc2
9442 builtin and then its argument prototype would still apply. */
9443 char setproctitle();
9449 if { (eval echo configure:9450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9451 eval "ac_cv_lib_$ac_lib_var=yes"
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9456 eval "ac_cv_lib_$ac_lib_var=no"
9459 LIBS="$ac_save_LIBS"
9462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9463 echo "$ac_t""yes" 1>&6
9464 have_setproctitle=yes
9465 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9467 echo "$ac_t""no" 1>&6
9468 have_setproctitle=no
9469 LIBOBJS="$LIBOBJS setproctitle.o"
9475 if test $have_setproctitle = yes ; then
9476 cat >> confdefs.h <<\EOF
9477 #define HAVE_SETPROCTITLE 1
9484 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9485 echo "configure:9486: checking for EBCDIC" >&5
9486 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9495 #include <__ASCII__/generate_error.h>
9499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9500 { (eval echo configure:9501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9502 if test -z "$ac_err"; then
9504 ol_cv_cpp_ebcdic=yes
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9515 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9516 if test $ol_cv_cpp_ebcdic = yes ; then
9517 cat >> confdefs.h <<\EOF
9518 #define HAVE_EBCDIC 1
9523 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9524 echo "configure:9525: checking for ANSI C header files" >&5
9525 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9537 { (eval echo configure:9538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9539 if test -z "$ac_err"; then
9541 ol_cv_header_stdc=yes
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 ol_cv_header_stdc=no
9551 if test $ol_cv_header_stdc = yes; then
9552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9559 egrep "memchr" >/dev/null 2>&1; then
9563 ol_cv_header_stdc=no
9569 if test $ol_cv_header_stdc = yes; then
9570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9571 cat > conftest.$ac_ext <<EOF
9572 #line 9573 "configure"
9573 #include "confdefs.h"
9576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9577 egrep "free" >/dev/null 2>&1; then
9581 ol_cv_header_stdc=no
9587 if test $ol_cv_header_stdc = yes; then
9588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9589 if test "$cross_compiling" = yes; then
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9600 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9601 || ('j' <= (c) && (c) <= 'r') \
9602 || ('s' <= (c) && (c) <= 'z'))
9603 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9606 int main () { int i; for (i = 0; i < 256; i++)
9607 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9611 if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9618 ol_cv_header_stdc=no
9626 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9627 if test $ol_cv_header_stdc = yes; then
9628 cat >> confdefs.h <<\EOF
9629 #define STDC_HEADERS 1
9633 ac_cv_header_stdc=disable
9636 if test $ol_cv_header_stdc != yes; then
9637 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9641 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9644 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9645 echo "configure:9646: checking for $ac_hdr that defines DIR" >&5
9646 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 #include <sys/types.h>
9658 if { (eval echo configure:9659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9660 eval "ac_cv_header_dirent_$ac_safe=yes"
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9665 eval "ac_cv_header_dirent_$ac_safe=no"
9669 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9670 echo "$ac_t""yes" 1>&6
9671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9672 cat >> confdefs.h <<EOF
9673 #define $ac_tr_hdr 1
9675 ac_header_dirent=$ac_hdr; break
9677 echo "$ac_t""no" 1>&6
9680 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9681 if test $ac_header_dirent = dirent.h; then
9682 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9683 echo "configure:9684: checking for opendir in -ldir" >&5
9684 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9688 ac_save_LIBS="$LIBS"
9690 cat > conftest.$ac_ext <<EOF
9691 #line 9692 "configure"
9692 #include "confdefs.h"
9693 /* Override any gcc2 internal prototype to avoid an error. */
9694 /* We use char because int might match the return type of a gcc2
9695 builtin and then its argument prototype would still apply. */
9702 if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9704 eval "ac_cv_lib_$ac_lib_var=yes"
9706 echo "configure: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9709 eval "ac_cv_lib_$ac_lib_var=no"
9712 LIBS="$ac_save_LIBS"
9715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9716 echo "$ac_t""yes" 1>&6
9719 echo "$ac_t""no" 1>&6
9723 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9724 echo "configure:9725: checking for opendir in -lx" >&5
9725 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9729 ac_save_LIBS="$LIBS"
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9745 eval "ac_cv_lib_$ac_lib_var=yes"
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9750 eval "ac_cv_lib_$ac_lib_var=no"
9753 LIBS="$ac_save_LIBS"
9756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9757 echo "$ac_t""yes" 1>&6
9760 echo "$ac_t""no" 1>&6
9765 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9766 echo "configure:9767: checking for sys/wait.h that is POSIX.1 compatible" >&5
9767 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9768 echo $ac_n "(cached) $ac_c" 1>&6
9770 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure"
9772 #include "confdefs.h"
9773 #include <sys/types.h>
9774 #include <sys/wait.h>
9776 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9779 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9787 if { (eval echo configure:9788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9789 ac_cv_header_sys_wait_h=yes
9791 echo "configure: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9794 ac_cv_header_sys_wait_h=no
9799 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9800 if test $ac_cv_header_sys_wait_h = yes; then
9801 cat >> confdefs.h <<\EOF
9802 #define HAVE_SYS_WAIT_H 1
9807 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9808 echo "configure:9809: checking POSIX termios" >&5
9809 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9810 echo $ac_n "(cached) $ac_c" 1>&6
9812 cat > conftest.$ac_ext <<EOF
9813 #line 9814 "configure"
9814 #include "confdefs.h"
9815 #include <sys/types.h>
9817 #include <termios.h>
9819 /* SunOS 4.0.3 has termios.h but not the library calls. */
9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9825 am_cv_sys_posix_termios=yes
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9830 am_cv_sys_posix_termios=no
9835 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9838 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9839 echo "configure:9840: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9840 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9843 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9845 gwinsz_in_termios_h=no
9846 if test $am_cv_sys_posix_termios = yes; then
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 # include <termios.h>
9857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9858 egrep "yes" >/dev/null 2>&1; then
9860 gwinsz_in_termios_h=yes
9866 if test $gwinsz_in_termios_h = no; then
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9870 #include <sys/types.h>
9871 # include <sys/ioctl.h>
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 egrep "yes" >/dev/null 2>&1; then
9880 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9888 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9889 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9890 cat >> confdefs.h <<\EOF
9891 #define GWINSZ_IN_SYS_IOCTL 1
9896 if test $am_cv_sys_posix_termios = yes ; then
9897 cat >> confdefs.h <<\EOF
9898 #define HAVE_POSIX_TERMIOS 1
9943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9945 echo "configure:9946: checking for $ac_hdr" >&5
9946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9947 echo $ac_n "(cached) $ac_c" 1>&6
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9955 { (eval echo configure:9956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9957 if test -z "$ac_err"; then
9959 eval "ac_cv_header_$ac_safe=yes"
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9965 eval "ac_cv_header_$ac_safe=no"
9969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9970 echo "$ac_t""yes" 1>&6
9971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9972 cat >> confdefs.h <<EOF
9973 #define $ac_tr_hdr 1
9977 echo "$ac_t""no" 1>&6
9982 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9983 echo "configure:9984: checking for uid_t in sys/types.h" >&5
9984 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 #include <sys/types.h>
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993 egrep "uid_t" >/dev/null 2>&1; then
9995 ac_cv_type_uid_t=yes
10004 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10005 if test $ac_cv_type_uid_t = no; then
10006 cat >> confdefs.h <<\EOF
10010 cat >> confdefs.h <<\EOF
10016 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10017 echo "configure:10018: checking type of array argument to getgroups" >&5
10018 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10021 if test "$cross_compiling" = yes; then
10022 ac_cv_type_getgroups=cross
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10028 /* Thanks to Mike Rendell for this test. */
10029 #include <sys/types.h>
10032 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10035 gid_t gidset[NGID];
10037 union { gid_t gval; long lval; } val;
10040 for (i = 0; i < NGID; i++)
10041 gidset[i] = val.gval;
10042 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10044 /* Exit non-zero if getgroups seems to require an array of ints. This
10045 happens when gid_t is short but getgroups modifies an array of ints. */
10046 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10052 ac_cv_type_getgroups=gid_t
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10057 ac_cv_type_getgroups=int
10062 if test $ac_cv_type_getgroups = cross; then
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 #include <unistd.h>
10068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10069 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10071 ac_cv_type_getgroups=gid_t
10074 ac_cv_type_getgroups=int
10081 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10082 cat >> confdefs.h <<EOF
10083 #define GETGROUPS_T $ac_cv_type_getgroups
10086 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10087 echo "configure:10088: checking for ANSI C header files" >&5
10088 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10089 echo $ac_n "(cached) $ac_c" 1>&6
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 #include <stdlib.h>
10095 #include <stdarg.h>
10096 #include <string.h>
10099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10100 { (eval echo configure:10101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10102 if test -z "$ac_err"; then
10104 ac_cv_header_stdc=yes
10107 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5
10110 ac_cv_header_stdc=no
10114 if test $ac_cv_header_stdc = yes; then
10115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 #include <string.h>
10121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10122 egrep "memchr" >/dev/null 2>&1; then
10126 ac_cv_header_stdc=no
10132 if test $ac_cv_header_stdc = yes; then
10133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <stdlib.h>
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140 egrep "free" >/dev/null 2>&1; then
10144 ac_cv_header_stdc=no
10150 if test $ac_cv_header_stdc = yes; then
10151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10152 if test "$cross_compiling" = yes; then
10155 cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10159 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10160 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10162 int main () { int i; for (i = 0; i < 256; i++)
10163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10167 if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10171 echo "configure: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10174 ac_cv_header_stdc=no
10182 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10183 if test $ac_cv_header_stdc = yes; then
10184 cat >> confdefs.h <<\EOF
10185 #define STDC_HEADERS 1
10190 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10191 echo "configure:10192: checking for mode_t" >&5
10192 if eval "test \"`echo '$''{'ac_cv_type_mode_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 <sys/types.h>
10200 #include <stdlib.h>
10201 #include <stddef.h>
10204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10205 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10207 ac_cv_type_mode_t=yes
10210 ac_cv_type_mode_t=no
10215 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10216 if test $ac_cv_type_mode_t = no; then
10217 cat >> confdefs.h <<\EOF
10223 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10224 echo "configure:10225: checking for off_t" >&5
10225 if eval "test \"`echo '$''{'ac_cv_type_off_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])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10240 ac_cv_type_off_t=yes
10243 ac_cv_type_off_t=no
10248 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10249 if test $ac_cv_type_off_t = no; then
10250 cat >> confdefs.h <<\EOF
10256 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10257 echo "configure:10258: checking for pid_t" >&5
10258 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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>
10266 #include <stdlib.h>
10267 #include <stddef.h>
10270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10271 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10273 ac_cv_type_pid_t=yes
10276 ac_cv_type_pid_t=no
10281 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10282 if test $ac_cv_type_pid_t = no; then
10283 cat >> confdefs.h <<\EOF
10289 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10290 echo "configure:10291: checking for ptrdiff_t" >&5
10291 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 #include <stddef.h>
10302 if { (eval echo configure:10303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10304 am_cv_type_ptrdiff_t=yes
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 am_cv_type_ptrdiff_t=no
10314 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10315 if test $am_cv_type_ptrdiff_t = yes; then
10316 cat >> confdefs.h <<\EOF
10317 #define HAVE_PTRDIFF_T 1
10322 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10323 echo "configure:10324: checking return type of signal handlers" >&5
10324 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10325 echo $ac_n "(cached) $ac_c" 1>&6
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10330 #include <sys/types.h>
10331 #include <signal.h>
10336 extern "C" void (*signal (int, void (*)(int)))(int);
10338 void (*signal ()) ();
10345 if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10347 ac_cv_type_signal=void
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 ac_cv_type_signal=int
10357 echo "$ac_t""$ac_cv_type_signal" 1>&6
10358 cat >> confdefs.h <<EOF
10359 #define RETSIGTYPE $ac_cv_type_signal
10363 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10364 echo "configure:10365: checking for sig_atomic_t" >&5
10365 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10371 #include <signal.h>
10373 sig_atomic_t atomic;
10376 if { (eval echo configure:10377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10378 ol_cv_type_sig_atomic_t=yes
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 ol_cv_type_sig_atomic_t=no
10388 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10389 if test $ol_cv_type_sig_atomic_t = no; then
10390 cat >> confdefs.h <<\EOF
10391 #define sig_atomic_t int
10396 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10397 echo "configure:10398: checking for size_t" >&5
10398 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 #include <sys/types.h>
10406 #include <stdlib.h>
10407 #include <stddef.h>
10410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10411 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10413 ac_cv_type_size_t=yes
10416 ac_cv_type_size_t=no
10421 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10422 if test $ac_cv_type_size_t = no; then
10423 cat >> confdefs.h <<\EOF
10424 #define size_t unsigned
10429 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10430 echo "configure:10431: checking for st_blksize in struct stat" >&5
10431 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10434 cat > conftest.$ac_ext <<EOF
10435 #line 10436 "configure"
10436 #include "confdefs.h"
10437 #include <sys/types.h>
10438 #include <sys/stat.h>
10440 struct stat s; s.st_blksize;
10443 if { (eval echo configure:10444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10445 ac_cv_struct_st_blksize=yes
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 ac_cv_struct_st_blksize=no
10455 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10456 if test $ac_cv_struct_st_blksize = yes; then
10457 cat >> confdefs.h <<\EOF
10458 #define HAVE_ST_BLKSIZE 1
10463 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10464 echo "configure:10465: checking whether time.h and sys/time.h may both be included" >&5
10465 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10471 #include <sys/types.h>
10472 #include <sys/time.h>
10478 if { (eval echo configure:10479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10480 ac_cv_header_time=yes
10482 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10485 ac_cv_header_time=no
10490 echo "$ac_t""$ac_cv_header_time" 1>&6
10491 if test $ac_cv_header_time = yes; then
10492 cat >> confdefs.h <<\EOF
10493 #define TIME_WITH_SYS_TIME 1
10498 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10499 echo "configure:10500: checking whether struct tm is in sys/time.h or time.h" >&5
10500 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10501 echo $ac_n "(cached) $ac_c" 1>&6
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10506 #include <sys/types.h>
10509 struct tm *tp; tp->tm_sec;
10512 if { (eval echo configure:10513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10514 ac_cv_struct_tm=time.h
10516 echo "configure: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10519 ac_cv_struct_tm=sys/time.h
10524 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10525 if test $ac_cv_struct_tm = sys/time.h; then
10526 cat >> confdefs.h <<\EOF
10527 #define TM_IN_SYS_TIME 1
10532 # test for pw_gecos in struct passwd
10533 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10534 echo "configure:10535: checking struct passwd for pw_gecos" >&5
10535 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10546 pwd.pw_gecos = pwd.pw_name;
10550 if { (eval echo configure:10551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10552 ol_cv_struct_passwd_pw_gecos=yes
10554 echo "configure: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10557 ol_cv_struct_passwd_pw_gecos=no
10562 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10563 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10564 cat >> confdefs.h <<\EOF
10565 #define HAVE_PW_GECOS 1
10572 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10573 echo "configure:10574: checking if toupper() requires islower()" >&5
10574 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10578 if test "$cross_compiling" = yes; then
10579 ol_cv_c_upper_lower=safe
10581 cat > conftest.$ac_ext <<EOF
10582 #line 10583 "configure"
10583 #include "confdefs.h"
10588 if ('C' == toupper('C'))
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10596 ol_cv_c_upper_lower=no
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10601 ol_cv_c_upper_lower=yes
10608 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10609 if test $ol_cv_c_upper_lower != no ; then
10610 cat >> confdefs.h <<\EOF
10611 #define C_UPPER_LOWER 1
10616 echo $ac_n "checking for working const""... $ac_c" 1>&6
10617 echo "configure:10618: checking for working const" >&5
10618 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10627 /* Ultrix mips cc rejects this. */
10628 typedef int charset[2]; const charset x;
10629 /* SunOS 4.1.1 cc rejects this. */
10630 char const *const *ccp;
10632 /* NEC SVR4.0.2 mips cc rejects this. */
10633 struct point {int x, y;};
10634 static struct point const zero = {0,0};
10635 /* AIX XL C 1.02.0.0 rejects this.
10636 It does not let you subtract one const X* pointer from another in an arm
10637 of an if-expression whose if-part is not a constant expression */
10638 const char *g = "string";
10639 ccp = &g + (g ? g-g : 0);
10640 /* HPUX 7.0 cc rejects these. */
10643 ccp = (char const *const *) p;
10644 { /* SCO 3.2v4 cc rejects this. */
10646 char const *s = 0 ? (char *) 0 : (char const *) 0;
10650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10651 int x[] = {25, 17};
10652 const int *foo = &x[0];
10655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10656 typedef const int *iptr;
10660 { /* AIX XL C 1.02.0.0 rejects this saying
10661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10662 struct s { int j; const int *ap[3]; };
10663 struct s *b; b->j = 5;
10665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10666 const int foo = 10;
10671 if { (eval echo configure:10672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10683 echo "$ac_t""$ac_cv_c_const" 1>&6
10684 if test $ac_cv_c_const = no; then
10685 cat >> confdefs.h <<\EOF
10691 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10692 echo "configure:10693: checking if compiler understands volatile" >&5
10693 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10696 cat > conftest.$ac_ext <<EOF
10697 #line 10698 "configure"
10698 #include "confdefs.h"
10701 volatile int a; int * volatile b = x ? &y : &z;
10702 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10706 if { (eval echo configure:10707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10708 ol_cv_c_volatile=yes
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10713 ol_cv_c_volatile=no
10718 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10719 if test $ol_cv_c_volatile = yes; then
10722 cat >> confdefs.h <<\EOF
10729 if test $cross_compiling = yes ; then
10730 cat >> confdefs.h <<\EOF
10731 #define CROSS_COMPILING 1
10735 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10736 echo "configure:10737: checking whether byte ordering is bigendian" >&5
10737 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10740 ac_cv_c_bigendian=unknown
10741 # See if sys/param.h defines the BYTE_ORDER macro.
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10745 #include <sys/types.h>
10746 #include <sys/param.h>
10749 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10750 bogus endian macros
10754 if { (eval echo configure:10755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10756 # It does; now see whether it defined to BIG_ENDIAN or not.
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10760 #include <sys/types.h>
10761 #include <sys/param.h>
10764 #if BYTE_ORDER != BIG_ENDIAN
10769 if { (eval echo configure:10770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10771 ac_cv_c_bigendian=yes
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 ac_cv_c_bigendian=no
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10784 if test $ac_cv_c_bigendian = unknown; then
10785 if test "$cross_compiling" = yes; then
10786 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10792 /* Are we little or big endian? From Harbison&Steele. */
10796 char c[sizeof (long)];
10799 exit (u.c[sizeof (long) - 1] == 1);
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10804 ac_cv_c_bigendian=no
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10809 ac_cv_c_bigendian=yes
10817 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10818 if test $ac_cv_c_bigendian = yes; then
10819 cat >> confdefs.h <<\EOF
10820 #define WORDS_BIGENDIAN 1
10825 echo $ac_n "checking size of short""... $ac_c" 1>&6
10826 echo "configure:10827: checking size of short" >&5
10827 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10830 if test "$cross_compiling" = yes; then
10831 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10833 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10839 FILE *f=fopen("conftestval", "w");
10841 fprintf(f, "%d\n", sizeof(short));
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10847 ac_cv_sizeof_short=`cat conftestval`
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 ac_cv_sizeof_short=0
10858 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10859 cat >> confdefs.h <<EOF
10860 #define SIZEOF_SHORT $ac_cv_sizeof_short
10864 echo $ac_n "checking size of int""... $ac_c" 1>&6
10865 echo "configure:10866: checking size of int" >&5
10866 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10869 if test "$cross_compiling" = yes; then
10870 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10878 FILE *f=fopen("conftestval", "w");
10880 fprintf(f, "%d\n", sizeof(int));
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10886 ac_cv_sizeof_int=`cat conftestval`
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10897 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10898 cat >> confdefs.h <<EOF
10899 #define SIZEOF_INT $ac_cv_sizeof_int
10903 echo $ac_n "checking size of long""... $ac_c" 1>&6
10904 echo "configure:10905: checking size of long" >&5
10905 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10908 if test "$cross_compiling" = yes; then
10909 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10917 FILE *f=fopen("conftestval", "w");
10919 fprintf(f, "%d\n", sizeof(long));
10923 if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10925 ac_cv_sizeof_long=`cat conftestval`
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10930 ac_cv_sizeof_long=0
10936 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10937 cat >> confdefs.h <<EOF
10938 #define SIZEOF_LONG $ac_cv_sizeof_long
10944 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10945 echo "configure:10946: checking for 8-bit clean memcmp" >&5
10946 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10947 echo $ac_n "(cached) $ac_c" 1>&6
10949 if test "$cross_compiling" = yes; then
10950 ac_cv_func_memcmp_clean=no
10952 cat > conftest.$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10958 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10959 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10963 if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10965 ac_cv_func_memcmp_clean=yes
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10970 ac_cv_func_memcmp_clean=no
10977 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10978 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10980 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10981 echo "configure:10982: checking for strftime" >&5
10982 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10983 echo $ac_n "(cached) $ac_c" 1>&6
10985 cat > conftest.$ac_ext <<EOF
10986 #line 10987 "configure"
10987 #include "confdefs.h"
10988 /* System header to define __stub macros and hopefully few prototypes,
10989 which can conflict with char strftime(); below. */
10990 #include <assert.h>
10991 /* Override any gcc2 internal prototype to avoid an error. */
10992 /* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10998 /* The GNU C library defines this for functions which it implements
10999 to always fail with ENOSYS. Some functions are actually named
11000 something starting with __ and the normal name is an alias. */
11001 #if defined (__stub_strftime) || defined (__stub___strftime)
11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11011 eval "ac_cv_func_strftime=yes"
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11016 eval "ac_cv_func_strftime=no"
11021 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11022 echo "$ac_t""yes" 1>&6
11023 cat >> confdefs.h <<\EOF
11024 #define HAVE_STRFTIME 1
11028 echo "$ac_t""no" 1>&6
11029 # strftime is in -lintl on SCO UNIX.
11030 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11031 echo "configure:11032: checking for strftime in -lintl" >&5
11032 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11036 ac_save_LIBS="$LIBS"
11037 LIBS="-lintl $LIBS"
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11041 /* Override any gcc2 internal prototype to avoid an error. */
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11052 eval "ac_cv_lib_$ac_lib_var=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_lib_$ac_lib_var=no"
11060 LIBS="$ac_save_LIBS"
11063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11064 echo "$ac_t""yes" 1>&6
11065 cat >> confdefs.h <<\EOF
11066 #define HAVE_STRFTIME 1
11069 LIBS="-lintl $LIBS"
11071 echo "$ac_t""no" 1>&6
11077 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11078 echo "configure:11079: checking for vprintf" >&5
11079 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11080 echo $ac_n "(cached) $ac_c" 1>&6
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* System header to define __stub macros and hopefully few prototypes,
11086 which can conflict with char vprintf(); below. */
11087 #include <assert.h>
11088 /* Override any gcc2 internal prototype to avoid an error. */
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11108 eval "ac_cv_func_vprintf=yes"
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11113 eval "ac_cv_func_vprintf=no"
11118 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 cat >> confdefs.h <<\EOF
11121 #define HAVE_VPRINTF 1
11125 echo "$ac_t""no" 1>&6
11128 if test "$ac_cv_func_vprintf" != yes; then
11129 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11130 echo "configure:11131: checking for _doprnt" >&5
11131 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11134 cat > conftest.$ac_ext <<EOF
11135 #line 11136 "configure"
11136 #include "confdefs.h"
11137 /* System header to define __stub macros and hopefully few prototypes,
11138 which can conflict with char _doprnt(); below. */
11139 #include <assert.h>
11140 /* Override any gcc2 internal prototype to avoid an error. */
11141 /* We use char because int might match the return type of a gcc2
11142 builtin and then its argument prototype would still apply. */
11147 /* The GNU C library defines this for functions which it implements
11148 to always fail with ENOSYS. Some functions are actually named
11149 something starting with __ and the normal name is an alias. */
11150 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11158 if { (eval echo configure:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160 eval "ac_cv_func__doprnt=yes"
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 eval "ac_cv_func__doprnt=no"
11170 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11172 cat >> confdefs.h <<\EOF
11173 #define HAVE_DOPRNT 1
11177 echo "$ac_t""no" 1>&6
11183 if test $ac_cv_func_vprintf = yes ; then
11184 for ac_func in vsnprintf vsprintf
11186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11187 echo "configure:11188: checking for $ac_func" >&5
11188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 /* System header to define __stub macros and hopefully few prototypes,
11195 which can conflict with char $ac_func(); below. */
11196 #include <assert.h>
11197 /* Override any gcc2 internal prototype to avoid an error. */
11198 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11204 /* The GNU C library defines this for functions which it implements
11205 to always fail with ENOSYS. Some functions are actually named
11206 something starting with __ and the normal name is an alias. */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11215 if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11217 eval "ac_cv_func_$ac_func=yes"
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11222 eval "ac_cv_func_$ac_func=no"
11227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11230 cat >> confdefs.h <<EOF
11231 #define $ac_tr_func 1
11235 echo "$ac_t""no" 1>&6
11282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11283 echo "configure:11284: checking for $ac_func" >&5
11284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11287 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func(); below. */
11292 #include <assert.h>
11293 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11300 /* The GNU C library defines this for functions which it implements
11301 to always fail with ENOSYS. Some functions are actually named
11302 something starting with __ and the normal name is an alias. */
11303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11311 if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11313 eval "ac_cv_func_$ac_func=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 eval "ac_cv_func_$ac_func=no"
11323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11324 echo "$ac_t""yes" 1>&6
11325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11326 cat >> confdefs.h <<EOF
11327 #define $ac_tr_func 1
11331 echo "$ac_t""no" 1>&6
11336 for ac_func in getopt tempnam
11338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11339 echo "configure:11340: checking for $ac_func" >&5
11340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11346 /* System header to define __stub macros and hopefully few prototypes,
11347 which can conflict with char $ac_func(); below. */
11348 #include <assert.h>
11349 /* Override any gcc2 internal prototype to avoid an error. */
11350 /* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11367 if { (eval echo configure:11368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11369 eval "ac_cv_func_$ac_func=yes"
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11374 eval "ac_cv_func_$ac_func=no"
11379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11380 echo "$ac_t""yes" 1>&6
11381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11382 cat >> confdefs.h <<EOF
11383 #define $ac_tr_func 1
11387 echo "$ac_t""no" 1>&6
11388 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11394 # Check Configuration
11396 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11397 echo "configure:11398: checking declaration of sys_errlist" >&5
11398 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11399 echo $ac_n "(cached) $ac_c" 1>&6
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11407 #include <sys/types.h>
11410 char *c = (char *) *sys_errlist
11413 if { (eval echo configure:11414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11415 ol_cv_dcl_sys_errlist=yes
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11420 ol_cv_dcl_sys_errlist=no
11425 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11426 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11427 if test $ol_cv_dcl_sys_errlist = no ; then
11428 cat >> confdefs.h <<\EOF
11429 #define DECL_SYS_ERRLIST 1
11432 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11433 echo "configure:11434: checking existence of sys_errlist" >&5
11434 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11443 char *c = (char *) *sys_errlist
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 ol_cv_have_sys_errlist=yes
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 ol_cv_have_sys_errlist=no
11458 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11459 if test $ol_cv_have_sys_errlist = yes ; then
11460 cat >> confdefs.h <<\EOF
11461 #define HAVE_SYS_ERRLIST 1
11469 if test "$ol_enable_debug" != no ; then
11470 cat >> confdefs.h <<\EOF
11471 #define LDAP_DEBUG 1
11475 if test "$ol_enable_syslog" = yes ; then
11476 cat >> confdefs.h <<\EOF
11477 #define LDAP_SYSLOG 1
11481 if test "$ol_enable_libui" = yes ; then
11482 cat >> confdefs.h <<\EOF
11483 #define LDAP_LIBUI 1
11487 if test "$ol_enable_cache" = no ; then
11488 cat >> confdefs.h <<\EOF
11489 #define LDAP_NOCACHE 1
11493 if test "$ol_enable_dns" != no ; then
11494 cat >> confdefs.h <<\EOF
11495 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11499 if test "$ol_enable_proctitle" != no ; then
11500 cat >> confdefs.h <<\EOF
11501 #define LDAP_PROCTITLE 1
11505 if test "$ol_enable_referrals" != no ; then
11506 cat >> confdefs.h <<\EOF
11507 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11511 if test "$ol_enable_cldap" != no ; then
11512 cat >> confdefs.h <<\EOF
11513 #define LDAP_CONNECTIONLESS 1
11518 if test "$ol_enable_aclgroups" != no ; then
11519 cat >> confdefs.h <<\EOF
11520 #define SLAPD_ACLGROUPS 1
11524 if test "$ol_enable_crypt" != no ; then
11525 cat >> confdefs.h <<\EOF
11526 #define SLAPD_CRYPT 1
11530 if test "$ol_enable_cleartext" != no ; then
11531 cat >> confdefs.h <<\EOF
11532 #define SLAPD_CLEARTEXT 1
11536 if test "$ol_enable_phonetic" != no ; then
11537 cat >> confdefs.h <<\EOF
11538 #define SLAPD_PHONETIC 1
11542 if test "$ol_enable_rlookups" != no ; then
11543 cat >> confdefs.h <<\EOF
11544 #define SLAPD_RLOOKUPS 1
11549 if test "$ol_link_modules" != no ; then
11550 cat >> confdefs.h <<\EOF
11551 #define SLAPD_MODULES 1
11557 if test "$ol_link_bdb2" != no ; then
11558 cat >> confdefs.h <<\EOF
11559 #define SLAPD_BDB2 1
11566 if test "$ol_enable_ldap" != no ; then
11567 cat >> confdefs.h <<\EOF
11568 #define SLAPD_LDAP 1
11575 if test "$ol_link_ldbm" != no ; then
11576 cat >> confdefs.h <<\EOF
11577 #define SLAPD_LDBM 1
11584 if test "$ol_enable_passwd" != no ; then
11585 cat >> confdefs.h <<\EOF
11586 #define SLAPD_PASSWD 1
11593 if test "$ol_link_perl" != no ; then
11594 cat >> confdefs.h <<\EOF
11595 #define SLAPD_PERL 1
11602 if test "$ol_enable_shell" != no ; then
11603 cat >> confdefs.h <<\EOF
11604 #define SLAPD_SHELL 1
11611 if test "$ol_enable_tcl" != no ; then
11612 cat >> confdefs.h <<\EOF
11613 #define SLAPD_TCL 1
11620 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11621 $BUILD_SLAPD = yes ; then
11625 if test "$ol_link_isode" != no ; then
11663 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11666 # Let make expand exec_prefix.
11667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11669 # Any assignment to VPATH causes Sun make to only execute
11670 # the first set of double-colon rules, so remove it if not needed.
11671 # If there is a colon in the path, we need to keep it.
11672 if test "x$srcdir" = x.; then
11673 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11676 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11678 DEFS=-DHAVE_CONFIG_H
11680 # Without the "./", some shells look in PATH for config.status.
11681 : ${CONFIG_STATUS=./config.status}
11683 echo creating $CONFIG_STATUS
11684 rm -f $CONFIG_STATUS
11685 cat > $CONFIG_STATUS <<EOF
11687 # Generated automatically by configure.
11688 # Run this file to recreate the current configuration.
11689 # This directory was configured as follows,
11690 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11692 # $0 $ac_configure_args
11694 # Compiler output produced by configure, useful for debugging
11695 # configure, is in ./config.log if it exists.
11697 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11700 case "\$ac_option" in
11701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11702 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11703 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11704 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11705 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11707 -help | --help | --hel | --he | --h)
11708 echo "\$ac_cs_usage"; exit 0 ;;
11709 *) echo "\$ac_cs_usage"; exit 1 ;;
11713 ac_given_srcdir=$srcdir
11714 ac_given_INSTALL="$INSTALL"
11716 trap 'rm -fr `echo "\
11717 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11718 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11719 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11720 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11721 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11722 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11723 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11724 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11725 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11726 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11727 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11728 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11729 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11730 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11731 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11732 include/Makefile:build/top.mk:include/Makefile.in \
11733 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11734 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11735 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11736 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11737 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11738 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11739 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11740 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11741 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11742 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11743 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11744 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11745 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11746 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11747 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11748 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11749 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11750 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11751 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11752 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11753 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11754 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11755 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11756 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11757 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11758 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11759 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11761 cat >> $CONFIG_STATUS <<EOF
11763 # Protect against being on the right side of a sed subst in config.status.
11764 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11765 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11769 s%@CFLAGS@%$CFLAGS%g
11770 s%@CPPFLAGS@%$CPPFLAGS%g
11771 s%@CXXFLAGS@%$CXXFLAGS%g
11772 s%@FFLAGS@%$FFLAGS%g
11774 s%@LDFLAGS@%$LDFLAGS%g
11776 s%@exec_prefix@%$exec_prefix%g
11777 s%@prefix@%$prefix%g
11778 s%@program_transform_name@%$program_transform_name%g
11779 s%@bindir@%$bindir%g
11780 s%@sbindir@%$sbindir%g
11781 s%@libexecdir@%$libexecdir%g
11782 s%@datadir@%$datadir%g
11783 s%@sysconfdir@%$sysconfdir%g
11784 s%@sharedstatedir@%$sharedstatedir%g
11785 s%@localstatedir@%$localstatedir%g
11786 s%@libdir@%$libdir%g
11787 s%@includedir@%$includedir%g
11788 s%@oldincludedir@%$oldincludedir%g
11789 s%@infodir@%$infodir%g
11790 s%@mandir@%$mandir%g
11791 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11792 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11793 s%@INSTALL_DATA@%$INSTALL_DATA%g
11794 s%@PACKAGE@%$PACKAGE%g
11795 s%@VERSION@%$VERSION%g
11796 s%@ACLOCAL@%$ACLOCAL%g
11797 s%@AUTOCONF@%$AUTOCONF%g
11798 s%@AUTOMAKE@%$AUTOMAKE%g
11799 s%@AUTOHEADER@%$AUTOHEADER%g
11800 s%@MAKEINFO@%$MAKEINFO%g
11801 s%@SET_MAKE@%$SET_MAKE%g
11802 s%@top_builddir@%$top_builddir%g
11803 s%@ldap_subdir@%$ldap_subdir%g
11806 s%@host_alias@%$host_alias%g
11807 s%@host_cpu@%$host_cpu%g
11808 s%@host_vendor@%$host_vendor%g
11809 s%@host_os@%$host_os%g
11810 s%@RANLIB@%$RANLIB%g
11814 s%@LIBTOOL@%$LIBTOOL%g
11817 s%@SENDMAIL@%$SENDMAIL%g
11818 s%@EDITOR@%$EDITOR%g
11819 s%@FINGER@%$FINGER%g
11820 s%@GLIBCONFIG@%$GLIBCONFIG%g
11821 s%@PERLBIN@%$PERLBIN%g
11823 s%@EXEEXT@%$EXEEXT%g
11824 s%@OBJEXT@%$OBJEXT%g
11825 s%@OL_MKDEP@%$OL_MKDEP%g
11826 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
11828 s%@LIBOBJS@%$LIBOBJS%g
11829 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11830 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11831 s%@BUILD_BDB2@%$BUILD_BDB2%g
11832 s%@BUILD_LDAP@%$BUILD_LDAP%g
11833 s%@BUILD_LDBM@%$BUILD_LDBM%g
11834 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11835 s%@BUILD_PERL@%$BUILD_PERL%g
11836 s%@BUILD_SHELL@%$BUILD_SHELL%g
11837 s%@BUILD_TCL@%$BUILD_TCL%g
11838 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11839 s%@LDAP_LIBS@%$LDAP_LIBS%g
11840 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11841 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11842 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11843 s%@LDBM_LIBS@%$LDBM_LIBS%g
11844 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11845 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11846 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11847 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11848 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11849 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11850 s%@KRB_LIBS@%$KRB_LIBS%g
11851 s%@READLINE_LIBS@%$READLINE_LIBS%g
11852 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11853 s%@TLS_LIBS@%$TLS_LIBS%g
11858 cat >> $CONFIG_STATUS <<\EOF
11860 # Split the substitutions into bite-sized pieces for seds with
11861 # small command number limits, like on Digital OSF/1 and HP-UX.
11862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11863 ac_file=1 # Number of current file.
11864 ac_beg=1 # First line for current file.
11865 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11868 while $ac_more_lines; do
11869 if test $ac_beg -gt 1; then
11870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11874 if test ! -s conftest.s$ac_file; then
11875 ac_more_lines=false
11876 rm -f conftest.s$ac_file
11878 if test -z "$ac_sed_cmds"; then
11879 ac_sed_cmds="sed -f conftest.s$ac_file"
11881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11883 ac_file=`expr $ac_file + 1`
11885 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11888 if test -z "$ac_sed_cmds"; then
11893 cat >> $CONFIG_STATUS <<EOF
11895 CONFIG_FILES=\${CONFIG_FILES-"\
11896 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11897 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11898 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11899 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11900 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11901 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11902 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11903 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11904 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11905 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11906 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11907 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11908 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11909 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11910 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11911 include/Makefile:build/top.mk:include/Makefile.in \
11912 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11913 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11914 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11915 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11916 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11917 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11918 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11919 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11920 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11921 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11922 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11923 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11924 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11925 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11926 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11927 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11928 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11929 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11930 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11931 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11932 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11933 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11934 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11935 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11936 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11937 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11940 cat >> $CONFIG_STATUS <<\EOF
11941 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11944 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11945 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11946 *) ac_file_in="${ac_file}.in" ;;
11949 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11951 # Remove last slash and all that follows it. Not all systems have dirname.
11952 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11954 # The file is in a subdirectory.
11955 test ! -d "$ac_dir" && mkdir "$ac_dir"
11956 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11957 # A "../" for each directory in $ac_dir_suffix.
11958 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11960 ac_dir_suffix= ac_dots=
11963 case "$ac_given_srcdir" in
11965 if test -z "$ac_dots"; then top_srcdir=.
11966 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11967 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11968 *) # Relative path.
11969 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11970 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11973 case "$ac_given_INSTALL" in
11974 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11975 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11978 echo creating "$ac_file"
11980 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11982 *Makefile*) ac_comsub="1i\\
11983 # $configure_input" ;;
11987 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11989 s%@configure_input@%$configure_input%g
11990 s%@srcdir@%$srcdir%g
11991 s%@top_srcdir@%$top_srcdir%g
11992 s%@INSTALL@%$INSTALL%g
11993 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12000 # ac_d sets the value in "#define NAME VALUE" lines.
12001 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12002 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12005 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12006 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12007 ac_uB='\([ ]\)%\1#\2define\3'
12010 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12011 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12012 ac_eB='$%\1#\2define\3'
12016 if test "${CONFIG_HEADERS+set}" != set; then
12018 cat >> $CONFIG_STATUS <<EOF
12019 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
12021 cat >> $CONFIG_STATUS <<\EOF
12023 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12028 *) ac_file_in="${ac_file}.in" ;;
12031 echo creating $ac_file
12033 rm -f conftest.frag conftest.in conftest.out
12034 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12035 cat $ac_file_inputs > conftest.in
12039 # Transform confdefs.h into a sed script conftest.vals that substitutes
12040 # the proper values into config.h.in to produce config.h. And first:
12041 # Protect against being on the right side of a sed subst in config.status.
12042 # Protect against being in an unquoted here document in config.status.
12043 rm -f conftest.vals
12044 cat > conftest.hdr <<\EOF
12047 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12051 sed -n -f conftest.hdr confdefs.h > conftest.vals
12054 # This sed command replaces #undef with comments. This is necessary, for
12055 # example, in the case of _POSIX_SOURCE, which is predefined and required
12056 # on some systems where configure will not decide to define it.
12057 cat >> conftest.vals <<\EOF
12058 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12061 # Break up conftest.vals because some shells have a limit on
12062 # the size of here documents, and old seds have small limits too.
12064 rm -f conftest.tail
12067 ac_lines=`grep -c . conftest.vals`
12068 # grep -c gives empty output for an empty file on some AIX systems.
12069 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12070 # Write a limited-size here document to conftest.frag.
12071 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12072 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12074 sed -f conftest.frag conftest.in > conftest.out
12076 mv conftest.out conftest.in
12077 ' >> $CONFIG_STATUS
12078 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12079 rm -f conftest.vals
12080 mv conftest.tail conftest.vals
12082 rm -f conftest.vals
12084 cat >> $CONFIG_STATUS <<\EOF
12085 rm -f conftest.frag conftest.h
12086 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12087 cat conftest.in >> conftest.h
12089 if cmp -s $ac_file conftest.h 2>/dev/null; then
12090 echo "$ac_file is unchanged"
12093 # Remove last slash and all that follows it. Not all systems have dirname.
12094 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12095 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12096 # The file is in a subdirectory.
12097 test ! -d "$ac_dir" && mkdir "$ac_dir"
12100 mv conftest.h $ac_file
12105 cat >> $CONFIG_STATUS <<EOF
12108 cat >> $CONFIG_STATUS <<\EOF
12111 echo Please \"make depend\" to build dependencies
12115 chmod +x $CONFIG_STATUS
12116 rm -fr confdefs* $ac_clean_files
12117 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1