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=
1823 # Make sure we can run config.sub.
1824 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1825 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1828 echo $ac_n "checking host system type""... $ac_c" 1>&6
1829 echo "configure:1830: checking host system type" >&5
1832 case "$host_alias" in
1836 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1837 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1839 *) host_alias=$nonopt ;;
1843 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1844 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1845 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1846 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1847 echo "$ac_t""$host" 1>&6
1849 # Extract the first word of "ranlib", so it can be a program name with args.
1850 set dummy ranlib; ac_word=$2
1851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1852 echo "configure:1853: checking for $ac_word" >&5
1853 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test -n "$RANLIB"; then
1857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1861 for ac_dir in $ac_dummy; do
1862 test -z "$ac_dir" && ac_dir=.
1863 if test -f $ac_dir/$ac_word; then
1864 ac_cv_prog_RANLIB="ranlib"
1869 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1872 RANLIB="$ac_cv_prog_RANLIB"
1873 if test -n "$RANLIB"; then
1874 echo "$ac_t""$RANLIB" 1>&6
1876 echo "$ac_t""no" 1>&6
1879 # Extract the first word of "gcc", so it can be a program name with args.
1880 set dummy gcc; ac_word=$2
1881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1882 echo "configure:1883: checking for $ac_word" >&5
1883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test -n "$CC"; then
1887 ac_cv_prog_CC="$CC" # Let the user override the test.
1889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1891 for ac_dir in $ac_dummy; do
1892 test -z "$ac_dir" && ac_dir=.
1893 if test -f $ac_dir/$ac_word; then
1902 if test -n "$CC"; then
1903 echo "$ac_t""$CC" 1>&6
1905 echo "$ac_t""no" 1>&6
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC="$CC" # Let the user override the test.
1919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1926 ac_prog_rejected=yes
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy $ac_cv_prog_CC
1938 if test $# -gt 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set CC to just the basename; use the full file name.
1943 set dummy "$ac_dir/$ac_word" "$@"
1951 if test -n "$CC"; then
1952 echo "$ac_t""$CC" 1>&6
1954 echo "$ac_t""no" 1>&6
1957 if test -z "$CC"; then
1958 case "`uname -s`" in
1960 # Extract the first word of "cl", so it can be a program name with args.
1961 set dummy cl; ac_word=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC="$CC" # Let the user override the test.
1970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1972 for ac_dir in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1983 if test -n "$CC"; then
1984 echo "$ac_t""$CC" 1>&6
1986 echo "$ac_t""no" 1>&6
1991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1995 echo "configure:1996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2001 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2002 cross_compiling=$ac_cv_prog_cc_cross
2004 cat > conftest.$ac_ext << EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 ac_cv_prog_cc_works=yes
2013 # If we can't run a trivial program, we are probably using a cross compiler.
2014 if (./conftest; exit) 2>/dev/null; then
2015 ac_cv_prog_cc_cross=no
2017 ac_cv_prog_cc_cross=yes
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 ac_cv_prog_cc_works=no
2026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2030 cross_compiling=$ac_cv_prog_cc_cross
2032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2033 if test $ac_cv_prog_cc_works = no; then
2034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2039 cross_compiling=$ac_cv_prog_cc_cross
2041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2042 echo "configure:2043: checking whether we are using GNU C" >&5
2043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.c <<EOF
2051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2060 if test $ac_cv_prog_gcc = yes; then
2066 ac_test_CFLAGS="${CFLAGS+set}"
2067 ac_save_CFLAGS="$CFLAGS"
2069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2070 echo "configure:2071: checking whether ${CC-cc} accepts -g" >&5
2071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 echo 'void f(){}' > conftest.c
2075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2085 if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS="$ac_save_CFLAGS"
2087 elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2094 if test "$GCC" = yes; then
2101 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2102 if test "${with_gnu_ld+set}" = set; then
2103 withval="$with_gnu_ld"
2104 test "$withval" = no || with_gnu_ld=yes
2111 if test "$ac_cv_prog_gcc" = yes; then
2112 # Check if gcc -print-prog-name=ld gives a path.
2113 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2114 echo "configure:2115: checking for ld used by GCC" >&5
2115 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2117 # Accept absolute paths.
2119 test -z "$LD" && LD="$ac_prog"
2122 # If it fails, then pretend we aren't using GCC.
2126 # If it is relative, then search for the first ld in PATH.
2130 elif test "$with_gnu_ld" = yes; then
2131 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2132 echo "configure:2133: checking for GNU ld" >&5
2134 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2135 echo "configure:2136: checking for non-GNU ld" >&5
2137 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 if test -z "$LD"; then
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2142 for ac_dir in $PATH; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f "$ac_dir/$ac_prog"; then
2145 ac_cv_path_LD="$ac_dir/$ac_prog"
2146 # Check to see if the program is GNU ld. I'd rather use --version,
2147 # but apparently some GNU ld's only accept -v.
2148 # Break only if it was the GNU/non-GNU ld that we prefer.
2149 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2150 test "$with_gnu_ld" != no && break
2152 test "$with_gnu_ld" != yes && break
2158 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2163 if test -n "$LD"; then
2164 echo "$ac_t""$LD" 1>&6
2166 echo "$ac_t""no" 1>&6
2168 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2170 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2171 echo "configure:2172: checking if the linker ($LD) is GNU ld" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2176 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2177 ac_cv_prog_gnu_ld=yes
2179 ac_cv_prog_gnu_ld=no
2183 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2186 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2187 echo "configure:2188: checking for BSD-compatible nm" >&5
2188 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2193 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2197 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/nm; then
2200 # Check to see if the nm accepts a BSD-compat flag.
2201 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2202 # nm: unknown option "B" ignored
2203 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2204 ac_cv_path_NM="$ac_dir/nm -B"
2205 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2206 ac_cv_path_NM="$ac_dir/nm -p"
2208 ac_cv_path_NM="$ac_dir/nm"
2214 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2220 echo "$ac_t""$NM" 1>&6
2223 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether ln -s works" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2229 if ln -s X conftestdata 2>/dev/null
2232 ac_cv_prog_LN_S="ln -s"
2237 LN_S="$ac_cv_prog_LN_S"
2238 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2239 echo "$ac_t""yes" 1>&6
2241 echo "$ac_t""no" 1>&6
2244 # Always use our own libtool.
2245 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2247 # Check for any special flags to pass to ltconfig.
2249 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2250 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2251 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2252 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2253 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2255 # Some flags need to be propagated to the compiler or linker for good
2259 # Find out which ABI we are using.
2260 echo '#line 2261 "configure"' > conftest.$ac_ext
2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2262 case "`/usr/bin/file conftest.o`" in
2278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2279 CFLAGS="$CFLAGS -belf"
2283 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2284 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2285 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2286 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2287 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2288 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2291 for ac_prog in mawk gawk nawk awk
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test -n "$AWK"; then
2301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 for ac_dir in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_prog_AWK="$ac_prog"
2315 AWK="$ac_cv_prog_AWK"
2316 if test -n "$AWK"; then
2317 echo "$ac_t""$AWK" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 test -n "$AWK" && break
2325 # test for ln hardlink support
2326 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2327 echo "configure:2328: checking whether ln works" >&5
2328 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 rm -f conftest.src conftest.dst
2332 echo "conftest" > conftest.src
2333 if ln conftest.src conftest.dst 2>/dev/null
2335 ol_cv_prog_LN_H="ln"
2337 ol_cv_prog_LN_H="cp"
2339 rm -f conftest.src conftest.dst
2342 LN_H="$ol_cv_prog_LN_H"
2343 if test "$ol_cv_prog_LN_H" = "ln"; then
2344 echo "$ac_t""yes" 1>&6
2346 echo "$ac_t""no" 1>&6
2349 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether ln -s works" >&5
2351 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2355 if ln -s X conftestdata 2>/dev/null
2358 ac_cv_prog_LN_S="ln -s"
2363 LN_S="$ac_cv_prog_LN_S"
2364 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2365 echo "$ac_t""yes" 1>&6
2367 echo "$ac_t""no" 1>&6
2371 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2375 # Extract the first word of "sendmail", so it can be a program name with args.
2376 set dummy sendmail; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2387 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2391 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2392 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 if test -f $ac_dir/$ac_word; then
2395 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2400 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2404 SENDMAIL="$ac_cv_path_SENDMAIL"
2405 if test -n "$SENDMAIL"; then
2406 echo "$ac_t""$SENDMAIL" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 # Extract the first word of "vi", so it can be a program name with args.
2412 set dummy vi; ac_word=$2
2413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2414 echo "configure:2415: checking for $ac_word" >&5
2415 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2420 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2423 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 ac_dummy="$PATH:/usr/ucb"
2428 for ac_dir in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir=.
2430 if test -f $ac_dir/$ac_word; then
2431 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2436 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2440 EDITOR="$ac_cv_path_EDITOR"
2441 if test -n "$EDITOR"; then
2442 echo "$ac_t""$EDITOR" 1>&6
2444 echo "$ac_t""no" 1>&6
2447 # Extract the first word of "finger", so it can be a program name with args.
2448 set dummy finger; ac_word=$2
2449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_word" >&5
2451 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2456 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2459 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2463 ac_dummy="$PATH:/usr/ucb"
2464 for ac_dir in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_path_FINGER="$ac_dir/$ac_word"
2472 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2476 FINGER="$ac_cv_path_FINGER"
2477 if test -n "$FINGER"; then
2478 echo "$ac_t""$FINGER" 1>&6
2480 echo "$ac_t""no" 1>&6
2485 if test $ol_enable_modules != no ; then
2486 # Extract the first word of "glib-config", so it can be a program name with args.
2487 set dummy glib-config; ac_word=$2
2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2489 echo "configure:2490: checking for $ac_word" >&5
2490 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 case "$GLIBCONFIG" in
2495 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2498 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2506 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2514 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2515 if test -n "$GLIBCONFIG"; then
2516 echo "$ac_t""$GLIBCONFIG" 1>&6
2518 echo "$ac_t""no" 1>&6
2522 if test "no$GLIBCONFIG" = "no" ; then
2523 if test $ol_enable_modules = yes ; then
2524 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2528 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2529 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2530 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2537 if test $ol_enable_perl != no ; then
2538 # Extract the first word of "perl", so it can be a program name with args.
2539 set dummy perl; ac_word=$2
2540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_word" >&5
2542 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2547 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2550 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2555 for ac_dir in $ac_dummy; do
2556 test -z "$ac_dir" && ac_dir=.
2557 if test -f $ac_dir/$ac_word; then
2558 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2563 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2567 PERLBIN="$ac_cv_path_PERLBIN"
2568 if test -n "$PERLBIN"; then
2569 echo "$ac_t""$PERLBIN" 1>&6
2571 echo "$ac_t""no" 1>&6
2575 if test "no$PERLBIN" = "no" ; then
2576 if test $ol_enable_perl = yes ; then
2577 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2581 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2582 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2588 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2589 echo "configure:2590: checking how to run the C preprocessor" >&5
2590 # On Suns, sometimes $CPP names a directory.
2591 if test -n "$CPP" && test -d "$CPP"; then
2594 if test -z "$CPP"; then
2595 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 # This must be in double quotes, not single quotes, because CPP may get
2599 # substituted into the Makefile and "${CC-cc}" will confuse make.
2601 # On the NeXT, cc -E runs the code through the compiler's parser,
2602 # not just through cpp.
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610 { (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612 if test -z "$ac_err"; then
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 CPP="${CC-cc} -E -traditional-cpp"
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2633 echo "configure: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2636 CPP="${CC-cc} -nologo -E"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2660 ac_cv_prog_CPP="$CPP"
2662 CPP="$ac_cv_prog_CPP"
2664 ac_cv_prog_CPP="$CPP"
2666 echo "$ac_t""$CPP" 1>&6
2669 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2670 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2672 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2673 echo "configure: warning: programs compiled here do run here..." 1>&2
2674 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2676 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2677 echo "configure: warning: programs compiled here do not run here..." 1>&2
2678 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2681 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2682 echo "configure:2683: checking for AIX" >&5
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2692 egrep "yes" >/dev/null 2>&1; then
2694 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2695 #define _ALL_SOURCE 1
2700 echo "$ac_t""no" 1>&6
2705 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2706 echo "configure:2707: checking for POSIXized ISC" >&5
2707 if test -d /etc/conf/kconfig.d &&
2708 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2710 echo "$ac_t""yes" 1>&6
2711 ISC=yes # If later tests want to check for ISC.
2712 cat >> confdefs.h <<\EOF
2713 #define _POSIX_SOURCE 1
2716 if test "$GCC" = yes; then
2722 echo "$ac_t""no" 1>&6
2726 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2727 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2728 echo "configure:2729: checking for minix/config.h" >&5
2729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 #include <minix/config.h>
2737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2738 { (eval echo configure:2739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2740 if test -z "$ac_err"; then
2742 eval "ac_cv_header_$ac_safe=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2748 eval "ac_cv_header_$ac_safe=no"
2752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2756 echo "$ac_t""no" 1>&6
2760 if test "$MINIX" = yes; then
2761 cat >> confdefs.h <<\EOF
2762 #define _POSIX_SOURCE 1
2765 cat >> confdefs.h <<\EOF
2766 #define _POSIX_1_SOURCE 2
2769 cat >> confdefs.h <<\EOF
2776 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2777 echo "configure:2778: checking for be_app in -lbe" >&5
2778 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 ac_save_LIBS="$LIBS"
2783 LIBS="-lbe -lroot -lnet $LIBS"
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 /* Override any gcc2 internal prototype to avoid an error. */
2788 /* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2796 if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2798 eval "ac_cv_lib_$ac_lib_var=yes"
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2803 eval "ac_cv_lib_$ac_lib_var=no"
2806 LIBS="$ac_save_LIBS"
2809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 LIBS="$LIBS -lbe -lroot -lnet"
2813 echo "$ac_t""no" 1>&6
2818 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2819 echo "configure:2820: checking for Cygwin environment" >&5
2820 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2830 #define __CYGWIN__ __CYGWIN32__
2835 if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2848 echo "$ac_t""$ac_cv_cygwin" 1>&6
2850 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2851 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2852 echo "configure:2853: checking for mingw32 environment" >&5
2853 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2864 if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2877 echo "$ac_t""$ac_cv_mingw32" 1>&6
2879 test "$ac_cv_mingw32" = yes && MINGW32=yes
2882 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2883 echo "configure:2884: checking for executable suffix" >&5
2884 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2891 echo 'int main () { return 0; }' > conftest.$ac_ext
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2894 for file in conftest.*; do
2896 *.c | *.o | *.obj) ;;
2897 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2901 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2904 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2909 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2910 echo "$ac_t""${ac_cv_exeext}" 1>&6
2913 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2914 echo "configure:2915: checking for object suffix" >&5
2915 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2919 echo 'int i = 1;' > conftest.$ac_ext
2920 if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2921 for ac_file in conftest.*; do
2924 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2928 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2933 echo "$ac_t""$ac_cv_objext" 1>&6
2934 OBJEXT=$ac_cv_objext
2935 ac_objext=$ac_cv_objext
2938 cat >> confdefs.h <<EOF
2939 #define EXEEXT "${EXEEXT}"
2946 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2947 echo "configure:2948: checking for ${CC-cc} option to accept ANSI C" >&5
2948 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 am_cv_prog_cc_stdc=no
2953 # Don't try gcc -ansi; that turns off useful extensions and
2954 # breaks some systems' header files.
2955 # AIX -qlanglvl=ansi
2956 # Ultrix and OSF/1 -std1
2957 # HP-UX -Aa -D_HPUX_SOURCE
2958 # SVR4 -Xc -D__EXTENSIONS__
2959 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2961 CC="$ac_save_CC $ac_arg"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 #include <sys/types.h>
2968 #include <sys/stat.h>
2969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2970 struct buf { int x; };
2971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2972 static char *e (p, i)
2978 static char *f (char * (*g) (char **, int), char **p, ...)
2983 s = g (p, va_arg (v,int));
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3000 if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002 am_cv_prog_cc_stdc="$ac_arg"; break
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3013 if test -z "$am_cv_prog_cc_stdc"; then
3014 echo "$ac_t""none needed" 1>&6
3016 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3018 case "x$am_cv_prog_cc_stdc" in
3020 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3023 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3024 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3028 # test for cc depend flag
3029 echo $ac_n "checking for ${CC-cc} depend flag""... $ac_c" 1>&6
3030 echo "configure:3031: checking for ${CC-cc} depend flag" >&5
3031 if eval "test \"`echo '$''{'ol_cv_cc_depend'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3035 if test $GCC = yes ; then
3036 ol_cv_cc_depend="-M"
3038 for flag in "-M" "-xM"; do
3039 cat > conftest.c <<EOF
3042 if { ac_try='${CC-cc} $flag conftest.c'; { (eval echo configure:3043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3043 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3045 cc_cv_cc_depend=$flag
3053 echo "$ac_t""$ol_cv_cc_depend" 1>&6
3054 if test "${ol_cv_cc_depend}" != no ; then
3055 CC_DEPEND_FLAGS="${ol_cv_cc_depend}"
3058 echo "configure: warning: do not know how to generate dependencies" 1>&2
3064 echo $ac_n "checking for socket""... $ac_c" 1>&6
3065 echo "configure:3066: checking for socket" >&5
3066 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* System header to define __stub macros and hopefully few prototypes,
3073 which can conflict with char socket(); below. */
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3082 /* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085 #if defined (__stub_socket) || defined (__stub___socket)
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3095 eval "ac_cv_func_socket=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_func_socket=no"
3105 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3109 echo "$ac_t""no" 1>&6
3111 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3112 echo "configure:3113: checking for main in -lsocket" >&5
3113 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_save_LIBS="$LIBS"
3118 LIBS="-lsocket $LIBS"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3127 if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129 eval "ac_cv_lib_$ac_lib_var=yes"
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 eval "ac_cv_lib_$ac_lib_var=no"
3137 LIBS="$ac_save_LIBS"
3140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3141 echo "$ac_t""yes" 1>&6
3142 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3144 cat >> confdefs.h <<EOF
3145 #define $ac_tr_lib 1
3148 LIBS="-lsocket $LIBS"
3151 echo "$ac_t""no" 1>&6
3154 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3155 echo "configure:3156: checking for main in -lnet" >&5
3156 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 ac_save_LIBS="$LIBS"
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172 eval "ac_cv_lib_$ac_lib_var=yes"
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 eval "ac_cv_lib_$ac_lib_var=no"
3180 LIBS="$ac_save_LIBS"
3183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_lib 1
3194 echo "$ac_t""no" 1>&6
3197 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3198 echo "configure:3199: checking for socket in -lnet" >&5
3199 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_save_LIBS="$LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 eval "ac_cv_lib_$ac_lib_var=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_lib_$ac_lib_var=no"
3227 LIBS="$ac_save_LIBS"
3230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3234 cat >> confdefs.h <<EOF
3235 #define $ac_tr_lib 1
3241 echo "$ac_t""no" 1>&6
3244 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3245 echo "configure:3246: checking for main in -lnsl_s" >&5
3246 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 ac_save_LIBS="$LIBS"
3251 LIBS="-lnsl_s $LIBS"
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3262 eval "ac_cv_lib_$ac_lib_var=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_lib_$ac_lib_var=no"
3270 LIBS="$ac_save_LIBS"
3273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3277 cat >> confdefs.h <<EOF
3278 #define $ac_tr_lib 1
3281 LIBS="-lnsl_s $LIBS"
3284 echo "$ac_t""no" 1>&6
3287 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3288 echo "configure:3289: checking for main in -lnsl" >&5
3289 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS="$LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 eval "ac_cv_lib_$ac_lib_var=no"
3313 LIBS="$ac_save_LIBS"
3316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3320 cat >> confdefs.h <<EOF
3321 #define $ac_tr_lib 1
3327 echo "$ac_t""no" 1>&6
3330 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3331 echo "configure:3332: checking for socket in -linet" >&5
3332 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 ac_save_LIBS="$LIBS"
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 /* We use char because int might match the return type of a gcc2
3343 builtin and then its argument prototype would still apply. */
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 eval "ac_cv_lib_$ac_lib_var=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 eval "ac_cv_lib_$ac_lib_var=no"
3360 LIBS="$ac_save_LIBS"
3363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3364 echo "$ac_t""yes" 1>&6
3365 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3367 cat >> confdefs.h <<EOF
3368 #define $ac_tr_lib 1
3374 echo "$ac_t""no" 1>&6
3377 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3378 echo "configure:3379: checking for main in -lgen" >&5
3379 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 ac_save_LIBS="$LIBS"
3385 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure"
3387 #include "confdefs.h"
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3400 eval "ac_cv_lib_$ac_lib_var=no"
3403 LIBS="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3409 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3410 cat >> confdefs.h <<EOF
3411 #define $ac_tr_lib 1
3417 echo "$ac_t""no" 1>&6
3424 for ac_func in res_search
3426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3427 echo "configure:3428: checking for $ac_func" >&5
3428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 /* System header to define __stub macros and hopefully few prototypes,
3435 which can conflict with char $ac_func(); below. */
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3444 /* The GNU C library defines this for functions which it implements
3445 to always fail with ENOSYS. Some functions are actually named
3446 something starting with __ and the normal name is an alias. */
3447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 eval "ac_cv_func_$ac_func=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_func_$ac_func=no"
3467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3470 cat >> confdefs.h <<EOF
3471 #define $ac_tr_func 1
3475 echo "$ac_t""no" 1>&6
3479 if test $ac_cv_func_res_search = "no" ; then
3480 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3481 echo "configure:3482: checking for res_search in -lbind" >&5
3482 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 ac_save_LIBS="$LIBS"
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_lib 1
3524 echo "$ac_t""no" 1>&6
3527 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_RES_SEARCH 1
3533 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3534 echo "configure:3535: checking for res_search in -lresolv" >&5
3535 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 ac_save_LIBS="$LIBS"
3540 LIBS="-lresolv $LIBS"
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 /* Override any gcc2 internal prototype to avoid an error. */
3545 /* We use char because int might match the return type of a gcc2
3546 builtin and then its argument prototype would still apply. */
3553 if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 eval "ac_cv_lib_$ac_lib_var=yes"
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3560 eval "ac_cv_lib_$ac_lib_var=no"
3563 LIBS="$ac_save_LIBS"
3566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3567 echo "$ac_t""yes" 1>&6
3568 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3569 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3570 cat >> confdefs.h <<EOF
3571 #define $ac_tr_lib 1
3574 LIBS="-lresolv $LIBS"
3577 echo "$ac_t""no" 1>&6
3580 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3581 cat >> confdefs.h <<\EOF
3582 #define HAVE_RES_SEARCH 1
3589 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3590 echo "configure:3591: checking for sigset in -lV3" >&5
3591 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS="$LIBS"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 /* Override any gcc2 internal prototype to avoid an error. */
3601 /* We use char because int might match the return type of a gcc2
3602 builtin and then its argument prototype would still apply. */
3609 if { (eval echo configure:3610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3611 eval "ac_cv_lib_$ac_lib_var=yes"
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3616 eval "ac_cv_lib_$ac_lib_var=no"
3619 LIBS="$ac_save_LIBS"
3622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3626 cat >> confdefs.h <<EOF
3627 #define $ac_tr_lib 1
3633 echo "$ac_t""no" 1>&6
3637 for ac_hdr in regex.h
3639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3641 echo "configure:3642: checking for $ac_hdr" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3651 { (eval echo configure:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3653 if test -z "$ac_err"; then
3655 eval "ac_cv_header_$ac_safe=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_header_$ac_safe=no"
3665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3668 cat >> confdefs.h <<EOF
3669 #define $ac_tr_hdr 1
3673 echo "$ac_t""no" 1>&6
3677 if test "$ac_cv_header_regex_h" != yes ; then
3678 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3680 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3681 echo "configure:3682: checking for regfree" >&5
3682 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 /* System header to define __stub macros and hopefully few prototypes,
3689 which can conflict with char regfree(); below. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_regfree) || defined (__stub___regfree)
3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 eval "ac_cv_func_regfree=yes"
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_func_regfree=no"
3721 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3725 echo "$ac_t""no" 1>&6
3726 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3730 echo $ac_n "checking for select""... $ac_c" 1>&6
3731 echo "configure:3732: checking for select" >&5
3732 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* System header to define __stub macros and hopefully few prototypes,
3739 which can conflict with char select(); below. */
3741 /* Override any gcc2 internal prototype to avoid an error. */
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_select) || defined (__stub___select)
3759 if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761 eval "ac_cv_func_select=yes"
3763 echo "configure: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_func_select=no"
3771 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3772 echo "$ac_t""yes" 1>&6
3775 echo "$ac_t""no" 1>&6
3776 { echo "configure: error: select() required." 1>&2; exit 1; }
3780 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3781 echo "configure:3782: checking types of arguments for select()" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3792 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3793 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #ifdef HAVE_SYS_TYPES_H
3798 #include <sys/types.h>
3800 #ifdef HAVE_SYS_TIME_H
3801 #include <sys/time.h>
3803 #ifdef HAVE_SYS_SELECT_H
3804 #include <sys/select.h>
3806 #ifdef HAVE_SYS_SOCKET_H
3807 #include <sys/socket.h>
3809 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);
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 ac_not_found=no ; break 3
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3833 if test "$ac_not_found" = yes; then
3834 ac_cv_func_select_arg1=int
3835 ac_cv_func_select_arg234='int *'
3836 ac_cv_func_select_arg5='struct timeval *'
3838 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3839 cat >> confdefs.h <<EOF
3840 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3843 cat >> confdefs.h <<EOF
3844 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3847 cat >> confdefs.h <<EOF
3848 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3855 if test $ol_enable_ldapd != no ; then
3856 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3858 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3859 echo "configure:3860: checking for main in -lxtpp" >&5
3860 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_save_LIBS="$LIBS"
3865 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_lib_$ac_lib_var=no"
3884 LIBS="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3891 cat >> confdefs.h <<\EOF
3895 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3898 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3903 echo "configure:3904: checking for main in -ldsap" >&5
3904 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_save_LIBS="$LIBS"
3909 LIBS="-ldsap -lisode $LIBS"
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3935 cat >> confdefs.h <<\EOF
3939 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3942 echo "$ac_t""no" 1>&6
3946 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3947 echo "configure:3948: checking for main in -lisode" >&5
3948 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_save_LIBS="$LIBS"
3953 LIBS="-lisode $LIBS"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3964 eval "ac_cv_lib_$ac_lib_var=yes"
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3969 eval "ac_cv_lib_$ac_lib_var=no"
3972 LIBS="$ac_save_LIBS"
3975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3976 echo "$ac_t""yes" 1>&6
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_ISODE 1
3983 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3986 echo "$ac_t""no" 1>&6
3992 if test $ol_link_isode != no; then
3993 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3994 echo "configure:3995: checking for main in -lpp" >&5
3995 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_save_LIBS="$LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4011 eval "ac_cv_lib_$ac_lib_var=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 eval "ac_cv_lib_$ac_lib_var=no"
4019 LIBS="$ac_save_LIBS"
4022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6
4025 cat >> confdefs.h <<\EOF
4029 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4032 echo "$ac_t""no" 1>&6
4037 # Extract the first word of "pepsy", so it can be a program name with args.
4038 set dummy pepsy; ac_word=$2
4039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4040 echo "configure:4041: checking for $ac_word" >&5
4041 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4046 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4049 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4054 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 if test -f $ac_dir/$ac_word; then
4057 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4065 PEPSY="$ac_cv_path_PEPSY"
4066 if test -n "$PEPSY"; then
4067 echo "$ac_t""$PEPSY" 1>&6
4069 echo "$ac_t""no" 1>&6
4076 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4077 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4081 echo "configure:4082: checking for $ac_hdr" >&5
4082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4091 { (eval echo configure:4092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4093 if test -z "$ac_err"; then
4095 eval "ac_cv_header_$ac_safe=yes"
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4101 eval "ac_cv_header_$ac_safe=no"
4105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4106 echo "$ac_t""yes" 1>&6
4107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4108 cat >> confdefs.h <<EOF
4109 #define $ac_tr_hdr 1
4113 echo "$ac_t""no" 1>&6
4118 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4119 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4120 echo "configure:4121: checking for main in -lkrb4" >&5
4121 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4125 ac_save_LIBS="$LIBS"
4126 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4137 eval "ac_cv_lib_$ac_lib_var=yes"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 eval "ac_cv_lib_$ac_lib_var=no"
4145 LIBS="$ac_save_LIBS"
4148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4149 echo "$ac_t""yes" 1>&6
4152 echo "$ac_t""no" 1>&6
4157 if test $have_k5 = yes ; then
4158 ol_with_kerberos=found
4159 ol_link_kerberos=yes
4161 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4163 LIBS="$KRB_LIBS $LIBS"
4165 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4166 echo "configure:4167: checking for des_debug in Kerberos libraries" >&5
4167 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4172 LIBS="$KRB_LIBS $LIBS"
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4177 #include <kerberosIV/krb.h>
4178 #include <kerberosIV/des.h>
4179 extern int des_debug;
4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4189 ol_cv_var_des_debug=yes
4191 echo "configure: failed program was:" >&5
4192 cat conftest.$ac_ext >&5
4194 ol_cv_var_des_debug=no
4201 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4203 if test $ol_cv_var_des_debug = yes ; then
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_DES_DEBUG 1
4215 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4216 for ac_hdr in krb.h des.h
4218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_hdr" >&5
4221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4230 { (eval echo configure:4231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4232 if test -z "$ac_err"; then
4234 eval "ac_cv_header_$ac_safe=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_header_$ac_safe=no"
4244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4247 cat >> confdefs.h <<EOF
4248 #define $ac_tr_hdr 1
4252 echo "$ac_t""no" 1>&6
4257 if test $ac_cv_header_krb_h = yes ; then
4258 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4259 echo "configure:4260: checking for main in -lkrb" >&5
4260 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 ac_save_LIBS="$LIBS"
4265 LIBS="-lkrb -ldes $LIBS"
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4274 if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 eval "ac_cv_lib_$ac_lib_var=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 eval "ac_cv_lib_$ac_lib_var=no"
4284 LIBS="$ac_save_LIBS"
4287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4291 echo "$ac_t""no" 1>&6
4296 if test $have_k4 = yes ; then
4297 ol_with_kerberos=found
4298 ol_link_kerberos=yes
4300 KRB_LIBS="-lkrb -ldes"
4305 if test $ol_link_kerberos = yes ; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_KERBEROS 1
4313 if test $ol_with_tls != no ; then
4317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_hdr" >&5
4320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4329 { (eval echo configure:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4331 if test -z "$ac_err"; then
4333 eval "ac_cv_header_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_header_$ac_safe=no"
4343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_hdr 1
4351 echo "$ac_t""no" 1>&6
4356 if test $ac_cv_header_ssl_h = yes ; then
4357 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4358 echo "configure:4359: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4359 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS="$LIBS"
4364 LIBS="-lssl -lcrypto $LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4371 char SSLeay_add_ssl_algorithms();
4374 SSLeay_add_ssl_algorithms()
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_lib_$ac_lib_var=no"
4387 LIBS="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4395 echo "$ac_t""no" 1>&6
4400 if test $have_ssleay = no ; then
4401 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4402 echo "configure:4403: checking for ssl3_accept in -lssl" >&5
4403 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS="$LIBS"
4408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4439 echo "$ac_t""no" 1>&6
4445 if test $have_ssleay = yes ; then
4449 cat >> confdefs.h <<\EOF
4450 #define HAVE_SSLEAY 1
4454 if test $need_rsaref = yes; then
4455 cat >> confdefs.h <<\EOF
4456 #define HAVE_RSAREF 1
4460 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4462 TLS_LIBS="-lssl -lcrypto"
4468 if test $ol_link_tls = yes ; then
4469 cat >> confdefs.h <<\EOF
4477 gethostbyname_r gethostbyaddr_r \
4480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_func" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char $ac_func(); below. */
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4498 /* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
4501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_func_$ac_func=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_func_$ac_func=no"
4521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4524 cat >> confdefs.h <<EOF
4525 #define $ac_tr_func 1
4529 echo "$ac_t""no" 1>&6
4534 if test "$ac_cv_func_ctime_r" = no ; then
4535 ol_cv_func_ctime_r_nargs=0
4537 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4538 echo "configure:4539: checking number of arguments of ctime_r" >&5
4539 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4547 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4550 if { (eval echo configure:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4552 ol_cv_func_ctime_r_nargs=3
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 time_t ti; char *buffer; ctime_r(&ti,buffer);
4565 if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4567 ol_cv_func_ctime_r_nargs=2
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4572 ol_cv_func_ctime_r_nargs=0
4579 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4580 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4581 cat >> confdefs.h <<EOF
4582 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4589 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4590 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4591 echo "configure:4592: checking number of arguments of gethostbyname_r" >&5
4592 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+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 #include <sys/types.h>
4599 #include <sys/socket.h>
4600 #include <netinet/in.h>
4602 #define BUFSIZE (sizeof(struct hostent)+10)
4604 struct hostent hent; char buffer[BUFSIZE];
4605 int bufsize=BUFSIZE;int h_errno;
4606 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4607 buffer, bufsize, &h_errno);
4610 if { (eval echo configure:4611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4612 ol_cv_func_gethostbyname_r_nargs=5
4614 echo "configure: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 #include <sys/types.h>
4621 #include <sys/socket.h>
4622 #include <netinet/in.h>
4624 #define BUFSIZE (sizeof(struct hostent)+10)
4626 struct hostent hent;struct hostent *rhent;
4627 char buffer[BUFSIZE];
4628 int bufsize=BUFSIZE;int h_errno;
4629 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4633 if { (eval echo configure:4634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4635 ol_cv_func_gethostbyname_r_nargs=6
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 ol_cv_func_gethostbyname_r_nargs=0
4647 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4648 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4649 cat >> confdefs.h <<EOF
4650 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4656 ol_cv_func_gethostbyname_r_nargs=0
4659 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4660 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4661 echo "configure:4662: checking number of arguments of gethostbyaddr_r" >&5
4662 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4663 echo $ac_n "(cached) $ac_c" 1>&6
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 #include <sys/types.h>
4669 #include <sys/socket.h>
4670 #include <netinet/in.h>
4672 #define BUFSIZE (sizeof(struct hostent)+10)
4674 struct hostent hent; char buffer[BUFSIZE];
4676 size_t alen=sizeof(struct in_addr);
4677 int bufsize=BUFSIZE;int h_errno;
4678 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4679 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4682 if { (eval echo configure:4683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4684 ol_cv_func_gethostbyaddr_r_nargs=7
4686 echo "configure: failed program was:" >&5
4687 cat conftest.$ac_ext >&5
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #include <sys/types.h>
4693 #include <sys/socket.h>
4694 #include <netinet/in.h>
4696 #define BUFSIZE (sizeof(struct hostent)+10)
4698 struct hostent hent;
4699 struct hostent *rhent; char buffer[BUFSIZE];
4701 size_t alen=sizeof(struct in_addr);
4702 int bufsize=BUFSIZE;int h_errno;
4703 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4704 alen, AF_INET, &hent, buffer, bufsize,
4708 if { (eval echo configure:4709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 ol_cv_func_gethostbyaddr_r_nargs=8
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 ol_cv_func_gethostbyaddr_r_nargs=0
4722 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4723 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4724 cat >> confdefs.h <<EOF
4725 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4731 ol_cv_func_gethostbyaddr_r_nargs=0
4734 if test "$ac_cv_func_ctime_r" = yes \
4735 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4736 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4737 -a "$ac_cv_func_gethostbyname_r" = yes \
4738 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4739 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4740 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4741 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4742 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4745 cat >> confdefs.h <<\EOF
4746 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4752 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4753 -o $ol_with_threads = posix ; then
4755 for ac_hdr in pthread.h sched.h
4757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4759 echo "configure:4760: checking for $ac_hdr" >&5
4760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4769 { (eval echo configure:4770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4771 if test -z "$ac_err"; then
4773 eval "ac_cv_header_$ac_safe=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 eval "ac_cv_header_$ac_safe=no"
4783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4786 cat >> confdefs.h <<EOF
4787 #define $ac_tr_hdr 1
4791 echo "$ac_t""no" 1>&6
4796 if test $ac_cv_header_pthread_h = yes ; then
4797 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4798 echo "configure:4799: checking POSIX thread version" >&5
4799 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4807 # include <pthread.h>
4808 /* this check could be improved */
4809 # ifdef PTHREAD_ONCE_INIT
4810 pthread_version_final
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 egrep "pthread_version_final" >/dev/null 2>&1; then
4817 ol_pthread_final=yes
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4829 # include <pthread.h>
4830 /* this check could be improved */
4831 # ifdef pthread_once_init
4832 pthread_version_draft4
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4839 ol_pthread_draft4=yes
4842 ol_pthread_draft4=no
4847 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4848 ol_cv_pthread_version=final
4849 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4850 ol_cv_pthread_version=draft4
4852 ol_cv_pthread_version=unknown
4857 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4860 if test $ol_cv_pthread_version = final ; then
4861 cat >> confdefs.h <<\EOF
4862 #define HAVE_PTHREADS_FINAL 1
4865 elif test $ol_cv_pthread_version = draft4 ; then
4866 cat >> confdefs.h <<\EOF
4867 #define HAVE_PTHREADS_D4 1
4871 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4874 # consider threads found
4875 ol_with_threads=found
4878 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4879 echo "configure:4880: checking for LinuxThreads pthread.h" >&5
4880 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4881 echo $ac_n "(cached) $ac_c" 1>&6
4883 cat > conftest.$ac_ext <<EOF
4884 #line 4885 "configure"
4885 #include "confdefs.h"
4886 #include <pthread.h>
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4891 ol_cv_header_linux_threads=yes
4894 ol_cv_header_linux_threads=no
4901 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4902 if test $ol_cv_header_linux_threads = yes; then
4903 cat >> confdefs.h <<\EOF
4904 #define HAVE_LINUX_THREADS 1
4911 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4912 echo "configure:4913: checking for pthread_create in default libraries" >&5
4913 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 if test "$cross_compiling" = yes; then
4918 ol_cv_pthread_create=yes
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4924 #include <pthread.h>
4926 #define NULL (void*)0
4929 static void *task(p)
4932 return (void *) (p == NULL);
4935 int main(argc, argv)
4942 /* make sure pthread_create() isn't just a stub */
4943 #if HAVE_PTHREADS_D4
4944 status = pthread_create(&t, pthread_attr_default, task, NULL);
4946 status = pthread_create(&t, NULL, task, NULL);
4949 if( status ) return status;
4951 /* make sure pthread_detach() isn't just a stub */
4952 #if HAVE_PTHREADS_D4
4953 status = pthread_detach( &t );
4955 status = pthread_detach( t );
4958 if( status ) return status;
4964 if { (eval echo configure:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4966 ol_cv_pthread_create=yes
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4971 ol_cv_pthread_create=no
4978 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4980 if test $ol_cv_pthread_create != no ; then
4981 ol_link_threads=posix
4985 # Pthread try link: -mt (ol_cv_pthread_mt)
4986 if test "$ol_link_threads" = no ; then
4988 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4989 echo "configure:4990: checking for pthread link with -mt" >&5
4990 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5002 #include <pthread.h>
5004 #define NULL (void*)0
5011 #if HAVE_PTHREADS_D4
5012 pthread_create(&t, pthread_attr_default, NULL, NULL);
5013 pthread_detach( &t );
5015 pthread_create(&t, NULL, NULL, NULL);
5016 pthread_detach( t );
5018 #ifdef HAVE_LINUX_THREADS
5019 pthread_kill_other_threads_np();
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 ol_cv_pthread_mt=yes
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5040 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5042 if test $ol_cv_pthread_mt = yes ; then
5043 ol_link_pthreads="-mt"
5044 ol_link_threads=posix
5048 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5049 if test "$ol_link_threads" = no ; then
5051 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5052 echo "configure:5053: checking for pthread link with -kthread" >&5
5053 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5059 LIBS="-kthread $LIBS"
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5065 #include <pthread.h>
5067 #define NULL (void*)0
5074 #if HAVE_PTHREADS_D4
5075 pthread_create(&t, pthread_attr_default, NULL, NULL);
5076 pthread_detach( &t );
5078 pthread_create(&t, NULL, NULL, NULL);
5079 pthread_detach( t );
5081 #ifdef HAVE_LINUX_THREADS
5082 pthread_kill_other_threads_np();
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 ol_cv_pthread_kthread=yes
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 ol_cv_pthread_kthread=no
5103 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5105 if test $ol_cv_pthread_kthread = yes ; then
5106 ol_link_pthreads="-kthread"
5107 ol_link_threads=posix
5111 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5112 if test "$ol_link_threads" = no ; then
5114 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5115 echo "configure:5116: checking for pthread link with -pthread" >&5
5116 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5122 LIBS="-pthread $LIBS"
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5128 #include <pthread.h>
5130 #define NULL (void*)0
5137 #if HAVE_PTHREADS_D4
5138 pthread_create(&t, pthread_attr_default, NULL, NULL);
5139 pthread_detach( &t );
5141 pthread_create(&t, NULL, NULL, NULL);
5142 pthread_detach( t );
5144 #ifdef HAVE_LINUX_THREADS
5145 pthread_kill_other_threads_np();
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 ol_cv_pthread_pthread=yes
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 ol_cv_pthread_pthread=no
5166 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5168 if test $ol_cv_pthread_pthread = yes ; then
5169 ol_link_pthreads="-pthread"
5170 ol_link_threads=posix
5174 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5175 if test "$ol_link_threads" = no ; then
5177 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5178 echo "configure:5179: checking for pthread link with -pthreads" >&5
5179 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5180 echo $ac_n "(cached) $ac_c" 1>&6
5185 LIBS="-pthreads $LIBS"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5191 #include <pthread.h>
5193 #define NULL (void*)0
5200 #if HAVE_PTHREADS_D4
5201 pthread_create(&t, pthread_attr_default, NULL, NULL);
5202 pthread_detach( &t );
5204 pthread_create(&t, NULL, NULL, NULL);
5205 pthread_detach( t );
5207 #ifdef HAVE_LINUX_THREADS
5208 pthread_kill_other_threads_np();
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 ol_cv_pthread_pthreads=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 ol_cv_pthread_pthreads=no
5229 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5231 if test $ol_cv_pthread_pthreads = yes ; then
5232 ol_link_pthreads="-pthreads"
5233 ol_link_threads=posix
5237 # Pthread try link: -thread (ol_cv_pthread_thread)
5238 if test "$ol_link_threads" = no ; then
5240 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5241 echo "configure:5242: checking for pthread link with -thread" >&5
5242 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5248 LIBS="-thread $LIBS"
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5254 #include <pthread.h>
5256 #define NULL (void*)0
5263 #if HAVE_PTHREADS_D4
5264 pthread_create(&t, pthread_attr_default, NULL, NULL);
5265 pthread_detach( &t );
5267 pthread_create(&t, NULL, NULL, NULL);
5268 pthread_detach( t );
5270 #ifdef HAVE_LINUX_THREADS
5271 pthread_kill_other_threads_np();
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5278 ol_cv_pthread_thread=yes
5280 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5283 ol_cv_pthread_thread=no
5292 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5294 if test $ol_cv_pthread_thread = yes ; then
5295 ol_link_pthreads="-thread"
5296 ol_link_threads=posix
5301 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5302 if test "$ol_link_threads" = no ; then
5303 # try -lpthread -lmach -lexc -lc_r
5304 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5305 echo "configure:5306: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5306 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5312 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5318 #include <pthread.h>
5320 #define NULL (void*)0
5327 #if HAVE_PTHREADS_D4
5328 pthread_create(&t, pthread_attr_default, NULL, NULL);
5329 pthread_detach( &t );
5331 pthread_create(&t, NULL, NULL, NULL);
5332 pthread_detach( t );
5334 #ifdef HAVE_LINUX_THREADS
5335 pthread_kill_other_threads_np();
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5356 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5358 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5359 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5360 ol_link_threads=posix
5364 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5365 if test "$ol_link_threads" = no ; then
5366 # try -lpthread -lmach -lexc
5367 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5368 echo "configure:5369: checking for pthread link with -lpthread -lmach -lexc" >&5
5369 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5375 LIBS="-lpthread -lmach -lexc $LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5381 #include <pthread.h>
5383 #define NULL (void*)0
5390 #if HAVE_PTHREADS_D4
5391 pthread_create(&t, pthread_attr_default, NULL, NULL);
5392 pthread_detach( &t );
5394 pthread_create(&t, NULL, NULL, NULL);
5395 pthread_detach( t );
5397 #ifdef HAVE_LINUX_THREADS
5398 pthread_kill_other_threads_np();
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 ol_cv_pthread_lpthread_lmach_lexc=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 ol_cv_pthread_lpthread_lmach_lexc=no
5419 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5421 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5422 ol_link_pthreads="-lpthread -lmach -lexc"
5423 ol_link_threads=posix
5428 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5429 if test "$ol_link_threads" = no ; then
5430 # try -lpthread -Wl,-woff,85
5431 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5432 echo "configure:5433: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5433 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5439 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5445 #include <pthread.h>
5447 #define NULL (void*)0
5454 #if HAVE_PTHREADS_D4
5455 pthread_create(&t, pthread_attr_default, NULL, NULL);
5456 pthread_detach( &t );
5458 pthread_create(&t, NULL, NULL, NULL);
5459 pthread_detach( t );
5461 #ifdef HAVE_LINUX_THREADS
5462 pthread_kill_other_threads_np();
5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 ol_cv_pthread_lib_lpthread_woff=yes
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 ol_cv_pthread_lib_lpthread_woff=no
5483 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5485 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5486 ol_link_pthreads="-lpthread -Wl,-woff,85"
5487 ol_link_threads=posix
5492 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5493 if test "$ol_link_threads" = no ; then
5495 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5496 echo "configure:5497: checking for pthread link with -lpthread" >&5
5497 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5503 LIBS="-lpthread $LIBS"
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5509 #include <pthread.h>
5511 #define NULL (void*)0
5518 #if HAVE_PTHREADS_D4
5519 pthread_create(&t, pthread_attr_default, NULL, NULL);
5520 pthread_detach( &t );
5522 pthread_create(&t, NULL, NULL, NULL);
5523 pthread_detach( t );
5525 #ifdef HAVE_LINUX_THREADS
5526 pthread_kill_other_threads_np();
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 ol_cv_pthread_lpthread=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 ol_cv_pthread_lpthread=no
5547 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5549 if test $ol_cv_pthread_lpthread = yes ; then
5550 ol_link_pthreads="-lpthread"
5551 ol_link_threads=posix
5555 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5556 if test "$ol_link_threads" = no ; then
5558 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5559 echo "configure:5560: checking for pthread link with -lc_r" >&5
5560 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5572 #include <pthread.h>
5574 #define NULL (void*)0
5581 #if HAVE_PTHREADS_D4
5582 pthread_create(&t, pthread_attr_default, NULL, NULL);
5583 pthread_detach( &t );
5585 pthread_create(&t, NULL, NULL, NULL);
5586 pthread_detach( t );
5588 #ifdef HAVE_LINUX_THREADS
5589 pthread_kill_other_threads_np();
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 ol_cv_pthread_lc_r=yes
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 ol_cv_pthread_lc_r=no
5610 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5612 if test $ol_cv_pthread_lc_r = yes ; then
5613 ol_link_pthreads="-lc_r"
5614 ol_link_threads=posix
5619 # Pthread try link: -threads (ol_cv_pthread_threads)
5620 if test "$ol_link_threads" = no ; then
5622 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5623 echo "configure:5624: checking for pthread link with -threads" >&5
5624 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5630 LIBS="-threads $LIBS"
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5636 #include <pthread.h>
5638 #define NULL (void*)0
5645 #if HAVE_PTHREADS_D4
5646 pthread_create(&t, pthread_attr_default, NULL, NULL);
5647 pthread_detach( &t );
5649 pthread_create(&t, NULL, NULL, NULL);
5650 pthread_detach( t );
5652 #ifdef HAVE_LINUX_THREADS
5653 pthread_kill_other_threads_np();
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 ol_cv_pthread_threads=yes
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 ol_cv_pthread_threads=no
5674 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5676 if test $ol_cv_pthread_threads = yes ; then
5677 ol_link_pthreads="-threads"
5678 ol_link_threads=posix
5683 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5684 if test "$ol_link_threads" = no ; then
5685 # try -lpthreads -lmach -lexc -lc_r
5686 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5687 echo "configure:5688: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5688 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5694 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5700 #include <pthread.h>
5702 #define NULL (void*)0
5709 #if HAVE_PTHREADS_D4
5710 pthread_create(&t, pthread_attr_default, NULL, NULL);
5711 pthread_detach( &t );
5713 pthread_create(&t, NULL, NULL, NULL);
5714 pthread_detach( t );
5716 #ifdef HAVE_LINUX_THREADS
5717 pthread_kill_other_threads_np();
5722 if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5724 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5726 echo "configure: failed program was:" >&5
5727 cat conftest.$ac_ext >&5
5729 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5738 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5740 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5741 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5742 ol_link_threads=posix
5746 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5747 if test "$ol_link_threads" = no ; then
5748 # try -lpthreads -lmach -lexc
5749 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5750 echo "configure:5751: checking for pthread link with -lpthreads -lmach -lexc" >&5
5751 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5757 LIBS="-lpthreads -lmach -lexc $LIBS"
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5763 #include <pthread.h>
5765 #define NULL (void*)0
5772 #if HAVE_PTHREADS_D4
5773 pthread_create(&t, pthread_attr_default, NULL, NULL);
5774 pthread_detach( &t );
5776 pthread_create(&t, NULL, NULL, NULL);
5777 pthread_detach( t );
5779 #ifdef HAVE_LINUX_THREADS
5780 pthread_kill_other_threads_np();
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 ol_cv_pthread_lpthreads_lmach_lexc=yes
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 ol_cv_pthread_lpthreads_lmach_lexc=no
5801 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5803 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5804 ol_link_pthreads="-lpthreads -lmach -lexc"
5805 ol_link_threads=posix
5809 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5810 if test "$ol_link_threads" = no ; then
5811 # try -lpthreads -lexc
5812 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5813 echo "configure:5814: checking for pthread link with -lpthreads -lexc" >&5
5814 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5820 LIBS="-lpthreads -lexc $LIBS"
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5826 #include <pthread.h>
5828 #define NULL (void*)0
5835 #if HAVE_PTHREADS_D4
5836 pthread_create(&t, pthread_attr_default, NULL, NULL);
5837 pthread_detach( &t );
5839 pthread_create(&t, NULL, NULL, NULL);
5840 pthread_detach( t );
5842 #ifdef HAVE_LINUX_THREADS
5843 pthread_kill_other_threads_np();
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 ol_cv_pthread_lpthreads_lexc=yes
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 ol_cv_pthread_lpthreads_lexc=no
5864 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5866 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5867 ol_link_pthreads="-lpthreads -lexc"
5868 ol_link_threads=posix
5873 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5874 if test "$ol_link_threads" = no ; then
5876 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5877 echo "configure:5878: checking for pthread link with -lpthreads" >&5
5878 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5884 LIBS="-lpthreads $LIBS"
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5890 #include <pthread.h>
5892 #define NULL (void*)0
5899 #if HAVE_PTHREADS_D4
5900 pthread_create(&t, pthread_attr_default, NULL, NULL);
5901 pthread_detach( &t );
5903 pthread_create(&t, NULL, NULL, NULL);
5904 pthread_detach( t );
5906 #ifdef HAVE_LINUX_THREADS
5907 pthread_kill_other_threads_np();
5912 if { (eval echo configure:5913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5914 ol_cv_pthread_lib_lpthreads=yes
5916 echo "configure: failed program was:" >&5
5917 cat conftest.$ac_ext >&5
5919 ol_cv_pthread_lib_lpthreads=no
5928 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5930 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5931 ol_link_pthreads="-lpthreads"
5932 ol_link_threads=posix
5937 if test $ol_link_threads != no ; then
5938 cat >> confdefs.h <<\EOF
5939 #define HAVE_PTHREADS 1
5943 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5945 save_CPPFLAGS="$CPPFLAGS"
5947 LIBS="$LTHREAD_LIBS $LIBS"
5949 for ac_func in sched_yield pthread_yield
5951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5952 echo "configure:5953: checking for $ac_func" >&5
5953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5959 /* System header to define __stub macros and hopefully few prototypes,
5960 which can conflict with char $ac_func(); below. */
5962 /* Override any gcc2 internal prototype to avoid an error. */
5963 /* We use char because int might match the return type of a gcc2
5964 builtin and then its argument prototype would still apply. */
5969 /* The GNU C library defines this for functions which it implements
5970 to always fail with ENOSYS. Some functions are actually named
5971 something starting with __ and the normal name is an alias. */
5972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5980 if { (eval echo configure:5981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5982 eval "ac_cv_func_$ac_func=yes"
5984 echo "configure: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5987 eval "ac_cv_func_$ac_func=no"
5992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5993 echo "$ac_t""yes" 1>&6
5994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5995 cat >> confdefs.h <<EOF
5996 #define $ac_tr_func 1
6000 echo "$ac_t""no" 1>&6
6005 if test $ac_cv_func_sched_yield = no -a \
6006 $ac_cv_func_pthread_yield = no ; then
6007 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6008 echo "configure:6009: checking for sched_yield in -lrt" >&5
6009 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6013 ac_save_LIBS="$LIBS"
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 eval "ac_cv_lib_$ac_lib_var=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 eval "ac_cv_lib_$ac_lib_var=no"
6037 LIBS="$ac_save_LIBS"
6040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6043 cat >> confdefs.h <<\EOF
6044 #define HAVE_SCHED_YIELD 1
6047 ac_cv_func_sched_yield=yes
6049 echo "$ac_t""no" 1>&6
6050 ac_cv_func_sched_yield=no
6054 if test $ac_cv_func_sched_yield = no -a \
6055 $ac_cv_func_pthread_yield = no ; then
6056 for ac_func in thr_yield
6058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6059 echo "configure:6060: checking for $ac_func" >&5
6060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6061 echo $ac_n "(cached) $ac_c" 1>&6
6063 cat > conftest.$ac_ext <<EOF
6064 #line 6065 "configure"
6065 #include "confdefs.h"
6066 /* System header to define __stub macros and hopefully few prototypes,
6067 which can conflict with char $ac_func(); below. */
6069 /* Override any gcc2 internal prototype to avoid an error. */
6070 /* We use char because int might match the return type of a gcc2
6071 builtin and then its argument prototype would still apply. */
6076 /* The GNU C library defines this for functions which it implements
6077 to always fail with ENOSYS. Some functions are actually named
6078 something starting with __ and the normal name is an alias. */
6079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6089 eval "ac_cv_func_$ac_func=yes"
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6094 eval "ac_cv_func_$ac_func=no"
6099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6100 echo "$ac_t""yes" 1>&6
6101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6102 cat >> confdefs.h <<EOF
6103 #define $ac_tr_func 1
6107 echo "$ac_t""no" 1>&6
6112 if test $ac_cv_func_sched_yield = no -a \
6113 $ac_cv_func_pthread_yield = no -a \
6114 "$ac_cv_func_thr_yield" = no ; then
6115 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6118 for ac_func in pthread_kill
6120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6121 echo "configure:6122: checking for $ac_func" >&5
6122 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6123 echo $ac_n "(cached) $ac_c" 1>&6
6125 cat > conftest.$ac_ext <<EOF
6126 #line 6127 "configure"
6127 #include "confdefs.h"
6128 /* System header to define __stub macros and hopefully few prototypes,
6129 which can conflict with char $ac_func(); below. */
6131 /* Override any gcc2 internal prototype to avoid an error. */
6132 /* We use char because int might match the return type of a gcc2
6133 builtin and then its argument prototype would still apply. */
6138 /* The GNU C library defines this for functions which it implements
6139 to always fail with ENOSYS. Some functions are actually named
6140 something starting with __ and the normal name is an alias. */
6141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 eval "ac_cv_func_$ac_func=yes"
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 eval "ac_cv_func_$ac_func=no"
6161 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6163 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6164 cat >> confdefs.h <<EOF
6165 #define $ac_tr_func 1
6169 echo "$ac_t""no" 1>&6
6174 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6175 echo "configure:6176: checking for pthread_detach with <pthread.h>" >&5
6176 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure"
6182 #include "confdefs.h"
6184 #include <pthread.h>
6186 #define NULL (void*)0
6190 pthread_detach(NULL);
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 ol_cv_func_pthread_detach=yes
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 ol_cv_func_pthread_detach=no
6206 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6208 if test $ol_cv_func_pthread_detach = no ; then
6209 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6212 cat >> confdefs.h <<\EOF
6213 #define HAVE_PTHREAD_DETACH 1
6218 pthread_setconcurrency \
6219 pthread_getconcurrency \
6220 thr_setconcurrency \
6221 thr_getconcurrency \
6224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6225 echo "configure:6226: checking for $ac_func" >&5
6226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 /* System header to define __stub macros and hopefully few prototypes,
6233 which can conflict with char $ac_func(); below. */
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6242 /* The GNU C library defines this for functions which it implements
6243 to always fail with ENOSYS. Some functions are actually named
6244 something starting with __ and the normal name is an alias. */
6245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6253 if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255 eval "ac_cv_func_$ac_func=yes"
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6260 eval "ac_cv_func_$ac_func=no"
6265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6266 echo "$ac_t""yes" 1>&6
6267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6268 cat >> confdefs.h <<EOF
6269 #define $ac_tr_func 1
6273 echo "$ac_t""no" 1>&6
6279 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6280 echo "configure:6281: checking for pthread_kill_other_threads_np" >&5
6281 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char pthread_kill_other_threads_np(); below. */
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6293 char pthread_kill_other_threads_np();
6297 /* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6303 pthread_kill_other_threads_np();
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6315 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6320 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6324 echo "$ac_t""no" 1>&6
6327 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6328 echo "configure:6329: checking for LinuxThreads implementation" >&5
6329 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6
6332 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6335 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6340 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6341 echo "configure:6342: checking for LinuxThreads consistency" >&5
6342 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6346 if test $ol_cv_header_linux_threads = yes -a \
6347 $ol_cv_sys_linux_threads = yes; then
6348 ol_cv_linux_threads=yes
6349 elif test $ol_cv_header_linux_threads = no -a \
6350 $ol_cv_sys_linux_threads = no; then
6351 ol_cv_linux_threads=no
6353 ol_cv_linux_threads=error
6358 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6361 if test $ol_cv_linux_threads = error; then
6362 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6365 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6366 echo "configure:6367: checking if pthread_create() works" >&5
6367 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6371 if test "$cross_compiling" = yes; then
6372 ol_cv_pthread_create_works=yes
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6378 #include <pthread.h>
6380 #define NULL (void*)0
6383 static void *task(p)
6386 return (void *) (p == NULL);
6389 int main(argc, argv)
6394 #if HAVE_PTHREADS_D4
6395 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6397 exit(pthread_create(&t, NULL, task, NULL));
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6404 ol_cv_pthread_create_works=yes
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 ol_cv_pthread_create_works=no
6416 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6418 if test $ol_cv_pthread_create_works = no ; then
6419 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6422 if test $ol_with_yielding_select = auto ; then
6423 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6424 echo "configure:6425: checking if select yields when using pthreads" >&5
6425 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6429 if test "$cross_compiling" = yes; then
6431 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6433 cat > conftest.$ac_ext <<EOF
6434 #line 6435 "configure"
6435 #include "confdefs.h"
6437 #include <sys/types.h>
6438 #include <sys/time.h>
6440 #include <pthread.h>
6442 #define NULL (void*) 0
6445 static int fildes[2];
6447 static void *task(p)
6459 FD_SET(fildes[0], &rfds);
6461 /* we're not interested in any fds */
6462 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6469 exit(0); /* if we exit here, the select blocked the whole process */
6472 int main(argc, argv)
6478 /* create a pipe to select */
6479 if(pipe(&fildes[0])) {
6484 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6485 (void) pthread_setconcurrency(2);
6487 #ifdef HAVE_THR_SETCONCURRENCY
6488 /* Set Solaris LWP concurrency to 2 */
6489 thr_setconcurrency(2);
6493 #if HAVE_PTHREADS_D4
6494 pthread_create(&t, pthread_attr_default, task, NULL);
6496 pthread_create(&t, NULL, task, NULL);
6499 #if HAVE_SCHED_YIELD
6500 sched_yield(); /* make sure task runs first */
6502 #ifdef HAVE_PTHREAD_YIELD
6503 pthread_yield(); /* make sure task runs first */
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6512 ol_cv_pthread_select_yields=no
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 ol_cv_pthread_select_yields=yes
6524 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6526 if test $ol_cv_pthread_select_yields = yes ; then
6527 ol_with_yielding_select=yes
6531 CPPFLAGS="$save_CPPFLAGS"
6534 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6538 if test $ol_with_threads = posix ; then
6539 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6543 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6544 -o $ol_with_threads = mach ; then
6546 for ac_hdr in mach/cthreads.h
6548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_hdr" >&5
6551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then
6564 eval "ac_cv_header_$ac_safe=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 eval "ac_cv_header_$ac_safe=no"
6574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6575 echo "$ac_t""yes" 1>&6
6576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6577 cat >> confdefs.h <<EOF
6578 #define $ac_tr_hdr 1
6582 echo "$ac_t""no" 1>&6
6586 if test $ac_cv_header_mach_cthreads_h = yes ; then
6587 ol_with_threads=found
6589 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6590 echo "configure:6591: checking for cthread_fork" >&5
6591 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6592 echo $ac_n "(cached) $ac_c" 1>&6
6594 cat > conftest.$ac_ext <<EOF
6595 #line 6596 "configure"
6596 #include "confdefs.h"
6597 /* System header to define __stub macros and hopefully few prototypes,
6598 which can conflict with char cthread_fork(); below. */
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char cthread_fork();
6607 /* The GNU C library defines this for functions which it implements
6608 to always fail with ENOSYS. Some functions are actually named
6609 something starting with __ and the normal name is an alias. */
6610 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6618 if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6620 eval "ac_cv_func_cthread_fork=yes"
6622 echo "configure: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 eval "ac_cv_func_cthread_fork=no"
6630 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6631 echo "$ac_t""yes" 1>&6
6634 echo "$ac_t""no" 1>&6
6638 if test $ol_link_threads = no ; then
6639 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6640 echo "configure:6641: checking for cthread_fork with -all_load" >&5
6641 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6646 LIBS="-all_load $LIBS"
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 #include <mach/cthreads.h>
6653 cthread_fork((void *)0, (void *)0);
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 ol_cv_cthread_all_load=yes
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 ol_cv_cthread_all_load=no
6671 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6673 if test $ol_cv_cthread_all_load = yes ; then
6674 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6675 ol_link_threads=mach
6679 if test $ol_link_threads != no ; then
6680 : check for cthread specific functionality here
6681 cat >> confdefs.h <<\EOF
6682 #define HAVE_MACH_CTHREADS 1
6686 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6690 if test $ol_with_threads = mach ; then
6691 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6695 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6696 -o $ol_with_threads = lwp ; then
6698 for ac_hdr in thread.h synch.h
6700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6702 echo "configure:6703: checking for $ac_hdr" >&5
6703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6712 { (eval echo configure:6713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6714 if test -z "$ac_err"; then
6716 eval "ac_cv_header_$ac_safe=yes"
6719 echo "configure: failed program was:" >&5
6720 cat conftest.$ac_ext >&5
6722 eval "ac_cv_header_$ac_safe=no"
6726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6729 cat >> confdefs.h <<EOF
6730 #define $ac_tr_hdr 1
6734 echo "$ac_t""no" 1>&6
6738 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6739 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6740 echo "configure:6741: checking for thr_create in -lthread" >&5
6741 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6745 ac_save_LIBS="$LIBS"
6746 LIBS="-lthread $LIBS"
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 eval "ac_cv_lib_$ac_lib_var=yes"
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 eval "ac_cv_lib_$ac_lib_var=no"
6769 LIBS="$ac_save_LIBS"
6772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6776 echo "$ac_t""no" 1>&6
6781 if test $have_thr = yes ; then
6782 cat >> confdefs.h <<\EOF
6786 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6789 if test $ol_with_yielding_select = auto ; then
6790 ol_with_yielding_select=yes
6794 thr_setconcurrency \
6795 thr_getconcurrency \
6798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6799 echo "configure:6800: checking for $ac_func" >&5
6800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6801 echo $ac_n "(cached) $ac_c" 1>&6
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char $ac_func(); below. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6816 /* The GNU C library defines this for functions which it implements
6817 to always fail with ENOSYS. Some functions are actually named
6818 something starting with __ and the normal name is an alias. */
6819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 eval "ac_cv_func_$ac_func=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_func_$ac_func=no"
6839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_func 1
6847 echo "$ac_t""no" 1>&6
6854 for ac_hdr in lwp/lwp.h
6856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6858 echo "configure:6859: checking for $ac_hdr" >&5
6859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6868 { (eval echo configure:6869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6870 if test -z "$ac_err"; then
6872 eval "ac_cv_header_$ac_safe=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6878 eval "ac_cv_header_$ac_safe=no"
6882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6885 cat >> confdefs.h <<EOF
6886 #define $ac_tr_hdr 1
6890 echo "$ac_t""no" 1>&6
6894 if test $ac_cv_header_lwp_lwp_h = yes ; then
6895 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6896 echo "configure:6897: checking for lwp_create in -llwp" >&5
6897 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 ac_save_LIBS="$LIBS"
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6917 eval "ac_cv_lib_$ac_lib_var=yes"
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 eval "ac_cv_lib_$ac_lib_var=no"
6925 LIBS="$ac_save_LIBS"
6928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6932 echo "$ac_t""no" 1>&6
6937 if test $have_lwp = yes ; then
6938 cat >> confdefs.h <<\EOF
6942 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6945 if test $ol_with_yielding_select = auto ; then
6946 ol_with_yielding_select=no
6952 if test $ol_with_yielding_select = yes ; then
6953 cat >> confdefs.h <<\EOF
6954 #define HAVE_YIELDING_SELECT 1
6959 if test $ol_with_threads = manual ; then
6962 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6964 for ac_hdr in pthread.h sched.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 for ac_func in sched_yield pthread_yield
7006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7007 echo "configure:7008: checking for $ac_func" >&5
7008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func(); below. */
7017 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */
7024 /* The GNU C library defines this for functions which it implements
7025 to always fail with ENOSYS. Some functions are actually named
7026 something starting with __ and the normal name is an alias. */
7027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7037 eval "ac_cv_func_$ac_func=yes"
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 eval "ac_cv_func_$ac_func=no"
7047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7048 echo "$ac_t""yes" 1>&6
7049 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7050 cat >> confdefs.h <<EOF
7051 #define $ac_tr_func 1
7055 echo "$ac_t""no" 1>&6
7060 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7061 echo "configure:7062: checking for LinuxThreads pthread.h" >&5
7062 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7068 #include <pthread.h>
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7073 ol_cv_header_linux_threads=yes
7076 ol_cv_header_linux_threads=no
7083 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7084 if test $ol_cv_header_linux_threads = yes; then
7085 cat >> confdefs.h <<\EOF
7086 #define HAVE_LINUX_THREADS 1
7092 for ac_hdr in mach/cthreads.h
7094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7096 echo "configure:7097: checking for $ac_hdr" >&5
7097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7106 { (eval echo configure:7107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7108 if test -z "$ac_err"; then
7110 eval "ac_cv_header_$ac_safe=yes"
7113 echo "configure: failed program was:" >&5
7114 cat conftest.$ac_ext >&5
7116 eval "ac_cv_header_$ac_safe=no"
7120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7123 cat >> confdefs.h <<EOF
7124 #define $ac_tr_hdr 1
7128 echo "$ac_t""no" 1>&6
7132 for ac_hdr in lwp/lwp.h
7134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7136 echo "configure:7137: checking for $ac_hdr" >&5
7137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7138 echo $ac_n "(cached) $ac_c" 1>&6
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7146 { (eval echo configure:7147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7148 if test -z "$ac_err"; then
7150 eval "ac_cv_header_$ac_safe=yes"
7153 echo "configure: failed program was:" >&5
7154 cat conftest.$ac_ext >&5
7156 eval "ac_cv_header_$ac_safe=no"
7160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7161 echo "$ac_t""yes" 1>&6
7162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7163 cat >> confdefs.h <<EOF
7164 #define $ac_tr_hdr 1
7168 echo "$ac_t""no" 1>&6
7172 for ac_hdr in thread.h synch.h
7174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7175 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7176 echo "configure:7177: checking for $ac_hdr" >&5
7177 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7186 { (eval echo configure:7187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7188 if test -z "$ac_err"; then
7190 eval "ac_cv_header_$ac_safe=yes"
7193 echo "configure: failed program was:" >&5
7194 cat conftest.$ac_ext >&5
7196 eval "ac_cv_header_$ac_safe=no"
7200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7201 echo "$ac_t""yes" 1>&6
7202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7203 cat >> confdefs.h <<EOF
7204 #define $ac_tr_hdr 1
7208 echo "$ac_t""no" 1>&6
7214 if test $ol_link_threads != no ; then
7215 cat >> confdefs.h <<\EOF
7219 cat >> confdefs.h <<\EOF
7220 #define _REENTRANT 1
7223 cat >> confdefs.h <<\EOF
7224 #define THREAD_SAFE 1
7227 cat >> confdefs.h <<\EOF
7228 #define _THREAD_SAFE 1
7231 cat >> confdefs.h <<\EOF
7232 #define THREADSAFE 1
7235 cat >> confdefs.h <<\EOF
7236 #define _THREADSAFE 1
7240 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7241 echo "configure:7242: checking for thread specific errno" >&5
7242 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7254 if { (eval echo configure:7255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7256 ol_cv_errno_thread_specific=yes
7258 echo "configure: failed program was:" >&5
7259 cat conftest.$ac_ext >&5
7261 ol_cv_errno_thread_specific=no
7267 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7269 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7270 echo "configure:7271: checking for thread specific h_errno" >&5
7271 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7285 ol_cv_h_errno_thread_specific=yes
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7290 ol_cv_h_errno_thread_specific=no
7296 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7298 if test $ol_cv_errno_thread_specific != yes \
7299 -o $ol_cv_h_errno_thread_specific != yes ; then
7300 LIBS="$LTHREAD_LIBS $LIBS"
7306 if test $ol_link_threads = no ; then
7307 if test $ol_with_threads = yes ; then
7308 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7311 if test $ol_with_threads = auto ; then
7312 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7316 cat >> confdefs.h <<\EOF
7317 #define NO_THREADS 1
7323 if test $ol_link_threads != no ; then
7324 cat >> confdefs.h <<\EOF
7325 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7332 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7333 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7334 echo "configure:7335: checking for DB2 library" >&5
7335 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7339 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7340 echo "configure:7341: checking for db_open in -ldb" >&5
7341 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7345 ac_save_LIBS="$LIBS"
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7361 eval "ac_cv_lib_$ac_lib_var=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_lib_$ac_lib_var=no"
7369 LIBS="$ac_save_LIBS"
7372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7373 echo "$ac_t""yes" 1>&6
7376 echo "$ac_t""no" 1>&6
7384 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7390 echo "configure:7391: checking for $ac_hdr" >&5
7391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7392 echo $ac_n "(cached) $ac_c" 1>&6
7394 cat > conftest.$ac_ext <<EOF
7395 #line 7396 "configure"
7396 #include "confdefs.h"
7399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7400 { (eval echo configure:7401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7402 if test -z "$ac_err"; then
7404 eval "ac_cv_header_$ac_safe=yes"
7407 echo "configure: failed program was:" >&5
7408 cat conftest.$ac_ext >&5
7410 eval "ac_cv_header_$ac_safe=no"
7414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7417 cat >> confdefs.h <<EOF
7418 #define $ac_tr_hdr 1
7422 echo "$ac_t""no" 1>&6
7426 if test $ac_cv_header_db_h = yes ; then
7427 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7428 echo "configure:7429: checking if db.h is DB2" >&5
7429 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7438 /* this check could be improved */
7439 # ifdef DB_VERSION_MAJOR
7440 # if DB_VERSION_MAJOR == 2
7446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7447 egrep "__db_version_2" >/dev/null 2>&1; then
7449 ol_cv_header_db2=yes
7458 echo "$ac_t""$ol_cv_header_db2" 1>&6
7465 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7466 echo "configure:7467: checking for Berkeley DB2" >&5
7467 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7471 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7472 ol_cv_berkeley_db2=no
7474 ol_cv_berkeley_db2=yes
7479 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7480 if test $ol_cv_berkeley_db2 = yes ; then
7481 cat >> confdefs.h <<\EOF
7482 #define HAVE_BERKELEY_DB2 1
7488 if test $ol_cv_berkeley_db2 = yes ; then
7490 ol_with_ldbm_api=db2
7492 if test $ol_with_ldbm_type = hash ; then
7493 cat >> confdefs.h <<\EOF
7494 #define LDBM_USE_DBHASH 1
7498 cat >> confdefs.h <<\EOF
7499 #define LDBM_USE_DBBTREE 1
7504 if test $ol_cv_lib_db2 != yes ; then
7505 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7511 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7515 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7516 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7517 echo "configure:7518: checking for Berkeley DB library" >&5
7518 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7522 for ac_hdr in db1/db.h
7524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7526 echo "configure:7527: checking for $ac_hdr" >&5
7527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7538 if test -z "$ac_err"; then
7540 eval "ac_cv_header_$ac_safe=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 eval "ac_cv_header_$ac_safe=no"
7550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_hdr 1
7558 echo "$ac_t""no" 1>&6
7563 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7564 echo "configure:7565: checking for dbopen" >&5
7565 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char dbopen(); below. */
7574 /* Override any gcc2 internal prototype to avoid an error. */
7575 /* We use char because int might match the return type of a gcc2
7576 builtin and then its argument prototype would still apply. */
7581 /* The GNU C library defines this for functions which it implements
7582 to always fail with ENOSYS. Some functions are actually named
7583 something starting with __ and the normal name is an alias. */
7584 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7592 if { (eval echo configure:7593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7594 eval "ac_cv_func_dbopen=yes"
7596 echo "configure: failed program was:" >&5
7597 cat conftest.$ac_ext >&5
7599 eval "ac_cv_func_dbopen=no"
7604 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7605 echo "$ac_t""yes" 1>&6
7608 echo "$ac_t""no" 1>&6
7610 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7611 echo "configure:7612: checking for dbopen in -ldb1" >&5
7612 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7616 ac_save_LIBS="$LIBS"
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7630 if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 eval "ac_cv_lib_$ac_lib_var=yes"
7634 echo "configure: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7637 eval "ac_cv_lib_$ac_lib_var=no"
7640 LIBS="$ac_save_LIBS"
7643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7647 echo "$ac_t""no" 1>&6
7649 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7650 echo "configure:7651: checking for dbopen in -ldb" >&5
7651 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7655 ac_save_LIBS="$LIBS"
7657 cat > conftest.$ac_ext <<EOF
7658 #line 7659 "configure"
7659 #include "confdefs.h"
7660 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7669 if { (eval echo configure:7670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7671 eval "ac_cv_lib_$ac_lib_var=yes"
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 eval "ac_cv_lib_$ac_lib_var=no"
7679 LIBS="$ac_save_LIBS"
7682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7683 echo "$ac_t""yes" 1>&6
7686 echo "$ac_t""no" 1>&6
7700 echo "$ac_t""$ol_cv_lib_db" 1>&6
7703 for ac_hdr in db_185.h
7705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7707 echo "configure:7708: checking for $ac_hdr" >&5
7708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7709 echo $ac_n "(cached) $ac_c" 1>&6
7711 cat > conftest.$ac_ext <<EOF
7712 #line 7713 "configure"
7713 #include "confdefs.h"
7716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7717 { (eval echo configure:7718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7719 if test -z "$ac_err"; then
7721 eval "ac_cv_header_$ac_safe=yes"
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 eval "ac_cv_header_$ac_safe=no"
7731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7732 echo "$ac_t""yes" 1>&6
7733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7734 cat >> confdefs.h <<EOF
7735 #define $ac_tr_hdr 1
7739 echo "$ac_t""no" 1>&6
7743 if test "$ol_cv_header_db2" = yes ; then
7745 ol_cv_header_db=$ac_cv_header_db_185_h
7747 ol_cv_header_db=$ac_cv_header_db_h
7752 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7753 echo "configure:7754: checking for Berkeley DB" >&5
7754 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7758 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7759 ol_cv_berkeley_db=no
7761 ol_cv_berkeley_db=yes
7766 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7767 if test $ol_cv_berkeley_db = yes ; then
7768 cat >> confdefs.h <<\EOF
7769 #define HAVE_BERKELEY_DB 1
7775 if test $ol_cv_berkeley_db = yes ; then
7779 if test $ol_with_ldbm_type = hash ; then
7780 cat >> confdefs.h <<\EOF
7781 #define LDBM_USE_DBHASH 1
7785 cat >> confdefs.h <<\EOF
7786 #define LDBM_USE_DBBTREE 1
7791 if test $ol_cv_lib_db != yes ; then
7792 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7797 if test $ol_with_ldbm_api = manual ; then
7800 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7802 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_hdr" >&5
7807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7816 { (eval echo configure:7817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7818 if test -z "$ac_err"; then
7820 eval "ac_cv_header_$ac_safe=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7826 eval "ac_cv_header_$ac_safe=no"
7830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7833 cat >> confdefs.h <<EOF
7834 #define $ac_tr_hdr 1
7838 echo "$ac_t""no" 1>&6
7844 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7845 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7846 ol_with_ldbm_api=none
7849 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7850 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7851 echo "configure:7852: checking for MDBM library" >&5
7852 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7856 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7857 echo "configure:7858: checking for mdbm_set_chain" >&5
7858 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 /* System header to define __stub macros and hopefully few prototypes,
7865 which can conflict with char mdbm_set_chain(); below. */
7867 /* Override any gcc2 internal prototype to avoid an error. */
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870 char mdbm_set_chain();
7874 /* The GNU C library defines this for functions which it implements
7875 to always fail with ENOSYS. Some functions are actually named
7876 something starting with __ and the normal name is an alias. */
7877 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7887 eval "ac_cv_func_mdbm_set_chain=yes"
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 eval "ac_cv_func_mdbm_set_chain=no"
7897 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7898 echo "$ac_t""yes" 1>&6
7901 echo "$ac_t""no" 1>&6
7903 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7904 echo "configure:7905: checking for mdbm_set_chain in -lmdbm" >&5
7905 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 ac_save_LIBS="$LIBS"
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 /* Override any gcc2 internal prototype to avoid an error. */
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7917 char mdbm_set_chain();
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7925 eval "ac_cv_lib_$ac_lib_var=yes"
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 eval "ac_cv_lib_$ac_lib_var=no"
7933 LIBS="$ac_save_LIBS"
7936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 ol_cv_lib_mdbm=-lmdbm
7940 echo "$ac_t""no" 1>&6
7951 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7954 for ac_hdr in mdbm.h
7956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_hdr" >&5
7959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7970 if test -z "$ac_err"; then
7972 eval "ac_cv_header_$ac_safe=yes"
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 eval "ac_cv_header_$ac_safe=no"
7982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7985 cat >> confdefs.h <<EOF
7986 #define $ac_tr_hdr 1
7990 echo "$ac_t""no" 1>&6
7994 echo $ac_n "checking for db""... $ac_c" 1>&6
7995 echo "configure:7996: checking for db" >&5
7996 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
8000 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8008 echo "$ac_t""$ol_cv_mdbm" 1>&6
8009 if test $ol_cv_mdbm = yes ; then
8010 cat >> confdefs.h <<\EOF
8017 if test $ol_cv_mdbm = yes ; then
8019 ol_with_ldbm_api=mdbm
8020 if test $ol_cv_lib_mdbm != yes ; then
8021 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8026 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8027 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8028 echo "configure:8029: checking for GDBM library" >&5
8029 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8033 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8034 echo "configure:8035: checking for gdbm_open" >&5
8035 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* System header to define __stub macros and hopefully few prototypes,
8042 which can conflict with char gdbm_open(); below. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8051 /* The GNU C library defines this for functions which it implements
8052 to always fail with ENOSYS. Some functions are actually named
8053 something starting with __ and the normal name is an alias. */
8054 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8062 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8064 eval "ac_cv_func_gdbm_open=yes"
8066 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8069 eval "ac_cv_func_gdbm_open=no"
8074 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8078 echo "$ac_t""no" 1>&6
8080 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8081 echo "configure:8082: checking for gdbm_open in -lgdbm" >&5
8082 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8086 ac_save_LIBS="$LIBS"
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 /* Override any gcc2 internal prototype to avoid an error. */
8092 /* We use char because int might match the return type of a gcc2
8093 builtin and then its argument prototype would still apply. */
8100 if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 eval "ac_cv_lib_$ac_lib_var=yes"
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8107 eval "ac_cv_lib_$ac_lib_var=no"
8110 LIBS="$ac_save_LIBS"
8113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 ol_cv_lib_gdbm=-lgdbm
8117 echo "$ac_t""no" 1>&6
8128 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8131 for ac_hdr in gdbm.h
8133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8135 echo "configure:8136: checking for $ac_hdr" >&5
8136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8145 { (eval echo configure:8146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8147 if test -z "$ac_err"; then
8149 eval "ac_cv_header_$ac_safe=yes"
8152 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8155 eval "ac_cv_header_$ac_safe=no"
8159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8160 echo "$ac_t""yes" 1>&6
8161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8162 cat >> confdefs.h <<EOF
8163 #define $ac_tr_hdr 1
8167 echo "$ac_t""no" 1>&6
8171 echo $ac_n "checking for db""... $ac_c" 1>&6
8172 echo "configure:8173: checking for db" >&5
8173 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8177 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8185 echo "$ac_t""$ol_cv_gdbm" 1>&6
8186 if test $ol_cv_gdbm = yes ; then
8187 cat >> confdefs.h <<\EOF
8194 if test $ol_cv_gdbm = yes ; then
8196 ol_with_ldbm_api=gdbm
8198 if test $ol_cv_lib_gdbm != yes ; then
8199 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8204 if test $ol_with_ldbm_api = auto ; then
8205 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8206 elif test $ol_with_ldbm_api = ndbm ; then
8207 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8208 echo "configure:8209: checking for NDBM library" >&5
8209 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8213 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8214 echo "configure:8215: checking for dbm_open" >&5
8215 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8221 /* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char dbm_open(); below. */
8224 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */
8231 /* The GNU C library defines this for functions which it implements
8232 to always fail with ENOSYS. Some functions are actually named
8233 something starting with __ and the normal name is an alias. */
8234 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 eval "ac_cv_func_dbm_open=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 eval "ac_cv_func_dbm_open=no"
8254 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8258 echo "$ac_t""no" 1>&6
8260 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8261 echo "configure:8262: checking for dbm_open in -lndbm" >&5
8262 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 ac_save_LIBS="$LIBS"
8268 cat > conftest.$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 /* We use char because int might match the return type of a gcc2
8273 builtin and then its argument prototype would still apply. */
8280 if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8282 eval "ac_cv_lib_$ac_lib_var=yes"
8284 echo "configure: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8287 eval "ac_cv_lib_$ac_lib_var=no"
8290 LIBS="$ac_save_LIBS"
8293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ol_cv_lib_ndbm=-lndbm
8297 echo "$ac_t""no" 1>&6
8299 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8300 echo "configure:8301: checking for dbm_open in -ldbm" >&5
8301 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8305 ac_save_LIBS="$LIBS"
8307 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8319 if { (eval echo configure:8320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8321 eval "ac_cv_lib_$ac_lib_var=yes"
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 eval "ac_cv_lib_$ac_lib_var=no"
8329 LIBS="$ac_save_LIBS"
8332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8333 echo "$ac_t""yes" 1>&6
8334 ol_cv_lib_ndbm=-ldbm
8336 echo "$ac_t""no" 1>&6
8349 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8352 for ac_hdr in ndbm.h
8354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_hdr" >&5
8357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8366 { (eval echo configure:8367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8368 if test -z "$ac_err"; then
8370 eval "ac_cv_header_$ac_safe=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 eval "ac_cv_header_$ac_safe=no"
8380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8383 cat >> confdefs.h <<EOF
8384 #define $ac_tr_hdr 1
8388 echo "$ac_t""no" 1>&6
8392 echo $ac_n "checking for db""... $ac_c" 1>&6
8393 echo "configure:8394: checking for db" >&5
8394 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8398 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8406 echo "$ac_t""$ol_cv_ndbm" 1>&6
8407 if test $ol_cv_ndbm = yes ; then
8408 cat >> confdefs.h <<\EOF
8415 if test $ol_cv_ndbm = yes ; then
8417 ol_with_ldbm_api=ndbm
8419 if test $ol_cv_lib_ndbm != yes ; then
8420 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8425 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8426 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8427 if test $ol_enable_ldbm = yes ; then
8428 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8431 echo "configure: warning: disabling LDBM" 1>&2
8435 if test $ol_enable_wrappers != no ; then
8436 for ac_hdr in tcpd.h
8438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8440 echo "configure:8441: checking for $ac_hdr" >&5
8441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8450 { (eval echo configure:8451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8452 if test -z "$ac_err"; then
8454 eval "ac_cv_header_$ac_safe=yes"
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8460 eval "ac_cv_header_$ac_safe=no"
8464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8467 cat >> confdefs.h <<EOF
8468 #define $ac_tr_hdr 1
8472 echo "$ac_t""no" 1>&6
8477 if test $ac_cv_header_tcpd_h != yes ; then
8480 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8481 echo "configure:8482: checking for main in -lwrap" >&5
8482 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 ac_save_LIBS="$LIBS"
8488 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8498 eval "ac_cv_lib_$ac_lib_var=yes"
8500 echo "configure: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8503 eval "ac_cv_lib_$ac_lib_var=no"
8506 LIBS="$ac_save_LIBS"
8509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8510 echo "$ac_t""yes" 1>&6
8513 echo "$ac_t""no" 1>&6
8519 if test $have_wrappers = yes ; then
8520 cat >> confdefs.h <<\EOF
8524 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8526 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8527 echo "configure:8528: checking for main in -lnsl" >&5
8528 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8530 echo $ac_n "(cached) $ac_c" 1>&6
8532 ac_save_LIBS="$LIBS"
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8542 if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 eval "ac_cv_lib_$ac_lib_var=yes"
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8549 eval "ac_cv_lib_$ac_lib_var=no"
8552 LIBS="$ac_save_LIBS"
8555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8556 echo "$ac_t""yes" 1>&6
8557 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8559 cat >> confdefs.h <<EOF
8560 #define $ac_tr_lib 1
8566 echo "$ac_t""no" 1>&6
8570 echo "configure: warning: could not find -lwrap" 1>&2
8571 if test $ol_enable_wrappers = yes ; then
8572 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8575 echo "configure: warning: disabling wrappers support" 1>&2
8576 ol_enable_wrappers=no
8580 if test $ol_enable_syslog != no ; then
8581 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8582 echo "configure:8583: checking for openlog" >&5
8583 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8589 /* System header to define __stub macros and hopefully few prototypes,
8590 which can conflict with char openlog(); below. */
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8599 /* The GNU C library defines this for functions which it implements
8600 to always fail with ENOSYS. Some functions are actually named
8601 something starting with __ and the normal name is an alias. */
8602 #if defined (__stub_openlog) || defined (__stub___openlog)
8610 if { (eval echo configure:8611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8612 eval "ac_cv_func_openlog=yes"
8614 echo "configure: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8617 eval "ac_cv_func_openlog=no"
8622 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8623 echo "$ac_t""yes" 1>&6
8626 echo "$ac_t""no" 1>&6
8629 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8630 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8632 ol_enable_syslog=$ac_cv_func_openlog
8635 if test $ol_enable_dmalloc != no ; then
8636 for ac_hdr in dmalloc.h
8638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8640 echo "configure:8641: checking for $ac_hdr" >&5
8641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8650 { (eval echo configure:8651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8652 if test -z "$ac_err"; then
8654 eval "ac_cv_header_$ac_safe=yes"
8657 echo "configure: failed program was:" >&5
8658 cat conftest.$ac_ext >&5
8660 eval "ac_cv_header_$ac_safe=no"
8664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8665 echo "$ac_t""yes" 1>&6
8666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8667 cat >> confdefs.h <<EOF
8668 #define $ac_tr_hdr 1
8672 echo "$ac_t""no" 1>&6
8676 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8677 echo "configure:8678: checking for dmalloc_shutdown in -ldmalloc" >&5
8678 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 ac_save_LIBS="$LIBS"
8683 LIBS="-ldmalloc $LIBS"
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8690 char dmalloc_shutdown();
8696 if { (eval echo configure:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 eval "ac_cv_lib_$ac_lib_var=yes"
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 eval "ac_cv_lib_$ac_lib_var=no"
8706 LIBS="$ac_save_LIBS"
8709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8713 cat >> confdefs.h <<EOF
8714 #define $ac_tr_lib 1
8717 LIBS="-ldmalloc $LIBS"
8720 echo "$ac_t""no" 1>&6
8725 if test $ol_enable_tcl != no ; then
8728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8730 echo "configure:8731: checking for $ac_hdr" >&5
8731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8734 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8740 { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8742 if test -z "$ac_err"; then
8744 eval "ac_cv_header_$ac_safe=yes"
8747 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8750 eval "ac_cv_header_$ac_safe=no"
8754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8755 echo "$ac_t""yes" 1>&6
8756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8757 cat >> confdefs.h <<EOF
8758 #define $ac_tr_hdr 1
8762 echo "$ac_t""no" 1>&6
8767 if test $ac_cv_header_tcl_h != yes ; then
8770 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8771 echo "configure:8772: checking for main in -ltcl" >&5
8772 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8776 ac_save_LIBS="$LIBS"
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8788 eval "ac_cv_lib_$ac_lib_var=yes"
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 eval "ac_cv_lib_$ac_lib_var=no"
8796 LIBS="$ac_save_LIBS"
8799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8803 echo "$ac_t""no" 1>&6
8808 if test $have_tcl != yes; then
8809 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8810 echo "configure:8811: checking for main in -ltcl7.6" >&5
8811 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8815 ac_save_LIBS="$LIBS"
8816 LIBS="-ltcl7.6 $LIBS"
8817 cat > conftest.$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8825 if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8827 eval "ac_cv_lib_$ac_lib_var=yes"
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 eval "ac_cv_lib_$ac_lib_var=no"
8835 LIBS="$ac_save_LIBS"
8838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8839 echo "$ac_t""yes" 1>&6
8840 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8842 echo "$ac_t""no" 1>&6
8848 if test $have_tcl != yes; then
8849 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8850 echo "configure:8851: checking for main in -ltcl8.0" >&5
8851 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8855 ac_save_LIBS="$LIBS"
8856 LIBS="-ltcl8.0 $LIBS"
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8867 eval "ac_cv_lib_$ac_lib_var=yes"
8869 echo "configure: failed program was:" >&5
8870 cat conftest.$ac_ext >&5
8872 eval "ac_cv_lib_$ac_lib_var=no"
8875 LIBS="$ac_save_LIBS"
8878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8879 echo "$ac_t""yes" 1>&6
8880 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8882 echo "$ac_t""no" 1>&6
8889 if test $have_tcl != yes ; then
8890 echo "configure: warning: could not find -ltcl" 1>&2
8891 if test $ol_enable_tcl = yes ; then
8892 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8899 # ud needs termcap (should insert check here)
8901 for ac_hdr in termcap.h ncurses.h
8903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8905 echo "configure:8906: checking for $ac_hdr" >&5
8906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8909 cat > conftest.$ac_ext <<EOF
8910 #line 8911 "configure"
8911 #include "confdefs.h"
8914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8915 { (eval echo configure:8916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8917 if test -z "$ac_err"; then
8919 eval "ac_cv_header_$ac_safe=yes"
8922 echo "configure: failed program was:" >&5
8923 cat conftest.$ac_ext >&5
8925 eval "ac_cv_header_$ac_safe=no"
8929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8932 cat >> confdefs.h <<EOF
8933 #define $ac_tr_hdr 1
8937 echo "$ac_t""no" 1>&6
8942 if test $ol_link_termcap = no ; then
8943 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8944 echo "configure:8945: checking for tputs in -ltermcap" >&5
8945 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8947 echo $ac_n "(cached) $ac_c" 1>&6
8949 ac_save_LIBS="$LIBS"
8950 LIBS="-ltermcap $LIBS"
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 eval "ac_cv_lib_$ac_lib_var=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 eval "ac_cv_lib_$ac_lib_var=no"
8973 LIBS="$ac_save_LIBS"
8976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8977 echo "$ac_t""yes" 1>&6
8980 echo "$ac_t""no" 1>&6
8984 if test $have_termcap = yes ; then
8985 cat >> confdefs.h <<\EOF
8986 #define HAVE_TERMCAP 1
8990 TERMCAP_LIBS=-ltermcap
8994 if test $ol_link_termcap = no ; then
8995 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8996 echo "configure:8997: checking for initscr in -lncurses" >&5
8997 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 ac_save_LIBS="$LIBS"
9002 LIBS="-lncurses $LIBS"
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* Override any gcc2 internal prototype to avoid an error. */
9007 /* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9015 if { (eval echo configure:9016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9017 eval "ac_cv_lib_$ac_lib_var=yes"
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 eval "ac_cv_lib_$ac_lib_var=no"
9025 LIBS="$ac_save_LIBS"
9028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9029 echo "$ac_t""yes" 1>&6
9032 echo "$ac_t""no" 1>&6
9036 if test $have_ncurses = yes ; then
9037 cat >> confdefs.h <<\EOF
9038 #define HAVE_NCURSES 1
9042 TERMCAP_LIBS=-lncurses
9046 if test $ol_link_termcap = no ; then
9047 cat >> confdefs.h <<\EOF
9048 #define NO_TERMCAP 1
9055 if test $ol_with_readline != no ; then
9056 for ac_hdr in readline/readline.h readline/history.h
9058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9060 echo "configure:9061: checking for $ac_hdr" >&5
9061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9062 echo $ac_n "(cached) $ac_c" 1>&6
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9070 { (eval echo configure:9071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9072 if test -z "$ac_err"; then
9074 eval "ac_cv_header_$ac_safe=yes"
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9080 eval "ac_cv_header_$ac_safe=no"
9084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9085 echo "$ac_t""yes" 1>&6
9086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9087 cat >> confdefs.h <<EOF
9088 #define $ac_tr_hdr 1
9092 echo "$ac_t""no" 1>&6
9097 if test $ac_cv_header_readline_readline_h = yes ; then
9099 LIBS="$TERMCAP_LIBS $LIBS"
9100 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9101 echo "configure:9102: checking for readline in -lreadline" >&5
9102 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9106 ac_save_LIBS="$LIBS"
9107 LIBS="-lreadline $LIBS"
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 /* Override any gcc2 internal prototype to avoid an error. */
9112 /* We use char because int might match the return type of a gcc2
9113 builtin and then its argument prototype would still apply. */
9120 if { (eval echo configure:9121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9122 eval "ac_cv_lib_$ac_lib_var=yes"
9124 echo "configure: failed program was:" >&5
9125 cat conftest.$ac_ext >&5
9127 eval "ac_cv_lib_$ac_lib_var=no"
9130 LIBS="$ac_save_LIBS"
9133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9134 echo "$ac_t""yes" 1>&6
9137 echo "$ac_t""no" 1>&6
9143 if test $have_readline = yes ; then
9144 ol_with_readline=found
9145 ol_link_readline=yes
9147 READLINE_LIBS="-lreadline"
9152 if test $ol_link_readline = yes ; then
9153 cat >> confdefs.h <<\EOF
9154 #define HAVE_READLINE 1
9160 # FreeBSD (and others) have crypt(3) in -lcrypt
9161 if test $ol_enable_crypt != no ; then
9162 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9163 echo "configure:9164: checking for crypt" >&5
9164 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 /* System header to define __stub macros and hopefully few prototypes,
9171 which can conflict with char crypt(); below. */
9173 /* Override any gcc2 internal prototype to avoid an error. */
9174 /* We use char because int might match the return type of a gcc2
9175 builtin and then its argument prototype would still apply. */
9180 /* The GNU C library defines this for functions which it implements
9181 to always fail with ENOSYS. Some functions are actually named
9182 something starting with __ and the normal name is an alias. */
9183 #if defined (__stub_crypt) || defined (__stub___crypt)
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 eval "ac_cv_func_crypt=yes"
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 eval "ac_cv_func_crypt=no"
9203 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9204 echo "$ac_t""yes" 1>&6
9207 echo "$ac_t""no" 1>&6
9209 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9210 echo "configure:9211: checking for crypt in -lcrypt" >&5
9211 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9213 echo $ac_n "(cached) $ac_c" 1>&6
9215 ac_save_LIBS="$LIBS"
9216 LIBS="-lcrypt $LIBS"
9217 cat > conftest.$ac_ext <<EOF
9218 #line 9219 "configure"
9219 #include "confdefs.h"
9220 /* Override any gcc2 internal prototype to avoid an error. */
9221 /* We use char because int might match the return type of a gcc2
9222 builtin and then its argument prototype would still apply. */
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9231 eval "ac_cv_lib_$ac_lib_var=yes"
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 eval "ac_cv_lib_$ac_lib_var=no"
9239 LIBS="$ac_save_LIBS"
9242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9243 echo "$ac_t""yes" 1>&6
9244 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9247 echo "$ac_t""no" 1>&6
9254 if test $have_crypt = yes ; then
9255 cat >> confdefs.h <<\EOF
9256 #define HAVE_CRYPT 1
9260 echo "configure: warning: could not find crypt" 1>&2
9261 if test $ol_enable_crypt = yes ; then
9262 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9265 echo "configure: warning: disabling crypt support" 1>&2
9270 # FreeBSD (and others) have setproctitle(3) in -lutil
9271 if test $ol_enable_proctitle != no ; then
9272 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9273 echo "configure:9274: checking for setproctitle" >&5
9274 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+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 setproctitle(); 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. */
9286 char setproctitle();
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_setproctitle) || defined (__stub___setproctitle)
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_setproctitle=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_func_setproctitle=no"
9313 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9314 echo "$ac_t""yes" 1>&6
9315 have_setproctitle=yes
9317 echo "$ac_t""no" 1>&6
9319 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9320 echo "configure:9321: checking for setproctitle in -lutil" >&5
9321 ac_lib_var=`echo util'_'setproctitle | 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"
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. */
9333 char setproctitle();
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 have_setproctitle=yes
9355 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9357 echo "$ac_t""no" 1>&6
9358 have_setproctitle=no
9359 LIBOBJS="$LIBOBJS setproctitle.o"
9365 if test $have_setproctitle = yes ; then
9366 cat >> confdefs.h <<\EOF
9367 #define HAVE_SETPROCTITLE 1
9374 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9375 echo "configure:9376: checking for EBCDIC" >&5
9376 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9385 #include <__ASCII__/generate_error.h>
9389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9390 { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9392 if test -z "$ac_err"; then
9394 ol_cv_cpp_ebcdic=yes
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9405 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9406 if test $ol_cv_cpp_ebcdic = yes ; then
9407 cat >> confdefs.h <<\EOF
9408 #define HAVE_EBCDIC 1
9413 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9414 echo "configure:9415: checking for ANSI C header files" >&5
9415 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9418 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure"
9420 #include "confdefs.h"
9426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9427 { (eval echo configure:9428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9429 if test -z "$ac_err"; then
9431 ol_cv_header_stdc=yes
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 ol_cv_header_stdc=no
9441 if test $ol_cv_header_stdc = yes; then
9442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9449 egrep "memchr" >/dev/null 2>&1; then
9453 ol_cv_header_stdc=no
9459 if test $ol_cv_header_stdc = yes; then
9460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9461 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure"
9463 #include "confdefs.h"
9466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9467 egrep "free" >/dev/null 2>&1; then
9471 ol_cv_header_stdc=no
9477 if test $ol_cv_header_stdc = yes; then
9478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9479 if test "$cross_compiling" = yes; then
9482 cat > conftest.$ac_ext <<EOF
9483 #line 9484 "configure"
9484 #include "confdefs.h"
9487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9490 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9491 || ('j' <= (c) && (c) <= 'r') \
9492 || ('s' <= (c) && (c) <= 'z'))
9493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9496 int main () { int i; for (i = 0; i < 256; i++)
9497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 ol_cv_header_stdc=no
9516 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9517 if test $ol_cv_header_stdc = yes; then
9518 cat >> confdefs.h <<\EOF
9519 #define STDC_HEADERS 1
9523 ac_cv_header_stdc=disable
9526 if test $ol_cv_header_stdc != yes; then
9527 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9531 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9534 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9535 echo "configure:9536: checking for $ac_hdr that defines DIR" >&5
9536 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 #include <sys/types.h>
9548 if { (eval echo configure:9549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9550 eval "ac_cv_header_dirent_$ac_safe=yes"
9552 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9555 eval "ac_cv_header_dirent_$ac_safe=no"
9559 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9562 cat >> confdefs.h <<EOF
9563 #define $ac_tr_hdr 1
9565 ac_header_dirent=$ac_hdr; break
9567 echo "$ac_t""no" 1>&6
9570 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9571 if test $ac_header_dirent = dirent.h; then
9572 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9573 echo "configure:9574: checking for opendir in -ldir" >&5
9574 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9578 ac_save_LIBS="$LIBS"
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 /* Override any gcc2 internal prototype to avoid an error. */
9584 /* We use char because int might match the return type of a gcc2
9585 builtin and then its argument prototype would still apply. */
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9594 eval "ac_cv_lib_$ac_lib_var=yes"
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 eval "ac_cv_lib_$ac_lib_var=no"
9602 LIBS="$ac_save_LIBS"
9605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9606 echo "$ac_t""yes" 1>&6
9609 echo "$ac_t""no" 1>&6
9613 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9614 echo "configure:9615: checking for opendir in -lx" >&5
9615 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9619 ac_save_LIBS="$LIBS"
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 /* Override any gcc2 internal prototype to avoid an error. */
9625 /* We use char because int might match the return type of a gcc2
9626 builtin and then its argument prototype would still apply. */
9633 if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635 eval "ac_cv_lib_$ac_lib_var=yes"
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9640 eval "ac_cv_lib_$ac_lib_var=no"
9643 LIBS="$ac_save_LIBS"
9646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9650 echo "$ac_t""no" 1>&6
9655 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9656 echo "configure:9657: checking for sys/wait.h that is POSIX.1 compatible" >&5
9657 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9658 echo $ac_n "(cached) $ac_c" 1>&6
9660 cat > conftest.$ac_ext <<EOF
9661 #line 9662 "configure"
9662 #include "confdefs.h"
9663 #include <sys/types.h>
9664 #include <sys/wait.h>
9666 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9669 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9674 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9677 if { (eval echo configure:9678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9679 ac_cv_header_sys_wait_h=yes
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9684 ac_cv_header_sys_wait_h=no
9689 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9690 if test $ac_cv_header_sys_wait_h = yes; then
9691 cat >> confdefs.h <<\EOF
9692 #define HAVE_SYS_WAIT_H 1
9697 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9698 echo "configure:9699: checking POSIX termios" >&5
9699 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9700 echo $ac_n "(cached) $ac_c" 1>&6
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 #include <sys/types.h>
9707 #include <termios.h>
9709 /* SunOS 4.0.3 has termios.h but not the library calls. */
9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715 am_cv_sys_posix_termios=yes
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9720 am_cv_sys_posix_termios=no
9725 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9728 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9729 echo "configure:9730: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9730 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9733 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9735 gwinsz_in_termios_h=no
9736 if test $am_cv_sys_posix_termios = yes; then
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 #include <sys/types.h>
9741 # include <termios.h>
9747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9748 egrep "yes" >/dev/null 2>&1; then
9750 gwinsz_in_termios_h=yes
9756 if test $gwinsz_in_termios_h = no; then
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9760 #include <sys/types.h>
9761 # include <sys/ioctl.h>
9767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9768 egrep "yes" >/dev/null 2>&1; then
9770 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9778 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9779 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9780 cat >> confdefs.h <<\EOF
9781 #define GWINSZ_IN_SYS_IOCTL 1
9786 if test $am_cv_sys_posix_termios = yes ; then
9787 cat >> confdefs.h <<\EOF
9788 #define HAVE_POSIX_TERMIOS 1
9833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9835 echo "configure:9836: checking for $ac_hdr" >&5
9836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9845 { (eval echo configure:9846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9847 if test -z "$ac_err"; then
9849 eval "ac_cv_header_$ac_safe=yes"
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9855 eval "ac_cv_header_$ac_safe=no"
9859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9860 echo "$ac_t""yes" 1>&6
9861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9862 cat >> confdefs.h <<EOF
9863 #define $ac_tr_hdr 1
9867 echo "$ac_t""no" 1>&6
9872 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9873 echo "configure:9874: checking for uid_t in sys/types.h" >&5
9874 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9877 cat > conftest.$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 #include <sys/types.h>
9882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9883 egrep "uid_t" >/dev/null 2>&1; then
9885 ac_cv_type_uid_t=yes
9894 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9895 if test $ac_cv_type_uid_t = no; then
9896 cat >> confdefs.h <<\EOF
9900 cat >> confdefs.h <<\EOF
9906 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9907 echo "configure:9908: checking type of array argument to getgroups" >&5
9908 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9909 echo $ac_n "(cached) $ac_c" 1>&6
9911 if test "$cross_compiling" = yes; then
9912 ac_cv_type_getgroups=cross
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9918 /* Thanks to Mike Rendell for this test. */
9919 #include <sys/types.h>
9922 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9927 union { gid_t gval; long lval; } val;
9930 for (i = 0; i < NGID; i++)
9931 gidset[i] = val.gval;
9932 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9934 /* Exit non-zero if getgroups seems to require an array of ints. This
9935 happens when gid_t is short but getgroups modifies an array of ints. */
9936 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9942 ac_cv_type_getgroups=gid_t
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9947 ac_cv_type_getgroups=int
9952 if test $ac_cv_type_getgroups = cross; then
9953 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure"
9955 #include "confdefs.h"
9958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9959 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9961 ac_cv_type_getgroups=gid_t
9964 ac_cv_type_getgroups=int
9971 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9972 cat >> confdefs.h <<EOF
9973 #define GETGROUPS_T $ac_cv_type_getgroups
9976 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9977 echo "configure:9978: checking for ANSI C header files" >&5
9978 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9981 cat > conftest.$ac_ext <<EOF
9982 #line 9983 "configure"
9983 #include "confdefs.h"
9989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9990 { (eval echo configure:9991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9992 if test -z "$ac_err"; then
9994 ac_cv_header_stdc=yes
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
10000 ac_cv_header_stdc=no
10004 if test $ac_cv_header_stdc = yes; then
10005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10008 "configure"
10008 #include "confdefs.h"
10009 #include <string.h>
10011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10012 egrep "memchr" >/dev/null 2>&1; then
10016 ac_cv_header_stdc=no
10022 if test $ac_cv_header_stdc = yes; then
10023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 #include <stdlib.h>
10029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10030 egrep "free" >/dev/null 2>&1; then
10034 ac_cv_header_stdc=no
10040 if test $ac_cv_header_stdc = yes; then
10041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10042 if test "$cross_compiling" = yes; then
10045 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure"
10047 #include "confdefs.h"
10049 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10050 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10052 int main () { int i; for (i = 0; i < 256; i++)
10053 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10057 if { (eval echo configure:10058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 ac_cv_header_stdc=no
10072 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10073 if test $ac_cv_header_stdc = yes; then
10074 cat >> confdefs.h <<\EOF
10075 #define STDC_HEADERS 1
10080 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10081 echo "configure:10082: checking for mode_t" >&5
10082 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10083 echo $ac_n "(cached) $ac_c" 1>&6
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 #include <sys/types.h>
10090 #include <stdlib.h>
10091 #include <stddef.h>
10094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10095 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10097 ac_cv_type_mode_t=yes
10100 ac_cv_type_mode_t=no
10105 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10106 if test $ac_cv_type_mode_t = no; then
10107 cat >> confdefs.h <<\EOF
10113 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10114 echo "configure:10115: checking for off_t" >&5
10115 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10116 echo $ac_n "(cached) $ac_c" 1>&6
10118 cat > conftest.$ac_ext <<EOF
10119 #line 10120 "configure"
10120 #include "confdefs.h"
10121 #include <sys/types.h>
10123 #include <stdlib.h>
10124 #include <stddef.h>
10127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10128 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10130 ac_cv_type_off_t=yes
10133 ac_cv_type_off_t=no
10138 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10139 if test $ac_cv_type_off_t = no; then
10140 cat >> confdefs.h <<\EOF
10146 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10147 echo "configure:10148: checking for pid_t" >&5
10148 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 #include <sys/types.h>
10156 #include <stdlib.h>
10157 #include <stddef.h>
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10163 ac_cv_type_pid_t=yes
10166 ac_cv_type_pid_t=no
10171 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10172 if test $ac_cv_type_pid_t = no; then
10173 cat >> confdefs.h <<\EOF
10179 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10180 echo "configure:10181: checking for ptrdiff_t" >&5
10181 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10182 echo $ac_n "(cached) $ac_c" 1>&6
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10187 #include <stddef.h>
10192 if { (eval echo configure:10193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10194 am_cv_type_ptrdiff_t=yes
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10199 am_cv_type_ptrdiff_t=no
10204 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10205 if test $am_cv_type_ptrdiff_t = yes; then
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_PTRDIFF_T 1
10212 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10213 echo "configure:10214: checking return type of signal handlers" >&5
10214 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <sys/types.h>
10221 #include <signal.h>
10226 extern "C" void (*signal (int, void (*)(int)))(int);
10228 void (*signal ()) ();
10235 if { (eval echo configure:10236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10237 ac_cv_type_signal=void
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 ac_cv_type_signal=int
10247 echo "$ac_t""$ac_cv_type_signal" 1>&6
10248 cat >> confdefs.h <<EOF
10249 #define RETSIGTYPE $ac_cv_type_signal
10253 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10254 echo "configure:10255: checking for sig_atomic_t" >&5
10255 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include <signal.h>
10263 sig_atomic_t atomic;
10266 if { (eval echo configure:10267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10268 ol_cv_type_sig_atomic_t=yes
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10273 ol_cv_type_sig_atomic_t=no
10278 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10279 if test $ol_cv_type_sig_atomic_t = no; then
10280 cat >> confdefs.h <<\EOF
10281 #define sig_atomic_t int
10286 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10287 echo "configure:10288: checking for size_t" >&5
10288 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 #include <sys/types.h>
10296 #include <stdlib.h>
10297 #include <stddef.h>
10300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10301 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10303 ac_cv_type_size_t=yes
10306 ac_cv_type_size_t=no
10311 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10312 if test $ac_cv_type_size_t = no; then
10313 cat >> confdefs.h <<\EOF
10314 #define size_t unsigned
10319 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10320 echo "configure:10321: checking for st_blksize in struct stat" >&5
10321 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10324 cat > conftest.$ac_ext <<EOF
10325 #line 10326 "configure"
10326 #include "confdefs.h"
10327 #include <sys/types.h>
10328 #include <sys/stat.h>
10330 struct stat s; s.st_blksize;
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 ac_cv_struct_st_blksize=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 ac_cv_struct_st_blksize=no
10345 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10346 if test $ac_cv_struct_st_blksize = yes; then
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_ST_BLKSIZE 1
10353 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10354 echo "configure:10355: checking whether time.h and sys/time.h may both be included" >&5
10355 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 #include <sys/types.h>
10362 #include <sys/time.h>
10368 if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370 ac_cv_header_time=yes
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10375 ac_cv_header_time=no
10380 echo "$ac_t""$ac_cv_header_time" 1>&6
10381 if test $ac_cv_header_time = yes; then
10382 cat >> confdefs.h <<\EOF
10383 #define TIME_WITH_SYS_TIME 1
10388 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10389 echo "configure:10390: checking whether struct tm is in sys/time.h or time.h" >&5
10390 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure"
10395 #include "confdefs.h"
10396 #include <sys/types.h>
10399 struct tm *tp; tp->tm_sec;
10402 if { (eval echo configure:10403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10404 ac_cv_struct_tm=time.h
10406 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5
10409 ac_cv_struct_tm=sys/time.h
10414 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10415 if test $ac_cv_struct_tm = sys/time.h; then
10416 cat >> confdefs.h <<\EOF
10417 #define TM_IN_SYS_TIME 1
10422 # test for pw_gecos in struct passwd
10423 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10424 echo "configure:10425: checking struct passwd for pw_gecos" >&5
10425 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10426 echo $ac_n "(cached) $ac_c" 1>&6
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10436 pwd.pw_gecos = pwd.pw_name;
10440 if { (eval echo configure:10441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10442 ol_cv_struct_passwd_pw_gecos=yes
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10447 ol_cv_struct_passwd_pw_gecos=no
10452 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10453 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10454 cat >> confdefs.h <<\EOF
10455 #define HAVE_PW_GECOS 1
10462 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10463 echo "configure:10464: checking if toupper() requires islower()" >&5
10464 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10465 echo $ac_n "(cached) $ac_c" 1>&6
10468 if test "$cross_compiling" = yes; then
10469 ol_cv_c_upper_lower=safe
10471 cat > conftest.$ac_ext <<EOF
10472 #line 10473 "configure"
10473 #include "confdefs.h"
10478 if ('C' == toupper('C'))
10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10486 ol_cv_c_upper_lower=no
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10491 ol_cv_c_upper_lower=yes
10498 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10499 if test $ol_cv_c_upper_lower != no ; then
10500 cat >> confdefs.h <<\EOF
10501 #define C_UPPER_LOWER 1
10506 echo $ac_n "checking for working const""... $ac_c" 1>&6
10507 echo "configure:10508: checking for working const" >&5
10508 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10509 echo $ac_n "(cached) $ac_c" 1>&6
10511 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10517 /* Ultrix mips cc rejects this. */
10518 typedef int charset[2]; const charset x;
10519 /* SunOS 4.1.1 cc rejects this. */
10520 char const *const *ccp;
10522 /* NEC SVR4.0.2 mips cc rejects this. */
10523 struct point {int x, y;};
10524 static struct point const zero = {0,0};
10525 /* AIX XL C 1.02.0.0 rejects this.
10526 It does not let you subtract one const X* pointer from another in an arm
10527 of an if-expression whose if-part is not a constant expression */
10528 const char *g = "string";
10529 ccp = &g + (g ? g-g : 0);
10530 /* HPUX 7.0 cc rejects these. */
10533 ccp = (char const *const *) p;
10534 { /* SCO 3.2v4 cc rejects this. */
10536 char const *s = 0 ? (char *) 0 : (char const *) 0;
10540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10541 int x[] = {25, 17};
10542 const int *foo = &x[0];
10545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10546 typedef const int *iptr;
10550 { /* AIX XL C 1.02.0.0 rejects this saying
10551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10552 struct s { int j; const int *ap[3]; };
10553 struct s *b; b->j = 5;
10555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10556 const int foo = 10;
10561 if { (eval echo configure:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10573 echo "$ac_t""$ac_cv_c_const" 1>&6
10574 if test $ac_cv_c_const = no; then
10575 cat >> confdefs.h <<\EOF
10581 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10582 echo "configure:10583: checking if compiler understands volatile" >&5
10583 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10591 volatile int a; int * volatile b = x ? &y : &z;
10592 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10596 if { (eval echo configure:10597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10598 ol_cv_c_volatile=yes
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 ol_cv_c_volatile=no
10608 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10609 if test $ol_cv_c_volatile = yes; then
10612 cat >> confdefs.h <<\EOF
10619 if test $cross_compiling = yes ; then
10620 cat >> confdefs.h <<\EOF
10621 #define CROSS_COMPILING 1
10625 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10626 echo "configure:10627: checking whether byte ordering is bigendian" >&5
10627 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10630 ac_cv_c_bigendian=unknown
10631 # See if sys/param.h defines the BYTE_ORDER macro.
10632 cat > conftest.$ac_ext <<EOF
10633 #line 10634 "configure"
10634 #include "confdefs.h"
10635 #include <sys/types.h>
10636 #include <sys/param.h>
10639 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10640 bogus endian macros
10644 if { (eval echo configure:10645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10646 # It does; now see whether it defined to BIG_ENDIAN or not.
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 #include <sys/types.h>
10651 #include <sys/param.h>
10654 #if BYTE_ORDER != BIG_ENDIAN
10659 if { (eval echo configure:10660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10661 ac_cv_c_bigendian=yes
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10666 ac_cv_c_bigendian=no
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10674 if test $ac_cv_c_bigendian = unknown; then
10675 if test "$cross_compiling" = yes; then
10676 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10682 /* Are we little or big endian? From Harbison&Steele. */
10686 char c[sizeof (long)];
10689 exit (u.c[sizeof (long) - 1] == 1);
10692 if { (eval echo configure:10693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10694 ac_cv_c_bigendian=no
10696 echo "configure: failed program was:" >&5
10697 cat conftest.$ac_ext >&5
10699 ac_cv_c_bigendian=yes
10707 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10708 if test $ac_cv_c_bigendian = yes; then
10709 cat >> confdefs.h <<\EOF
10710 #define WORDS_BIGENDIAN 1
10715 echo $ac_n "checking size of short""... $ac_c" 1>&6
10716 echo "configure:10717: checking size of short" >&5
10717 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10720 if test "$cross_compiling" = yes; then
10721 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10723 cat > conftest.$ac_ext <<EOF
10724 #line 10725 "configure"
10725 #include "confdefs.h"
10729 FILE *f=fopen("conftestval", "w");
10731 fprintf(f, "%d\n", sizeof(short));
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10737 ac_cv_sizeof_short=`cat conftestval`
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 ac_cv_sizeof_short=0
10748 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10749 cat >> confdefs.h <<EOF
10750 #define SIZEOF_SHORT $ac_cv_sizeof_short
10754 echo $ac_n "checking size of int""... $ac_c" 1>&6
10755 echo "configure:10756: checking size of int" >&5
10756 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10759 if test "$cross_compiling" = yes; then
10760 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10762 cat > conftest.$ac_ext <<EOF
10763 #line 10764 "configure"
10764 #include "confdefs.h"
10768 FILE *f=fopen("conftestval", "w");
10770 fprintf(f, "%d\n", sizeof(int));
10774 if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10776 ac_cv_sizeof_int=`cat conftestval`
10778 echo "configure: failed program was:" >&5
10779 cat conftest.$ac_ext >&5
10787 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10788 cat >> confdefs.h <<EOF
10789 #define SIZEOF_INT $ac_cv_sizeof_int
10793 echo $ac_n "checking size of long""... $ac_c" 1>&6
10794 echo "configure:10795: checking size of long" >&5
10795 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10798 if test "$cross_compiling" = yes; then
10799 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10801 cat > conftest.$ac_ext <<EOF
10802 #line 10803 "configure"
10803 #include "confdefs.h"
10807 FILE *f=fopen("conftestval", "w");
10809 fprintf(f, "%d\n", sizeof(long));
10813 if { (eval echo configure:10814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10815 ac_cv_sizeof_long=`cat conftestval`
10817 echo "configure: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10820 ac_cv_sizeof_long=0
10826 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10827 cat >> confdefs.h <<EOF
10828 #define SIZEOF_LONG $ac_cv_sizeof_long
10834 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10835 echo "configure:10836: checking for 8-bit clean memcmp" >&5
10836 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10837 echo $ac_n "(cached) $ac_c" 1>&6
10839 if test "$cross_compiling" = yes; then
10840 ac_cv_func_memcmp_clean=no
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure"
10844 #include "confdefs.h"
10848 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10849 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10855 ac_cv_func_memcmp_clean=yes
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10860 ac_cv_func_memcmp_clean=no
10867 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10868 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10870 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10871 echo "configure:10872: checking for strftime" >&5
10872 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10875 cat > conftest.$ac_ext <<EOF
10876 #line 10877 "configure"
10877 #include "confdefs.h"
10878 /* System header to define __stub macros and hopefully few prototypes,
10879 which can conflict with char strftime(); below. */
10880 #include <assert.h>
10881 /* Override any gcc2 internal prototype to avoid an error. */
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_strftime) || defined (__stub___strftime)
10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10901 eval "ac_cv_func_strftime=yes"
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10906 eval "ac_cv_func_strftime=no"
10911 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913 cat >> confdefs.h <<\EOF
10914 #define HAVE_STRFTIME 1
10918 echo "$ac_t""no" 1>&6
10919 # strftime is in -lintl on SCO UNIX.
10920 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10921 echo "configure:10922: checking for strftime in -lintl" >&5
10922 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10924 echo $ac_n "(cached) $ac_c" 1>&6
10926 ac_save_LIBS="$LIBS"
10927 LIBS="-lintl $LIBS"
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 /* Override any gcc2 internal prototype to avoid an error. */
10932 /* We use char because int might match the return type of a gcc2
10933 builtin and then its argument prototype would still apply. */
10940 if { (eval echo configure:10941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10942 eval "ac_cv_lib_$ac_lib_var=yes"
10944 echo "configure: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10947 eval "ac_cv_lib_$ac_lib_var=no"
10950 LIBS="$ac_save_LIBS"
10953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955 cat >> confdefs.h <<\EOF
10956 #define HAVE_STRFTIME 1
10959 LIBS="-lintl $LIBS"
10961 echo "$ac_t""no" 1>&6
10967 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10968 echo "configure:10969: checking for vprintf" >&5
10969 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 /* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char vprintf(); below. */
10977 #include <assert.h>
10978 /* Override any gcc2 internal prototype to avoid an error. */
10979 /* We use char because int might match the return type of a gcc2
10980 builtin and then its argument prototype would still apply. */
10985 /* The GNU C library defines this for functions which it implements
10986 to always fail with ENOSYS. Some functions are actually named
10987 something starting with __ and the normal name is an alias. */
10988 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10996 if { (eval echo configure:10997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10998 eval "ac_cv_func_vprintf=yes"
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11003 eval "ac_cv_func_vprintf=no"
11008 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11009 echo "$ac_t""yes" 1>&6
11010 cat >> confdefs.h <<\EOF
11011 #define HAVE_VPRINTF 1
11015 echo "$ac_t""no" 1>&6
11018 if test "$ac_cv_func_vprintf" != yes; then
11019 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11020 echo "configure:11021: checking for _doprnt" >&5
11021 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11022 echo $ac_n "(cached) $ac_c" 1>&6
11024 cat > conftest.$ac_ext <<EOF
11025 #line 11026 "configure"
11026 #include "confdefs.h"
11027 /* System header to define __stub macros and hopefully few prototypes,
11028 which can conflict with char _doprnt(); below. */
11029 #include <assert.h>
11030 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11048 if { (eval echo configure:11049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11050 eval "ac_cv_func__doprnt=yes"
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11055 eval "ac_cv_func__doprnt=no"
11060 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11061 echo "$ac_t""yes" 1>&6
11062 cat >> confdefs.h <<\EOF
11063 #define HAVE_DOPRNT 1
11067 echo "$ac_t""no" 1>&6
11073 if test $ac_cv_func_vprintf = yes ; then
11074 for ac_func in vsnprintf vsprintf
11076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11077 echo "configure:11078: checking for $ac_func" >&5
11078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func(); below. */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 /* We use char because int might match the return type of a gcc2
11089 builtin and then its argument prototype would still apply. */
11094 /* The GNU C library defines this for functions which it implements
11095 to always fail with ENOSYS. Some functions are actually named
11096 something starting with __ and the normal name is an alias. */
11097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11105 if { (eval echo configure:11106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11107 eval "ac_cv_func_$ac_func=yes"
11109 echo "configure: failed program was:" >&5
11110 cat conftest.$ac_ext >&5
11112 eval "ac_cv_func_$ac_func=no"
11117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11120 cat >> confdefs.h <<EOF
11121 #define $ac_tr_func 1
11125 echo "$ac_t""no" 1>&6
11172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11173 echo "configure:11174: checking for $ac_func" >&5
11174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11175 echo $ac_n "(cached) $ac_c" 1>&6
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11180 /* System header to define __stub macros and hopefully few prototypes,
11181 which can conflict with char $ac_func(); below. */
11182 #include <assert.h>
11183 /* Override any gcc2 internal prototype to avoid an error. */
11184 /* We use char because int might match the return type of a gcc2
11185 builtin and then its argument prototype would still apply. */
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11201 if { (eval echo configure:11202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11203 eval "ac_cv_func_$ac_func=yes"
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 eval "ac_cv_func_$ac_func=no"
11213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11214 echo "$ac_t""yes" 1>&6
11215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11216 cat >> confdefs.h <<EOF
11217 #define $ac_tr_func 1
11221 echo "$ac_t""no" 1>&6
11226 for ac_func in getopt tempnam
11228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11229 echo "configure:11230: checking for $ac_func" >&5
11230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11233 cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func(); below. */
11238 #include <assert.h>
11239 /* Override any gcc2 internal prototype to avoid an error. */
11240 /* We use char because int might match the return type of a gcc2
11241 builtin and then its argument prototype would still apply. */
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11257 if { (eval echo configure:11258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259 eval "ac_cv_func_$ac_func=yes"
11261 echo "configure: failed program was:" >&5
11262 cat conftest.$ac_ext >&5
11264 eval "ac_cv_func_$ac_func=no"
11269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11270 echo "$ac_t""yes" 1>&6
11271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11272 cat >> confdefs.h <<EOF
11273 #define $ac_tr_func 1
11277 echo "$ac_t""no" 1>&6
11278 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11284 # Check Configuration
11286 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11287 echo "configure:11288: checking declaration of sys_errlist" >&5
11288 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11297 #include <sys/types.h>
11300 char *c = (char *) *sys_errlist
11303 if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11305 ol_cv_dcl_sys_errlist=yes
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11310 ol_cv_dcl_sys_errlist=no
11315 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11316 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11317 if test $ol_cv_dcl_sys_errlist = no ; then
11318 cat >> confdefs.h <<\EOF
11319 #define DECL_SYS_ERRLIST 1
11322 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11323 echo "configure:11324: checking existence of sys_errlist" >&5
11324 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11333 char *c = (char *) *sys_errlist
11336 if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11338 ol_cv_have_sys_errlist=yes
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11343 ol_cv_have_sys_errlist=no
11348 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11349 if test $ol_cv_have_sys_errlist = yes ; then
11350 cat >> confdefs.h <<\EOF
11351 #define HAVE_SYS_ERRLIST 1
11359 if test "$ol_enable_debug" != no ; then
11360 cat >> confdefs.h <<\EOF
11361 #define LDAP_DEBUG 1
11365 if test "$ol_enable_syslog" = yes ; then
11366 cat >> confdefs.h <<\EOF
11367 #define LDAP_SYSLOG 1
11371 if test "$ol_enable_libui" = yes ; then
11372 cat >> confdefs.h <<\EOF
11373 #define LDAP_LIBUI 1
11377 if test "$ol_enable_cache" = no ; then
11378 cat >> confdefs.h <<\EOF
11379 #define LDAP_NOCACHE 1
11383 if test "$ol_enable_dns" != no ; then
11384 cat >> confdefs.h <<\EOF
11385 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11389 if test "$ol_enable_proctitle" != no ; then
11390 cat >> confdefs.h <<\EOF
11391 #define LDAP_PROCTITLE 1
11395 if test "$ol_enable_referrals" != no ; then
11396 cat >> confdefs.h <<\EOF
11397 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11401 if test "$ol_enable_cldap" != no ; then
11402 cat >> confdefs.h <<\EOF
11403 #define LDAP_CONNECTIONLESS 1
11408 if test "$ol_enable_aclgroups" != no ; then
11409 cat >> confdefs.h <<\EOF
11410 #define SLAPD_ACLGROUPS 1
11414 if test "$ol_enable_crypt" != no ; then
11415 cat >> confdefs.h <<\EOF
11416 #define SLAPD_CRYPT 1
11420 if test "$ol_enable_cleartext" != no ; then
11421 cat >> confdefs.h <<\EOF
11422 #define SLAPD_CLEARTEXT 1
11426 if test "$ol_enable_phonetic" != no ; then
11427 cat >> confdefs.h <<\EOF
11428 #define SLAPD_PHONETIC 1
11432 if test "$ol_enable_rlookups" != no ; then
11433 cat >> confdefs.h <<\EOF
11434 #define SLAPD_RLOOKUPS 1
11439 if test "$ol_link_modules" != no ; then
11440 cat >> confdefs.h <<\EOF
11441 #define SLAPD_MODULES 1
11447 if test "$ol_link_bdb2" != no ; then
11448 cat >> confdefs.h <<\EOF
11449 #define SLAPD_BDB2 1
11456 if test "$ol_enable_ldap" != no ; then
11457 cat >> confdefs.h <<\EOF
11458 #define SLAPD_LDAP 1
11465 if test "$ol_link_ldbm" != no ; then
11466 cat >> confdefs.h <<\EOF
11467 #define SLAPD_LDBM 1
11474 if test "$ol_enable_passwd" != no ; then
11475 cat >> confdefs.h <<\EOF
11476 #define SLAPD_PASSWD 1
11483 if test "$ol_link_perl" != no ; then
11484 cat >> confdefs.h <<\EOF
11485 #define SLAPD_PERL 1
11492 if test "$ol_enable_shell" != no ; then
11493 cat >> confdefs.h <<\EOF
11494 #define SLAPD_SHELL 1
11501 if test "$ol_enable_tcl" != no ; then
11502 cat >> confdefs.h <<\EOF
11503 #define SLAPD_TCL 1
11510 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11511 $BUILD_SLAPD = yes ; then
11515 if test "$ol_link_isode" != no ; then
11553 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11556 # Let make expand exec_prefix.
11557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11559 # Any assignment to VPATH causes Sun make to only execute
11560 # the first set of double-colon rules, so remove it if not needed.
11561 # If there is a colon in the path, we need to keep it.
11562 if test "x$srcdir" = x.; then
11563 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11566 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11568 DEFS=-DHAVE_CONFIG_H
11570 # Without the "./", some shells look in PATH for config.status.
11571 : ${CONFIG_STATUS=./config.status}
11573 echo creating $CONFIG_STATUS
11574 rm -f $CONFIG_STATUS
11575 cat > $CONFIG_STATUS <<EOF
11577 # Generated automatically by configure.
11578 # Run this file to recreate the current configuration.
11579 # This directory was configured as follows,
11580 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11582 # $0 $ac_configure_args
11584 # Compiler output produced by configure, useful for debugging
11585 # configure, is in ./config.log if it exists.
11587 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11590 case "\$ac_option" in
11591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11592 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11593 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11594 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11595 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11597 -help | --help | --hel | --he | --h)
11598 echo "\$ac_cs_usage"; exit 0 ;;
11599 *) echo "\$ac_cs_usage"; exit 1 ;;
11603 ac_given_srcdir=$srcdir
11604 ac_given_INSTALL="$INSTALL"
11606 trap 'rm -fr `echo "\
11607 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11608 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11609 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11610 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11611 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11612 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11613 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11614 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11615 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11616 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11617 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11618 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11619 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11620 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11621 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11622 include/Makefile:build/top.mk:include/Makefile.in \
11623 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11624 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11625 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11626 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11627 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11628 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11629 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11630 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11631 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11632 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11633 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11634 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11635 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11636 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11637 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11638 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11639 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11640 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11641 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11642 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11643 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11644 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11645 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11646 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11647 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11648 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11649 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11651 cat >> $CONFIG_STATUS <<EOF
11653 # Protect against being on the right side of a sed subst in config.status.
11654 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11655 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11659 s%@CFLAGS@%$CFLAGS%g
11660 s%@CPPFLAGS@%$CPPFLAGS%g
11661 s%@CXXFLAGS@%$CXXFLAGS%g
11662 s%@FFLAGS@%$FFLAGS%g
11664 s%@LDFLAGS@%$LDFLAGS%g
11666 s%@exec_prefix@%$exec_prefix%g
11667 s%@prefix@%$prefix%g
11668 s%@program_transform_name@%$program_transform_name%g
11669 s%@bindir@%$bindir%g
11670 s%@sbindir@%$sbindir%g
11671 s%@libexecdir@%$libexecdir%g
11672 s%@datadir@%$datadir%g
11673 s%@sysconfdir@%$sysconfdir%g
11674 s%@sharedstatedir@%$sharedstatedir%g
11675 s%@localstatedir@%$localstatedir%g
11676 s%@libdir@%$libdir%g
11677 s%@includedir@%$includedir%g
11678 s%@oldincludedir@%$oldincludedir%g
11679 s%@infodir@%$infodir%g
11680 s%@mandir@%$mandir%g
11681 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11682 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11683 s%@INSTALL_DATA@%$INSTALL_DATA%g
11684 s%@PACKAGE@%$PACKAGE%g
11685 s%@VERSION@%$VERSION%g
11686 s%@ACLOCAL@%$ACLOCAL%g
11687 s%@AUTOCONF@%$AUTOCONF%g
11688 s%@AUTOMAKE@%$AUTOMAKE%g
11689 s%@AUTOHEADER@%$AUTOHEADER%g
11690 s%@MAKEINFO@%$MAKEINFO%g
11691 s%@SET_MAKE@%$SET_MAKE%g
11692 s%@top_builddir@%$top_builddir%g
11693 s%@ldap_subdir@%$ldap_subdir%g
11695 s%@host_alias@%$host_alias%g
11696 s%@host_cpu@%$host_cpu%g
11697 s%@host_vendor@%$host_vendor%g
11698 s%@host_os@%$host_os%g
11699 s%@RANLIB@%$RANLIB%g
11704 s%@LIBTOOL@%$LIBTOOL%g
11707 s%@SENDMAIL@%$SENDMAIL%g
11708 s%@EDITOR@%$EDITOR%g
11709 s%@FINGER@%$FINGER%g
11710 s%@GLIBCONFIG@%$GLIBCONFIG%g
11711 s%@PERLBIN@%$PERLBIN%g
11713 s%@EXEEXT@%$EXEEXT%g
11714 s%@OBJEXT@%$OBJEXT%g
11715 s%@CC_DEPEND_FLAGS@%$CC_DEPEND_FLAGS%g
11717 s%@LIBOBJS@%$LIBOBJS%g
11718 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11719 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11720 s%@BUILD_BDB2@%$BUILD_BDB2%g
11721 s%@BUILD_LDAP@%$BUILD_LDAP%g
11722 s%@BUILD_LDBM@%$BUILD_LDBM%g
11723 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11724 s%@BUILD_PERL@%$BUILD_PERL%g
11725 s%@BUILD_SHELL@%$BUILD_SHELL%g
11726 s%@BUILD_TCL@%$BUILD_TCL%g
11727 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11728 s%@LDAP_LIBS@%$LDAP_LIBS%g
11729 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11730 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11731 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11732 s%@LDBM_LIBS@%$LDBM_LIBS%g
11733 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11734 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11735 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11736 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11737 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11738 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11739 s%@KRB_LIBS@%$KRB_LIBS%g
11740 s%@READLINE_LIBS@%$READLINE_LIBS%g
11741 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11742 s%@TLS_LIBS@%$TLS_LIBS%g
11747 cat >> $CONFIG_STATUS <<\EOF
11749 # Split the substitutions into bite-sized pieces for seds with
11750 # small command number limits, like on Digital OSF/1 and HP-UX.
11751 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11752 ac_file=1 # Number of current file.
11753 ac_beg=1 # First line for current file.
11754 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11757 while $ac_more_lines; do
11758 if test $ac_beg -gt 1; then
11759 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11761 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11763 if test ! -s conftest.s$ac_file; then
11764 ac_more_lines=false
11765 rm -f conftest.s$ac_file
11767 if test -z "$ac_sed_cmds"; then
11768 ac_sed_cmds="sed -f conftest.s$ac_file"
11770 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11772 ac_file=`expr $ac_file + 1`
11774 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11777 if test -z "$ac_sed_cmds"; then
11782 cat >> $CONFIG_STATUS <<EOF
11784 CONFIG_FILES=\${CONFIG_FILES-"\
11785 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11786 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11787 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11788 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11789 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11790 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11791 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11792 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11793 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11794 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11795 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11796 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11797 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11798 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11799 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11800 include/Makefile:build/top.mk:include/Makefile.in \
11801 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11802 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11803 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11804 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11805 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11806 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11807 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11808 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11809 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11810 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11811 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11812 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11813 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11814 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11815 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11816 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11817 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11818 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11819 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11820 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11821 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11822 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11823 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11824 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11825 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11826 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11829 cat >> $CONFIG_STATUS <<\EOF
11830 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11833 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11834 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11835 *) ac_file_in="${ac_file}.in" ;;
11838 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11840 # Remove last slash and all that follows it. Not all systems have dirname.
11841 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11842 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11843 # The file is in a subdirectory.
11844 test ! -d "$ac_dir" && mkdir "$ac_dir"
11845 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11846 # A "../" for each directory in $ac_dir_suffix.
11847 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11849 ac_dir_suffix= ac_dots=
11852 case "$ac_given_srcdir" in
11854 if test -z "$ac_dots"; then top_srcdir=.
11855 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11856 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11857 *) # Relative path.
11858 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11859 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11862 case "$ac_given_INSTALL" in
11863 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11864 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11867 echo creating "$ac_file"
11869 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11871 *Makefile*) ac_comsub="1i\\
11872 # $configure_input" ;;
11876 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11878 s%@configure_input@%$configure_input%g
11879 s%@srcdir@%$srcdir%g
11880 s%@top_srcdir@%$top_srcdir%g
11881 s%@INSTALL@%$INSTALL%g
11882 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11886 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11887 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11889 # ac_d sets the value in "#define NAME VALUE" lines.
11890 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11891 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11894 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11895 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11896 ac_uB='\([ ]\)%\1#\2define\3'
11899 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11900 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11901 ac_eB='$%\1#\2define\3'
11905 if test "${CONFIG_HEADERS+set}" != set; then
11907 cat >> $CONFIG_STATUS <<EOF
11908 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11910 cat >> $CONFIG_STATUS <<\EOF
11912 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11917 *) ac_file_in="${ac_file}.in" ;;
11920 echo creating $ac_file
11922 rm -f conftest.frag conftest.in conftest.out
11923 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11924 cat $ac_file_inputs > conftest.in
11928 # Transform confdefs.h into a sed script conftest.vals that substitutes
11929 # the proper values into config.h.in to produce config.h. And first:
11930 # Protect against being on the right side of a sed subst in config.status.
11931 # Protect against being in an unquoted here document in config.status.
11932 rm -f conftest.vals
11933 cat > conftest.hdr <<\EOF
11936 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11940 sed -n -f conftest.hdr confdefs.h > conftest.vals
11943 # This sed command replaces #undef with comments. This is necessary, for
11944 # example, in the case of _POSIX_SOURCE, which is predefined and required
11945 # on some systems where configure will not decide to define it.
11946 cat >> conftest.vals <<\EOF
11947 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11950 # Break up conftest.vals because some shells have a limit on
11951 # the size of here documents, and old seds have small limits too.
11953 rm -f conftest.tail
11956 ac_lines=`grep -c . conftest.vals`
11957 # grep -c gives empty output for an empty file on some AIX systems.
11958 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11959 # Write a limited-size here document to conftest.frag.
11960 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11961 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11963 sed -f conftest.frag conftest.in > conftest.out
11965 mv conftest.out conftest.in
11966 ' >> $CONFIG_STATUS
11967 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11968 rm -f conftest.vals
11969 mv conftest.tail conftest.vals
11971 rm -f conftest.vals
11973 cat >> $CONFIG_STATUS <<\EOF
11974 rm -f conftest.frag conftest.h
11975 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11976 cat conftest.in >> conftest.h
11978 if cmp -s $ac_file conftest.h 2>/dev/null; then
11979 echo "$ac_file is unchanged"
11982 # Remove last slash and all that follows it. Not all systems have dirname.
11983 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11984 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11985 # The file is in a subdirectory.
11986 test ! -d "$ac_dir" && mkdir "$ac_dir"
11989 mv conftest.h $ac_file
11994 cat >> $CONFIG_STATUS <<EOF
11997 cat >> $CONFIG_STATUS <<\EOF
12000 echo Please \"make depend\" to build dependencies
12004 chmod +x $CONFIG_STATUS
12005 rm -fr confdefs* $ac_clean_files
12006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1