3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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-proctitle enable proctitle support (yes)"
22 --enable-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable dns support (no)"
28 --enable-referrals enable referrals (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 use Kerberos (auto)"
38 --with-threads use threads (auto)"
40 --with-yielding-select with implicitly yielding select (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static[=PKGS] build static libraries [default=yes]"
80 --enable-shared[=PKGS] build shared libraries [default=no]"
82 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
84 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
86 --disable-libtool-lock avoid locking (might break parallel builds)"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13.1"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/ldap.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
569 test -f "$cache_file" && . $cache_file
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
597 for ac_dir in build $srcdir/build; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
614 # Find a good install program. We prefer a C program (faster),
615 # so one script is as good as another. But avoid the broken or
616 # incompatible versions:
617 # SysV /etc/install, /usr/sbin/install
618 # SunOS /usr/etc/install
621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
624 # ./install, which can be erroneously created by make from ./install.sh.
625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
626 echo "configure:627: checking for a BSD compatible install" >&5
627 if test -z "$INSTALL"; then
628 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
632 for ac_dir in $PATH; do
633 # Account for people who put trailing slashes in PATH elements.
635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
637 # OSF1 and SCO ODT 3.0 have their own names for install.
638 # Don't use installbsd from OSF since it installs stuff as root
640 for ac_prog in ginstall scoinst install; do
641 if test -f $ac_dir/$ac_prog; then
642 if test $ac_prog = install &&
643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
644 # AIX install. It has an incompatible calling convention.
646 elif test $ac_prog = install &&
647 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
648 # program-specific install script used by HP pwplus--don't use.
651 ac_cv_path_install="$ac_dir/$ac_prog -c"
662 if test "${ac_cv_path_install+set}" = set; then
663 INSTALL="$ac_cv_path_install"
665 # As a last resort, use the slow shell script. We don't cache a
666 # path for INSTALL within a source directory, because that will
667 # break other packages using the cache if that directory is
668 # removed, or if the path is relative.
669 INSTALL="$ac_install_sh"
672 echo "$ac_t""$INSTALL" 1>&6
674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
675 # It thinks the first close brace ends the variable substitution.
676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
682 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
683 echo "configure:684: checking whether build environment is sane" >&5
686 echo timestamp > conftestfile
687 # Do `set' in a subshell so we don't clobber the current shell's
688 # arguments. Must try -L first in case configure is actually a
689 # symlink; some systems play weird games with the mod time of symlinks
690 # (eg FreeBSD returns the mod time of the symlink's containing
693 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
694 if test "$*" = "X"; then
696 set X `ls -t $srcdir/configure conftestfile`
698 if test "$*" != "X $srcdir/configure conftestfile" \
699 && test "$*" != "X conftestfile $srcdir/configure"; then
701 # If neither matched, then we have a broken ls. This can happen
702 # if, for instance, CONFIG_SHELL is bash and it inherits a
703 # broken ls alias from the environment. This has actually
704 # happened. Such a system could not be considered "sane".
705 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
706 alias in your environment" 1>&2; exit 1; }
709 test "$2" = conftestfile
715 { echo "configure: error: newly created file is older than distributed files!
716 Check your system clock" 1>&2; exit 1; }
719 echo "$ac_t""yes" 1>&6
720 if test "$program_transform_name" = s,x,x,; then
721 program_transform_name=
723 # Double any \ or $. echo might interpret backslashes.
724 cat <<\EOF_SED > conftestsed
725 s,\\,\\\\,g; s,\$,$$,g
727 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
730 test "$program_prefix" != NONE &&
731 program_transform_name="s,^,${program_prefix},;$program_transform_name"
732 # Use a double $ so make ignores it.
733 test "$program_suffix" != NONE &&
734 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
736 # sed with no file args requires a program.
737 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
739 for ac_prog in mawk gawk nawk awk
741 # Extract the first word of "$ac_prog", so it can be a program name with args.
742 set dummy $ac_prog; ac_word=$2
743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
744 echo "configure:745: checking for $ac_word" >&5
745 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 if test -n "$AWK"; then
749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
753 for ac_dir in $ac_dummy; do
754 test -z "$ac_dir" && ac_dir=.
755 if test -f $ac_dir/$ac_word; then
756 ac_cv_prog_AWK="$ac_prog"
763 AWK="$ac_cv_prog_AWK"
764 if test -n "$AWK"; then
765 echo "$ac_t""$AWK" 1>&6
767 echo "$ac_t""no" 1>&6
770 test -n "$AWK" && break
773 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${MAKE-make} sets \${MAKE}" >&5
775 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
776 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftestmake <<\EOF
781 @echo 'ac_maketemp="${MAKE}"'
783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
784 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
785 if test -n "$ac_maketemp"; then
786 eval ac_cv_prog_make_${ac_make}_set=yes
788 eval ac_cv_prog_make_${ac_make}_set=no
792 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
793 echo "$ac_t""yes" 1>&6
796 echo "$ac_t""no" 1>&6
797 SET_MAKE="MAKE=${MAKE-make}"
806 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
807 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
812 missing_dir=`cd $ac_aux_dir && pwd`
813 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
814 echo "configure:815: checking for working aclocal" >&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 (aclocal --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 ACLOCAL="$missing_dir/missing aclocal"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
833 echo "$ac_t""found" 1>&6
835 AUTOCONF="$missing_dir/missing autoconf"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working automake""... $ac_c" 1>&6
840 echo "configure:841: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 AUTOMAKE="$missing_dir/missing automake"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
853 echo "configure:854: checking for working autoheader" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
858 AUTOHEADER=autoheader
859 echo "$ac_t""found" 1>&6
861 AUTOHEADER="$missing_dir/missing autoheader"
862 echo "$ac_t""missing" 1>&6
865 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
866 echo "configure:867: checking for working makeinfo" >&5
867 # Run test in a subshell; some versions of sh will print an error if
868 # an executable is not found, even if stderr is redirected.
869 # Redirect stdin to placate older versions of autoconf. Sigh.
870 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
872 echo "$ac_t""found" 1>&6
874 MAKEINFO="$missing_dir/missing makeinfo"
875 echo "$ac_t""missing" 1>&6
878 install_sh="$missing_dir/install-sh"
879 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
881 for ac_prog in gnutar gtar tar
883 # Extract the first word of "$ac_prog", so it can be a program name with args.
884 set dummy $ac_prog; ac_word=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$AMTAR"; then
891 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_prog_AMTAR="$ac_prog"
905 AMTAR="$ac_cv_prog_AMTAR"
906 if test -n "$AMTAR"; then
907 echo "$ac_t""$AMTAR" 1>&6
909 echo "$ac_t""no" 1>&6
912 test -n "$AMTAR" && break
917 if test -n "$AMTAR"; then
918 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
926 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
927 echo "configure:928: checking configure arguments" >&5
932 ldap_subdir="openldap"
934 # Check whether --with-subdir or --without-subdir was given.
935 if test "${with_subdir+set}" = set; then
936 withval="$with_subdir"
938 if test "$withval" = "no"; then
940 elif test "$withval" != "yes"; then
941 ldap_subdir="$withval"
947 # OpenLDAP --enable-debug
948 # Check whether --enable-debug or --disable-debug was given.
949 if test "${enable_debug+set}" = set; then
950 enableval="$enable_debug"
953 for ol_val in auto yes no ; do
954 if test "$enableval" = "$ol_val" ; then
958 if test "$ol_arg" = "invalid" ; then
959 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
961 ol_enable_debug="$ol_arg"
964 ol_enable_debug="yes"
967 # OpenLDAP --enable-proctitle
968 # Check whether --enable-proctitle or --disable-proctitle was given.
969 if test "${enable_proctitle+set}" = set; then
970 enableval="$enable_proctitle"
973 for ol_val in auto yes no ; do
974 if test "$enableval" = "$ol_val" ; then
978 if test "$ol_arg" = "invalid" ; then
979 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
981 ol_enable_proctitle="$ol_arg"
984 ol_enable_proctitle="yes"
986 # end --enable-proctitle
987 # OpenLDAP --enable-libui
988 # Check whether --enable-libui or --disable-libui was given.
989 if test "${enable_libui+set}" = set; then
990 enableval="$enable_libui"
993 for ol_val in auto yes no ; do
994 if test "$enableval" = "$ol_val" ; then
998 if test "$ol_arg" = "invalid" ; then
999 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
1001 ol_enable_libui="$ol_arg"
1004 ol_enable_libui="yes"
1006 # end --enable-libui
1007 # OpenLDAP --enable-cache
1008 # Check whether --enable-cache or --disable-cache was given.
1009 if test "${enable_cache+set}" = set; then
1010 enableval="$enable_cache"
1013 for ol_val in auto yes no ; do
1014 if test "$enableval" = "$ol_val" ; then
1018 if test "$ol_arg" = "invalid" ; then
1019 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1021 ol_enable_cache="$ol_arg"
1024 ol_enable_cache="yes"
1026 # end --enable-cache
1027 # OpenLDAP --enable-dns
1028 # Check whether --enable-dns or --disable-dns was given.
1029 if test "${enable_dns+set}" = set; then
1030 enableval="$enable_dns"
1033 for ol_val in auto yes no ; do
1034 if test "$enableval" = "$ol_val" ; then
1038 if test "$ol_arg" = "invalid" ; then
1039 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1041 ol_enable_dns="$ol_arg"
1047 # OpenLDAP --enable-referrals
1048 # Check whether --enable-referrals or --disable-referrals was given.
1049 if test "${enable_referrals+set}" = set; then
1050 enableval="$enable_referrals"
1053 for ol_val in auto yes no ; do
1054 if test "$enableval" = "$ol_val" ; then
1058 if test "$ol_arg" = "invalid" ; then
1059 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1061 ol_enable_referrals="$ol_arg"
1064 ol_enable_referrals="yes"
1066 # end --enable-referrals
1067 # OpenLDAP --enable-cldap
1068 # Check whether --enable-cldap or --disable-cldap was given.
1069 if test "${enable_cldap+set}" = set; then
1070 enableval="$enable_cldap"
1073 for ol_val in auto yes no ; do
1074 if test "$enableval" = "$ol_val" ; then
1078 if test "$ol_arg" = "invalid" ; then
1079 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1081 ol_enable_cldap="$ol_arg"
1084 ol_enable_cldap="no"
1086 # end --enable-cldap
1087 # OpenLDAP --enable-x_compile
1088 # Check whether --enable-x_compile or --disable-x_compile was given.
1089 if test "${enable_x_compile+set}" = set; then
1090 enableval="$enable_x_compile"
1093 for ol_val in yes no ; do
1094 if test "$enableval" = "$ol_val" ; then
1098 if test "$ol_arg" = "invalid" ; then
1099 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1101 ol_enable_x_compile="$ol_arg"
1104 ol_enable_x_compile="no"
1106 # end --enable-x_compile
1108 # OpenLDAP --enable-dmalloc
1109 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1110 if test "${enable_dmalloc+set}" = set; then
1111 enableval="$enable_dmalloc"
1114 for ol_val in auto yes no ; do
1115 if test "$enableval" = "$ol_val" ; then
1119 if test "$ol_arg" = "invalid" ; then
1120 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1122 ol_enable_dmalloc="$ol_arg"
1125 ol_enable_dmalloc="no"
1127 # end --enable-dmalloc
1129 # OpenLDAP --with-kerberos
1130 # Check whether --with-kerberos or --without-kerberos was given.
1131 if test "${with_kerberos+set}" = set; then
1132 withval="$with_kerberos"
1135 for ol_val in auto k5 k4 afs yes no ; do
1136 if test "$withval" = "$ol_val" ; then
1140 if test "$ol_arg" = "invalid" ; then
1141 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1143 ol_with_kerberos="$ol_arg"
1146 ol_with_kerberos="auto"
1148 # end --with-kerberos
1150 # OpenLDAP --with-threads
1151 # Check whether --with-threads or --without-threads was given.
1152 if test "${with_threads+set}" = set; then
1153 withval="$with_threads"
1156 for ol_val in auto posix mach lwp yes no manual ; do
1157 if test "$withval" = "$ol_val" ; then
1161 if test "$ol_arg" = "invalid" ; then
1162 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1164 ol_with_threads="$ol_arg"
1167 ol_with_threads="auto"
1169 # end --with-threads
1171 # OpenLDAP --with-yielding_select
1172 # Check whether --with-yielding_select or --without-yielding_select was given.
1173 if test "${with_yielding_select+set}" = set; then
1174 withval="$with_yielding_select"
1177 for ol_val in auto yes no manual ; do
1178 if test "$withval" = "$ol_val" ; then
1182 if test "$ol_arg" = "invalid" ; then
1183 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1185 ol_with_yielding_select="$ol_arg"
1188 ol_with_yielding_select="auto"
1190 # end --with-yielding_select
1194 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1195 if test "${with_xxldapdoptions+set}" = set; then
1196 withval="$with_xxldapdoptions"
1200 # OpenLDAP --enable-ldapd
1201 # Check whether --enable-ldapd or --disable-ldapd was given.
1202 if test "${enable_ldapd+set}" = set; then
1203 enableval="$enable_ldapd"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1214 ol_enable_ldapd="$ol_arg"
1217 ol_enable_ldapd="no"
1219 # end --enable-ldapd
1221 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1222 if test "${with_xxslapdoptions+set}" = set; then
1223 withval="$with_xxslapdoptions"
1227 # OpenLDAP --enable-slapd
1228 # Check whether --enable-slapd or --disable-slapd was given.
1229 if test "${enable_slapd+set}" = set; then
1230 enableval="$enable_slapd"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1241 ol_enable_slapd="$ol_arg"
1244 ol_enable_slapd="yes"
1246 # end --enable-slapd
1247 # OpenLDAP --enable-aclgroups
1248 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1249 if test "${enable_aclgroups+set}" = set; then
1250 enableval="$enable_aclgroups"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1261 ol_enable_aclgroups="$ol_arg"
1264 ol_enable_aclgroups="auto"
1266 # end --enable-aclgroups
1267 # OpenLDAP --enable-cleartext
1268 # Check whether --enable-cleartext or --disable-cleartext was given.
1269 if test "${enable_cleartext+set}" = set; then
1270 enableval="$enable_cleartext"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1281 ol_enable_cleartext="$ol_arg"
1284 ol_enable_cleartext="yes"
1286 # end --enable-cleartext
1287 # OpenLDAP --enable-crypt
1288 # Check whether --enable-crypt or --disable-crypt was given.
1289 if test "${enable_crypt+set}" = set; then
1290 enableval="$enable_crypt"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1301 ol_enable_crypt="$ol_arg"
1304 ol_enable_crypt="auto"
1306 # end --enable-crypt
1307 # OpenLDAP --enable-wrappers
1308 # Check whether --enable-wrappers or --disable-wrappers was given.
1309 if test "${enable_wrappers+set}" = set; then
1310 enableval="$enable_wrappers"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1321 ol_enable_wrappers="$ol_arg"
1324 ol_enable_wrappers="no"
1326 # end --enable-wrappers
1327 # OpenLDAP --enable-phonetic
1328 # Check whether --enable-phonetic or --disable-phonetic was given.
1329 if test "${enable_phonetic+set}" = set; then
1330 enableval="$enable_phonetic"
1333 for ol_val in auto yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1341 ol_enable_phonetic="$ol_arg"
1344 ol_enable_phonetic="no"
1346 # end --enable-phonetic
1347 # OpenLDAP --enable-rlookups
1348 # Check whether --enable-rlookups or --disable-rlookups was given.
1349 if test "${enable_rlookups+set}" = set; then
1350 enableval="$enable_rlookups"
1353 for ol_val in auto yes no ; do
1354 if test "$enableval" = "$ol_val" ; then
1358 if test "$ol_arg" = "invalid" ; then
1359 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1361 ol_enable_rlookups="$ol_arg"
1364 ol_enable_rlookups="auto"
1366 # end --enable-rlookups
1368 # OpenLDAP --enable-ldbm
1369 # Check whether --enable-ldbm or --disable-ldbm was given.
1370 if test "${enable_ldbm+set}" = set; then
1371 enableval="$enable_ldbm"
1374 for ol_val in auto yes no ; do
1375 if test "$enableval" = "$ol_val" ; then
1379 if test "$ol_arg" = "invalid" ; then
1380 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1382 ol_enable_ldbm="$ol_arg"
1385 ol_enable_ldbm="yes"
1388 # OpenLDAP --with-ldbm_api
1389 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1390 if test "${with_ldbm_api+set}" = set; then
1391 withval="$with_ldbm_api"
1394 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1395 if test "$withval" = "$ol_val" ; then
1399 if test "$ol_arg" = "invalid" ; then
1400 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1402 ol_with_ldbm_api="$ol_arg"
1405 ol_with_ldbm_api="auto"
1407 # end --with-ldbm_api
1409 # OpenLDAP --with-ldbm_type
1410 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1411 if test "${with_ldbm_type+set}" = set; then
1412 withval="$with_ldbm_type"
1415 for ol_val in auto btree hash ; do
1416 if test "$withval" = "$ol_val" ; then
1420 if test "$ol_arg" = "invalid" ; then
1421 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1423 ol_with_ldbm_type="$ol_arg"
1426 ol_with_ldbm_type="auto"
1428 # end --with-ldbm_type
1431 # OpenLDAP --enable-passwd
1432 # Check whether --enable-passwd or --disable-passwd was given.
1433 if test "${enable_passwd+set}" = set; then
1434 enableval="$enable_passwd"
1437 for ol_val in auto yes no ; do
1438 if test "$enableval" = "$ol_val" ; then
1442 if test "$ol_arg" = "invalid" ; then
1443 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1445 ol_enable_passwd="$ol_arg"
1448 ol_enable_passwd="no"
1450 # end --enable-passwd
1451 # OpenLDAP --enable-shell
1452 # Check whether --enable-shell or --disable-shell was given.
1453 if test "${enable_shell+set}" = set; then
1454 enableval="$enable_shell"
1457 for ol_val in auto yes no ; do
1458 if test "$enableval" = "$ol_val" ; then
1462 if test "$ol_arg" = "invalid" ; then
1463 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1465 ol_enable_shell="$ol_arg"
1468 ol_enable_shell="no"
1470 # end --enable-shell
1472 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1473 if test "${with_xxslurpdoptions+set}" = set; then
1474 withval="$with_xxslurpdoptions"
1478 # OpenLDAP --enable-slurpd
1479 # Check whether --enable-slurpd or --disable-slurpd was given.
1480 if test "${enable_slurpd+set}" = set; then
1481 enableval="$enable_slurpd"
1484 for ol_val in auto yes no ; do
1485 if test "$enableval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1492 ol_enable_slurpd="$ol_arg"
1495 ol_enable_slurpd="auto"
1497 # end --enable-slurpd
1499 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1500 if test "${with_xxliboptions+set}" = set; then
1501 withval="$with_xxliboptions"
1505 # Check whether --enable-static or --disable-static was given.
1506 if test "${enable_static+set}" = set; then
1507 enableval="$enable_static"
1508 p=${PACKAGE-default}
1509 case "$enableval" in
1510 yes) enable_static=yes ;;
1511 no) enable_static=no ;;
1514 # Look at the argument we got. We use all the common list separators.
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1516 for pkg in $enableval; do
1517 if test "X$pkg" = "X$p"; then
1528 # Check whether --enable-shared or --disable-shared was given.
1529 if test "${enable_shared+set}" = set; then
1530 enableval="$enable_shared"
1531 p=${PACKAGE-default}
1532 case "$enableval" in
1533 yes) enable_shared=yes ;;
1534 no) enable_shared=no ;;
1537 # Look at the argument we got. We use all the common list separators.
1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1539 for pkg in $enableval; do
1540 if test "X$pkg" = "X$p"; then
1553 if test $ol_enable_dns = yes ; then
1554 if test $ol_enable_referrals = no ; then
1555 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1557 if test $ol_enable_referrals = auto ; then
1558 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1559 ol_enable_referrals=yes
1563 if test $ol_enable_slapd = no ; then
1564 if test $ol_enable_ldbm = yes ; then
1565 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1567 if test $ol_enable_passwd = yes ; then
1568 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1570 if test $ol_enable_shell = yes ; then
1571 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1573 if test $ol_enable_aclgroups = yes ; then
1574 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1576 if test $ol_enable_wrappers = yes ; then
1577 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1579 if test $ol_enable_phonetic = yes ; then
1580 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1582 if test $ol_enable_rlookups = yes ; then
1583 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1585 if test $ol_with_ldbm_api != auto ; then
1586 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1588 if test $ol_with_ldbm_type != auto ; then
1589 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1591 if test $ol_enable_slurpd = yes ; then
1592 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1595 # force settings to no
1599 ol_enable_aclgroups=no
1600 ol_enable_wrappers=no
1601 ol_enable_phonetic=no
1602 ol_enable_rlookups=no
1604 ol_with_ldbm_type=no
1607 elif test $ol_enable_ldbm = no ; then
1609 if test $ol_with_ldbm_api != auto ; then
1610 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1613 if test $ol_with_ldbm_type != auto ; then
1614 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1617 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1618 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1622 ol_with_ldbm_type=no
1626 if test $ol_with_ldbm_api = gdbm -a \
1627 $ol_with_ldbm_type = btree ; then
1628 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1630 if test $ol_with_ldbm_api = mdbm -a \
1631 $ol_with_ldbm_type = btree ; then
1632 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1634 if test $ol_with_ldbm_api = ndbm -a \
1635 $ol_with_ldbm_type = btree ; then
1636 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1640 if test $ol_enable_slurpd = yes ; then
1641 if test $ol_with_threads = no ; then
1642 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1646 echo "$ac_t""done" 1>&6
1649 echo $ac_n "checking host system type""... $ac_c" 1>&6
1650 echo "configure:1651: checking host system type" >&5
1651 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
1653 # Make sure we can run config.sub.
1654 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1658 ac_cv_host_alias=$host
1659 case "$ac_cv_host_alias" in
1663 if ac_cv_host_alias=`$ac_config_guess`; then :
1664 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1666 *) ac_cv_host_alias=$nonopt ;;
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
1671 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1672 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1673 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675 echo $ac_n "(cached) $ac_c" 1>&6
1678 echo "$ac_t""$ac_cv_host" 1>&6
1681 host_alias=$ac_cv_host_alias
1682 host_cpu=$ac_cv_host_cpu
1683 host_vendor=$ac_cv_host_vendor
1684 host_os=$ac_cv_host_os
1713 # Find a good install program. We prefer a C program (faster),
1714 # so one script is as good as another. But avoid the broken or
1715 # incompatible versions:
1716 # SysV /etc/install, /usr/sbin/install
1717 # SunOS /usr/etc/install
1718 # IRIX /sbin/install
1720 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1721 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1722 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1725 echo "configure:1726: checking for a BSD compatible install" >&5
1726 if test -z "$INSTALL"; then
1727 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1731 for ac_dir in $PATH; do
1732 # Account for people who put trailing slashes in PATH elements.
1734 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1736 # OSF1 and SCO ODT 3.0 have their own names for install.
1737 # Don't use installbsd from OSF since it installs stuff as root
1739 for ac_prog in ginstall scoinst install; do
1740 if test -f $ac_dir/$ac_prog; then
1741 if test $ac_prog = install &&
1742 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1743 # AIX install. It has an incompatible calling convention.
1745 elif test $ac_prog = install &&
1746 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1747 # program-specific install script used by HP pwplus--don't use.
1750 ac_cv_path_install="$ac_dir/$ac_prog -c"
1761 if test "${ac_cv_path_install+set}" = set; then
1762 INSTALL="$ac_cv_path_install"
1764 # As a last resort, use the slow shell script. We don't cache a
1765 # path for INSTALL within a source directory, because that will
1766 # break other packages using the cache if that directory is
1767 # removed, or if the path is relative.
1768 INSTALL="$ac_install_sh"
1771 echo "$ac_t""$INSTALL" 1>&6
1773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1774 # It thinks the first close brace ends the variable substitution.
1775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1781 # Check whether --enable-fast-install or --disable-fast-install was given.
1782 if test "${enable_fast_install+set}" = set; then
1783 enableval="$enable_fast_install"
1784 p=${PACKAGE-default}
1785 case "$enableval" in
1786 yes) enable_fast_install=yes ;;
1787 no) enable_fast_install=no ;;
1789 enable_fast_install=no
1790 # Look at the argument we got. We use all the common list separators.
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1792 for pkg in $enableval; do
1793 if test "X$pkg" = "X$p"; then
1794 enable_fast_install=yes
1801 enable_fast_install=yes
1805 echo $ac_n "checking build system type""... $ac_c" 1>&6
1806 echo "configure:1807: checking build system type" >&5
1807 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1809 # Make sure we can run config.sub.
1810 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1811 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1814 ac_cv_build_alias=$build
1815 case "$ac_cv_build_alias" in
1819 ac_cv_build_alias=$host_alias ;;
1821 *) ac_cv_build_alias=$nonopt ;;
1825 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1826 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1827 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1828 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1830 echo $ac_n "(cached) $ac_c" 1>&6
1833 echo "$ac_t""$ac_cv_build" 1>&6
1836 build_alias=$ac_cv_build_alias
1837 build_cpu=$ac_cv_build_cpu
1838 build_vendor=$ac_cv_build_vendor
1839 build_os=$ac_cv_build_os
1844 # Extract the first word of "ranlib", so it can be a program name with args.
1845 set dummy ranlib; ac_word=$2
1846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_word" >&5
1848 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test -n "$RANLIB"; then
1852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1856 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then
1859 ac_cv_prog_RANLIB="ranlib"
1864 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1867 RANLIB="$ac_cv_prog_RANLIB"
1868 if test -n "$RANLIB"; then
1869 echo "$ac_t""$RANLIB" 1>&6
1871 echo "$ac_t""no" 1>&6
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_word" >&5
1878 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 for ac_dir in $ac_dummy; do
1887 test -z "$ac_dir" && ac_dir=.
1888 if test -f $ac_dir/$ac_word; then
1897 if test -n "$CC"; then
1898 echo "$ac_t""$CC" 1>&6
1900 echo "$ac_t""no" 1>&6
1903 if test -z "$CC"; then
1904 # Extract the first word of "cc", so it can be a program name with args.
1905 set dummy cc; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5
1908 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1917 for ac_dir in $ac_dummy; do
1918 test -z "$ac_dir" && ac_dir=.
1919 if test -f $ac_dir/$ac_word; then
1920 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1921 ac_prog_rejected=yes
1929 if test $ac_prog_rejected = yes; then
1930 # We found a bogon in the path, so make sure we never use it.
1931 set dummy $ac_cv_prog_CC
1933 if test $# -gt 0; then
1934 # We chose a different compiler from the bogus one.
1935 # However, it has the same basename, so the bogon will be chosen
1936 # first if we set CC to just the basename; use the full file name.
1938 set dummy "$ac_dir/$ac_word" "$@"
1946 if test -n "$CC"; then
1947 echo "$ac_t""$CC" 1>&6
1949 echo "$ac_t""no" 1>&6
1952 if test -z "$CC"; then
1953 case "`uname -s`" in
1954 *win32* | *WIN32* | *CYGWIN*)
1955 # Extract the first word of "cl", so it can be a program name with args.
1956 set dummy cl; ac_word=$2
1957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_word" >&5
1959 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1967 for ac_dir in $ac_dummy; do
1968 test -z "$ac_dir" && ac_dir=.
1969 if test -f $ac_dir/$ac_word; then
1978 if test -n "$CC"; then
1979 echo "$ac_t""$CC" 1>&6
1981 echo "$ac_t""no" 1>&6
1986 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1993 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1996 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1997 cross_compiling=$ac_cv_prog_cc_cross
1999 cat > conftest.$ac_ext << EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2007 ac_cv_prog_cc_works=yes
2008 # If we can't run a trivial program, we are probably using a cross compiler.
2009 if (./conftest; exit) 2>/dev/null; then
2010 ac_cv_prog_cc_cross=no
2012 ac_cv_prog_cc_cross=yes
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 ac_cv_prog_cc_works=no
2021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2024 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2025 cross_compiling=$ac_cv_prog_cc_cross
2027 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2028 if test $ac_cv_prog_cc_works = no; then
2029 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2033 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2034 cross_compiling=$ac_cv_prog_cc_cross
2036 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether we are using GNU C" >&5
2038 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.c <<EOF
2046 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2053 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2055 if test $ac_cv_prog_gcc = yes; then
2061 ac_test_CFLAGS="${CFLAGS+set}"
2062 ac_save_CFLAGS="$CFLAGS"
2064 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether ${CC-cc} accepts -g" >&5
2066 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 echo 'void f(){}' > conftest.c
2070 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2079 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2080 if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS="$ac_save_CFLAGS"
2082 elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2089 if test "$GCC" = yes; then
2096 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2097 if test "${with_gnu_ld+set}" = set; then
2098 withval="$with_gnu_ld"
2099 test "$withval" = no || with_gnu_ld=yes
2105 if test "$ac_cv_prog_gcc" = yes; then
2106 # Check if gcc -print-prog-name=ld gives a path.
2107 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2108 echo "configure:2109: checking for ld used by GCC" >&5
2109 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2111 # Accept absolute paths.
2112 [\\/]* | [A-Za-z]:[\\/]*)
2113 re_direlt='/[^/][^/]*/\.\./'
2114 # Canonicalize the path of ld
2115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
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 \"\${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}${PATH_SEPARATOR-:}"
2142 for ac_dir in $PATH; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; 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 \"\${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 \"\${ac_cv_path_NM+set}\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 if test -n "$NM"; then
2192 # Let the user override the test.
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2196 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2197 test -z "$ac_dir" && ac_dir=.
2198 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2199 # Check to see if the nm accepts a BSD-compat flag.
2200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2201 # nm: unknown option "B" ignored
2202 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2203 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"
2209 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2210 continue # so that we can try to find one that supports BSD flags
2215 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 \"\${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
2245 # Check for any special flags to pass to ltconfig.
2246 libtool_flags="--cache-file=$cache_file"
2247 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2248 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2249 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2250 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2251 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2254 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2255 if test "${enable_libtool_lock+set}" = set; then
2256 enableval="$enable_libtool_lock"
2260 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2261 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2263 # Some flags need to be propagated to the compiler or linker for good
2267 # Find out which ABI we are using.
2268 echo '#line 2269 "configure"' > conftest.$ac_ext
2269 if { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 case "`/usr/bin/file conftest.o`" in
2286 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2287 SAVE_CFLAGS="$CFLAGS"
2288 CFLAGS="$CFLAGS -belf"
2289 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2290 echo "configure:2291: checking whether the C compiler needs -belf" >&5
2291 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 lt_cv_cc_needs_belf=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 lt_cv_cc_needs_belf=no
2314 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2315 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2316 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2317 CFLAGS="$SAVE_CFLAGS"
2325 # Save cache, so that ltconfig can load it
2326 cat > confcache <<\EOF
2327 # This file is a shell script that caches the results of configure
2328 # tests run on this system so they can be shared between configure
2329 # scripts and configure runs. It is not useful on other systems.
2330 # If it contains results you don't want to keep, you may remove or edit it.
2332 # By default, configure uses ./config.cache as the cache file,
2333 # creating it if it does not exist already. You can give configure
2334 # the --cache-file=FILE option to use a different cache file; that is
2335 # what configure does when it calls configure scripts in
2336 # subdirectories, so they share the cache.
2337 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2338 # config.status only pays attention to the cache file if you give it the
2339 # --recheck option to rerun configure.
2342 # The following way of writing the cache mishandles newlines in values,
2343 # but we know of no workaround that is simple, portable, and efficient.
2344 # So, don't put newlines in cache variables' values.
2345 # Ultrix sh set writes to stderr and can't be redirected directly,
2346 # and sets the high bit in the cache file unless we assign to the vars.
2348 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2350 # `set' does not quote correctly, so add quotes (double-quote substitution
2351 # turns \\\\ into \\, and sed turns \\ into \).
2353 -e "s/'/'\\\\''/g" \
2354 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2357 # `set' quotes correctly as required by POSIX, so do not add quotes.
2358 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2361 if cmp -s $cache_file confcache; then
2364 if test -w $cache_file; then
2365 echo "updating cache $cache_file"
2366 cat confcache > $cache_file
2368 echo "not updating unwritable cache $cache_file"
2374 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2375 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2376 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2377 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2378 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2379 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2380 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2381 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2383 # Reload cache, that may have been modified by ltconfig
2384 if test -r "$cache_file"; then
2385 echo "loading cache $cache_file"
2386 test -f "$cache_file" && . $cache_file
2388 echo "creating cache $cache_file"
2393 # This can be used to rebuild libtool when needed
2394 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2396 # Always use our own libtool.
2397 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2399 # Redirect the config.log output again, so that the ltconfig log is not
2400 # clobbered by the next message.
2401 exec 5>>./config.log
2404 # Extract the first word of "sendmail", so it can be a program name with args.
2405 set dummy sendmail; ac_word=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2413 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2416 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2420 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2421 for ac_dir in $ac_dummy; do
2422 test -z "$ac_dir" && ac_dir=.
2423 if test -f $ac_dir/$ac_word; then
2424 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2429 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2433 SENDMAIL="$ac_cv_path_SENDMAIL"
2434 if test -n "$SENDMAIL"; then
2435 echo "$ac_t""$SENDMAIL" 1>&6
2437 echo "$ac_t""no" 1>&6
2440 # Extract the first word of "vi", so it can be a program name with args.
2441 set dummy vi; ac_word=$2
2442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_word" >&5
2444 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2452 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2456 ac_dummy="$PATH:/usr/ucb"
2457 for ac_dir in $ac_dummy; do
2458 test -z "$ac_dir" && ac_dir=.
2459 if test -f $ac_dir/$ac_word; then
2460 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2465 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2469 EDITOR="$ac_cv_path_EDITOR"
2470 if test -n "$EDITOR"; then
2471 echo "$ac_t""$EDITOR" 1>&6
2473 echo "$ac_t""no" 1>&6
2476 # Extract the first word of "finger", so it can be a program name with args.
2477 set dummy finger; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2485 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2488 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2492 ac_dummy="$PATH:/usr/ucb"
2493 for ac_dir in $ac_dummy; do
2494 test -z "$ac_dir" && ac_dir=.
2495 if test -f $ac_dir/$ac_word; then
2496 ac_cv_path_FINGER="$ac_dir/$ac_word"
2501 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2505 FINGER="$ac_cv_path_FINGER"
2506 if test -n "$FINGER"; then
2507 echo "$ac_t""$FINGER" 1>&6
2509 echo "$ac_t""no" 1>&6
2514 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2515 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2517 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2518 echo "configure: warning: programs compiled here do run here..." 1>&2
2519 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2521 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2522 echo "configure: warning: programs compiled here do not run here..." 1>&2
2523 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2526 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2527 echo "configure:2528: checking how to run the C preprocessor" >&5
2528 # On Suns, sometimes $CPP names a directory.
2529 if test -n "$CPP" && test -d "$CPP"; then
2532 if test -z "$CPP"; then
2533 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 # This must be in double quotes, not single quotes, because CPP may get
2537 # substituted into the Makefile and "${CC-cc}" will confuse make.
2539 # On the NeXT, cc -E runs the code through the compiler's parser,
2540 # not just through cpp.
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 CPP="${CC-cc} -E -traditional-cpp"
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2565 { (eval echo configure:2566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2567 if test -z "$ac_err"; then
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 CPP="${CC-cc} -nologo -E"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2582 { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2584 if test -z "$ac_err"; then
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2598 ac_cv_prog_CPP="$CPP"
2600 CPP="$ac_cv_prog_CPP"
2602 ac_cv_prog_CPP="$CPP"
2604 echo "$ac_t""$CPP" 1>&6
2607 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2608 echo "configure:2609: checking for AIX" >&5
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2618 egrep "yes" >/dev/null 2>&1; then
2620 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2621 #define _ALL_SOURCE 1
2626 echo "$ac_t""no" 1>&6
2631 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2632 echo "configure:2633: checking for POSIXized ISC" >&5
2633 if test -d /etc/conf/kconfig.d &&
2634 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2636 echo "$ac_t""yes" 1>&6
2637 ISC=yes # If later tests want to check for ISC.
2638 cat >> confdefs.h <<\EOF
2639 #define _POSIX_SOURCE 1
2642 if test "$GCC" = yes; then
2648 echo "$ac_t""no" 1>&6
2652 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2654 echo "configure:2655: checking for minix/config.h" >&5
2655 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2661 #include <minix/config.h>
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2668 eval "ac_cv_header_$ac_safe=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2674 eval "ac_cv_header_$ac_safe=no"
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2682 echo "$ac_t""no" 1>&6
2686 if test "$MINIX" = yes; then
2687 cat >> confdefs.h <<\EOF
2688 #define _POSIX_SOURCE 1
2691 cat >> confdefs.h <<\EOF
2692 #define _POSIX_1_SOURCE 2
2695 cat >> confdefs.h <<\EOF
2702 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2703 echo "configure:2704: checking for be_app in -lbe" >&5
2704 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
2705 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_save_LIBS="$LIBS"
2709 LIBS="-lbe -lroot -lnet $LIBS"
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 /* Override any gcc2 internal prototype to avoid an error. */
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2724 eval "ac_cv_lib_$ac_lib_var=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_lib_$ac_lib_var=no"
2732 LIBS="$ac_save_LIBS"
2735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 LIBS="$LIBS -lbe -lroot -lnet"
2739 echo "$ac_t""no" 1>&6
2747 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2748 echo "configure:2749: checking for ${CC-cc} option to accept ANSI C" >&5
2749 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 am_cv_prog_cc_stdc=no
2754 # Don't try gcc -ansi; that turns off useful extensions and
2755 # breaks some systems' header files.
2756 # AIX -qlanglvl=ansi
2757 # Ultrix and OSF/1 -std1
2758 # HP-UX 10.20 and later -Ae
2759 # HP-UX older versions -Aa -D_HPUX_SOURCE
2760 # SVR4 -Xc -D__EXTENSIONS__
2761 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2763 CC="$ac_save_CC $ac_arg"
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2769 #include <sys/types.h>
2770 #include <sys/stat.h>
2771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2772 struct buf { int x; };
2773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2774 static char *e (p, i)
2780 static char *f (char * (*g) (char **, int), char **p, ...)
2785 s = g (p, va_arg (v,int));
2789 int test (int i, double x);
2790 struct s1 {int (*f) (int a);};
2791 struct s2 {int (*f) (double a);};
2792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2802 if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2804 am_cv_prog_cc_stdc="$ac_arg"; break
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2815 if test -z "$am_cv_prog_cc_stdc"; then
2816 echo "$ac_t""none needed" 1>&6
2818 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2820 case "x$am_cv_prog_cc_stdc" in
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2825 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2826 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2832 echo $ac_n "checking for socket""... $ac_c" 1>&6
2833 echo "configure:2834: checking for socket" >&5
2834 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 /* System header to define __stub macros and hopefully few prototypes,
2841 which can conflict with char socket(); below. */
2843 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_socket) || defined (__stub___socket)
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2864 eval "ac_cv_func_socket=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 eval "ac_cv_func_socket=no"
2874 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2878 echo "$ac_t""no" 1>&6
2880 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2881 echo "configure:2882: checking for main in -lsocket" >&5
2882 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
2883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 ac_save_LIBS="$LIBS"
2887 LIBS="-lsocket $LIBS"
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2898 eval "ac_cv_lib_$ac_lib_var=yes"
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 eval "ac_cv_lib_$ac_lib_var=no"
2906 LIBS="$ac_save_LIBS"
2909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2913 cat >> confdefs.h <<EOF
2914 #define $ac_tr_lib 1
2917 LIBS="-lsocket $LIBS"
2920 echo "$ac_t""no" 1>&6
2923 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2924 echo "configure:2925: checking for main in -lnet" >&5
2925 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
2926 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 ac_save_LIBS="$LIBS"
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 eval "ac_cv_lib_$ac_lib_var=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2946 eval "ac_cv_lib_$ac_lib_var=no"
2949 LIBS="$ac_save_LIBS"
2952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2955 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2956 cat >> confdefs.h <<EOF
2957 #define $ac_tr_lib 1
2963 echo "$ac_t""no" 1>&6
2966 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2967 echo "configure:2968: checking for main in -lnsl_s" >&5
2968 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
2969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 ac_save_LIBS="$LIBS"
2973 LIBS="-lnsl_s $LIBS"
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2984 eval "ac_cv_lib_$ac_lib_var=yes"
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 eval "ac_cv_lib_$ac_lib_var=no"
2992 LIBS="$ac_save_LIBS"
2995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2996 echo "$ac_t""yes" 1>&6
2997 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2998 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2999 cat >> confdefs.h <<EOF
3000 #define $ac_tr_lib 1
3003 LIBS="-lnsl_s $LIBS"
3006 echo "$ac_t""no" 1>&6
3009 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3010 echo "configure:3011: checking for main in -lnsl" >&5
3011 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
3012 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 ac_save_LIBS="$LIBS"
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3032 eval "ac_cv_lib_$ac_lib_var=no"
3035 LIBS="$ac_save_LIBS"
3038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3042 cat >> confdefs.h <<EOF
3043 #define $ac_tr_lib 1
3049 echo "$ac_t""no" 1>&6
3052 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3053 echo "configure:3054: checking for socket in -linet" >&5
3054 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
3055 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 ac_save_LIBS="$LIBS"
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* Override any gcc2 internal prototype to avoid an error. */
3064 /* We use char because int might match the return type of a gcc2
3065 builtin and then its argument prototype would still apply. */
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074 eval "ac_cv_lib_$ac_lib_var=yes"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3079 eval "ac_cv_lib_$ac_lib_var=no"
3082 LIBS="$ac_save_LIBS"
3085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3087 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3089 cat >> confdefs.h <<EOF
3090 #define $ac_tr_lib 1
3096 echo "$ac_t""no" 1>&6
3099 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3100 echo "configure:3101: checking for main in -lgen" >&5
3101 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
3102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 ac_save_LIBS="$LIBS"
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3115 if { (eval echo configure:3116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3117 eval "ac_cv_lib_$ac_lib_var=yes"
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3122 eval "ac_cv_lib_$ac_lib_var=no"
3125 LIBS="$ac_save_LIBS"
3128 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3131 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3132 cat >> confdefs.h <<EOF
3133 #define $ac_tr_lib 1
3139 echo "$ac_t""no" 1>&6
3146 for ac_func in res_search
3148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_func" >&5
3150 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 /* System header to define __stub macros and hopefully few prototypes,
3157 which can conflict with char $ac_func(); below. */
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 eval "ac_cv_func_$ac_func=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_func_$ac_func=no"
3190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3193 cat >> confdefs.h <<EOF
3194 #define $ac_tr_func 1
3198 echo "$ac_t""no" 1>&6
3202 if test $ac_cv_func_res_search = "no" ; then
3203 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3204 echo "configure:3205: checking for res_search in -lbind" >&5
3205 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
3206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_save_LIBS="$LIBS"
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 eval "ac_cv_lib_$ac_lib_var=no"
3233 LIBS="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_lib 1
3247 echo "$ac_t""no" 1>&6
3250 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_RES_SEARCH 1
3256 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3257 echo "configure:3258: checking for res_search in -lresolv" >&5
3258 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
3259 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 ac_save_LIBS="$LIBS"
3263 LIBS="-lresolv $LIBS"
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_lib 1
3297 LIBS="-lresolv $LIBS"
3300 echo "$ac_t""no" 1>&6
3303 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_RES_SEARCH 1
3312 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3313 echo "configure:3314: checking for sigset in -lV3" >&5
3314 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
3315 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS="$LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 eval "ac_cv_lib_$ac_lib_var=no"
3342 LIBS="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3349 cat >> confdefs.h <<EOF
3350 #define $ac_tr_lib 1
3356 echo "$ac_t""no" 1>&6
3362 if test $ol_enable_ldapd != no ; then
3363 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3364 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3365 echo "configure:3366: checking for main in -lxtpp" >&5
3366 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
3367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 ac_save_LIBS="$LIBS"
3371 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3397 cat >> confdefs.h <<\EOF
3401 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3404 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3409 echo "configure:3410: checking for main in -ldsap" >&5
3410 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
3411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3415 LIBS="-ldsap -lisode $LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3426 eval "ac_cv_lib_$ac_lib_var=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3431 eval "ac_cv_lib_$ac_lib_var=no"
3434 LIBS="$ac_save_LIBS"
3437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3441 cat >> confdefs.h <<\EOF
3445 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3448 echo "$ac_t""no" 1>&6
3452 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3453 echo "configure:3454: checking for main in -lisode" >&5
3454 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
3455 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3458 ac_save_LIBS="$LIBS"
3459 LIBS="-lisode $LIBS"
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 eval "ac_cv_lib_$ac_lib_var=yes"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 eval "ac_cv_lib_$ac_lib_var=no"
3478 LIBS="$ac_save_LIBS"
3481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_ISODE 1
3489 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3492 echo "$ac_t""no" 1>&6
3498 if test $ol_link_isode != no; then
3499 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3500 echo "configure:3501: checking for main in -lpp" >&5
3501 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
3502 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3517 eval "ac_cv_lib_$ac_lib_var=yes"
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 eval "ac_cv_lib_$ac_lib_var=no"
3525 LIBS="$ac_save_LIBS"
3528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3531 cat >> confdefs.h <<\EOF
3535 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3538 echo "$ac_t""no" 1>&6
3543 # Extract the first word of "pepsy", so it can be a program name with args.
3544 set dummy pepsy; ac_word=$2
3545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3546 echo "configure:3547: checking for $ac_word" >&5
3547 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3552 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3555 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3560 for ac_dir in $ac_dummy; do
3561 test -z "$ac_dir" && ac_dir=.
3562 if test -f $ac_dir/$ac_word; then
3563 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3571 PEPSY="$ac_cv_path_PEPSY"
3572 if test -n "$PEPSY"; then
3573 echo "$ac_t""$PEPSY" 1>&6
3575 echo "$ac_t""no" 1>&6
3582 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3583 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_hdr" >&5
3588 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3597 { (eval echo configure:3598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3599 if test -z "$ac_err"; then
3601 eval "ac_cv_header_$ac_safe=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 eval "ac_cv_header_$ac_safe=no"
3611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_hdr 1
3619 echo "$ac_t""no" 1>&6
3624 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3625 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3626 echo "configure:3627: checking for main in -lkrb4" >&5
3627 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
3628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 ac_save_LIBS="$LIBS"
3632 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 eval "ac_cv_lib_$ac_lib_var=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 eval "ac_cv_lib_$ac_lib_var=no"
3651 LIBS="$ac_save_LIBS"
3654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3658 echo "$ac_t""no" 1>&6
3663 if test $have_k5 = yes ; then
3664 ol_with_kerberos=found
3665 ol_link_kerberos=yes
3667 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3669 LIBS="$KRB_LIBS $LIBS"
3671 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3672 echo "configure:3673: checking for des_debug in Kerberos libraries" >&5
3673 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3678 LIBS="$KRB_LIBS $LIBS"
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3683 #include <kerberosIV/krb.h>
3684 #include <kerberosIV/des.h>
3685 extern int des_debug;
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 ol_cv_var_des_debug=yes
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 ol_cv_var_des_debug=no
3707 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3709 if test $ol_cv_var_des_debug = yes ; then
3710 cat >> confdefs.h <<\EOF
3711 #define HAVE_DES_DEBUG 1
3721 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3722 for ac_hdr in krb.h des.h
3724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_hdr" >&5
3727 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3736 { (eval echo configure:3737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3738 if test -z "$ac_err"; then
3740 eval "ac_cv_header_$ac_safe=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3746 eval "ac_cv_header_$ac_safe=no"
3750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3753 cat >> confdefs.h <<EOF
3754 #define $ac_tr_hdr 1
3758 echo "$ac_t""no" 1>&6
3763 if test $ac_cv_header_krb_h = yes ; then
3764 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3765 echo "configure:3766: checking for main in -lkrb" >&5
3766 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
3767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_save_LIBS="$LIBS"
3771 LIBS="-lkrb -ldes $LIBS"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3782 eval "ac_cv_lib_$ac_lib_var=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_lib_$ac_lib_var=no"
3790 LIBS="$ac_save_LIBS"
3793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3797 echo "$ac_t""no" 1>&6
3802 if test $have_k4 = yes ; then
3803 ol_with_kerberos=found
3804 ol_link_kerberos=yes
3806 KRB_LIBS="-lkrb -ldes"
3811 if test $ol_link_kerberos = yes ; then
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_KERBEROS 1
3819 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3820 -o $ol_with_threads = posix ; then
3822 for ac_hdr in pthread.h sched.h
3824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3840 eval "ac_cv_header_$ac_safe=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_header_$ac_safe=no"
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_hdr 1
3858 echo "$ac_t""no" 1>&6
3863 if test $ac_cv_header_pthread_h = yes ; then
3864 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3865 echo "configure:3866: checking POSIX thread version" >&5
3866 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3874 # include <pthread.h>
3875 /* this check could be improved */
3876 # ifdef PTHREAD_ONCE_INIT
3877 pthread_version_final
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882 egrep "pthread_version_final" >/dev/null 2>&1; then
3884 ol_pthread_final=yes
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3896 # include <pthread.h>
3897 /* this check could be improved */
3898 # ifdef pthread_once_init
3899 pthread_version_draft4
3903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3904 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3906 ol_pthread_draft4=yes
3909 ol_pthread_draft4=no
3914 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3915 ol_cv_pthread_version=final
3916 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3917 ol_cv_pthread_version=draft4
3919 ol_cv_pthread_version=unknown
3924 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3927 if test $ol_cv_pthread_version = final ; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_PTHREADS_FINAL 1
3932 elif test $ol_cv_pthread_version = draft4 ; then
3933 cat >> confdefs.h <<\EOF
3934 #define HAVE_PTHREADS_D4 1
3938 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3941 # consider threads found
3942 ol_with_threads=found
3945 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3946 echo "configure:3947: checking for LinuxThreads" >&5
3947 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3951 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3952 if test "$res" -gt 0 ; then
3953 ol_cv_linux_threads=yes
3955 ol_cv_linux_threads=no
3960 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3963 if test $ol_cv_linux_threads = yes ; then
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_LINUX_THREADS 1
3971 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3972 echo "configure:3973: checking for pthread_create" >&5
3973 if eval "test \"\${ac_cv_func_pthread_create+set}\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char pthread_create(); below. */
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char pthread_create();
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 eval "ac_cv_func_pthread_create=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.$ac_ext >&5
4008 eval "ac_cv_func_pthread_create=no"
4013 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4017 echo "$ac_t""no" 1>&6
4021 if test $ol_link_threads = no ; then
4022 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4023 echo "configure:4024: checking for pthread_create with -kthread" >&5
4024 if eval "test \"\${ol_cv_kthread_flag+set}\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4029 LIBS="-kthread $LIBS"
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 #include <pthread.h>
4035 pthread_create(NULL,NULL,NULL,NULL);
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 ol_cv_kthread_flag=yes
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 ol_cv_kthread_flag=no
4052 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4054 if test $ol_cv_kthread_flag = yes ; then
4055 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4056 ol_link_threads=posix
4060 if test $ol_link_threads = no ; then
4061 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4062 echo "configure:4063: checking for pthread_create with -pthread" >&5
4063 if eval "test \"\${ol_cv_pthread_flag+set}\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4068 LIBS="-pthread $LIBS"
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <pthread.h>
4074 pthread_create(NULL,NULL,NULL,NULL);
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 ol_cv_pthread_flag=yes
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 ol_cv_pthread_flag=no
4091 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4093 if test $ol_cv_pthread_flag = yes ; then
4094 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4095 ol_link_threads=posix
4099 if test $ol_link_threads = no ; then
4100 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4101 echo "configure:4102: checking for pthread_create with -pthreads" >&5
4102 if eval "test \"\${ol_cv_pthreads_flag+set}\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4107 LIBS="-pthreads $LIBS"
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <pthread.h>
4113 pthread_create(NULL,NULL,NULL,NULL);
4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4118 ol_cv_pthreads_flag=yes
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 ol_cv_pthreads_flag=no
4130 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4132 if test $ol_cv_pthreads_flag = yes ; then
4133 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4134 ol_link_threads=posix
4138 if test $ol_link_threads = no ; then
4139 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4140 echo "configure:4141: checking for pthread_create with -thread" >&5
4141 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4146 LIBS="-thread $LIBS"
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 char pthread_create();
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4157 ol_cv_thread_flag=yes
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ol_cv_thread_flag=no
4169 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4171 if test $ol_cv_thread_flag = yes ; then
4172 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4173 ol_link_threads=posix
4177 if test $ol_link_threads = no ; then
4178 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4179 echo "configure:4180: checking for pthread_create with -mt" >&5
4180 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 char pthread_create();
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 ol_cv_thread_flag=yes
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 ol_cv_thread_flag=no
4208 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4210 if test $ol_cv_thread_flag = yes ; then
4211 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4212 ol_link_threads=posix
4216 if test $ol_link_threads = no ; then
4218 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4219 echo "configure:4220: checking for pthread_mutex_unlock in -lpthread" >&5
4220 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-:%__p__%'`
4221 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 ac_save_LIBS="$LIBS"
4225 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4232 char pthread_mutex_unlock();
4235 pthread_mutex_unlock()
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_lib_$ac_lib_var=no"
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4254 ol_link_threads=posix
4255 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4256 if test $ol_with_yielding_select = auto ; then
4257 ol_with_yielding_select=yes
4261 echo "$ac_t""no" 1>&6
4268 if test $ol_link_threads = no ; then
4270 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4271 echo "configure:4272: checking for pthread_mutex_lock in -lpthread" >&5
4272 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-:%__p__%'`
4273 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 ac_save_LIBS="$LIBS"
4277 LIBS="-lpthread -lmach -lexc $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char pthread_mutex_lock();
4287 pthread_mutex_lock()
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 eval "ac_cv_lib_$ac_lib_var=yes"
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 eval "ac_cv_lib_$ac_lib_var=no"
4300 LIBS="$ac_save_LIBS"
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4306 ol_link_threads=posix
4307 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4308 if test $ol_with_yielding_select = auto ; then
4309 ol_with_yielding_select=yes
4313 echo "$ac_t""no" 1>&6
4320 if test $ol_link_threads = no ; then
4322 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4323 echo "configure:4324: checking for pthread_mutex_trylock in -lpthread" >&5
4324 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-:%__p__%'`
4325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 ac_save_LIBS="$LIBS"
4329 LIBS="-lpthread -lexc $LIBS"
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4333 /* Override any gcc2 internal prototype to avoid an error. */
4334 /* We use char because int might match the return type of a gcc2
4335 builtin and then its argument prototype would still apply. */
4336 char pthread_mutex_trylock();
4339 pthread_mutex_trylock()
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344 eval "ac_cv_lib_$ac_lib_var=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_lib_$ac_lib_var=no"
4352 LIBS="$ac_save_LIBS"
4355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4358 ol_link_threads=posix
4359 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4360 if test $ol_with_yielding_select = auto ; then
4361 ol_with_yielding_select=yes
4365 echo "$ac_t""no" 1>&6
4372 if test $ol_link_threads = no ; then
4374 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4375 echo "configure:4376: checking for pthread_create in -lpthread" >&5
4376 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-:%__p__%'`
4377 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 ac_save_LIBS="$LIBS"
4381 LIBS="-lpthread $LIBS"
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4388 char pthread_create();
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 eval "ac_cv_lib_$ac_lib_var=no"
4404 LIBS="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4410 ol_link_threads=posix
4411 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4413 echo "$ac_t""no" 1>&6
4420 if test $ol_link_threads = no ; then
4422 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4423 echo "configure:4424: checking for pthread_create in -lc_r" >&5
4424 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-:%__p__%'`
4425 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 ac_save_LIBS="$LIBS"
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4436 char pthread_create();
4442 if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4444 eval "ac_cv_lib_$ac_lib_var=yes"
4446 echo "configure: failed program was:" >&5
4447 cat conftest.$ac_ext >&5
4449 eval "ac_cv_lib_$ac_lib_var=no"
4452 LIBS="$ac_save_LIBS"
4455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4458 ol_link_threads=posix
4459 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4461 echo "$ac_t""no" 1>&6
4468 if test $ol_link_threads = no ; then
4470 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4471 echo "configure:4472: checking for pthread_create in -lpthreads" >&5
4472 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-:%__p__%'`
4473 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 ac_save_LIBS="$LIBS"
4477 LIBS="-lpthreads $LIBS"
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4484 char pthread_create();
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4492 eval "ac_cv_lib_$ac_lib_var=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4497 eval "ac_cv_lib_$ac_lib_var=no"
4500 LIBS="$ac_save_LIBS"
4503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4504 echo "$ac_t""yes" 1>&6
4506 ol_link_threads=posix
4507 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4509 echo "$ac_t""no" 1>&6
4516 if test $ol_link_threads = no ; then
4518 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4519 echo "configure:4520: checking for pthread_join in -lpthreads" >&5
4520 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-:%__p__%'`
4521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 ac_save_LIBS="$LIBS"
4525 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4529 /* Override any gcc2 internal prototype to avoid an error. */
4530 /* We use char because int might match the return type of a gcc2
4531 builtin and then its argument prototype would still apply. */
4532 char pthread_join();
4538 if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540 eval "ac_cv_lib_$ac_lib_var=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4545 eval "ac_cv_lib_$ac_lib_var=no"
4548 LIBS="$ac_save_LIBS"
4551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4554 ol_link_threads=posix
4555 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4558 echo "$ac_t""no" 1>&6
4565 if test $ol_link_threads = no; then
4567 LIBS="$LIBS -lpthread"
4568 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4569 echo "configure:4570: checking for pthread_create() in HP-UX -lpthread" >&5
4570 ol_try_pthread_hpux_11=no
4571 if eval "test \"\${ol_cv_pthread_hpux_11+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4579 #include <pthread.h>
4581 #ifndef ELFABI_HPUX_REL11
4586 pthread_create(NULL, NULL, NULL, NULL);
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 ol_try_pthread_hpux_11=yes
4592 ol_cv_pthread_hpux_11=yes
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 ol_cv_pthread_hpux_11=no
4602 echo "$ac_t""yes" 1>&6
4605 if test $ol_cv_pthread_hpux_11=yes ; then
4606 ol_link_threads=posix
4607 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4608 if test $ol_try_pthread_hpux_11=yes ; then
4609 ac_cv_func_pthread_attr_init=yes
4614 if test $ol_link_threads = no ; then
4615 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4616 echo "configure:4617: checking for pthread_create with -threads" >&5
4617 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4622 LIBS="-threads $LIBS"
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 char pthread_create();
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 ol_cv_thread_flag=yes
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 ol_cv_thread_flag=no
4647 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4649 if test $ol_cv_thread_flag = yes ; then
4650 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4651 ol_link_threads=posix
4655 if test $ol_link_threads = no ; then
4657 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4658 echo "configure:4659: checking for pthread_mutex_unlock in -lpthreads" >&5
4659 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-:%__p__%'`
4660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 ac_save_LIBS="$LIBS"
4664 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4668 /* Override any gcc2 internal prototype to avoid an error. */
4669 /* We use char because int might match the return type of a gcc2
4670 builtin and then its argument prototype would still apply. */
4671 char pthread_mutex_unlock();
4674 pthread_mutex_unlock()
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4679 eval "ac_cv_lib_$ac_lib_var=yes"
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4684 eval "ac_cv_lib_$ac_lib_var=no"
4687 LIBS="$ac_save_LIBS"
4690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4691 echo "$ac_t""yes" 1>&6
4693 ol_link_threads=posix
4694 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4695 if test $ol_with_yielding_select = auto ; then
4696 ol_with_yielding_select=yes
4700 echo "$ac_t""no" 1>&6
4707 if test $ol_link_threads = no ; then
4709 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4710 echo "configure:4711: checking for pthread_mutex_lock in -lpthreads" >&5
4711 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-:%__p__%'`
4712 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 ac_save_LIBS="$LIBS"
4716 LIBS="-lpthreads -lmach -lexc $LIBS"
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4723 char pthread_mutex_lock();
4726 pthread_mutex_lock()
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 eval "ac_cv_lib_$ac_lib_var=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4736 eval "ac_cv_lib_$ac_lib_var=no"
4739 LIBS="$ac_save_LIBS"
4742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4745 ol_link_threads=posix
4746 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4747 if test $ol_with_yielding_select = auto ; then
4748 ol_with_yielding_select=yes
4752 echo "$ac_t""no" 1>&6
4759 if test $ol_link_threads = no ; then
4761 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4762 echo "configure:4763: checking for pthread_mutex_trylock in -lpthreads" >&5
4763 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-:%__p__%'`
4764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 ac_save_LIBS="$LIBS"
4768 LIBS="-lpthreads -lexc $LIBS"
4769 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure"
4771 #include "confdefs.h"
4772 /* Override any gcc2 internal prototype to avoid an error. */
4773 /* We use char because int might match the return type of a gcc2
4774 builtin and then its argument prototype would still apply. */
4775 char pthread_mutex_trylock();
4778 pthread_mutex_trylock()
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 eval "ac_cv_lib_$ac_lib_var=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_lib_$ac_lib_var=no"
4791 LIBS="$ac_save_LIBS"
4794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4797 ol_link_threads=posix
4798 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4799 if test $ol_with_yielding_select = auto ; then
4800 ol_with_yielding_select=yes
4804 echo "$ac_t""no" 1>&6
4811 if test $ol_link_threads != no ; then
4812 cat >> confdefs.h <<\EOF
4813 #define HAVE_PTHREADS 1
4817 save_CPPFLAGS="$CPPFLAGS"
4819 LIBS="$LTHREAD_LIBS $LIBS"
4821 for ac_func in sched_yield pthread_yield
4823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4824 echo "configure:4825: checking for $ac_func" >&5
4825 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 /* System header to define __stub macros and hopefully few prototypes,
4832 which can conflict with char $ac_func(); below. */
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4842 /* The GNU C library defines this for functions which it implements
4843 to always fail with ENOSYS. Some functions are actually named
4844 something starting with __ and the normal name is an alias. */
4845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4855 eval "ac_cv_func_$ac_func=yes"
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4860 eval "ac_cv_func_$ac_func=no"
4865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4866 echo "$ac_t""yes" 1>&6
4867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4868 cat >> confdefs.h <<EOF
4869 #define $ac_tr_func 1
4873 echo "$ac_t""no" 1>&6
4878 if test $ac_cv_func_sched_yield = no -a \
4879 $ac_cv_func_pthread_yield = no ; then
4880 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4881 echo "configure:4882: checking for sched_yield in -lrt" >&5
4882 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
4883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 ac_save_LIBS="$LIBS"
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4902 eval "ac_cv_lib_$ac_lib_var=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_lib_$ac_lib_var=no"
4910 LIBS="$ac_save_LIBS"
4913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4914 echo "$ac_t""yes" 1>&6
4915 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4916 cat >> confdefs.h <<\EOF
4917 #define HAVE_SCHED_YIELD 1
4920 ac_cv_func_sched_yield=yes
4922 echo "$ac_t""no" 1>&6
4923 ac_cv_func_sched_yield=no
4927 if test $ac_cv_func_sched_yield = no -a \
4928 $ac_cv_func_pthread_yield = no ; then
4929 for ac_func in thr_yield
4931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4932 echo "configure:4933: checking for $ac_func" >&5
4933 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4934 echo $ac_n "(cached) $ac_c" 1>&6
4936 cat > conftest.$ac_ext <<EOF
4937 #line 4938 "configure"
4938 #include "confdefs.h"
4939 /* System header to define __stub macros and hopefully few prototypes,
4940 which can conflict with char $ac_func(); below. */
4942 /* Override any gcc2 internal prototype to avoid an error. */
4943 /* We use char because int might match the return type of a gcc2
4944 builtin and then its argument prototype would still apply. */
4950 /* The GNU C library defines this for functions which it implements
4951 to always fail with ENOSYS. Some functions are actually named
4952 something starting with __ and the normal name is an alias. */
4953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4961 if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4963 eval "ac_cv_func_$ac_func=yes"
4965 echo "configure: failed program was:" >&5
4966 cat conftest.$ac_ext >&5
4968 eval "ac_cv_func_$ac_func=no"
4973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_func 1
4981 echo "$ac_t""no" 1>&6
4986 if test $ac_cv_func_sched_yield = no -a \
4987 $ac_cv_func_pthread_yield = no -a \
4988 "$ac_cv_func_thr_yield" = no ; then
4989 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4992 for ac_func in pthread_kill
4994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_func" >&5
4996 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 /* System header to define __stub macros and hopefully few prototypes,
5003 which can conflict with char $ac_func(); below. */
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 eval "ac_cv_func_$ac_func=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 eval "ac_cv_func_$ac_func=no"
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039 cat >> confdefs.h <<EOF
5040 #define $ac_tr_func 1
5044 echo "$ac_t""no" 1>&6
5049 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5050 echo "configure:5051: checking for pthread_detach with <pthread.h>" >&5
5051 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 #include <pthread.h>
5060 pthread_detach(NULL);
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 ol_cv_func_pthread_detach=yes
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 ol_cv_func_pthread_detach=no
5076 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5078 if test $ol_cv_func_pthread_detach = no ; then
5079 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5082 cat >> confdefs.h <<\EOF
5083 #define HAVE_PTHREAD_DETACH 1
5088 pthread_setconcurrency \
5089 pthread_getconcurrency \
5090 thr_setconcurrency \
5091 thr_getconcurrency \
5094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5095 echo "configure:5096: checking for $ac_func" >&5
5096 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* System header to define __stub macros and hopefully few prototypes,
5103 which can conflict with char $ac_func(); below. */
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5113 /* The GNU C library defines this for functions which it implements
5114 to always fail with ENOSYS. Some functions are actually named
5115 something starting with __ and the normal name is an alias. */
5116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5124 if { (eval echo configure:5125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5126 eval "ac_cv_func_$ac_func=yes"
5128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5131 eval "ac_cv_func_$ac_func=no"
5136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5139 cat >> confdefs.h <<EOF
5140 #define $ac_tr_func 1
5144 echo "$ac_t""no" 1>&6
5149 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5150 echo "configure:5151: checking if pthread_create() works" >&5
5151 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5155 if test "$cross_compiling" = yes; then
5156 ol_cv_pthread_create_works=yes
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5162 #include <pthread.h>
5164 #define NULL (void*)0
5167 static void *task(p)
5170 return (void *) (p == NULL);
5173 int main(argc, argv)
5178 exit(pthread_create(&t, NULL, task, NULL));
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5184 ol_cv_pthread_create_works=yes
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 ol_cv_pthread_create_works=no
5196 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5198 if test $ol_cv_pthread_create_works = no ; then
5199 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5202 if test $ol_with_yielding_select = auto ; then
5203 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5204 echo "configure:5205: checking if select yields when using pthreads" >&5
5205 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5209 if test "$cross_compiling" = yes; then
5211 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5217 #include <sys/types.h>
5218 #include <sys/time.h>
5220 #include <pthread.h>
5222 #define NULL (void*) 0
5225 static int fildes[2];
5227 static void *task(p)
5239 FD_SET(fildes[0], &rfds);
5241 /* we're not interested in any fds */
5242 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5249 exit(0); /* if we exit here, the select blocked the whole process */
5252 int main(argc, argv)
5258 /* create a pipe to select */
5259 if(pipe(&fildes[0])) {
5264 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5265 (void) pthread_setconcurrency(2);
5267 #ifdef HAVE_THR_SETCONCURRENCY
5268 /* Set Solaris LWP concurrency to 2 */
5269 thr_setconcurrency(2);
5273 pthread_create(&t, NULL, task, NULL);
5275 #if HAVE_SCHED_YIELD
5276 sched_yield(); /* make sure task runs first */
5278 #ifdef HAVE_PTHREAD_YIELD
5279 pthread_yield(); /* make sure task runs first */
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5288 ol_cv_pthread_select_yields=no
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 ol_cv_pthread_select_yields=yes
5300 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5302 if test $ol_cv_pthread_select_yields = yes ; then
5303 ol_with_yielding_select=yes
5307 CPPFLAGS="$save_CPPFLAGS"
5310 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5314 if test $ol_with_threads = posix ; then
5315 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5319 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5320 -o $ol_with_threads = mach ; then
5322 for ac_hdr in mach/cthreads.h
5324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_hdr" >&5
5327 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5336 { (eval echo configure:5337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5338 if test -z "$ac_err"; then
5340 eval "ac_cv_header_$ac_safe=yes"
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5346 eval "ac_cv_header_$ac_safe=no"
5350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5353 cat >> confdefs.h <<EOF
5354 #define $ac_tr_hdr 1
5358 echo "$ac_t""no" 1>&6
5362 if test $ac_cv_header_mach_cthreads_h = yes ; then
5363 ol_with_threads=found
5365 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5366 echo "configure:5367: checking for cthread_fork" >&5
5367 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 /* System header to define __stub macros and hopefully few prototypes,
5374 which can conflict with char cthread_fork(); below. */
5376 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379 char cthread_fork();
5384 /* The GNU C library defines this for functions which it implements
5385 to always fail with ENOSYS. Some functions are actually named
5386 something starting with __ and the normal name is an alias. */
5387 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5395 if { (eval echo configure:5396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5397 eval "ac_cv_func_cthread_fork=yes"
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5402 eval "ac_cv_func_cthread_fork=no"
5407 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5408 echo "$ac_t""yes" 1>&6
5411 echo "$ac_t""no" 1>&6
5415 if test $ol_link_threads = no ; then
5416 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5417 echo "configure:5418: checking for cthread_fork with -all_load" >&5
5418 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5423 LIBS="-all_load $LIBS"
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 #include <mach/cthreads.h>
5430 cthread_fork((void *)0, (void *)0);
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 ol_cv_cthread_all_load=yes
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 ol_cv_cthread_all_load=no
5448 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5450 if test $ol_cv_cthread_all_load = yes ; then
5451 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5452 ol_link_threads=mach
5456 if test $ol_link_threads != no ; then
5457 : check for cthread specific functionality here
5458 cat >> confdefs.h <<\EOF
5459 #define HAVE_MACH_CTHREADS 1
5463 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5467 if test $ol_with_threads = mach ; then
5468 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5472 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5473 -o $ol_with_threads = lwp ; then
5475 for ac_hdr in thread.h synch.h
5477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_hdr" >&5
5480 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5489 { (eval echo configure:5490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5491 if test -z "$ac_err"; then
5493 eval "ac_cv_header_$ac_safe=yes"
5496 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5
5499 eval "ac_cv_header_$ac_safe=no"
5503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5506 cat >> confdefs.h <<EOF
5507 #define $ac_tr_hdr 1
5511 echo "$ac_t""no" 1>&6
5515 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5516 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5517 echo "configure:5518: checking for thr_create in -lthread" >&5
5518 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
5519 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 ac_save_LIBS="$LIBS"
5523 LIBS="-lthread $LIBS"
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5538 eval "ac_cv_lib_$ac_lib_var=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 eval "ac_cv_lib_$ac_lib_var=no"
5546 LIBS="$ac_save_LIBS"
5549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5553 echo "$ac_t""no" 1>&6
5558 if test $have_thr = yes ; then
5559 cat >> confdefs.h <<\EOF
5563 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5566 if test $ol_with_yielding_select = auto ; then
5567 ol_with_yielding_select=yes
5571 thr_setconcurrency \
5572 thr_getconcurrency \
5575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5576 echo "configure:5577: checking for $ac_func" >&5
5577 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func(); below. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 eval "ac_cv_func_$ac_func=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 eval "ac_cv_func_$ac_func=no"
5617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5620 cat >> confdefs.h <<EOF
5621 #define $ac_tr_func 1
5625 echo "$ac_t""no" 1>&6
5632 for ac_hdr in lwp/lwp.h
5634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5636 echo "configure:5637: checking for $ac_hdr" >&5
5637 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5646 { (eval echo configure:5647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5648 if test -z "$ac_err"; then
5650 eval "ac_cv_header_$ac_safe=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_header_$ac_safe=no"
5660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5661 echo "$ac_t""yes" 1>&6
5662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5663 cat >> confdefs.h <<EOF
5664 #define $ac_tr_hdr 1
5668 echo "$ac_t""no" 1>&6
5672 if test $ac_cv_header_lwp_lwp_h = yes ; then
5673 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5674 echo "configure:5675: checking for lwp_create in -llwp" >&5
5675 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
5676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 ac_save_LIBS="$LIBS"
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5684 /* Override any gcc2 internal prototype to avoid an error. */
5685 /* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5695 eval "ac_cv_lib_$ac_lib_var=yes"
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 eval "ac_cv_lib_$ac_lib_var=no"
5703 LIBS="$ac_save_LIBS"
5706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5710 echo "$ac_t""no" 1>&6
5715 if test $have_lwp = yes ; then
5716 cat >> confdefs.h <<\EOF
5720 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5723 if test $ol_with_yielding_select = auto ; then
5724 ol_with_yielding_select=no
5730 if test $ol_with_yielding_select = yes ; then
5731 cat >> confdefs.h <<\EOF
5732 #define HAVE_YIELDING_SELECT 1
5737 if test $ol_with_threads = manual ; then
5740 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5742 for ac_hdr in pthread.h sched.h
5744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5746 echo "configure:5747: checking for $ac_hdr" >&5
5747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5756 { (eval echo configure:5757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5758 if test -z "$ac_err"; then
5760 eval "ac_cv_header_$ac_safe=yes"
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 eval "ac_cv_header_$ac_safe=no"
5770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5771 echo "$ac_t""yes" 1>&6
5772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5773 cat >> confdefs.h <<EOF
5774 #define $ac_tr_hdr 1
5778 echo "$ac_t""no" 1>&6
5782 for ac_func in sched_yield pthread_yield
5784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_func" >&5
5786 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 /* System header to define __stub macros and hopefully few prototypes,
5793 which can conflict with char $ac_func(); below. */
5795 /* Override any gcc2 internal prototype to avoid an error. */
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5803 /* The GNU C library defines this for functions which it implements
5804 to always fail with ENOSYS. Some functions are actually named
5805 something starting with __ and the normal name is an alias. */
5806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 eval "ac_cv_func_$ac_func=yes"
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 eval "ac_cv_func_$ac_func=no"
5826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5827 echo "$ac_t""yes" 1>&6
5828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5829 cat >> confdefs.h <<EOF
5830 #define $ac_tr_func 1
5834 echo "$ac_t""no" 1>&6
5839 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5840 echo "configure:5841: checking for LinuxThreads" >&5
5841 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5845 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5846 if test "$res" -gt 0 ; then
5847 ol_cv_linux_threads=yes
5849 ol_cv_linux_threads=no
5854 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5857 for ac_hdr in mach/cthreads.h
5859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_hdr" >&5
5862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5871 { (eval echo configure:5872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5873 if test -z "$ac_err"; then
5875 eval "ac_cv_header_$ac_safe=yes"
5878 echo "configure: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5881 eval "ac_cv_header_$ac_safe=no"
5885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_hdr 1
5893 echo "$ac_t""no" 1>&6
5897 for ac_hdr in lwp/lwp.h
5899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5901 echo "configure:5902: checking for $ac_hdr" >&5
5902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5903 echo $ac_n "(cached) $ac_c" 1>&6
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5911 { (eval echo configure:5912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5913 if test -z "$ac_err"; then
5915 eval "ac_cv_header_$ac_safe=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_header_$ac_safe=no"
5925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5926 echo "$ac_t""yes" 1>&6
5927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5928 cat >> confdefs.h <<EOF
5929 #define $ac_tr_hdr 1
5933 echo "$ac_t""no" 1>&6
5937 for ac_hdr in thread.h synch.h
5939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_hdr" >&5
5942 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5951 { (eval echo configure:5952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5953 if test -z "$ac_err"; then
5955 eval "ac_cv_header_$ac_safe=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 eval "ac_cv_header_$ac_safe=no"
5965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5966 echo "$ac_t""yes" 1>&6
5967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5968 cat >> confdefs.h <<EOF
5969 #define $ac_tr_hdr 1
5973 echo "$ac_t""no" 1>&6
5979 if test $ol_link_threads != no ; then
5980 cat >> confdefs.h <<\EOF
5984 cat >> confdefs.h <<\EOF
5985 #define _REENTRANT 1
5988 cat >> confdefs.h <<\EOF
5989 #define THREAD_SAFE 1
5992 cat >> confdefs.h <<\EOF
5993 #define _THREAD_SAFE 1
5996 cat >> confdefs.h <<\EOF
5997 #define THREADSAFE 1
6000 cat >> confdefs.h <<\EOF
6001 #define _THREADSAFE 1
6004 cat >> confdefs.h <<\EOF
6005 #define _SGI_MP_SOURCE 1
6009 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6010 echo "configure:6011: checking for thread specific errno" >&5
6011 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6015 cat > conftest.$ac_ext <<EOF
6016 #line 6017 "configure"
6017 #include "confdefs.h"
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 ol_cv_errno_thread_specific=yes
6027 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 ol_cv_errno_thread_specific=no
6036 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6038 if test $ol_cv_errno_thread_specific != yes ; then
6039 LIBS="$LTHREAD_LIBS $LIBS"
6045 if test $ol_link_threads = no ; then
6046 if test $ol_with_threads = yes ; then
6047 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6050 if test $ol_with_threads = auto ; then
6051 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6055 cat >> confdefs.h <<\EOF
6056 #define NO_THREADS 1
6063 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6064 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6065 echo "configure:6066: checking for DB2 library" >&5
6066 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6070 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6071 echo "configure:6072: checking for db_open in -ldb" >&5
6072 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
6073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 ac_save_LIBS="$LIBS"
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 /* Override any gcc2 internal prototype to avoid an error. */
6082 /* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6092 eval "ac_cv_lib_$ac_lib_var=yes"
6094 echo "configure: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 eval "ac_cv_lib_$ac_lib_var=no"
6100 LIBS="$ac_save_LIBS"
6103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6107 echo "$ac_t""no" 1>&6
6115 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6121 echo "configure:6122: checking for $ac_hdr" >&5
6122 if eval "test \"\${ac_cv_header_$ac_safe+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"
6130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6131 { (eval echo configure:6132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6133 if test -z "$ac_err"; then
6135 eval "ac_cv_header_$ac_safe=yes"
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6141 eval "ac_cv_header_$ac_safe=no"
6145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6148 cat >> confdefs.h <<EOF
6149 #define $ac_tr_hdr 1
6153 echo "$ac_t""no" 1>&6
6157 if test $ac_cv_header_db_h = yes ; then
6158 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6159 echo "configure:6160: checking if db.h is DB2" >&5
6160 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6164 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6169 /* this check could be improved */
6170 # ifdef DB_VERSION_MAJOR
6171 # if DB_VERSION_MAJOR == 2
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178 egrep "__db_version_2" >/dev/null 2>&1; then
6180 ol_cv_header_db2=yes
6189 echo "$ac_t""$ol_cv_header_db2" 1>&6
6196 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6197 echo "configure:6198: checking for Berkeley DB2" >&5
6198 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6202 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6203 ol_cv_berkeley_db2=no
6205 ol_cv_berkeley_db2=yes
6210 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6211 if test $ol_cv_berkeley_db2 = yes ; then
6212 cat >> confdefs.h <<\EOF
6213 #define HAVE_BERKELEY_DB2 1
6219 if test $ol_cv_berkeley_db2 = yes ; then
6221 ol_with_ldbm_api=db2
6223 if test $ol_with_ldbm_type = hash ; then
6224 cat >> confdefs.h <<\EOF
6225 #define LDBM_USE_DBHASH 1
6229 cat >> confdefs.h <<\EOF
6230 #define LDBM_USE_DBBTREE 1
6235 if test $ol_cv_lib_db2 != yes ; then
6236 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6241 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6242 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6243 echo "configure:6244: checking for Berkeley DB library" >&5
6244 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6248 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6249 echo "configure:6250: checking for dbopen" >&5
6250 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char dbopen(); below. */
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 eval "ac_cv_func_dbopen=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 eval "ac_cv_func_dbopen=no"
6290 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6294 echo "$ac_t""no" 1>&6
6296 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6297 echo "configure:6298: checking for dbopen in -ldb" >&5
6298 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
6299 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 ac_save_LIBS="$LIBS"
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 /* Override any gcc2 internal prototype to avoid an error. */
6308 /* We use char because int might match the return type of a gcc2
6309 builtin and then its argument prototype would still apply. */
6316 if { (eval echo configure:6317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6318 eval "ac_cv_lib_$ac_lib_var=yes"
6320 echo "configure: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6323 eval "ac_cv_lib_$ac_lib_var=no"
6326 LIBS="$ac_save_LIBS"
6329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6330 echo "$ac_t""yes" 1>&6
6333 echo "$ac_t""no" 1>&6
6344 echo "$ac_t""$ol_cv_lib_db" 1>&6
6347 for ac_hdr in db_185.h
6349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6351 echo "configure:6352: checking for $ac_hdr" >&5
6352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6363 if test -z "$ac_err"; then
6365 eval "ac_cv_header_$ac_safe=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_header_$ac_safe=no"
6375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6378 cat >> confdefs.h <<EOF
6379 #define $ac_tr_hdr 1
6383 echo "$ac_t""no" 1>&6
6387 if test "$ol_cv_header_db2" = yes ; then
6389 ol_cv_header_db=$ac_cv_header_db_185_h
6391 ol_cv_header_db=$ac_cv_header_db_h
6396 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6397 echo "configure:6398: checking for Berkeley DB" >&5
6398 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6402 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6403 ol_cv_berkeley_db=no
6405 ol_cv_berkeley_db=yes
6410 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6411 if test $ol_cv_berkeley_db = yes ; then
6412 cat >> confdefs.h <<\EOF
6413 #define HAVE_BERKELEY_DB 1
6419 if test $ol_cv_berkeley_db = yes ; then
6423 if test $ol_with_ldbm_type = hash ; then
6424 cat >> confdefs.h <<\EOF
6425 #define LDBM_USE_DBHASH 1
6429 cat >> confdefs.h <<\EOF
6430 #define LDBM_USE_DBBTREE 1
6435 if test $ol_cv_lib_db != yes ; then
6436 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6441 if test $ol_with_ldbm_api = manual ; then
6444 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6446 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_hdr" >&5
6451 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6460 { (eval echo configure:6461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6462 if test -z "$ac_err"; then
6464 eval "ac_cv_header_$ac_safe=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 eval "ac_cv_header_$ac_safe=no"
6474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6477 cat >> confdefs.h <<EOF
6478 #define $ac_tr_hdr 1
6482 echo "$ac_t""no" 1>&6
6488 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6489 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6490 ol_with_ldbm_api=none
6493 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6494 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6495 echo "configure:6496: checking for GDBM library" >&5
6496 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6500 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6501 echo "configure:6502: checking for gdbm_open" >&5
6502 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6505 cat > conftest.$ac_ext <<EOF
6506 #line 6507 "configure"
6507 #include "confdefs.h"
6508 /* System header to define __stub macros and hopefully few prototypes,
6509 which can conflict with char gdbm_open(); below. */
6511 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6519 /* The GNU C library defines this for functions which it implements
6520 to always fail with ENOSYS. Some functions are actually named
6521 something starting with __ and the normal name is an alias. */
6522 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 eval "ac_cv_func_gdbm_open=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_func_gdbm_open=no"
6542 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6543 echo "$ac_t""yes" 1>&6
6546 echo "$ac_t""no" 1>&6
6548 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6549 echo "configure:6550: checking for gdbm_open in -lgdbm" >&5
6550 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
6551 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 ac_save_LIBS="$LIBS"
6556 cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6568 if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570 eval "ac_cv_lib_$ac_lib_var=yes"
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 eval "ac_cv_lib_$ac_lib_var=no"
6578 LIBS="$ac_save_LIBS"
6581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6582 echo "$ac_t""yes" 1>&6
6583 ol_cv_lib_gdbm=-lgdbm
6585 echo "$ac_t""no" 1>&6
6596 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6599 for ac_hdr in gdbm.h
6601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6603 echo "configure:6604: checking for $ac_hdr" >&5
6604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6613 { (eval echo configure:6614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6615 if test -z "$ac_err"; then
6617 eval "ac_cv_header_$ac_safe=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_header_$ac_safe=no"
6627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_hdr 1
6635 echo "$ac_t""no" 1>&6
6639 echo $ac_n "checking for db""... $ac_c" 1>&6
6640 echo "configure:6641: checking for db" >&5
6641 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6645 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6653 echo "$ac_t""$ol_cv_gdbm" 1>&6
6654 if test $ol_cv_gdbm = yes ; then
6655 cat >> confdefs.h <<\EOF
6662 if test $ol_cv_gdbm = yes ; then
6664 ol_with_ldbm_api=gdbm
6666 if test $ol_cv_lib_gdbm != yes ; then
6667 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6672 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
6673 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
6674 echo "configure:6675: checking for MDBM library" >&5
6675 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6679 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
6680 echo "configure:6681: checking for mdbm_set_chain" >&5
6681 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char mdbm_set_chain(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6693 char mdbm_set_chain();
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_func_mdbm_set_chain=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_func_mdbm_set_chain=no"
6721 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6725 echo "$ac_t""no" 1>&6
6727 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
6728 echo "configure:6729: checking for mdbm_set_chain in -lmdbm" >&5
6729 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
6730 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 ac_save_LIBS="$LIBS"
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 /* Override any gcc2 internal prototype to avoid an error. */
6739 /* We use char because int might match the return type of a gcc2
6740 builtin and then its argument prototype would still apply. */
6741 char mdbm_set_chain();
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6749 eval "ac_cv_lib_$ac_lib_var=yes"
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 eval "ac_cv_lib_$ac_lib_var=no"
6757 LIBS="$ac_save_LIBS"
6760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6761 echo "$ac_t""yes" 1>&6
6762 ol_cv_lib_mdbm=-lmdbm
6764 echo "$ac_t""no" 1>&6
6775 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
6778 for ac_hdr in mdbm.h
6780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_hdr" >&5
6783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6792 { (eval echo configure:6793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6794 if test -z "$ac_err"; then
6796 eval "ac_cv_header_$ac_safe=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_header_$ac_safe=no"
6806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_hdr 1
6814 echo "$ac_t""no" 1>&6
6818 echo $ac_n "checking for db""... $ac_c" 1>&6
6819 echo "configure:6820: checking for db" >&5
6820 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6824 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
6832 echo "$ac_t""$ol_cv_mdbm" 1>&6
6833 if test $ol_cv_mdbm = yes ; then
6834 cat >> confdefs.h <<\EOF
6841 if test $ol_cv_mdbm = yes ; then
6843 ol_with_ldbm_api=mdbm
6844 if test $ol_cv_lib_mdbm != yes ; then
6845 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
6850 if test $ol_with_ldbm_api = auto ; then
6851 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6852 elif test $ol_with_ldbm_api = ndbm ; then
6853 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6854 echo "configure:6855: checking for NDBM library" >&5
6855 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6859 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6860 echo "configure:6861: checking for dbm_open" >&5
6861 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char dbm_open(); below. */
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6878 /* The GNU C library defines this for functions which it implements
6879 to always fail with ENOSYS. Some functions are actually named
6880 something starting with __ and the normal name is an alias. */
6881 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6891 eval "ac_cv_func_dbm_open=yes"
6893 echo "configure: failed program was:" >&5
6894 cat conftest.$ac_ext >&5
6896 eval "ac_cv_func_dbm_open=no"
6901 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6902 echo "$ac_t""yes" 1>&6
6905 echo "$ac_t""no" 1>&6
6907 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6908 echo "configure:6909: checking for dbm_open in -lndbm" >&5
6909 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
6910 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 ac_save_LIBS="$LIBS"
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6927 if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6929 eval "ac_cv_lib_$ac_lib_var=yes"
6931 echo "configure: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6934 eval "ac_cv_lib_$ac_lib_var=no"
6937 LIBS="$ac_save_LIBS"
6940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6941 echo "$ac_t""yes" 1>&6
6942 ol_cv_lib_ndbm=-lndbm
6944 echo "$ac_t""no" 1>&6
6946 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6947 echo "configure:6948: checking for dbm_open in -ldbm" >&5
6948 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
6949 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6952 ac_save_LIBS="$LIBS"
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 eval "ac_cv_lib_$ac_lib_var=yes"
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 eval "ac_cv_lib_$ac_lib_var=no"
6976 LIBS="$ac_save_LIBS"
6979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6980 echo "$ac_t""yes" 1>&6
6981 ol_cv_lib_ndbm=-ldbm
6983 echo "$ac_t""no" 1>&6
6996 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6999 for ac_hdr in ndbm.h
7001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7003 echo "configure:7004: checking for $ac_hdr" >&5
7004 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7013 { (eval echo configure:7014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7015 if test -z "$ac_err"; then
7017 eval "ac_cv_header_$ac_safe=yes"
7020 echo "configure: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7023 eval "ac_cv_header_$ac_safe=no"
7027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7028 echo "$ac_t""yes" 1>&6
7029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7030 cat >> confdefs.h <<EOF
7031 #define $ac_tr_hdr 1
7035 echo "$ac_t""no" 1>&6
7039 echo $ac_n "checking for db""... $ac_c" 1>&6
7040 echo "configure:7041: checking for db" >&5
7041 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7045 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
7053 echo "$ac_t""$ol_cv_ndbm" 1>&6
7054 if test $ol_cv_ndbm = yes ; then
7055 cat >> confdefs.h <<\EOF
7062 if test $ol_cv_ndbm = yes ; then
7064 ol_with_ldbm_api=ndbm
7066 if test $ol_cv_lib_ndbm != yes ; then
7067 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7072 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7073 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7074 if test $ol_enable_ldbm = yes ; then
7075 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7078 echo "configure: warning: disabling LDBM" 1>&2
7082 if test $ol_enable_wrappers != no ; then
7083 for ac_hdr in tcpd.h
7085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7087 echo "configure:7088: checking for $ac_hdr" >&5
7088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7097 { (eval echo configure:7098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7099 if test -z "$ac_err"; then
7101 eval "ac_cv_header_$ac_safe=yes"
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7107 eval "ac_cv_header_$ac_safe=no"
7111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7114 cat >> confdefs.h <<EOF
7115 #define $ac_tr_hdr 1
7119 echo "$ac_t""no" 1>&6
7124 if test $ac_cv_header_tcpd_h != yes ; then
7127 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7128 echo "configure:7129: checking for main in -lwrap" >&5
7129 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
7130 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7131 echo $ac_n "(cached) $ac_c" 1>&6
7133 ac_save_LIBS="$LIBS"
7135 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7143 if { (eval echo configure:7144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7145 eval "ac_cv_lib_$ac_lib_var=yes"
7147 echo "configure: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 eval "ac_cv_lib_$ac_lib_var=no"
7153 LIBS="$ac_save_LIBS"
7156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7157 echo "$ac_t""yes" 1>&6
7160 echo "$ac_t""no" 1>&6
7166 if test $have_wrappers = yes ; then
7167 cat >> confdefs.h <<\EOF
7171 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7173 echo "configure: warning: could not find -lwrap" 1>&2
7174 if test $ol_enable_wrappers = yes ; then
7175 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7178 echo "configure: warning: disabling wrappers support" 1>&2
7179 ol_enable_wrappers=no
7183 if test $ol_enable_dmalloc != no ; then
7184 for ac_hdr in dmalloc.h
7186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7188 echo "configure:7189: checking for $ac_hdr" >&5
7189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7190 echo $ac_n "(cached) $ac_c" 1>&6
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7198 { (eval echo configure:7199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7200 if test -z "$ac_err"; then
7202 eval "ac_cv_header_$ac_safe=yes"
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 eval "ac_cv_header_$ac_safe=no"
7212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7215 cat >> confdefs.h <<EOF
7216 #define $ac_tr_hdr 1
7220 echo "$ac_t""no" 1>&6
7224 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7225 echo "configure:7226: checking for dmalloc_shutdown in -ldmalloc" >&5
7226 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
7227 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7230 ac_save_LIBS="$LIBS"
7231 LIBS="-ldmalloc $LIBS"
7232 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure"
7234 #include "confdefs.h"
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7238 char dmalloc_shutdown();
7244 if { (eval echo configure:7245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7246 eval "ac_cv_lib_$ac_lib_var=yes"
7248 echo "configure: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7251 eval "ac_cv_lib_$ac_lib_var=no"
7254 LIBS="$ac_save_LIBS"
7257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7258 echo "$ac_t""yes" 1>&6
7259 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7261 cat >> confdefs.h <<EOF
7262 #define $ac_tr_lib 1
7265 LIBS="-ldmalloc $LIBS"
7268 echo "$ac_t""no" 1>&6
7273 # ud needs termcap (should insert check here)
7275 for ac_hdr in termcap.h ncurses.h
7277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7279 echo "configure:7280: checking for $ac_hdr" >&5
7280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7283 cat > conftest.$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7289 { (eval echo configure:7290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7291 if test -z "$ac_err"; then
7293 eval "ac_cv_header_$ac_safe=yes"
7296 echo "configure: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7299 eval "ac_cv_header_$ac_safe=no"
7303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7306 cat >> confdefs.h <<EOF
7307 #define $ac_tr_hdr 1
7311 echo "$ac_t""no" 1>&6
7316 if test $ol_link_termcap = no ; then
7317 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7318 echo "configure:7319: checking for tputs in -ltermcap" >&5
7319 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
7320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7323 ac_save_LIBS="$LIBS"
7324 LIBS="-ltermcap $LIBS"
7325 cat > conftest.$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 /* Override any gcc2 internal prototype to avoid an error. */
7329 /* We use char because int might match the return type of a gcc2
7330 builtin and then its argument prototype would still apply. */
7337 if { (eval echo configure:7338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 eval "ac_cv_lib_$ac_lib_var=yes"
7341 echo "configure: failed program was:" >&5
7342 cat conftest.$ac_ext >&5
7344 eval "ac_cv_lib_$ac_lib_var=no"
7347 LIBS="$ac_save_LIBS"
7350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7354 echo "$ac_t""no" 1>&6
7358 if test $have_termcap = yes ; then
7359 cat >> confdefs.h <<\EOF
7360 #define HAVE_TERMCAP 1
7364 TERMCAP_LIBS=-ltermcap
7368 if test $ol_link_termcap = no ; then
7369 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7370 echo "configure:7371: checking for initscr in -lncurses" >&5
7371 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
7372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7373 echo $ac_n "(cached) $ac_c" 1>&6
7375 ac_save_LIBS="$LIBS"
7376 LIBS="-lncurses $LIBS"
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7380 /* Override any gcc2 internal prototype to avoid an error. */
7381 /* We use char because int might match the return type of a gcc2
7382 builtin and then its argument prototype would still apply. */
7389 if { (eval echo configure:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 eval "ac_cv_lib_$ac_lib_var=yes"
7393 echo "configure: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7396 eval "ac_cv_lib_$ac_lib_var=no"
7399 LIBS="$ac_save_LIBS"
7402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7406 echo "$ac_t""no" 1>&6
7410 if test $have_ncurses = yes ; then
7411 cat >> confdefs.h <<\EOF
7412 #define HAVE_NCURSES 1
7416 TERMCAP_LIBS=-lncurses
7420 if test $ol_link_termcap = no ; then
7421 cat >> confdefs.h <<\EOF
7422 #define NO_TERMCAP 1
7428 # FreeBSD (and others) have crypt(3) in -lcrypt
7429 if test $ol_enable_crypt != no ; then
7430 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7431 echo "configure:7432: checking for crypt" >&5
7432 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* System header to define __stub macros and hopefully few prototypes,
7439 which can conflict with char crypt(); below. */
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7449 /* The GNU C library defines this for functions which it implements
7450 to always fail with ENOSYS. Some functions are actually named
7451 something starting with __ and the normal name is an alias. */
7452 #if defined (__stub_crypt) || defined (__stub___crypt)
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7462 eval "ac_cv_func_crypt=yes"
7464 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7467 eval "ac_cv_func_crypt=no"
7472 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7473 echo "$ac_t""yes" 1>&6
7476 echo "$ac_t""no" 1>&6
7478 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7479 echo "configure:7480: checking for crypt in -lcrypt" >&5
7480 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
7481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7482 echo $ac_n "(cached) $ac_c" 1>&6
7484 ac_save_LIBS="$LIBS"
7485 LIBS="-lcrypt $LIBS"
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7489 /* Override any gcc2 internal prototype to avoid an error. */
7490 /* We use char because int might match the return type of a gcc2
7491 builtin and then its argument prototype would still apply. */
7498 if { (eval echo configure:7499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7500 eval "ac_cv_lib_$ac_lib_var=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_lib_$ac_lib_var=no"
7508 LIBS="$ac_save_LIBS"
7511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7512 echo "$ac_t""yes" 1>&6
7513 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7516 echo "$ac_t""no" 1>&6
7523 if test $have_crypt = yes ; then
7524 cat >> confdefs.h <<\EOF
7525 #define HAVE_CRYPT 1
7529 echo "configure: warning: could not find crypt" 1>&2
7530 if test $ol_enable_crypt = yes ; then
7531 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7534 echo "configure: warning: disabling crypt support" 1>&2
7539 # FreeBSD (and others) have setproctitle(3) in -lutil
7540 if test $ol_enable_proctitle != no ; then
7541 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7542 echo "configure:7543: checking for setproctitle" >&5
7543 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
7544 echo $ac_n "(cached) $ac_c" 1>&6
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7549 /* System header to define __stub macros and hopefully few prototypes,
7550 which can conflict with char setproctitle(); below. */
7552 /* Override any gcc2 internal prototype to avoid an error. */
7553 /* We use char because int might match the return type of a gcc2
7554 builtin and then its argument prototype would still apply. */
7555 char setproctitle();
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7571 if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573 eval "ac_cv_func_setproctitle=yes"
7575 echo "configure: failed program was:" >&5
7576 cat conftest.$ac_ext >&5
7578 eval "ac_cv_func_setproctitle=no"
7583 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7584 echo "$ac_t""yes" 1>&6
7585 have_setproctitle=yes
7587 echo "$ac_t""no" 1>&6
7589 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7590 echo "configure:7591: checking for setproctitle in -lutil" >&5
7591 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
7592 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7593 echo $ac_n "(cached) $ac_c" 1>&6
7595 ac_save_LIBS="$LIBS"
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* Override any gcc2 internal prototype to avoid an error. */
7601 /* We use char because int might match the return type of a gcc2
7602 builtin and then its argument prototype would still apply. */
7603 char setproctitle();
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 eval "ac_cv_lib_$ac_lib_var=yes"
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 eval "ac_cv_lib_$ac_lib_var=no"
7619 LIBS="$ac_save_LIBS"
7622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7623 echo "$ac_t""yes" 1>&6
7624 have_setproctitle=yes
7625 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7627 echo "$ac_t""no" 1>&6
7628 have_setproctitle=no
7629 LIBOBJS="$LIBOBJS setproctitle.o"
7635 if test $have_setproctitle = yes ; then
7636 cat >> confdefs.h <<\EOF
7637 #define HAVE_SETPROCTITLE 1
7643 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7644 echo "configure:7645: checking for ANSI C header files" >&5
7645 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
7646 echo $ac_n "(cached) $ac_c" 1>&6
7648 cat > conftest.$ac_ext <<EOF
7649 #line 7650 "configure"
7650 #include "confdefs.h"
7656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7657 { (eval echo configure:7658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7659 if test -z "$ac_err"; then
7661 ac_cv_header_stdc=yes
7664 echo "configure: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7667 ac_cv_header_stdc=no
7671 if test $ac_cv_header_stdc = yes; then
7672 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679 egrep "memchr" >/dev/null 2>&1; then
7683 ac_cv_header_stdc=no
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 egrep "free" >/dev/null 2>&1; then
7701 ac_cv_header_stdc=no
7707 if test $ac_cv_header_stdc = yes; then
7708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7709 if test "$cross_compiling" = yes; then
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7716 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7719 int main () { int i; for (i = 0; i < 256; i++)
7720 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7731 ac_cv_header_stdc=no
7739 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7740 if test $ac_cv_header_stdc = yes; then
7741 cat >> confdefs.h <<\EOF
7742 #define STDC_HEADERS 1
7748 if test $ac_cv_header_stdc != yes; then
7749 echo "configure: warning: could not Standard C compliant headers" 1>&2
7753 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7756 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7757 echo "configure:7758: checking for $ac_hdr that defines DIR" >&5
7758 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 cat > conftest.$ac_ext <<EOF
7762 #line 7763 "configure"
7763 #include "confdefs.h"
7764 #include <sys/types.h>
7770 if { (eval echo configure:7771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7772 eval "ac_cv_header_dirent_$ac_safe=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 eval "ac_cv_header_dirent_$ac_safe=no"
7781 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7784 cat >> confdefs.h <<EOF
7785 #define $ac_tr_hdr 1
7787 ac_header_dirent=$ac_hdr; break
7789 echo "$ac_t""no" 1>&6
7792 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7793 if test $ac_header_dirent = dirent.h; then
7794 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7795 echo "configure:7796: checking for opendir in -ldir" >&5
7796 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
7797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 ac_save_LIBS="$LIBS"
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 /* Override any gcc2 internal prototype to avoid an error. */
7806 /* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7814 if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816 eval "ac_cv_lib_$ac_lib_var=yes"
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 eval "ac_cv_lib_$ac_lib_var=no"
7824 LIBS="$ac_save_LIBS"
7827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7831 echo "$ac_t""no" 1>&6
7835 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7836 echo "configure:7837: checking for opendir in -lx" >&5
7837 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
7838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_save_LIBS="$LIBS"
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7855 if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7862 eval "ac_cv_lib_$ac_lib_var=no"
7865 LIBS="$ac_save_LIBS"
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7872 echo "$ac_t""no" 1>&6
7877 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7878 echo "configure:7879: checking for sys/wait.h that is POSIX.1 compatible" >&5
7879 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 cat > conftest.$ac_ext <<EOF
7883 #line 7884 "configure"
7884 #include "confdefs.h"
7885 #include <sys/types.h>
7886 #include <sys/wait.h>
7888 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7891 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7896 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7899 if { (eval echo configure:7900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7901 ac_cv_header_sys_wait_h=yes
7903 echo "configure: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7906 ac_cv_header_sys_wait_h=no
7911 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7912 if test $ac_cv_header_sys_wait_h = yes; then
7913 cat >> confdefs.h <<\EOF
7914 #define HAVE_SYS_WAIT_H 1
7919 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7920 echo "configure:7921: checking POSIX termios" >&5
7921 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 #include <sys/types.h>
7929 #include <termios.h>
7931 /* SunOS 4.0.3 has termios.h but not the library calls. */
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 am_cv_sys_posix_termios=yes
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 am_cv_sys_posix_termios=no
7947 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7950 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7951 echo "configure:7952: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7952 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7957 gwinsz_in_termios_h=no
7958 if test $am_cv_sys_posix_termios = yes; then
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 #include <sys/types.h>
7963 # include <termios.h>
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970 egrep "yes" >/dev/null 2>&1; then
7972 gwinsz_in_termios_h=yes
7978 if test $gwinsz_in_termios_h = no; then
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 #include <sys/types.h>
7983 # include <sys/ioctl.h>
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990 egrep "yes" >/dev/null 2>&1; then
7992 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8000 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8001 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8002 cat >> confdefs.h <<\EOF
8003 #define GWINSZ_IN_SYS_IOCTL 1
8008 if test $am_cv_sys_posix_termios = yes ; then
8009 cat >> confdefs.h <<\EOF
8010 #define HAVE_POSIX_TERMIOS 1
8051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8053 echo "configure:8054: checking for $ac_hdr" >&5
8054 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8067 eval "ac_cv_header_$ac_safe=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_header_$ac_safe=no"
8077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8080 cat >> confdefs.h <<EOF
8081 #define $ac_tr_hdr 1
8085 echo "$ac_t""no" 1>&6
8090 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8091 echo "configure:8092: checking for uid_t in sys/types.h" >&5
8092 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 #include <sys/types.h>
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 egrep "uid_t" >/dev/null 2>&1; then
8103 ac_cv_type_uid_t=yes
8112 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8113 if test $ac_cv_type_uid_t = no; then
8114 cat >> confdefs.h <<\EOF
8118 cat >> confdefs.h <<\EOF
8124 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8125 echo "configure:8126: checking type of array argument to getgroups" >&5
8126 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8129 if test "$cross_compiling" = yes; then
8130 ac_cv_type_getgroups=cross
8132 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8136 /* Thanks to Mike Rendell for this test. */
8137 #include <sys/types.h>
8140 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8145 union { gid_t gval; long lval; } val;
8148 for (i = 0; i < NGID; i++)
8149 gidset[i] = val.gval;
8150 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8152 /* Exit non-zero if getgroups seems to require an array of ints. This
8153 happens when gid_t is short but getgroups modifies an array of ints. */
8154 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8158 if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8160 ac_cv_type_getgroups=gid_t
8162 echo "configure: failed program was:" >&5
8163 cat conftest.$ac_ext >&5
8165 ac_cv_type_getgroups=int
8170 if test $ac_cv_type_getgroups = cross; then
8171 cat > conftest.$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8179 ac_cv_type_getgroups=gid_t
8182 ac_cv_type_getgroups=int
8189 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8190 cat >> confdefs.h <<EOF
8191 #define GETGROUPS_T $ac_cv_type_getgroups
8194 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8195 echo "configure:8196: checking for mode_t" >&5
8196 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 #include <sys/types.h>
8208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8211 eval "ac_cv_type_mode_t=yes"
8214 eval "ac_cv_type_mode_t=no"
8219 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
8220 echo "$ac_t""yes" 1>&6
8222 echo "$ac_t""no" 1>&6
8223 cat >> confdefs.h <<EOF
8229 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8230 echo "configure:8231: checking for off_t" >&5
8231 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
8232 echo $ac_n "(cached) $ac_c" 1>&6
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 #include <sys/types.h>
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8246 eval "ac_cv_type_off_t=yes"
8249 eval "ac_cv_type_off_t=no"
8254 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
8255 echo "$ac_t""yes" 1>&6
8257 echo "$ac_t""no" 1>&6
8258 cat >> confdefs.h <<EOF
8264 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8265 echo "configure:8266: checking for pid_t" >&5
8266 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 #include <sys/types.h>
8278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8279 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8281 eval "ac_cv_type_pid_t=yes"
8284 eval "ac_cv_type_pid_t=no"
8289 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8292 echo "$ac_t""no" 1>&6
8293 cat >> confdefs.h <<EOF
8299 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8300 echo "configure:8301: checking for ptrdiff_t" >&5
8301 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8304 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure"
8306 #include "confdefs.h"
8312 if { (eval echo configure:8313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8314 am_cv_type_ptrdiff_t=yes
8316 echo "configure: failed program was:" >&5
8317 cat conftest.$ac_ext >&5
8319 am_cv_type_ptrdiff_t=no
8324 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8325 if test $am_cv_type_ptrdiff_t = yes; then
8326 cat >> confdefs.h <<\EOF
8327 #define HAVE_PTRDIFF_T 1
8332 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8333 echo "configure:8334: checking return type of signal handlers" >&5
8334 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 #include <sys/types.h>
8346 extern "C" void (*signal (int, void (*)(int)))(int);
8348 void (*signal ()) ();
8355 if { (eval echo configure:8356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8357 ac_cv_type_signal=void
8359 echo "configure: failed program was:" >&5
8360 cat conftest.$ac_ext >&5
8362 ac_cv_type_signal=int
8367 echo "$ac_t""$ac_cv_type_signal" 1>&6
8368 cat >> confdefs.h <<EOF
8369 #define RETSIGTYPE $ac_cv_type_signal
8373 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8374 echo "configure:8375: checking for size_t" >&5
8375 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 #include <sys/types.h>
8387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8388 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8390 eval "ac_cv_type_size_t=yes"
8393 eval "ac_cv_type_size_t=no"
8398 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8401 echo "$ac_t""no" 1>&6
8402 cat >> confdefs.h <<EOF
8403 #define size_t unsigned
8408 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
8409 echo "configure:8410: checking for member st_blksize in aggregate type struct stat" >&5
8410 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 #include <sys/types.h>
8417 #include <sys/stat.h>
8419 struct stat foo; foo.st_blksize;
8422 if { (eval echo configure:8423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8424 ac_cv_c_struct_member_st_blksize=yes
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 ac_cv_c_struct_member_st_blksize=no
8434 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
8435 st_blksize="$ac_cv_c_struct_member_st_blksize"
8436 if test $ac_cv_c_struct_member_st_blksize = yes; then
8437 cat >> confdefs.h <<\EOF
8438 #define HAVE_ST_BLKSIZE 1
8443 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8444 echo "configure:8445: checking whether time.h and sys/time.h may both be included" >&5
8445 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 #include <sys/types.h>
8452 #include <sys/time.h>
8458 if { (eval echo configure:8459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8460 ac_cv_header_time=yes
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 ac_cv_header_time=no
8470 echo "$ac_t""$ac_cv_header_time" 1>&6
8471 if test $ac_cv_header_time = yes; then
8472 cat >> confdefs.h <<\EOF
8473 #define TIME_WITH_SYS_TIME 1
8478 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8479 echo "configure:8480: checking whether struct tm is in sys/time.h or time.h" >&5
8480 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 #include <sys/types.h>
8489 struct tm *tp; tp->tm_sec;
8492 if { (eval echo configure:8493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8494 ac_cv_struct_tm=time.h
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 ac_cv_struct_tm=sys/time.h
8504 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8505 if test $ac_cv_struct_tm = sys/time.h; then
8506 cat >> confdefs.h <<\EOF
8507 #define TM_IN_SYS_TIME 1
8514 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8515 echo "configure:8516: checking if toupper() requires islower()" >&5
8516 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8520 if test "$cross_compiling" = yes; then
8521 ol_cv_c_upper_lower=safe
8523 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure"
8525 #include "confdefs.h"
8530 if ('C' == toupper('C'))
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8538 ol_cv_c_upper_lower=no
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 ol_cv_c_upper_lower=yes
8550 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8551 if test $ol_cv_c_upper_lower != no ; then
8552 cat >> confdefs.h <<\EOF
8553 #define C_UPPER_LOWER 1
8558 echo $ac_n "checking for working const""... $ac_c" 1>&6
8559 echo "configure:8560: checking for working const" >&5
8560 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
8561 echo $ac_n "(cached) $ac_c" 1>&6
8563 cat > conftest.$ac_ext <<EOF
8564 #line 8565 "configure"
8565 #include "confdefs.h"
8569 /* Ultrix mips cc rejects this. */
8570 typedef int charset[2]; const charset x;
8571 /* SunOS 4.1.1 cc rejects this. */
8572 char const *const *ccp;
8574 /* NEC SVR4.0.2 mips cc rejects this. */
8575 struct point {int x, y;};
8576 static struct point const zero = {0,0};
8577 /* AIX XL C 1.02.0.0 rejects this.
8578 It does not let you subtract one const X* pointer from another in an arm
8579 of an if-expression whose if-part is not a constant expression */
8580 const char *g = "string";
8581 ccp = &g + (g ? g-g : 0);
8582 /* HPUX 7.0 cc rejects these. */
8585 ccp = (char const *const *) p;
8586 { /* SCO 3.2v4 cc rejects this. */
8588 char const *s = 0 ? (char *) 0 : (char const *) 0;
8592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8594 const int *foo = &x[0];
8597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8598 typedef const int *iptr;
8602 { /* AIX XL C 1.02.0.0 rejects this saying
8603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8604 struct s { int j; const int *ap[3]; };
8605 struct s *b; b->j = 5;
8607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8613 if { (eval echo configure:8614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8625 echo "$ac_t""$ac_cv_c_const" 1>&6
8626 if test $ac_cv_c_const = no; then
8627 cat >> confdefs.h <<\EOF
8634 if test $cross_compiling = yes ; then
8635 cat >> confdefs.h <<\EOF
8636 #define CROSS_COMPILING 1
8640 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8641 echo "configure:8642: checking whether byte ordering is bigendian" >&5
8642 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8645 ac_cv_c_bigendian=unknown
8646 # See if sys/param.h defines the BYTE_ORDER macro.
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8651 #include <sys/param.h>
8654 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8659 if { (eval echo configure:8660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8661 # It does; now see whether it defined to BIG_ENDIAN or not.
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 #include <sys/types.h>
8666 #include <sys/param.h>
8669 #if BYTE_ORDER != BIG_ENDIAN
8674 if { (eval echo configure:8675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8676 ac_cv_c_bigendian=yes
8678 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5
8681 ac_cv_c_bigendian=no
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8689 if test $ac_cv_c_bigendian = unknown; then
8690 if test "$cross_compiling" = yes; then
8691 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8697 /* Are we little or big endian? From Harbison&Steele. */
8701 char c[sizeof (long)];
8704 exit (u.c[sizeof (long) - 1] == 1);
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8709 ac_cv_c_bigendian=no
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 ac_cv_c_bigendian=yes
8722 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8723 if test $ac_cv_c_bigendian = yes; then
8724 cat >> confdefs.h <<\EOF
8725 #define WORDS_BIGENDIAN 1
8730 echo $ac_n "checking size of short""... $ac_c" 1>&6
8731 echo "configure:8732: checking size of short" >&5
8732 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8735 if test "$cross_compiling" = yes; then
8736 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8744 FILE *f=fopen("conftestval", "w");
8746 fprintf(f, "%d\n", sizeof(short));
8750 if { (eval echo configure:8751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8752 ac_cv_sizeof_short=`cat conftestval`
8754 echo "configure: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8757 ac_cv_sizeof_short=0
8763 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8764 cat >> confdefs.h <<EOF
8765 #define SIZEOF_SHORT $ac_cv_sizeof_short
8769 echo $ac_n "checking size of int""... $ac_c" 1>&6
8770 echo "configure:8771: checking size of int" >&5
8771 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
8772 echo $ac_n "(cached) $ac_c" 1>&6
8774 if test "$cross_compiling" = yes; then
8775 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8779 "configure"
8779 #include "confdefs.h"
8783 FILE *f=fopen("conftestval", "w");
8785 fprintf(f, "%d\n", sizeof(int));
8789 if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8791 ac_cv_sizeof_int=`cat conftestval`
8793 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8802 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8803 cat >> confdefs.h <<EOF
8804 #define SIZEOF_INT $ac_cv_sizeof_int
8808 echo $ac_n "checking size of long""... $ac_c" 1>&6
8809 echo "configure:8810: checking size of long" >&5
8810 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8813 if test "$cross_compiling" = yes; then
8814 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8822 FILE *f=fopen("conftestval", "w");
8824 fprintf(f, "%d\n", sizeof(long));
8828 if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8830 ac_cv_sizeof_long=`cat conftestval`
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8841 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8842 cat >> confdefs.h <<EOF
8843 #define SIZEOF_LONG $ac_cv_sizeof_long
8849 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8850 echo "configure:8851: checking for 8-bit clean memcmp" >&5
8851 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 if test "$cross_compiling" = yes; then
8855 ac_cv_func_memcmp_clean=no
8857 cat > conftest.$ac_ext <<EOF
8858 #line 8859 "configure"
8859 #include "confdefs.h"
8863 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8864 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8870 ac_cv_func_memcmp_clean=yes
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 ac_cv_func_memcmp_clean=no
8882 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8883 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8885 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8886 echo "configure:8887: checking for strftime" >&5
8887 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8893 /* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char strftime(); below. */
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8904 /* The GNU C library defines this for functions which it implements
8905 to always fail with ENOSYS. Some functions are actually named
8906 something starting with __ and the normal name is an alias. */
8907 #if defined (__stub_strftime) || defined (__stub___strftime)
8915 if { (eval echo configure:8916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8917 eval "ac_cv_func_strftime=yes"
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8922 eval "ac_cv_func_strftime=no"
8927 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8928 echo "$ac_t""yes" 1>&6
8929 cat >> confdefs.h <<\EOF
8930 #define HAVE_STRFTIME 1
8934 echo "$ac_t""no" 1>&6
8935 # strftime is in -lintl on SCO UNIX.
8936 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8937 echo "configure:8938: checking for strftime in -lintl" >&5
8938 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
8939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8942 ac_save_LIBS="$LIBS"
8944 cat > conftest.$ac_ext <<EOF
8945 #line 8946 "configure"
8946 #include "confdefs.h"
8947 /* Override any gcc2 internal prototype to avoid an error. */
8948 /* We use char because int might match the return type of a gcc2
8949 builtin and then its argument prototype would still apply. */
8956 if { (eval echo configure:8957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8958 eval "ac_cv_lib_$ac_lib_var=yes"
8960 echo "configure: failed program was:" >&5
8961 cat conftest.$ac_ext >&5
8963 eval "ac_cv_lib_$ac_lib_var=no"
8966 LIBS="$ac_save_LIBS"
8969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8970 echo "$ac_t""yes" 1>&6
8971 cat >> confdefs.h <<\EOF
8972 #define HAVE_STRFTIME 1
8977 echo "$ac_t""no" 1>&6
8982 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8983 echo "configure:8984: checking for vprintf" >&5
8984 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8987 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure"
8989 #include "confdefs.h"
8990 /* System header to define __stub macros and hopefully few prototypes,
8991 which can conflict with char vprintf(); below. */
8993 /* Override any gcc2 internal prototype to avoid an error. */
8994 /* We use char because int might match the return type of a gcc2
8995 builtin and then its argument prototype would still apply. */
9001 /* The GNU C library defines this for functions which it implements
9002 to always fail with ENOSYS. Some functions are actually named
9003 something starting with __ and the normal name is an alias. */
9004 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 eval "ac_cv_func_vprintf=yes"
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 eval "ac_cv_func_vprintf=no"
9024 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9025 echo "$ac_t""yes" 1>&6
9026 cat >> confdefs.h <<\EOF
9027 #define HAVE_VPRINTF 1
9031 echo "$ac_t""no" 1>&6
9034 if test "$ac_cv_func_vprintf" != yes; then
9035 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9036 echo "configure:9037: checking for _doprnt" >&5
9037 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* System header to define __stub macros and hopefully few prototypes,
9044 which can conflict with char _doprnt(); below. */
9046 /* Override any gcc2 internal prototype to avoid an error. */
9047 /* We use char because int might match the return type of a gcc2
9048 builtin and then its argument prototype would still apply. */
9054 /* The GNU C library defines this for functions which it implements
9055 to always fail with ENOSYS. Some functions are actually named
9056 something starting with __ and the normal name is an alias. */
9057 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9067 eval "ac_cv_func__doprnt=yes"
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9072 eval "ac_cv_func__doprnt=no"
9077 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9078 echo "$ac_t""yes" 1>&6
9079 cat >> confdefs.h <<\EOF
9080 #define HAVE_DOPRNT 1
9084 echo "$ac_t""no" 1>&6
9090 if test $ac_cv_func_vprintf = yes ; then
9091 for ac_func in vsnprintf vsprintf
9093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_func" >&5
9095 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* System header to define __stub macros and hopefully few prototypes,
9102 which can conflict with char $ac_func(); below. */
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9112 /* The GNU C library defines this for functions which it implements
9113 to always fail with ENOSYS. Some functions are actually named
9114 something starting with __ and the normal name is an alias. */
9115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9123 if { (eval echo configure:9124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9125 eval "ac_cv_func_$ac_func=yes"
9127 echo "configure: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9130 eval "ac_cv_func_$ac_func=no"
9135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9136 echo "$ac_t""yes" 1>&6
9137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9138 cat >> confdefs.h <<EOF
9139 #define $ac_tr_func 1
9143 echo "$ac_t""no" 1>&6
9180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9181 echo "configure:9182: checking for $ac_func" >&5
9182 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188 /* System header to define __stub macros and hopefully few prototypes,
9189 which can conflict with char $ac_func(); below. */
9191 /* Override any gcc2 internal prototype to avoid an error. */
9192 /* We use char because int might match the return type of a gcc2
9193 builtin and then its argument prototype would still apply. */
9199 /* The GNU C library defines this for functions which it implements
9200 to always fail with ENOSYS. Some functions are actually named
9201 something starting with __ and the normal name is an alias. */
9202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9210 if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9212 eval "ac_cv_func_$ac_func=yes"
9214 echo "configure: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9217 eval "ac_cv_func_$ac_func=no"
9222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9225 cat >> confdefs.h <<EOF
9226 #define $ac_tr_func 1
9230 echo "$ac_t""no" 1>&6
9235 for ac_func in getopt strdup tempnam
9237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9238 echo "configure:9239: checking for $ac_func" >&5
9239 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 /* System header to define __stub macros and hopefully few prototypes,
9246 which can conflict with char $ac_func(); below. */
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9256 /* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9267 if { (eval echo configure:9268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9269 eval "ac_cv_func_$ac_func=yes"
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9274 eval "ac_cv_func_$ac_func=no"
9279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9282 cat >> confdefs.h <<EOF
9283 #define $ac_tr_func 1
9287 echo "$ac_t""no" 1>&6
9288 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9294 # Check Configuration
9296 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9297 echo "configure:9298: checking declaration of sys_errlist" >&5
9298 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9299 echo $ac_n "(cached) $ac_c" 1>&6
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9307 #include <sys/types.h>
9310 char *c = (char *) *sys_errlist
9313 if { (eval echo configure:9314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9315 ol_cv_dcl_sys_errlist=yes
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9320 ol_cv_dcl_sys_errlist=no
9325 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9327 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9328 if test $ol_cv_dcl_sys_errlist = no ; then
9329 cat >> confdefs.h <<\EOF
9330 #define DECL_SYS_ERRLIST 1
9333 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9334 echo "configure:9335: checking existence of sys_errlist" >&5
9335 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9344 char *c = (char *) *sys_errlist
9347 if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9349 ol_cv_have_sys_errlist=yes
9351 echo "configure: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9354 ol_cv_have_sys_errlist=no
9359 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9364 if test "$ol_enable_debug" != no ; then
9365 cat >> confdefs.h <<\EOF
9366 #define LDAP_DEBUG 1
9370 if test "$ol_enable_libui" = yes ; then
9371 cat >> confdefs.h <<\EOF
9372 #define LDAP_LIBUI 1
9376 if test "$ol_enable_cache" = no ; then
9377 cat >> confdefs.h <<\EOF
9378 #define LDAP_NOCACHE 1
9382 if test "$ol_enable_dns" != no ; then
9383 cat >> confdefs.h <<\EOF
9388 if test "$ol_enable_proctitle" != no ; then
9389 cat >> confdefs.h <<\EOF
9390 #define LDAP_PROCTITLE 1
9394 if test "$ol_enable_referrals" != no ; then
9395 cat >> confdefs.h <<\EOF
9396 #define LDAP_REFERRALS 1
9400 if test "$ol_enable_cldap" != no ; then
9401 cat >> confdefs.h <<\EOF
9402 #define LDAP_CONNECTIONLESS 1
9407 if test "$ol_enable_aclgroups" != no ; then
9408 cat >> confdefs.h <<\EOF
9409 #define SLAPD_ACLGROUPS 1
9413 if test "$ol_enable_crypt" != no ; then
9414 cat >> confdefs.h <<\EOF
9415 #define SLAPD_CRYPT 1
9419 if test "$ol_enable_cleartext" != no ; then
9420 cat >> confdefs.h <<\EOF
9421 #define SLAPD_CLEARTEXT 1
9425 if test "$ol_enable_phonetic" != no ; then
9426 cat >> confdefs.h <<\EOF
9427 #define SLAPD_PHONETIC 1
9431 if test "$ol_enable_rlookups" != no ; then
9432 cat >> confdefs.h <<\EOF
9433 #define SLAPD_RLOOKUPS 1
9438 if test "$ol_link_ldbm" != no ; then
9439 cat >> confdefs.h <<\EOF
9440 #define SLAPD_LDBM 1
9447 if test "$ol_enable_passwd" != no ; then
9448 cat >> confdefs.h <<\EOF
9449 #define SLAPD_PASSWD 1
9456 if test "$ol_enable_shell" != no ; then
9457 cat >> confdefs.h <<\EOF
9458 #define SLAPD_SHELL 1
9465 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9466 $BUILD_SLAPD = yes ; then
9470 if test "$ol_link_isode" != no ; then
9495 cat > confcache <<\EOF
9496 # This file is a shell script that caches the results of configure
9497 # tests run on this system so they can be shared between configure
9498 # scripts and configure runs. It is not useful on other systems.
9499 # If it contains results you don't want to keep, you may remove or edit it.
9501 # By default, configure uses ./config.cache as the cache file,
9502 # creating it if it does not exist already. You can give configure
9503 # the --cache-file=FILE option to use a different cache file; that is
9504 # what configure does when it calls configure scripts in
9505 # subdirectories, so they share the cache.
9506 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9507 # config.status only pays attention to the cache file if you give it the
9508 # --recheck option to rerun configure.
9511 # The following way of writing the cache mishandles newlines in values,
9512 # but we know of no workaround that is simple, portable, and efficient.
9513 # So, don't put newlines in cache variables' values.
9514 # Ultrix sh set writes to stderr and can't be redirected directly,
9515 # and sets the high bit in the cache file unless we assign to the vars.
9517 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9519 # `set' does not quote correctly, so add quotes (double-quote substitution
9520 # turns \\\\ into \\, and sed turns \\ into \).
9522 -e "s/'/'\\\\''/g" \
9523 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9526 # `set' quotes correctly as required by POSIX, so do not add quotes.
9527 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9530 if cmp -s $cache_file confcache; then
9533 if test -w $cache_file; then
9534 echo "updating cache $cache_file"
9535 cat confcache > $cache_file
9537 echo "not updating unwritable cache $cache_file"
9542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9545 # Let make expand exec_prefix.
9546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9548 # Any assignment to VPATH causes Sun make to only execute
9549 # the first set of double-colon rules, so remove it if not needed.
9550 # If there is a colon in the path, we need to keep it.
9551 if test "x$srcdir" = x.; then
9552 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9555 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9557 DEFS=-DHAVE_CONFIG_H
9559 # Without the "./", some shells look in PATH for config.status.
9560 : ${CONFIG_STATUS=./config.status}
9562 echo creating $CONFIG_STATUS
9563 rm -f $CONFIG_STATUS
9564 cat > $CONFIG_STATUS <<EOF
9566 # Generated automatically by configure.
9567 # Run this file to recreate the current configuration.
9568 # This directory was configured as follows,
9569 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9571 # $0 $ac_configure_args
9573 # Compiler output produced by configure, useful for debugging
9574 # configure, is in ./config.log if it exists.
9576 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9579 case "\$ac_option" in
9580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9581 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9582 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9583 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9584 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
9586 -help | --help | --hel | --he | --h)
9587 echo "\$ac_cs_usage"; exit 0 ;;
9588 *) echo "\$ac_cs_usage"; exit 1 ;;
9592 ac_given_srcdir=$srcdir
9593 ac_given_INSTALL="$INSTALL"
9595 trap 'rm -fr `echo "\
9596 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9597 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9598 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9599 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9600 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9601 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9602 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9603 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9604 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9605 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9606 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9607 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9608 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9609 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9610 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9611 include/Makefile:build/top.mk:include/Makefile.in \
9612 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9613 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9614 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9615 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9616 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9617 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9618 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9619 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9620 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9621 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9622 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9623 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9624 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9625 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9626 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9627 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9628 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9629 tests/Makefile:build/top.mk:tests/Makefile.in \
9630 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9632 cat >> $CONFIG_STATUS <<EOF
9634 # Protect against being on the right side of a sed subst in config.status.
9635 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9636 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9640 s%@CFLAGS@%$CFLAGS%g
9641 s%@CPPFLAGS@%$CPPFLAGS%g
9642 s%@CXXFLAGS@%$CXXFLAGS%g
9643 s%@FFLAGS@%$FFLAGS%g
9645 s%@LDFLAGS@%$LDFLAGS%g
9647 s%@exec_prefix@%$exec_prefix%g
9648 s%@prefix@%$prefix%g
9649 s%@program_transform_name@%$program_transform_name%g
9650 s%@bindir@%$bindir%g
9651 s%@sbindir@%$sbindir%g
9652 s%@libexecdir@%$libexecdir%g
9653 s%@datadir@%$datadir%g
9654 s%@sysconfdir@%$sysconfdir%g
9655 s%@sharedstatedir@%$sharedstatedir%g
9656 s%@localstatedir@%$localstatedir%g
9657 s%@libdir@%$libdir%g
9658 s%@includedir@%$includedir%g
9659 s%@oldincludedir@%$oldincludedir%g
9660 s%@infodir@%$infodir%g
9661 s%@mandir@%$mandir%g
9662 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9663 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9664 s%@INSTALL_DATA@%$INSTALL_DATA%g
9665 s%@PACKAGE@%$PACKAGE%g
9666 s%@VERSION@%$VERSION%g
9667 s%@ACLOCAL@%$ACLOCAL%g
9668 s%@AUTOCONF@%$AUTOCONF%g
9669 s%@AUTOMAKE@%$AUTOMAKE%g
9670 s%@AUTOHEADER@%$AUTOHEADER%g
9671 s%@MAKEINFO@%$MAKEINFO%g
9672 s%@install_sh@%$install_sh%g
9675 s%@AMTARFLAGS@%$AMTARFLAGS%g
9676 s%@SET_MAKE@%$SET_MAKE%g
9677 s%@top_builddir@%$top_builddir%g
9678 s%@ldap_subdir@%$ldap_subdir%g
9680 s%@host_alias@%$host_alias%g
9681 s%@host_cpu@%$host_cpu%g
9682 s%@host_vendor@%$host_vendor%g
9683 s%@host_os@%$host_os%g
9685 s%@build_alias@%$build_alias%g
9686 s%@build_cpu@%$build_cpu%g
9687 s%@build_vendor@%$build_vendor%g
9688 s%@build_os@%$build_os%g
9689 s%@RANLIB@%$RANLIB%g
9694 s%@LIBTOOL@%$LIBTOOL%g
9695 s%@SENDMAIL@%$SENDMAIL%g
9696 s%@EDITOR@%$EDITOR%g
9697 s%@FINGER@%$FINGER%g
9700 s%@LIBOBJS@%$LIBOBJS%g
9701 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9702 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9703 s%@BUILD_LDBM@%$BUILD_LDBM%g
9704 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9705 s%@BUILD_SHELL@%$BUILD_SHELL%g
9706 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9707 s%@LDAP_LIBS@%$LDAP_LIBS%g
9708 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9709 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9710 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9711 s%@LDBM_LIBS@%$LDBM_LIBS%g
9712 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9713 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9714 s%@KRB_LIBS@%$KRB_LIBS%g
9715 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9720 cat >> $CONFIG_STATUS <<\EOF
9722 # Split the substitutions into bite-sized pieces for seds with
9723 # small command number limits, like on Digital OSF/1 and HP-UX.
9724 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9725 ac_file=1 # Number of current file.
9726 ac_beg=1 # First line for current file.
9727 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9730 while $ac_more_lines; do
9731 if test $ac_beg -gt 1; then
9732 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9734 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9736 if test ! -s conftest.s$ac_file; then
9738 rm -f conftest.s$ac_file
9740 if test -z "$ac_sed_cmds"; then
9741 ac_sed_cmds="sed -f conftest.s$ac_file"
9743 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9745 ac_file=`expr $ac_file + 1`
9747 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9750 if test -z "$ac_sed_cmds"; then
9755 cat >> $CONFIG_STATUS <<EOF
9757 CONFIG_FILES=\${CONFIG_FILES-"\
9758 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9759 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9760 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9761 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9762 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9763 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9764 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9765 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9766 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9767 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9768 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9769 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9770 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9771 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9772 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9773 include/Makefile:build/top.mk:include/Makefile.in \
9774 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9775 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9776 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9777 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9778 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9779 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9780 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9781 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9782 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9783 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9784 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9785 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9786 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9787 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9788 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9789 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9790 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9791 tests/Makefile:build/top.mk:tests/Makefile.in \
9794 cat >> $CONFIG_STATUS <<\EOF
9795 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9798 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9799 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9800 *) ac_file_in="${ac_file}.in" ;;
9803 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9805 # Remove last slash and all that follows it. Not all systems have dirname.
9806 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9807 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9808 # The file is in a subdirectory.
9809 test ! -d "$ac_dir" && mkdir "$ac_dir"
9810 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9811 # A "../" for each directory in $ac_dir_suffix.
9812 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9814 ac_dir_suffix= ac_dots=
9817 case "$ac_given_srcdir" in
9819 if test -z "$ac_dots"; then top_srcdir=.
9820 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9821 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9823 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9824 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9827 case "$ac_given_INSTALL" in
9828 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9829 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9832 echo creating "$ac_file"
9834 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9836 *Makefile*) ac_comsub="1i\\
9837 # $configure_input" ;;
9841 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9843 s%@configure_input@%$configure_input%g
9844 s%@srcdir@%$srcdir%g
9845 s%@top_srcdir@%$top_srcdir%g
9846 s%@INSTALL@%$INSTALL%g
9847 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9851 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9852 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9854 # ac_d sets the value in "#define NAME VALUE" lines.
9855 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9856 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9859 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9860 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9861 ac_uB='\([ ]\)%\1#\2define\3'
9864 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9865 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9866 ac_eB='$%\1#\2define\3'
9870 if test "${CONFIG_HEADERS+set}" != set; then
9872 cat >> $CONFIG_STATUS <<EOF
9873 CONFIG_HEADERS="include/portable.h"
9875 cat >> $CONFIG_STATUS <<\EOF
9877 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9878 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9880 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9881 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9882 *) ac_file_in="${ac_file}.in" ;;
9885 echo creating $ac_file
9887 rm -f conftest.frag conftest.in conftest.out
9888 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9889 cat $ac_file_inputs > conftest.in
9893 # Transform confdefs.h into a sed script conftest.vals that substitutes
9894 # the proper values into config.h.in to produce config.h. And first:
9895 # Protect against being on the right side of a sed subst in config.status.
9896 # Protect against being in an unquoted here document in config.status.
9898 cat > conftest.hdr <<\EOF
9901 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9905 sed -n -f conftest.hdr confdefs.h > conftest.vals
9908 # This sed command replaces #undef with comments. This is necessary, for
9909 # example, in the case of _POSIX_SOURCE, which is predefined and required
9910 # on some systems where configure will not decide to define it.
9911 cat >> conftest.vals <<\EOF
9912 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9915 # Break up conftest.vals because some shells have a limit on
9916 # the size of here documents, and old seds have small limits too.
9921 ac_lines=`grep -c . conftest.vals`
9922 # grep -c gives empty output for an empty file on some AIX systems.
9923 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9924 # Write a limited-size here document to conftest.frag.
9925 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9926 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9928 sed -f conftest.frag conftest.in > conftest.out
9930 mv conftest.out conftest.in
9932 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9934 mv conftest.tail conftest.vals
9938 cat >> $CONFIG_STATUS <<\EOF
9939 rm -f conftest.frag conftest.h
9940 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9941 cat conftest.in >> conftest.h
9943 if cmp -s $ac_file conftest.h 2>/dev/null; then
9944 echo "$ac_file is unchanged"
9947 # Remove last slash and all that follows it. Not all systems have dirname.
9948 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9950 # The file is in a subdirectory.
9951 test ! -d "$ac_dir" && mkdir "$ac_dir"
9954 mv conftest.h $ac_file
9959 cat >> $CONFIG_STATUS <<EOF
9962 cat >> $CONFIG_STATUS <<\EOF
9965 echo Please \"make depend\" to build dependencies
9969 chmod +x $CONFIG_STATUS
9970 rm -fr confdefs* $ac_clean_files
9971 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1