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"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
590 for ac_dir in build $srcdir/build; do
591 if test -f $ac_dir/install-sh; then
593 ac_install_sh="$ac_aux_dir/install-sh -c"
595 elif test -f $ac_dir/install.sh; then
597 ac_install_sh="$ac_aux_dir/install.sh -c"
599 elif test -f $ac_dir/shtool; then
601 ac_install_sh="$ac_aux_dir/shtool install -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
608 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
609 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
610 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
611 # Find a good install program. We prefer a C program (faster),
612 # so one script is as good as another. But avoid the broken or
613 # incompatible versions:
614 # SysV /etc/install, /usr/sbin/install
615 # SunOS /usr/etc/install
618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
621 # ./install, which can be erroneously created by make from ./install.sh.
622 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
623 echo "configure:624: checking for a BSD compatible install" >&5
624 if test -z "$INSTALL"; then
625 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
626 echo $ac_n "(cached) $ac_c" 1>&6
628 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
629 for ac_dir in $PATH; do
630 # Account for people who put trailing slashes in PATH elements.
632 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
634 # OSF1 and SCO ODT 3.0 have their own names for install.
635 # Don't use installbsd from OSF since it installs stuff as root
637 for ac_prog in ginstall scoinst install; do
638 if test -f $ac_dir/$ac_prog; then
639 if test $ac_prog = install &&
640 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
641 # AIX install. It has an incompatible calling convention.
643 elif test $ac_prog = install &&
644 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
645 # program-specific install script used by HP pwplus--don't use.
648 ac_cv_path_install="$ac_dir/$ac_prog -c"
659 if test "${ac_cv_path_install+set}" = set; then
660 INSTALL="$ac_cv_path_install"
662 # As a last resort, use the slow shell script. We don't cache a
663 # path for INSTALL within a source directory, because that will
664 # break other packages using the cache if that directory is
665 # removed, or if the path is relative.
666 INSTALL="$ac_install_sh"
669 echo "$ac_t""$INSTALL" 1>&6
671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
672 # It thinks the first close brace ends the variable substitution.
673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
679 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
680 echo "configure:681: checking whether build environment is sane" >&5
683 echo timestamp > conftestfile
684 # Do `set' in a subshell so we don't clobber the current shell's
685 # arguments. Must try -L first in case configure is actually a
686 # symlink; some systems play weird games with the mod time of symlinks
687 # (eg FreeBSD returns the mod time of the symlink's containing
690 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
691 if test "$*" = "X"; then
693 set X `ls -t $srcdir/configure conftestfile`
695 if test "$*" != "X $srcdir/configure conftestfile" \
696 && test "$*" != "X conftestfile $srcdir/configure"; then
698 # If neither matched, then we have a broken ls. This can happen
699 # if, for instance, CONFIG_SHELL is bash and it inherits a
700 # broken ls alias from the environment. This has actually
701 # happened. Such a system could not be considered "sane".
702 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
703 alias in your environment" 1>&2; exit 1; }
706 test "$2" = conftestfile
712 { echo "configure: error: newly created file is older than distributed files!
713 Check your system clock" 1>&2; exit 1; }
716 echo "$ac_t""yes" 1>&6
717 if test "$program_transform_name" = s,x,x,; then
718 program_transform_name=
720 # Double any \ or $. echo might interpret backslashes.
721 cat <<\EOF_SED > conftestsed
722 s,\\,\\\\,g; s,\$,$$,g
724 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
727 test "$program_prefix" != NONE &&
728 program_transform_name="s,^,${program_prefix},;$program_transform_name"
729 # Use a double $ so make ignores it.
730 test "$program_suffix" != NONE &&
731 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
733 # sed with no file args requires a program.
734 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
736 for ac_prog in mawk gawk nawk awk
738 # Extract the first word of "$ac_prog", so it can be a program name with args.
739 set dummy $ac_prog; ac_word=$2
740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
741 echo "configure:742: checking for $ac_word" >&5
742 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
743 echo $ac_n "(cached) $ac_c" 1>&6
745 if test -n "$AWK"; then
746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
750 for ac_dir in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir=.
752 if test -f $ac_dir/$ac_word; then
753 ac_cv_prog_AWK="$ac_prog"
760 AWK="$ac_cv_prog_AWK"
761 if test -n "$AWK"; then
762 echo "$ac_t""$AWK" 1>&6
764 echo "$ac_t""no" 1>&6
767 test -n "$AWK" && break
770 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
771 echo "configure:772: checking whether ${MAKE-make} sets \${MAKE}" >&5
772 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
773 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
776 cat > conftestmake <<\EOF
778 @echo 'ac_maketemp="${MAKE}"'
780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
781 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
782 if test -n "$ac_maketemp"; then
783 eval ac_cv_prog_make_${ac_make}_set=yes
785 eval ac_cv_prog_make_${ac_make}_set=no
789 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
790 echo "$ac_t""yes" 1>&6
793 echo "$ac_t""no" 1>&6
794 SET_MAKE="MAKE=${MAKE-make}"
803 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
809 missing_dir=`cd $ac_aux_dir && pwd`
810 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
811 echo "configure:812: checking for working aclocal" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
817 echo "$ac_t""found" 1>&6
819 ACLOCAL="$missing_dir/missing aclocal"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
824 echo "configure:825: checking for working autoconf" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
830 echo "$ac_t""found" 1>&6
832 AUTOCONF="$missing_dir/missing autoconf"
833 echo "$ac_t""missing" 1>&6
836 echo $ac_n "checking for working automake""... $ac_c" 1>&6
837 echo "configure:838: checking for working automake" >&5
838 # Run test in a subshell; some versions of sh will print an error if
839 # an executable is not found, even if stderr is redirected.
840 # Redirect stdin to placate older versions of autoconf. Sigh.
841 if (automake --version) < /dev/null > /dev/null 2>&1; then
843 echo "$ac_t""found" 1>&6
845 AUTOMAKE="$missing_dir/missing automake"
846 echo "$ac_t""missing" 1>&6
849 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
850 echo "configure:851: checking for working autoheader" >&5
851 # Run test in a subshell; some versions of sh will print an error if
852 # an executable is not found, even if stderr is redirected.
853 # Redirect stdin to placate older versions of autoconf. Sigh.
854 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
855 AUTOHEADER=autoheader
856 echo "$ac_t""found" 1>&6
858 AUTOHEADER="$missing_dir/missing autoheader"
859 echo "$ac_t""missing" 1>&6
862 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
863 echo "configure:864: checking for working makeinfo" >&5
864 # Run test in a subshell; some versions of sh will print an error if
865 # an executable is not found, even if stderr is redirected.
866 # Redirect stdin to placate older versions of autoconf. Sigh.
867 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
869 echo "$ac_t""found" 1>&6
871 MAKEINFO="$missing_dir/missing makeinfo"
872 echo "$ac_t""missing" 1>&6
875 install_sh="$missing_dir/install-sh"
876 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
878 for ac_prog in gnutar gtar tar
880 # Extract the first word of "$ac_prog", so it can be a program name with args.
881 set dummy $ac_prog; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 if test -n "$AMTAR"; then
888 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
892 for ac_dir in $ac_dummy; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 ac_cv_prog_AMTAR="$ac_prog"
902 AMTAR="$ac_cv_prog_AMTAR"
903 if test -n "$AMTAR"; then
904 echo "$ac_t""$AMTAR" 1>&6
906 echo "$ac_t""no" 1>&6
909 test -n "$AMTAR" && break
914 if test -n "$AMTAR"; then
915 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
923 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
924 echo "configure:925: checking configure arguments" >&5
929 ldap_subdir="openldap"
931 # Check whether --with-subdir or --without-subdir was given.
932 if test "${with_subdir+set}" = set; then
933 withval="$with_subdir"
935 if test "$withval" = "no"; then
937 elif test "$withval" != "yes"; then
938 ldap_subdir="$withval"
944 # OpenLDAP --enable-debug
945 # Check whether --enable-debug or --disable-debug was given.
946 if test "${enable_debug+set}" = set; then
947 enableval="$enable_debug"
950 for ol_val in auto yes no ; do
951 if test "$enableval" = "$ol_val" ; then
955 if test "$ol_arg" = "invalid" ; then
956 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
958 ol_enable_debug="$ol_arg"
961 ol_enable_debug="yes"
964 # OpenLDAP --enable-proctitle
965 # Check whether --enable-proctitle or --disable-proctitle was given.
966 if test "${enable_proctitle+set}" = set; then
967 enableval="$enable_proctitle"
970 for ol_val in auto yes no ; do
971 if test "$enableval" = "$ol_val" ; then
975 if test "$ol_arg" = "invalid" ; then
976 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
978 ol_enable_proctitle="$ol_arg"
981 ol_enable_proctitle="yes"
983 # end --enable-proctitle
984 # OpenLDAP --enable-libui
985 # Check whether --enable-libui or --disable-libui was given.
986 if test "${enable_libui+set}" = set; then
987 enableval="$enable_libui"
990 for ol_val in auto yes no ; do
991 if test "$enableval" = "$ol_val" ; then
995 if test "$ol_arg" = "invalid" ; then
996 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
998 ol_enable_libui="$ol_arg"
1001 ol_enable_libui="yes"
1003 # end --enable-libui
1004 # OpenLDAP --enable-cache
1005 # Check whether --enable-cache or --disable-cache was given.
1006 if test "${enable_cache+set}" = set; then
1007 enableval="$enable_cache"
1010 for ol_val in auto yes no ; do
1011 if test "$enableval" = "$ol_val" ; then
1015 if test "$ol_arg" = "invalid" ; then
1016 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1018 ol_enable_cache="$ol_arg"
1021 ol_enable_cache="yes"
1023 # end --enable-cache
1024 # OpenLDAP --enable-dns
1025 # Check whether --enable-dns or --disable-dns was given.
1026 if test "${enable_dns+set}" = set; then
1027 enableval="$enable_dns"
1030 for ol_val in auto yes no ; do
1031 if test "$enableval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1038 ol_enable_dns="$ol_arg"
1044 # OpenLDAP --enable-referrals
1045 # Check whether --enable-referrals or --disable-referrals was given.
1046 if test "${enable_referrals+set}" = set; then
1047 enableval="$enable_referrals"
1050 for ol_val in auto yes no ; do
1051 if test "$enableval" = "$ol_val" ; then
1055 if test "$ol_arg" = "invalid" ; then
1056 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1058 ol_enable_referrals="$ol_arg"
1061 ol_enable_referrals="yes"
1063 # end --enable-referrals
1064 # OpenLDAP --enable-cldap
1065 # Check whether --enable-cldap or --disable-cldap was given.
1066 if test "${enable_cldap+set}" = set; then
1067 enableval="$enable_cldap"
1070 for ol_val in auto yes no ; do
1071 if test "$enableval" = "$ol_val" ; then
1075 if test "$ol_arg" = "invalid" ; then
1076 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1078 ol_enable_cldap="$ol_arg"
1081 ol_enable_cldap="no"
1083 # end --enable-cldap
1084 # OpenLDAP --enable-x_compile
1085 # Check whether --enable-x_compile or --disable-x_compile was given.
1086 if test "${enable_x_compile+set}" = set; then
1087 enableval="$enable_x_compile"
1090 for ol_val in yes no ; do
1091 if test "$enableval" = "$ol_val" ; then
1095 if test "$ol_arg" = "invalid" ; then
1096 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1098 ol_enable_x_compile="$ol_arg"
1101 ol_enable_x_compile="no"
1103 # end --enable-x_compile
1105 # OpenLDAP --enable-dmalloc
1106 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1107 if test "${enable_dmalloc+set}" = set; then
1108 enableval="$enable_dmalloc"
1111 for ol_val in auto yes no ; do
1112 if test "$enableval" = "$ol_val" ; then
1116 if test "$ol_arg" = "invalid" ; then
1117 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1119 ol_enable_dmalloc="$ol_arg"
1122 ol_enable_dmalloc="no"
1124 # end --enable-dmalloc
1126 # OpenLDAP --with-kerberos
1127 # Check whether --with-kerberos or --without-kerberos was given.
1128 if test "${with_kerberos+set}" = set; then
1129 withval="$with_kerberos"
1132 for ol_val in auto k5 k4 afs yes no ; do
1133 if test "$withval" = "$ol_val" ; then
1137 if test "$ol_arg" = "invalid" ; then
1138 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1140 ol_with_kerberos="$ol_arg"
1143 ol_with_kerberos="auto"
1145 # end --with-kerberos
1147 # OpenLDAP --with-threads
1148 # Check whether --with-threads or --without-threads was given.
1149 if test "${with_threads+set}" = set; then
1150 withval="$with_threads"
1153 for ol_val in auto posix mach lwp yes no manual ; do
1154 if test "$withval" = "$ol_val" ; then
1158 if test "$ol_arg" = "invalid" ; then
1159 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1161 ol_with_threads="$ol_arg"
1164 ol_with_threads="auto"
1166 # end --with-threads
1168 # OpenLDAP --with-yielding_select
1169 # Check whether --with-yielding_select or --without-yielding_select was given.
1170 if test "${with_yielding_select+set}" = set; then
1171 withval="$with_yielding_select"
1174 for ol_val in auto yes no manual ; do
1175 if test "$withval" = "$ol_val" ; then
1179 if test "$ol_arg" = "invalid" ; then
1180 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1182 ol_with_yielding_select="$ol_arg"
1185 ol_with_yielding_select="auto"
1187 # end --with-yielding_select
1191 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1192 if test "${with_xxldapdoptions+set}" = set; then
1193 withval="$with_xxldapdoptions"
1197 # OpenLDAP --enable-ldapd
1198 # Check whether --enable-ldapd or --disable-ldapd was given.
1199 if test "${enable_ldapd+set}" = set; then
1200 enableval="$enable_ldapd"
1203 for ol_val in auto yes no ; do
1204 if test "$enableval" = "$ol_val" ; then
1208 if test "$ol_arg" = "invalid" ; then
1209 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1211 ol_enable_ldapd="$ol_arg"
1214 ol_enable_ldapd="no"
1216 # end --enable-ldapd
1218 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1219 if test "${with_xxslapdoptions+set}" = set; then
1220 withval="$with_xxslapdoptions"
1224 # OpenLDAP --enable-slapd
1225 # Check whether --enable-slapd or --disable-slapd was given.
1226 if test "${enable_slapd+set}" = set; then
1227 enableval="$enable_slapd"
1230 for ol_val in auto yes no ; do
1231 if test "$enableval" = "$ol_val" ; then
1235 if test "$ol_arg" = "invalid" ; then
1236 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1238 ol_enable_slapd="$ol_arg"
1241 ol_enable_slapd="yes"
1243 # end --enable-slapd
1244 # OpenLDAP --enable-aclgroups
1245 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1246 if test "${enable_aclgroups+set}" = set; then
1247 enableval="$enable_aclgroups"
1250 for ol_val in auto yes no ; do
1251 if test "$enableval" = "$ol_val" ; then
1255 if test "$ol_arg" = "invalid" ; then
1256 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1258 ol_enable_aclgroups="$ol_arg"
1261 ol_enable_aclgroups="auto"
1263 # end --enable-aclgroups
1264 # OpenLDAP --enable-cleartext
1265 # Check whether --enable-cleartext or --disable-cleartext was given.
1266 if test "${enable_cleartext+set}" = set; then
1267 enableval="$enable_cleartext"
1270 for ol_val in auto yes no ; do
1271 if test "$enableval" = "$ol_val" ; then
1275 if test "$ol_arg" = "invalid" ; then
1276 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1278 ol_enable_cleartext="$ol_arg"
1281 ol_enable_cleartext="yes"
1283 # end --enable-cleartext
1284 # OpenLDAP --enable-crypt
1285 # Check whether --enable-crypt or --disable-crypt was given.
1286 if test "${enable_crypt+set}" = set; then
1287 enableval="$enable_crypt"
1290 for ol_val in auto yes no ; do
1291 if test "$enableval" = "$ol_val" ; then
1295 if test "$ol_arg" = "invalid" ; then
1296 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1298 ol_enable_crypt="$ol_arg"
1301 ol_enable_crypt="auto"
1303 # end --enable-crypt
1304 # OpenLDAP --enable-wrappers
1305 # Check whether --enable-wrappers or --disable-wrappers was given.
1306 if test "${enable_wrappers+set}" = set; then
1307 enableval="$enable_wrappers"
1310 for ol_val in auto yes no ; do
1311 if test "$enableval" = "$ol_val" ; then
1315 if test "$ol_arg" = "invalid" ; then
1316 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1318 ol_enable_wrappers="$ol_arg"
1321 ol_enable_wrappers="no"
1323 # end --enable-wrappers
1324 # OpenLDAP --enable-phonetic
1325 # Check whether --enable-phonetic or --disable-phonetic was given.
1326 if test "${enable_phonetic+set}" = set; then
1327 enableval="$enable_phonetic"
1330 for ol_val in auto yes no ; do
1331 if test "$enableval" = "$ol_val" ; then
1335 if test "$ol_arg" = "invalid" ; then
1336 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1338 ol_enable_phonetic="$ol_arg"
1341 ol_enable_phonetic="no"
1343 # end --enable-phonetic
1344 # OpenLDAP --enable-rlookups
1345 # Check whether --enable-rlookups or --disable-rlookups was given.
1346 if test "${enable_rlookups+set}" = set; then
1347 enableval="$enable_rlookups"
1350 for ol_val in auto yes no ; do
1351 if test "$enableval" = "$ol_val" ; then
1355 if test "$ol_arg" = "invalid" ; then
1356 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1358 ol_enable_rlookups="$ol_arg"
1361 ol_enable_rlookups="auto"
1363 # end --enable-rlookups
1365 # OpenLDAP --enable-ldbm
1366 # Check whether --enable-ldbm or --disable-ldbm was given.
1367 if test "${enable_ldbm+set}" = set; then
1368 enableval="$enable_ldbm"
1371 for ol_val in auto yes no ; do
1372 if test "$enableval" = "$ol_val" ; then
1376 if test "$ol_arg" = "invalid" ; then
1377 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1379 ol_enable_ldbm="$ol_arg"
1382 ol_enable_ldbm="yes"
1385 # OpenLDAP --with-ldbm_api
1386 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1387 if test "${with_ldbm_api+set}" = set; then
1388 withval="$with_ldbm_api"
1391 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1392 if test "$withval" = "$ol_val" ; then
1396 if test "$ol_arg" = "invalid" ; then
1397 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1399 ol_with_ldbm_api="$ol_arg"
1402 ol_with_ldbm_api="auto"
1404 # end --with-ldbm_api
1406 # OpenLDAP --with-ldbm_type
1407 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1408 if test "${with_ldbm_type+set}" = set; then
1409 withval="$with_ldbm_type"
1412 for ol_val in auto btree hash ; do
1413 if test "$withval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1420 ol_with_ldbm_type="$ol_arg"
1423 ol_with_ldbm_type="auto"
1425 # end --with-ldbm_type
1428 # OpenLDAP --enable-passwd
1429 # Check whether --enable-passwd or --disable-passwd was given.
1430 if test "${enable_passwd+set}" = set; then
1431 enableval="$enable_passwd"
1434 for ol_val in auto yes no ; do
1435 if test "$enableval" = "$ol_val" ; then
1439 if test "$ol_arg" = "invalid" ; then
1440 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1442 ol_enable_passwd="$ol_arg"
1445 ol_enable_passwd="no"
1447 # end --enable-passwd
1448 # OpenLDAP --enable-shell
1449 # Check whether --enable-shell or --disable-shell was given.
1450 if test "${enable_shell+set}" = set; then
1451 enableval="$enable_shell"
1454 for ol_val in auto yes no ; do
1455 if test "$enableval" = "$ol_val" ; then
1459 if test "$ol_arg" = "invalid" ; then
1460 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1462 ol_enable_shell="$ol_arg"
1465 ol_enable_shell="no"
1467 # end --enable-shell
1469 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1470 if test "${with_xxslurpdoptions+set}" = set; then
1471 withval="$with_xxslurpdoptions"
1475 # OpenLDAP --enable-slurpd
1476 # Check whether --enable-slurpd or --disable-slurpd was given.
1477 if test "${enable_slurpd+set}" = set; then
1478 enableval="$enable_slurpd"
1481 for ol_val in auto yes no ; do
1482 if test "$enableval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1489 ol_enable_slurpd="$ol_arg"
1492 ol_enable_slurpd="auto"
1494 # end --enable-slurpd
1496 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1497 if test "${with_xxliboptions+set}" = set; then
1498 withval="$with_xxliboptions"
1502 # Check whether --enable-static or --disable-static was given.
1503 if test "${enable_static+set}" = set; then
1504 enableval="$enable_static"
1505 p=${PACKAGE-default}
1506 case "$enableval" in
1507 yes) enable_static=yes ;;
1508 no) enable_static=no ;;
1511 # Look at the argument we got. We use all the common list separators.
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1513 for pkg in $enableval; do
1514 if test "X$pkg" = "X$p"; then
1525 # Check whether --enable-shared or --disable-shared was given.
1526 if test "${enable_shared+set}" = set; then
1527 enableval="$enable_shared"
1528 p=${PACKAGE-default}
1529 case "$enableval" in
1530 yes) enable_shared=yes ;;
1531 no) enable_shared=no ;;
1534 # Look at the argument we got. We use all the common list separators.
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1536 for pkg in $enableval; do
1537 if test "X$pkg" = "X$p"; then
1550 if test $ol_enable_dns = yes ; then
1551 if test $ol_enable_referrals = no ; then
1552 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1554 if test $ol_enable_referrals = auto ; then
1555 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1556 ol_enable_referrals=yes
1560 if test $ol_enable_slapd = no ; then
1561 if test $ol_enable_ldbm = yes ; then
1562 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1564 if test $ol_enable_passwd = yes ; then
1565 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1567 if test $ol_enable_shell = yes ; then
1568 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1570 if test $ol_enable_aclgroups = yes ; then
1571 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1573 if test $ol_enable_wrappers = yes ; then
1574 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1576 if test $ol_enable_phonetic = yes ; then
1577 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1579 if test $ol_enable_rlookups = yes ; then
1580 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1582 if test $ol_with_ldbm_api != auto ; then
1583 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1585 if test $ol_with_ldbm_type != auto ; then
1586 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1588 if test $ol_enable_slurpd = yes ; then
1589 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1592 # force settings to no
1596 ol_enable_aclgroups=no
1597 ol_enable_wrappers=no
1598 ol_enable_phonetic=no
1599 ol_enable_rlookups=no
1601 ol_with_ldbm_type=no
1604 elif test $ol_enable_ldbm = no ; then
1606 if test $ol_with_ldbm_api != auto ; then
1607 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1610 if test $ol_with_ldbm_type != auto ; then
1611 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1614 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1615 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1619 ol_with_ldbm_type=no
1623 if test $ol_with_ldbm_api = gdbm -a \
1624 $ol_with_ldbm_type = btree ; then
1625 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1627 if test $ol_with_ldbm_api = mdbm -a \
1628 $ol_with_ldbm_type = btree ; then
1629 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1631 if test $ol_with_ldbm_api = ndbm -a \
1632 $ol_with_ldbm_type = btree ; then
1633 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1637 if test $ol_enable_slurpd = yes ; then
1638 if test $ol_with_threads = no ; then
1639 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1643 echo "$ac_t""done" 1>&6
1646 echo $ac_n "checking host system type""... $ac_c" 1>&6
1647 echo "configure:1648: checking host system type" >&5
1648 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
1650 # Make sure we can run config.sub.
1651 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1652 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1655 ac_cv_host_alias=$host
1656 case "$ac_cv_host_alias" in
1660 if ac_cv_host_alias=`$ac_config_guess`; then :
1661 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1663 *) ac_cv_host_alias=$nonopt ;;
1667 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
1668 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 echo $ac_n "(cached) $ac_c" 1>&6
1675 echo "$ac_t""$ac_cv_host" 1>&6
1678 host_alias=$ac_cv_host_alias
1679 host_cpu=$ac_cv_host_cpu
1680 host_vendor=$ac_cv_host_vendor
1681 host_os=$ac_cv_host_os
1710 # Find a good install program. We prefer a C program (faster),
1711 # so one script is as good as another. But avoid the broken or
1712 # incompatible versions:
1713 # SysV /etc/install, /usr/sbin/install
1714 # SunOS /usr/etc/install
1715 # IRIX /sbin/install
1717 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1718 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1719 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1720 # ./install, which can be erroneously created by make from ./install.sh.
1721 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1722 echo "configure:1723: checking for a BSD compatible install" >&5
1723 if test -z "$INSTALL"; then
1724 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1728 for ac_dir in $PATH; do
1729 # Account for people who put trailing slashes in PATH elements.
1731 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1733 # OSF1 and SCO ODT 3.0 have their own names for install.
1734 # Don't use installbsd from OSF since it installs stuff as root
1736 for ac_prog in ginstall scoinst install; do
1737 if test -f $ac_dir/$ac_prog; then
1738 if test $ac_prog = install &&
1739 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1740 # AIX install. It has an incompatible calling convention.
1742 elif test $ac_prog = install &&
1743 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1744 # program-specific install script used by HP pwplus--don't use.
1747 ac_cv_path_install="$ac_dir/$ac_prog -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL="$ac_cv_path_install"
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL="$ac_install_sh"
1768 echo "$ac_t""$INSTALL" 1>&6
1770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1771 # It thinks the first close brace ends the variable substitution.
1772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778 # Check whether --enable-fast-install or --disable-fast-install was given.
1779 if test "${enable_fast_install+set}" = set; then
1780 enableval="$enable_fast_install"
1781 p=${PACKAGE-default}
1782 case "$enableval" in
1783 yes) enable_fast_install=yes ;;
1784 no) enable_fast_install=no ;;
1786 enable_fast_install=no
1787 # Look at the argument we got. We use all the common list separators.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1789 for pkg in $enableval; do
1790 if test "X$pkg" = "X$p"; then
1791 enable_fast_install=yes
1798 enable_fast_install=yes
1802 echo $ac_n "checking build system type""... $ac_c" 1>&6
1803 echo "configure:1804: checking build system type" >&5
1804 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1806 # Make sure we can run config.sub.
1807 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1808 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1811 ac_cv_build_alias=$build
1812 case "$ac_cv_build_alias" in
1816 ac_cv_build_alias=$host_alias ;;
1818 *) ac_cv_build_alias=$nonopt ;;
1822 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
1823 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1827 echo $ac_n "(cached) $ac_c" 1>&6
1830 echo "$ac_t""$ac_cv_build" 1>&6
1833 build_alias=$ac_cv_build_alias
1834 build_cpu=$ac_cv_build_cpu
1835 build_vendor=$ac_cv_build_vendor
1836 build_os=$ac_cv_build_os
1841 # Extract the first word of "ranlib", so it can be a program name with args.
1842 set dummy ranlib; ac_word=$2
1843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1844 echo "configure:1845: checking for $ac_word" >&5
1845 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 if test -n "$RANLIB"; then
1849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 for ac_dir in $ac_dummy; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f $ac_dir/$ac_word; then
1856 ac_cv_prog_RANLIB="ranlib"
1861 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1864 RANLIB="$ac_cv_prog_RANLIB"
1865 if test -n "$RANLIB"; then
1866 echo "$ac_t""$RANLIB" 1>&6
1868 echo "$ac_t""no" 1>&6
1871 # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 if test -f $ac_dir/$ac_word; then
1894 if test -n "$CC"; then
1895 echo "$ac_t""$CC" 1>&6
1897 echo "$ac_t""no" 1>&6
1900 if test -z "$CC"; then
1901 # Extract the first word of "cc", so it can be a program name with args.
1902 set dummy cc; ac_word=$2
1903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_word" >&5
1905 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1917 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1918 ac_prog_rejected=yes
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1930 if test $# -gt 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 set dummy "$ac_dir/$ac_word" "$@"
1943 if test -n "$CC"; then
1944 echo "$ac_t""$CC" 1>&6
1946 echo "$ac_t""no" 1>&6
1949 if test -z "$CC"; then
1950 case "`uname -s`" in
1951 *win32* | *WIN32* | *CYGWIN*)
1952 # Extract the first word of "cl", so it can be a program name with args.
1953 set dummy cl; ac_word=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1964 for ac_dir in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir=.
1966 if test -f $ac_dir/$ac_word; then
1975 if test -n "$CC"; then
1976 echo "$ac_t""$CC" 1>&6
1978 echo "$ac_t""no" 1>&6
1983 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1986 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1990 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1993 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1994 cross_compiling=$ac_cv_prog_cc_cross
1996 cat > conftest.$ac_ext << EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2004 ac_cv_prog_cc_works=yes
2005 # If we can't run a trivial program, we are probably using a cross compiler.
2006 if (./conftest; exit) 2>/dev/null; then
2007 ac_cv_prog_cc_cross=no
2009 ac_cv_prog_cc_cross=yes
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 ac_cv_prog_cc_works=no
2018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2022 cross_compiling=$ac_cv_prog_cc_cross
2024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2025 if test $ac_cv_prog_cc_works = no; then
2026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2031 cross_compiling=$ac_cv_prog_cc_cross
2033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether we are using GNU C" >&5
2035 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.c <<EOF
2043 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2050 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2052 if test $ac_cv_prog_gcc = yes; then
2058 ac_test_CFLAGS="${CFLAGS+set}"
2059 ac_save_CFLAGS="$CFLAGS"
2061 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether ${CC-cc} accepts -g" >&5
2063 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 echo 'void f(){}' > conftest.c
2067 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2076 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2077 if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS="$ac_save_CFLAGS"
2079 elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2086 if test "$GCC" = yes; then
2093 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2094 if test "${with_gnu_ld+set}" = set; then
2095 withval="$with_gnu_ld"
2096 test "$withval" = no || with_gnu_ld=yes
2102 if test "$ac_cv_prog_gcc" = yes; then
2103 # Check if gcc -print-prog-name=ld gives a path.
2104 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2105 echo "configure:2106: checking for ld used by GCC" >&5
2106 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2108 # Accept absolute paths.
2109 [\\/]* | [A-Za-z]:[\\/]*)
2110 re_direlt='/[^/][^/]*/\.\./'
2111 # Canonicalize the path of ld
2112 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2113 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2114 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2116 test -z "$LD" && LD="$ac_prog"
2119 # If it fails, then pretend we aren't using GCC.
2123 # If it is relative, then search for the first ld in PATH.
2127 elif test "$with_gnu_ld" = yes; then
2128 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2129 echo "configure:2130: checking for GNU ld" >&5
2131 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2132 echo "configure:2133: checking for non-GNU ld" >&5
2134 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 if test -z "$LD"; then
2138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2139 for ac_dir in $PATH; do
2140 test -z "$ac_dir" && ac_dir=.
2141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2142 ac_cv_path_LD="$ac_dir/$ac_prog"
2143 # Check to see if the program is GNU ld. I'd rather use --version,
2144 # but apparently some GNU ld's only accept -v.
2145 # Break only if it was the GNU/non-GNU ld that we prefer.
2146 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2147 test "$with_gnu_ld" != no && break
2149 test "$with_gnu_ld" != yes && break
2155 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2160 if test -n "$LD"; then
2161 echo "$ac_t""$LD" 1>&6
2163 echo "$ac_t""no" 1>&6
2165 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2167 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2168 echo "configure:2169: checking if the linker ($LD) is GNU ld" >&5
2169 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2173 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2174 ac_cv_prog_gnu_ld=yes
2176 ac_cv_prog_gnu_ld=no
2180 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2183 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2184 echo "configure:2185: checking for BSD-compatible nm" >&5
2185 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 if test -n "$NM"; then
2189 # Let the user override the test.
2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2193 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2194 test -z "$ac_dir" && ac_dir=.
2195 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2196 # Check to see if the nm accepts a BSD-compat flag.
2197 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2198 # nm: unknown option "B" ignored
2199 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2200 ac_cv_path_NM="$ac_dir/nm -B"
2202 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2203 ac_cv_path_NM="$ac_dir/nm -p"
2206 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2207 continue # so that we can try to find one that supports BSD flags
2212 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2217 echo "$ac_t""$NM" 1>&6
2220 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2221 echo "configure:2222: checking whether ln -s works" >&5
2222 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2226 if ln -s X conftestdata 2>/dev/null
2229 ac_cv_prog_LN_S="ln -s"
2234 LN_S="$ac_cv_prog_LN_S"
2235 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2236 echo "$ac_t""yes" 1>&6
2238 echo "$ac_t""no" 1>&6
2242 # Check for any special flags to pass to ltconfig.
2243 libtool_flags="--cache-file=$cache_file"
2244 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2245 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2246 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2247 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2248 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2252 if test "${enable_libtool_lock+set}" = set; then
2253 enableval="$enable_libtool_lock"
2257 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2258 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2260 # Some flags need to be propagated to the compiler or linker for good
2264 # Find out which ABI we are using.
2265 echo '#line 2266 "configure"' > conftest.$ac_ext
2266 if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2267 case "`/usr/bin/file conftest.o`" in
2283 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2284 SAVE_CFLAGS="$CFLAGS"
2285 CFLAGS="$CFLAGS -belf"
2286 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2287 echo "configure:2288: checking whether the C compiler needs -belf" >&5
2288 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 lt_cv_cc_needs_belf=yes
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 lt_cv_cc_needs_belf=no
2311 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2312 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2313 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2314 CFLAGS="$SAVE_CFLAGS"
2322 # Save cache, so that ltconfig can load it
2325 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2326 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2327 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2328 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2329 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2330 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2331 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2332 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2334 # Reload cache, that may have been modified by ltconfig
2337 # This can be used to rebuild libtool when needed
2338 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2340 # Always use our own libtool.
2341 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2343 # Redirect the config.log output again, so that the ltconfig log is not
2344 # clobbered by the next message.
2345 exec 5>>./config.log
2348 # Extract the first word of "sendmail", so it can be a program name with args.
2349 set dummy sendmail; ac_word=$2
2350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2351 echo "configure:2352: checking for $ac_word" >&5
2352 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2357 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2360 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2364 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2365 for ac_dir in $ac_dummy; do
2366 test -z "$ac_dir" && ac_dir=.
2367 if test -f $ac_dir/$ac_word; then
2368 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2373 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2377 SENDMAIL="$ac_cv_path_SENDMAIL"
2378 if test -n "$SENDMAIL"; then
2379 echo "$ac_t""$SENDMAIL" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 # Extract the first word of "vi", so it can be a program name with args.
2385 set dummy vi; ac_word=$2
2386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_word" >&5
2388 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2393 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2396 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2400 ac_dummy="$PATH:/usr/ucb"
2401 for ac_dir in $ac_dummy; do
2402 test -z "$ac_dir" && ac_dir=.
2403 if test -f $ac_dir/$ac_word; then
2404 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2409 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2413 EDITOR="$ac_cv_path_EDITOR"
2414 if test -n "$EDITOR"; then
2415 echo "$ac_t""$EDITOR" 1>&6
2417 echo "$ac_t""no" 1>&6
2420 # Extract the first word of "finger", so it can be a program name with args.
2421 set dummy finger; ac_word=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2429 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2432 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2436 ac_dummy="$PATH:/usr/ucb"
2437 for ac_dir in $ac_dummy; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if test -f $ac_dir/$ac_word; then
2440 ac_cv_path_FINGER="$ac_dir/$ac_word"
2445 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2449 FINGER="$ac_cv_path_FINGER"
2450 if test -n "$FINGER"; then
2451 echo "$ac_t""$FINGER" 1>&6
2453 echo "$ac_t""no" 1>&6
2458 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2459 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2461 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2462 echo "configure: warning: programs compiled here do run here..." 1>&2
2463 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2465 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2466 echo "configure: warning: programs compiled here do not run here..." 1>&2
2467 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2470 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2471 echo "configure:2472: checking how to run the C preprocessor" >&5
2472 # On Suns, sometimes $CPP names a directory.
2473 if test -n "$CPP" && test -d "$CPP"; then
2476 if test -z "$CPP"; then
2477 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 # This must be in double quotes, not single quotes, because CPP may get
2481 # substituted into the Makefile and "${CC-cc}" will confuse make.
2483 # On the NeXT, cc -E runs the code through the compiler's parser,
2484 # not just through cpp.
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2494 if test -z "$ac_err"; then
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 CPP="${CC-cc} -E -traditional-cpp"
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2511 if test -z "$ac_err"; then
2515 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5
2518 CPP="${CC-cc} -nologo -E"
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2526 { (eval echo configure:2527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2528 if test -z "$ac_err"; then
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2542 ac_cv_prog_CPP="$CPP"
2544 CPP="$ac_cv_prog_CPP"
2546 ac_cv_prog_CPP="$CPP"
2548 echo "$ac_t""$CPP" 1>&6
2551 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2552 echo "configure:2553: checking for AIX" >&5
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2562 egrep "yes" >/dev/null 2>&1; then
2564 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2565 #define _ALL_SOURCE 1
2570 echo "$ac_t""no" 1>&6
2575 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2576 echo "configure:2577: checking for POSIXized ISC" >&5
2577 if test -d /etc/conf/kconfig.d &&
2578 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2580 echo "$ac_t""yes" 1>&6
2581 ISC=yes # If later tests want to check for ISC.
2582 cat >> confdefs.h <<\EOF
2583 #define _POSIX_SOURCE 1
2586 if test "$GCC" = yes; then
2592 echo "$ac_t""no" 1>&6
2596 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2597 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2598 echo "configure:2599: checking for minix/config.h" >&5
2599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 #include <minix/config.h>
2607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2608 { (eval echo configure:2609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2610 if test -z "$ac_err"; then
2612 eval "ac_cv_header_$ac_safe=yes"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 eval "ac_cv_header_$ac_safe=no"
2622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2626 echo "$ac_t""no" 1>&6
2630 if test "$MINIX" = yes; then
2631 cat >> confdefs.h <<\EOF
2632 #define _POSIX_SOURCE 1
2635 cat >> confdefs.h <<\EOF
2636 #define _POSIX_1_SOURCE 2
2639 cat >> confdefs.h <<\EOF
2646 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2647 echo "configure:2648: checking for be_app in -lbe" >&5
2648 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
2649 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 ac_save_LIBS="$LIBS"
2653 LIBS="-lbe -lroot -lnet $LIBS"
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2657 /* Override any gcc2 internal prototype to avoid an error. */
2658 /* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2668 eval "ac_cv_lib_$ac_lib_var=yes"
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 eval "ac_cv_lib_$ac_lib_var=no"
2676 LIBS="$ac_save_LIBS"
2679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 LIBS="$LIBS -lbe -lroot -lnet"
2683 echo "$ac_t""no" 1>&6
2691 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2692 echo "configure:2693: checking for ${CC-cc} option to accept ANSI C" >&5
2693 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 am_cv_prog_cc_stdc=no
2698 # Don't try gcc -ansi; that turns off useful extensions and
2699 # breaks some systems' header files.
2700 # AIX -qlanglvl=ansi
2701 # Ultrix and OSF/1 -std1
2702 # HP-UX 10.20 and later -Ae
2703 # HP-UX older versions -Aa -D_HPUX_SOURCE
2704 # SVR4 -Xc -D__EXTENSIONS__
2705 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2707 CC="$ac_save_CC $ac_arg"
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2713 #include <sys/types.h>
2714 #include <sys/stat.h>
2715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2716 struct buf { int x; };
2717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2718 static char *e (p, i)
2724 static char *f (char * (*g) (char **, int), char **p, ...)
2729 s = g (p, va_arg (v,int));
2733 int test (int i, double x);
2734 struct s1 {int (*f) (int a);};
2735 struct s2 {int (*f) (double a);};
2736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2746 if { (eval echo configure:2747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2748 am_cv_prog_cc_stdc="$ac_arg"; break
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2759 if test -z "$am_cv_prog_cc_stdc"; then
2760 echo "$ac_t""none needed" 1>&6
2762 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2764 case "x$am_cv_prog_cc_stdc" in
2766 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2769 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2770 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2776 echo $ac_n "checking for socket""... $ac_c" 1>&6
2777 echo "configure:2778: checking for socket" >&5
2778 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char socket(); below. */
2787 /* Override any gcc2 internal prototype to avoid an error. */
2788 /* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub_socket) || defined (__stub___socket)
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2808 eval "ac_cv_func_socket=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 eval "ac_cv_func_socket=no"
2818 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2822 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2825 echo "configure:2826: checking for main in -lsocket" >&5
2826 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
2827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 ac_save_LIBS="$LIBS"
2831 LIBS="-lsocket $LIBS"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 eval "ac_cv_lib_$ac_lib_var=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_lib_$ac_lib_var=no"
2850 LIBS="$ac_save_LIBS"
2853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2856 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2857 cat >> confdefs.h <<EOF
2858 #define $ac_tr_lib 1
2861 LIBS="-lsocket $LIBS"
2864 echo "$ac_t""no" 1>&6
2867 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2868 echo "configure:2869: checking for main in -lnet" >&5
2869 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
2870 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 ac_save_LIBS="$LIBS"
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885 eval "ac_cv_lib_$ac_lib_var=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 eval "ac_cv_lib_$ac_lib_var=no"
2893 LIBS="$ac_save_LIBS"
2896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2899 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2900 cat >> confdefs.h <<EOF
2901 #define $ac_tr_lib 1
2907 echo "$ac_t""no" 1>&6
2910 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2911 echo "configure:2912: checking for main in -lnsl_s" >&5
2912 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
2913 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 ac_save_LIBS="$LIBS"
2917 LIBS="-lnsl_s $LIBS"
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2926 if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2928 eval "ac_cv_lib_$ac_lib_var=yes"
2930 echo "configure: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2933 eval "ac_cv_lib_$ac_lib_var=no"
2936 LIBS="$ac_save_LIBS"
2939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2940 echo "$ac_t""yes" 1>&6
2941 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2943 cat >> confdefs.h <<EOF
2944 #define $ac_tr_lib 1
2947 LIBS="-lnsl_s $LIBS"
2950 echo "$ac_t""no" 1>&6
2953 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2954 echo "configure:2955: checking for main in -lnsl" >&5
2955 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
2956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 ac_save_LIBS="$LIBS"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2971 eval "ac_cv_lib_$ac_lib_var=yes"
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 eval "ac_cv_lib_$ac_lib_var=no"
2979 LIBS="$ac_save_LIBS"
2982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2986 cat >> confdefs.h <<EOF
2987 #define $ac_tr_lib 1
2993 echo "$ac_t""no" 1>&6
2996 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2997 echo "configure:2998: checking for socket in -linet" >&5
2998 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
2999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 ac_save_LIBS="$LIBS"
3004 cat > conftest.$ac_ext <<EOF
3005 #line 3006 "configure"
3006 #include "confdefs.h"
3007 /* Override any gcc2 internal prototype to avoid an error. */
3008 /* We use char because int might match the return type of a gcc2
3009 builtin and then its argument prototype would still apply. */
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3018 eval "ac_cv_lib_$ac_lib_var=yes"
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3023 eval "ac_cv_lib_$ac_lib_var=no"
3026 LIBS="$ac_save_LIBS"
3029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3033 cat >> confdefs.h <<EOF
3034 #define $ac_tr_lib 1
3040 echo "$ac_t""no" 1>&6
3043 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3044 echo "configure:3045: checking for main in -lgen" >&5
3045 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
3046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 ac_save_LIBS="$LIBS"
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 eval "ac_cv_lib_$ac_lib_var=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 eval "ac_cv_lib_$ac_lib_var=no"
3069 LIBS="$ac_save_LIBS"
3072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3074 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3076 cat >> confdefs.h <<EOF
3077 #define $ac_tr_lib 1
3083 echo "$ac_t""no" 1>&6
3090 for ac_func in res_search
3092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_func" >&5
3094 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 /* System header to define __stub macros and hopefully few prototypes,
3101 which can conflict with char $ac_func(); below. */
3103 /* Override any gcc2 internal prototype to avoid an error. */
3104 /* We use char because int might match the return type of a gcc2
3105 builtin and then its argument prototype would still apply. */
3111 /* The GNU C library defines this for functions which it implements
3112 to always fail with ENOSYS. Some functions are actually named
3113 something starting with __ and the normal name is an alias. */
3114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3122 if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3124 eval "ac_cv_func_$ac_func=yes"
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3129 eval "ac_cv_func_$ac_func=no"
3134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3137 cat >> confdefs.h <<EOF
3138 #define $ac_tr_func 1
3142 echo "$ac_t""no" 1>&6
3146 if test $ac_cv_func_res_search = "no" ; then
3147 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3148 echo "configure:3149: checking for res_search in -lbind" >&5
3149 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
3150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_save_LIBS="$LIBS"
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3167 if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3169 eval "ac_cv_lib_$ac_lib_var=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.$ac_ext >&5
3174 eval "ac_cv_lib_$ac_lib_var=no"
3177 LIBS="$ac_save_LIBS"
3180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3184 cat >> confdefs.h <<EOF
3185 #define $ac_tr_lib 1
3191 echo "$ac_t""no" 1>&6
3194 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3195 cat >> confdefs.h <<\EOF
3196 #define HAVE_RES_SEARCH 1
3200 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3201 echo "configure:3202: checking for res_search in -lresolv" >&5
3202 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
3203 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 ac_save_LIBS="$LIBS"
3207 LIBS="-lresolv $LIBS"
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3220 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3222 eval "ac_cv_lib_$ac_lib_var=yes"
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3227 eval "ac_cv_lib_$ac_lib_var=no"
3230 LIBS="$ac_save_LIBS"
3233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3237 cat >> confdefs.h <<EOF
3238 #define $ac_tr_lib 1
3241 LIBS="-lresolv $LIBS"
3244 echo "$ac_t""no" 1>&6
3247 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_RES_SEARCH 1
3256 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3257 echo "configure:3258: checking for sigset in -lV3" >&5
3258 ac_lib_var=`echo V3'_'sigset | 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"
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 V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_lib 1
3300 echo "$ac_t""no" 1>&6
3306 if test $ol_enable_ldapd != no ; then
3307 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3308 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3309 echo "configure:3310: checking for main in -lxtpp" >&5
3310 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
3311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 ac_save_LIBS="$LIBS"
3315 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_lib_$ac_lib_var=no"
3334 LIBS="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3341 cat >> confdefs.h <<\EOF
3345 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3348 echo "$ac_t""no" 1>&6
3352 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3353 echo "configure:3354: checking for main in -ldsap" >&5
3354 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
3355 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 ac_save_LIBS="$LIBS"
3359 LIBS="-ldsap -lisode $LIBS"
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 eval "ac_cv_lib_$ac_lib_var=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3375 eval "ac_cv_lib_$ac_lib_var=no"
3378 LIBS="$ac_save_LIBS"
3381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3385 cat >> confdefs.h <<\EOF
3389 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3392 echo "$ac_t""no" 1>&6
3396 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3397 echo "configure:3398: checking for main in -lisode" >&5
3398 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
3399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 ac_save_LIBS="$LIBS"
3403 LIBS="-lisode $LIBS"
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3429 cat >> confdefs.h <<\EOF
3430 #define HAVE_ISODE 1
3433 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3436 echo "$ac_t""no" 1>&6
3442 if test $ol_link_isode != no; then
3443 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3444 echo "configure:3445: checking for main in -lpp" >&5
3445 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
3446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS="$LIBS"
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3459 if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3461 eval "ac_cv_lib_$ac_lib_var=yes"
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3466 eval "ac_cv_lib_$ac_lib_var=no"
3469 LIBS="$ac_save_LIBS"
3472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3473 echo "$ac_t""yes" 1>&6
3475 cat >> confdefs.h <<\EOF
3479 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3482 echo "$ac_t""no" 1>&6
3487 # Extract the first word of "pepsy", so it can be a program name with args.
3488 set dummy pepsy; ac_word=$2
3489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3490 echo "configure:3491: checking for $ac_word" >&5
3491 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3496 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3499 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3504 for ac_dir in $ac_dummy; do
3505 test -z "$ac_dir" && ac_dir=.
3506 if test -f $ac_dir/$ac_word; then
3507 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3515 PEPSY="$ac_cv_path_PEPSY"
3516 if test -n "$PEPSY"; then
3517 echo "$ac_t""$PEPSY" 1>&6
3519 echo "$ac_t""no" 1>&6
3526 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3527 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3531 echo "configure:3532: checking for $ac_hdr" >&5
3532 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3541 { (eval echo configure:3542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3543 if test -z "$ac_err"; then
3545 eval "ac_cv_header_$ac_safe=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_header_$ac_safe=no"
3555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3558 cat >> confdefs.h <<EOF
3559 #define $ac_tr_hdr 1
3563 echo "$ac_t""no" 1>&6
3568 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3569 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3570 echo "configure:3571: checking for main in -lkrb4" >&5
3571 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
3572 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3576 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 eval "ac_cv_lib_$ac_lib_var=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 eval "ac_cv_lib_$ac_lib_var=no"
3595 LIBS="$ac_save_LIBS"
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3602 echo "$ac_t""no" 1>&6
3607 if test $have_k5 = yes ; then
3608 ol_with_kerberos=found
3609 ol_link_kerberos=yes
3611 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3613 LIBS="$KRB_LIBS $LIBS"
3615 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3616 echo "configure:3617: checking for des_debug in Kerberos libraries" >&5
3617 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3622 LIBS="$KRB_LIBS $LIBS"
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3627 #include <kerberosIV/krb.h>
3628 #include <kerberosIV/des.h>
3629 extern int des_debug;
3637 if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3639 ol_cv_var_des_debug=yes
3641 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3644 ol_cv_var_des_debug=no
3651 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3653 if test $ol_cv_var_des_debug = yes ; then
3654 cat >> confdefs.h <<\EOF
3655 #define HAVE_DES_DEBUG 1
3665 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3666 for ac_hdr in krb.h des.h
3668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3670 echo "configure:3671: checking for $ac_hdr" >&5
3671 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3680 { (eval echo configure:3681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3682 if test -z "$ac_err"; then
3684 eval "ac_cv_header_$ac_safe=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_header_$ac_safe=no"
3694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_hdr 1
3702 echo "$ac_t""no" 1>&6
3707 if test $ac_cv_header_krb_h = yes ; then
3708 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3709 echo "configure:3710: checking for main in -lkrb" >&5
3710 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
3711 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 ac_save_LIBS="$LIBS"
3715 LIBS="-lkrb -ldes $LIBS"
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3724 if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3726 eval "ac_cv_lib_$ac_lib_var=yes"
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 eval "ac_cv_lib_$ac_lib_var=no"
3734 LIBS="$ac_save_LIBS"
3737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3741 echo "$ac_t""no" 1>&6
3746 if test $have_k4 = yes ; then
3747 ol_with_kerberos=found
3748 ol_link_kerberos=yes
3750 KRB_LIBS="-lkrb -ldes"
3755 if test $ol_link_kerberos = yes ; then
3756 cat >> confdefs.h <<\EOF
3757 #define HAVE_KERBEROS 1
3763 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3764 -o $ol_with_threads = posix ; then
3766 for ac_hdr in pthread.h sched.h
3768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_hdr" >&5
3771 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3780 { (eval echo configure:3781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3782 if test -z "$ac_err"; then
3784 eval "ac_cv_header_$ac_safe=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_header_$ac_safe=no"
3794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_hdr 1
3802 echo "$ac_t""no" 1>&6
3807 if test $ac_cv_header_pthread_h = yes ; then
3808 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3809 echo "configure:3810: checking POSIX thread version" >&5
3810 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3818 # include <pthread.h>
3819 /* this check could be improved */
3820 # ifdef PTHREAD_ONCE_INIT
3821 pthread_version_final
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 egrep "pthread_version_final" >/dev/null 2>&1; then
3828 ol_pthread_final=yes
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3840 # include <pthread.h>
3841 /* this check could be improved */
3842 # ifdef pthread_once_init
3843 pthread_version_draft4
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3850 ol_pthread_draft4=yes
3853 ol_pthread_draft4=no
3858 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3859 ol_cv_pthread_version=final
3860 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3861 ol_cv_pthread_version=draft4
3863 ol_cv_pthread_version=unknown
3868 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3871 if test $ol_cv_pthread_version = final ; then
3872 cat >> confdefs.h <<\EOF
3873 #define HAVE_PTHREADS_FINAL 1
3876 elif test $ol_cv_pthread_version = draft4 ; then
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_PTHREADS_D4 1
3882 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3885 # consider threads found
3886 ol_with_threads=found
3889 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3890 echo "configure:3891: checking for LinuxThreads" >&5
3891 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3895 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3896 if test "$res" -gt 0 ; then
3897 ol_cv_linux_threads=yes
3899 ol_cv_linux_threads=no
3904 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3907 if test $ol_cv_linux_threads = yes ; then
3908 cat >> confdefs.h <<\EOF
3909 #define HAVE_LINUX_THREADS 1
3915 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3916 echo "configure:3917: checking for pthread_create" >&5
3917 if eval "test \"\${ac_cv_func_pthread_create+set}\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* System header to define __stub macros and hopefully few prototypes,
3924 which can conflict with char pthread_create(); below. */
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3929 char pthread_create();
3934 /* The GNU C library defines this for functions which it implements
3935 to always fail with ENOSYS. Some functions are actually named
3936 something starting with __ and the normal name is an alias. */
3937 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3945 if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3947 eval "ac_cv_func_pthread_create=yes"
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3952 eval "ac_cv_func_pthread_create=no"
3957 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3961 echo "$ac_t""no" 1>&6
3965 if test $ol_link_threads = no ; then
3966 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3967 echo "configure:3968: checking for pthread_create with -kthread" >&5
3968 if eval "test \"\${ol_cv_kthread_flag+set}\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3973 LIBS="-kthread $LIBS"
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 #include <pthread.h>
3979 pthread_create(NULL,NULL,NULL,NULL);
3982 if { (eval echo configure:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3984 ol_cv_kthread_flag=yes
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3989 ol_cv_kthread_flag=no
3996 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3998 if test $ol_cv_kthread_flag = yes ; then
3999 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4000 ol_link_threads=posix
4004 if test $ol_link_threads = no ; then
4005 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4006 echo "configure:4007: checking for pthread_create with -pthread" >&5
4007 if eval "test \"\${ol_cv_pthread_flag+set}\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4012 LIBS="-pthread $LIBS"
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 #include <pthread.h>
4018 pthread_create(NULL,NULL,NULL,NULL);
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 ol_cv_pthread_flag=yes
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 ol_cv_pthread_flag=no
4035 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4037 if test $ol_cv_pthread_flag = yes ; then
4038 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4039 ol_link_threads=posix
4043 if test $ol_link_threads = no ; then
4044 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4045 echo "configure:4046: checking for pthread_create with -pthreads" >&5
4046 if eval "test \"\${ol_cv_pthreads_flag+set}\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4051 LIBS="-pthreads $LIBS"
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #include <pthread.h>
4057 pthread_create(NULL,NULL,NULL,NULL);
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4062 ol_cv_pthreads_flag=yes
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 ol_cv_pthreads_flag=no
4074 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4076 if test $ol_cv_pthreads_flag = yes ; then
4077 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4078 ol_link_threads=posix
4082 if test $ol_link_threads = no ; then
4083 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4084 echo "configure:4085: checking for pthread_create with -thread" >&5
4085 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4090 LIBS="-thread $LIBS"
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4094 char pthread_create();
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101 ol_cv_thread_flag=yes
4103 echo "configure: failed program was:" >&5
4104 cat conftest.$ac_ext >&5
4106 ol_cv_thread_flag=no
4113 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4115 if test $ol_cv_thread_flag = yes ; then
4116 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4117 ol_link_threads=posix
4121 if test $ol_link_threads = no ; then
4122 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4123 echo "configure:4124: checking for pthread_create with -mt" >&5
4124 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 char pthread_create();
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 ol_cv_thread_flag=yes
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 ol_cv_thread_flag=no
4152 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4154 if test $ol_cv_thread_flag = yes ; then
4155 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4156 ol_link_threads=posix
4160 if test $ol_link_threads = no ; then
4162 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4163 echo "configure:4164: checking for pthread_mutex_unlock in -lpthread" >&5
4164 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-:%__p__%'`
4165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 ac_save_LIBS="$LIBS"
4169 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176 char pthread_mutex_unlock();
4179 pthread_mutex_unlock()
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 eval "ac_cv_lib_$ac_lib_var=no"
4192 LIBS="$ac_save_LIBS"
4195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4198 ol_link_threads=posix
4199 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4200 if test $ol_with_yielding_select = auto ; then
4201 ol_with_yielding_select=yes
4205 echo "$ac_t""no" 1>&6
4212 if test $ol_link_threads = no ; then
4214 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4215 echo "configure:4216: checking for pthread_mutex_lock in -lpthread" >&5
4216 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-:%__p__%'`
4217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 ac_save_LIBS="$LIBS"
4221 LIBS="-lpthread -lmach -lexc $LIBS"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4228 char pthread_mutex_lock();
4231 pthread_mutex_lock()
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 eval "ac_cv_lib_$ac_lib_var=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_lib_$ac_lib_var=no"
4244 LIBS="$ac_save_LIBS"
4247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4250 ol_link_threads=posix
4251 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4252 if test $ol_with_yielding_select = auto ; then
4253 ol_with_yielding_select=yes
4257 echo "$ac_t""no" 1>&6
4264 if test $ol_link_threads = no ; then
4266 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4267 echo "configure:4268: checking for pthread_mutex_trylock in -lpthread" >&5
4268 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-:%__p__%'`
4269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 ac_save_LIBS="$LIBS"
4273 LIBS="-lpthread -lexc $LIBS"
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4277 /* Override any gcc2 internal prototype to avoid an error. */
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4280 char pthread_mutex_trylock();
4283 pthread_mutex_trylock()
4286 if { (eval echo configure:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4288 eval "ac_cv_lib_$ac_lib_var=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.$ac_ext >&5
4293 eval "ac_cv_lib_$ac_lib_var=no"
4296 LIBS="$ac_save_LIBS"
4299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4302 ol_link_threads=posix
4303 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4304 if test $ol_with_yielding_select = auto ; then
4305 ol_with_yielding_select=yes
4309 echo "$ac_t""no" 1>&6
4316 if test $ol_link_threads = no ; then
4318 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4319 echo "configure:4320: checking for pthread_create in -lpthread" >&5
4320 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-:%__p__%'`
4321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 ac_save_LIBS="$LIBS"
4325 LIBS="-lpthread $LIBS"
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 /* Override any gcc2 internal prototype to avoid an error. */
4330 /* We use char because int might match the return type of a gcc2
4331 builtin and then its argument prototype would still apply. */
4332 char pthread_create();
4338 if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4340 eval "ac_cv_lib_$ac_lib_var=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4345 eval "ac_cv_lib_$ac_lib_var=no"
4348 LIBS="$ac_save_LIBS"
4351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4354 ol_link_threads=posix
4355 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4357 echo "$ac_t""no" 1>&6
4364 if test $ol_link_threads = no ; then
4366 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4367 echo "configure:4368: checking for pthread_create in -lc_r" >&5
4368 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-:%__p__%'`
4369 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_save_LIBS="$LIBS"
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* Override any gcc2 internal prototype to avoid an error. */
4378 /* We use char because int might match the return type of a gcc2
4379 builtin and then its argument prototype would still apply. */
4380 char pthread_create();
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 eval "ac_cv_lib_$ac_lib_var=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_lib_$ac_lib_var=no"
4396 LIBS="$ac_save_LIBS"
4399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4402 ol_link_threads=posix
4403 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4405 echo "$ac_t""no" 1>&6
4412 if test $ol_link_threads = no ; then
4414 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4415 echo "configure:4416: checking for pthread_create in -lpthreads" >&5
4416 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-:%__p__%'`
4417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS="$LIBS"
4421 LIBS="-lpthreads $LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4428 char pthread_create();
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4450 ol_link_threads=posix
4451 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4453 echo "$ac_t""no" 1>&6
4460 if test $ol_link_threads = no ; then
4462 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4463 echo "configure:4464: checking for pthread_join in -lpthreads" >&5
4464 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-:%__p__%'`
4465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 ac_save_LIBS="$LIBS"
4469 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4476 char pthread_join();
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 eval "ac_cv_lib_$ac_lib_var=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 eval "ac_cv_lib_$ac_lib_var=no"
4492 LIBS="$ac_save_LIBS"
4495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4498 ol_link_threads=posix
4499 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4502 echo "$ac_t""no" 1>&6
4509 if test $ol_link_threads = no; then
4511 LIBS="$LIBS -lpthread"
4512 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4513 echo "configure:4514: checking for pthread_create() in HP-UX -lpthread" >&5
4514 ol_try_pthread_hpux_11=no
4515 if eval "test \"\${ol_cv_pthread_hpux_11+set}\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4523 #include <pthread.h>
4525 #ifndef ELFABI_HPUX_REL11
4530 pthread_create(NULL, NULL, NULL, NULL);
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 ol_try_pthread_hpux_11=yes
4536 ol_cv_pthread_hpux_11=yes
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 ol_cv_pthread_hpux_11=no
4546 echo "$ac_t""yes" 1>&6
4549 if test $ol_cv_pthread_hpux_11=yes ; then
4550 ol_link_threads=posix
4551 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4552 if test $ol_try_pthread_hpux_11=yes ; then
4553 ac_cv_func_pthread_attr_init=yes
4558 if test $ol_link_threads = no ; then
4559 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4560 echo "configure:4561: checking for pthread_create with -threads" >&5
4561 if eval "test \"\${ol_cv_thread_flag+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4566 LIBS="-threads $LIBS"
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 char pthread_create();
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 ol_cv_thread_flag=yes
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 ol_cv_thread_flag=no
4591 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4593 if test $ol_cv_thread_flag = yes ; then
4594 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4595 ol_link_threads=posix
4599 if test $ol_link_threads = no ; then
4601 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4602 echo "configure:4603: checking for pthread_mutex_unlock in -lpthreads" >&5
4603 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-:%__p__%'`
4604 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 ac_save_LIBS="$LIBS"
4608 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4615 char pthread_mutex_unlock();
4618 pthread_mutex_unlock()
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_lib_$ac_lib_var=no"
4631 LIBS="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4637 ol_link_threads=posix
4638 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4639 if test $ol_with_yielding_select = auto ; then
4640 ol_with_yielding_select=yes
4644 echo "$ac_t""no" 1>&6
4651 if test $ol_link_threads = no ; then
4653 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4654 echo "configure:4655: checking for pthread_mutex_lock in -lpthreads" >&5
4655 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-:%__p__%'`
4656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 ac_save_LIBS="$LIBS"
4660 LIBS="-lpthreads -lmach -lexc $LIBS"
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667 char pthread_mutex_lock();
4670 pthread_mutex_lock()
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_lib_$ac_lib_var=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_lib_$ac_lib_var=no"
4683 LIBS="$ac_save_LIBS"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4689 ol_link_threads=posix
4690 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4691 if test $ol_with_yielding_select = auto ; then
4692 ol_with_yielding_select=yes
4696 echo "$ac_t""no" 1>&6
4703 if test $ol_link_threads = no ; then
4705 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4706 echo "configure:4707: checking for pthread_mutex_trylock in -lpthreads" >&5
4707 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-:%__p__%'`
4708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 ac_save_LIBS="$LIBS"
4712 LIBS="-lpthreads -lexc $LIBS"
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 /* Override any gcc2 internal prototype to avoid an error. */
4717 /* We use char because int might match the return type of a gcc2
4718 builtin and then its argument prototype would still apply. */
4719 char pthread_mutex_trylock();
4722 pthread_mutex_trylock()
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 eval "ac_cv_lib_$ac_lib_var=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_lib_$ac_lib_var=no"
4735 LIBS="$ac_save_LIBS"
4738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4741 ol_link_threads=posix
4742 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4743 if test $ol_with_yielding_select = auto ; then
4744 ol_with_yielding_select=yes
4748 echo "$ac_t""no" 1>&6
4755 if test $ol_link_threads != no ; then
4756 cat >> confdefs.h <<\EOF
4757 #define HAVE_PTHREADS 1
4761 save_CPPFLAGS="$CPPFLAGS"
4763 LIBS="$LTHREAD_LIBS $LIBS"
4765 for ac_func in sched_yield pthread_yield
4767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4768 echo "configure:4769: checking for $ac_func" >&5
4769 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4775 /* System header to define __stub macros and hopefully few prototypes,
4776 which can conflict with char $ac_func(); below. */
4778 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4786 /* The GNU C library defines this for functions which it implements
4787 to always fail with ENOSYS. Some functions are actually named
4788 something starting with __ and the normal name is an alias. */
4789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799 eval "ac_cv_func_$ac_func=yes"
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 eval "ac_cv_func_$ac_func=no"
4809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4812 cat >> confdefs.h <<EOF
4813 #define $ac_tr_func 1
4817 echo "$ac_t""no" 1>&6
4822 if test $ac_cv_func_sched_yield = no -a \
4823 $ac_cv_func_pthread_yield = no ; then
4824 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4825 echo "configure:4826: checking for sched_yield in -lrt" >&5
4826 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
4827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 ac_save_LIBS="$LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_lib_$ac_lib_var=no"
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4860 cat >> confdefs.h <<\EOF
4861 #define HAVE_SCHED_YIELD 1
4864 ac_cv_func_sched_yield=yes
4866 echo "$ac_t""no" 1>&6
4867 ac_cv_func_sched_yield=no
4871 if test $ac_cv_func_sched_yield = no -a \
4872 $ac_cv_func_pthread_yield = no ; then
4873 for ac_func in thr_yield
4875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4876 echo "configure:4877: checking for $ac_func" >&5
4877 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* System header to define __stub macros and hopefully few prototypes,
4884 which can conflict with char $ac_func(); below. */
4886 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4894 /* The GNU C library defines this for functions which it implements
4895 to always fail with ENOSYS. Some functions are actually named
4896 something starting with __ and the normal name is an alias. */
4897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 eval "ac_cv_func_$ac_func=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4912 eval "ac_cv_func_$ac_func=no"
4917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4920 cat >> confdefs.h <<EOF
4921 #define $ac_tr_func 1
4925 echo "$ac_t""no" 1>&6
4930 if test $ac_cv_func_sched_yield = no -a \
4931 $ac_cv_func_pthread_yield = no -a \
4932 "$ac_cv_func_thr_yield" = no ; then
4933 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4936 for ac_func in pthread_kill
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4957 /* The GNU C library defines this for functions which it implements
4958 to always fail with ENOSYS. Some functions are actually named
4959 something starting with __ and the normal name is an alias. */
4960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970 eval "ac_cv_func_$ac_func=yes"
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 eval "ac_cv_func_$ac_func=no"
4980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4983 cat >> confdefs.h <<EOF
4984 #define $ac_tr_func 1
4988 echo "$ac_t""no" 1>&6
4993 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
4994 echo "configure:4995: checking for pthread_detach with <pthread.h>" >&5
4995 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <pthread.h>
5004 pthread_detach(NULL);
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 ol_cv_func_pthread_detach=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 ol_cv_func_pthread_detach=no
5020 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5022 if test $ol_cv_func_pthread_detach = no ; then
5023 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_PTHREAD_DETACH 1
5032 pthread_setconcurrency \
5033 pthread_getconcurrency \
5034 thr_setconcurrency \
5035 thr_getconcurrency \
5038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_func" >&5
5040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* System header to define __stub macros and hopefully few prototypes,
5047 which can conflict with char $ac_func(); below. */
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5057 /* The GNU C library defines this for functions which it implements
5058 to always fail with ENOSYS. Some functions are actually named
5059 something starting with __ and the normal name is an alias. */
5060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5070 eval "ac_cv_func_$ac_func=yes"
5072 echo "configure: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5075 eval "ac_cv_func_$ac_func=no"
5080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5083 cat >> confdefs.h <<EOF
5084 #define $ac_tr_func 1
5088 echo "$ac_t""no" 1>&6
5093 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5094 echo "configure:5095: checking if pthread_create() works" >&5
5095 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5099 if test "$cross_compiling" = yes; then
5100 ol_cv_pthread_create_works=yes
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5106 #include <pthread.h>
5108 #define NULL (void*)0
5111 static void *task(p)
5114 return (void *) (p == NULL);
5117 int main(argc, argv)
5122 exit(pthread_create(&t, NULL, task, NULL));
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5128 ol_cv_pthread_create_works=yes
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 ol_cv_pthread_create_works=no
5140 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5142 if test $ol_cv_pthread_create_works = no ; then
5143 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5146 if test $ol_with_yielding_select = auto ; then
5147 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5148 echo "configure:5149: checking if select yields when using pthreads" >&5
5149 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5153 if test "$cross_compiling" = yes; then
5155 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5161 #include <sys/types.h>
5162 #include <sys/time.h>
5164 #include <pthread.h>
5166 #define NULL (void*) 0
5169 static int fildes[2];
5171 static void *task(p)
5183 FD_SET(fildes[0], &rfds);
5185 /* we're not interested in any fds */
5186 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5193 exit(0); /* if we exit here, the select blocked the whole process */
5196 int main(argc, argv)
5202 /* create a pipe to select */
5203 if(pipe(&fildes[0])) {
5208 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5209 (void) pthread_setconcurrency(2);
5211 #ifdef HAVE_THR_SETCONCURRENCY
5212 /* Set Solaris LWP concurrency to 2 */
5213 thr_setconcurrency(2);
5217 pthread_create(&t, NULL, task, NULL);
5219 #if HAVE_SCHED_YIELD
5220 sched_yield(); /* make sure task runs first */
5222 #ifdef HAVE_PTHREAD_YIELD
5223 pthread_yield(); /* make sure task runs first */
5230 if { (eval echo configure:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5232 ol_cv_pthread_select_yields=no
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5237 ol_cv_pthread_select_yields=yes
5244 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5246 if test $ol_cv_pthread_select_yields = yes ; then
5247 ol_with_yielding_select=yes
5251 CPPFLAGS="$save_CPPFLAGS"
5254 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5258 if test $ol_with_threads = posix ; then
5259 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5263 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5264 -o $ol_with_threads = mach ; then
5266 for ac_hdr in mach/cthreads.h
5268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5270 echo "configure:5271: checking for $ac_hdr" >&5
5271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5282 if test -z "$ac_err"; then
5284 eval "ac_cv_header_$ac_safe=yes"
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 eval "ac_cv_header_$ac_safe=no"
5294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5297 cat >> confdefs.h <<EOF
5298 #define $ac_tr_hdr 1
5302 echo "$ac_t""no" 1>&6
5306 if test $ac_cv_header_mach_cthreads_h = yes ; then
5307 ol_with_threads=found
5309 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5310 echo "configure:5311: checking for cthread_fork" >&5
5311 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 /* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char cthread_fork(); below. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5323 char cthread_fork();
5328 /* The GNU C library defines this for functions which it implements
5329 to always fail with ENOSYS. Some functions are actually named
5330 something starting with __ and the normal name is an alias. */
5331 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 eval "ac_cv_func_cthread_fork=yes"
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5346 eval "ac_cv_func_cthread_fork=no"
5351 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5352 echo "$ac_t""yes" 1>&6
5355 echo "$ac_t""no" 1>&6
5359 if test $ol_link_threads = no ; then
5360 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5361 echo "configure:5362: checking for cthread_fork with -all_load" >&5
5362 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5367 LIBS="-all_load $LIBS"
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <mach/cthreads.h>
5374 cthread_fork((void *)0, (void *)0);
5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5380 ol_cv_cthread_all_load=yes
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 ol_cv_cthread_all_load=no
5392 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5394 if test $ol_cv_cthread_all_load = yes ; then
5395 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5396 ol_link_threads=mach
5400 if test $ol_link_threads != no ; then
5401 : check for cthread specific functionality here
5402 cat >> confdefs.h <<\EOF
5403 #define HAVE_MACH_CTHREADS 1
5407 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5411 if test $ol_with_threads = mach ; then
5412 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5416 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5417 -o $ol_with_threads = lwp ; then
5419 for ac_hdr in thread.h synch.h
5421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_hdr" >&5
5424 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5433 { (eval echo configure:5434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5435 if test -z "$ac_err"; then
5437 eval "ac_cv_header_$ac_safe=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 eval "ac_cv_header_$ac_safe=no"
5447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5450 cat >> confdefs.h <<EOF
5451 #define $ac_tr_hdr 1
5455 echo "$ac_t""no" 1>&6
5459 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5460 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5461 echo "configure:5462: checking for thr_create in -lthread" >&5
5462 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
5463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 ac_save_LIBS="$LIBS"
5467 LIBS="-lthread $LIBS"
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5482 eval "ac_cv_lib_$ac_lib_var=yes"
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 eval "ac_cv_lib_$ac_lib_var=no"
5490 LIBS="$ac_save_LIBS"
5493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5497 echo "$ac_t""no" 1>&6
5502 if test $have_thr = yes ; then
5503 cat >> confdefs.h <<\EOF
5507 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5510 if test $ol_with_yielding_select = auto ; then
5511 ol_with_yielding_select=yes
5515 thr_setconcurrency \
5516 thr_getconcurrency \
5519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_func" >&5
5521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* System header to define __stub macros and hopefully few prototypes,
5528 which can conflict with char $ac_func(); below. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5538 /* The GNU C library defines this for functions which it implements
5539 to always fail with ENOSYS. Some functions are actually named
5540 something starting with __ and the normal name is an alias. */
5541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 eval "ac_cv_func_$ac_func=yes"
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 eval "ac_cv_func_$ac_func=no"
5561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5564 cat >> confdefs.h <<EOF
5565 #define $ac_tr_func 1
5569 echo "$ac_t""no" 1>&6
5576 for ac_hdr in lwp/lwp.h
5578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5580 echo "configure:5581: checking for $ac_hdr" >&5
5581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5590 { (eval echo configure:5591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5592 if test -z "$ac_err"; then
5594 eval "ac_cv_header_$ac_safe=yes"
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 eval "ac_cv_header_$ac_safe=no"
5604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5607 cat >> confdefs.h <<EOF
5608 #define $ac_tr_hdr 1
5612 echo "$ac_t""no" 1>&6
5616 if test $ac_cv_header_lwp_lwp_h = yes ; then
5617 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5618 echo "configure:5619: checking for lwp_create in -llwp" >&5
5619 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
5620 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 ac_save_LIBS="$LIBS"
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 /* Override any gcc2 internal prototype to avoid an error. */
5629 /* We use char because int might match the return type of a gcc2
5630 builtin and then its argument prototype would still apply. */
5637 if { (eval echo configure:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5639 eval "ac_cv_lib_$ac_lib_var=yes"
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 eval "ac_cv_lib_$ac_lib_var=no"
5647 LIBS="$ac_save_LIBS"
5650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5651 echo "$ac_t""yes" 1>&6
5654 echo "$ac_t""no" 1>&6
5659 if test $have_lwp = yes ; then
5660 cat >> confdefs.h <<\EOF
5664 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5667 if test $ol_with_yielding_select = auto ; then
5668 ol_with_yielding_select=no
5674 if test $ol_with_yielding_select = yes ; then
5675 cat >> confdefs.h <<\EOF
5676 #define HAVE_YIELDING_SELECT 1
5681 if test $ol_with_threads = manual ; then
5684 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5686 for ac_hdr in pthread.h sched.h
5688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5690 echo "configure:5691: checking for $ac_hdr" >&5
5691 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5692 echo $ac_n "(cached) $ac_c" 1>&6
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5700 { (eval echo configure:5701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5702 if test -z "$ac_err"; then
5704 eval "ac_cv_header_$ac_safe=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_header_$ac_safe=no"
5714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5715 echo "$ac_t""yes" 1>&6
5716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5717 cat >> confdefs.h <<EOF
5718 #define $ac_tr_hdr 1
5722 echo "$ac_t""no" 1>&6
5726 for ac_func in sched_yield pthread_yield
5728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5729 echo "configure:5730: checking for $ac_func" >&5
5730 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 /* System header to define __stub macros and hopefully few prototypes,
5737 which can conflict with char $ac_func(); below. */
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5747 /* The GNU C library defines this for functions which it implements
5748 to always fail with ENOSYS. Some functions are actually named
5749 something starting with __ and the normal name is an alias. */
5750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 eval "ac_cv_func_$ac_func=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 eval "ac_cv_func_$ac_func=no"
5770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5771 echo "$ac_t""yes" 1>&6
5772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5773 cat >> confdefs.h <<EOF
5774 #define $ac_tr_func 1
5778 echo "$ac_t""no" 1>&6
5783 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5784 echo "configure:5785: checking for LinuxThreads" >&5
5785 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
5786 echo $ac_n "(cached) $ac_c" 1>&6
5789 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5790 if test "$res" -gt 0 ; then
5791 ol_cv_linux_threads=yes
5793 ol_cv_linux_threads=no
5798 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5801 for ac_hdr in mach/cthreads.h
5803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5805 echo "configure:5806: checking for $ac_hdr" >&5
5806 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5807 echo $ac_n "(cached) $ac_c" 1>&6
5809 cat > conftest.$ac_ext <<EOF
5810 #line 5811 "configure"
5811 #include "confdefs.h"
5814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5815 { (eval echo configure:5816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5817 if test -z "$ac_err"; then
5819 eval "ac_cv_header_$ac_safe=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_header_$ac_safe=no"
5829 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_hdr 1
5837 echo "$ac_t""no" 1>&6
5841 for ac_hdr in lwp/lwp.h
5843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_hdr" >&5
5846 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5855 { (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5857 if test -z "$ac_err"; then
5859 eval "ac_cv_header_$ac_safe=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_header_$ac_safe=no"
5869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5870 echo "$ac_t""yes" 1>&6
5871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5872 cat >> confdefs.h <<EOF
5873 #define $ac_tr_hdr 1
5877 echo "$ac_t""no" 1>&6
5881 for ac_hdr in thread.h synch.h
5883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_hdr" >&5
5886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5897 if test -z "$ac_err"; then
5899 eval "ac_cv_header_$ac_safe=yes"
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5905 eval "ac_cv_header_$ac_safe=no"
5909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5910 echo "$ac_t""yes" 1>&6
5911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5912 cat >> confdefs.h <<EOF
5913 #define $ac_tr_hdr 1
5917 echo "$ac_t""no" 1>&6
5923 if test $ol_link_threads != no ; then
5924 cat >> confdefs.h <<\EOF
5928 cat >> confdefs.h <<\EOF
5929 #define _REENTRANT 1
5932 cat >> confdefs.h <<\EOF
5933 #define THREAD_SAFE 1
5936 cat >> confdefs.h <<\EOF
5937 #define _THREAD_SAFE 1
5940 cat >> confdefs.h <<\EOF
5941 #define THREADSAFE 1
5944 cat >> confdefs.h <<\EOF
5945 #define _THREADSAFE 1
5948 cat >> confdefs.h <<\EOF
5949 #define _SGI_MP_SOURCE 1
5953 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5954 echo "configure:5955: checking for thread specific errno" >&5
5955 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 ol_cv_errno_thread_specific=yes
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 ol_cv_errno_thread_specific=no
5980 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5982 if test $ol_cv_errno_thread_specific != yes ; then
5983 LIBS="$LTHREAD_LIBS $LIBS"
5989 if test $ol_link_threads = no ; then
5990 if test $ol_with_threads = yes ; then
5991 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5994 if test $ol_with_threads = auto ; then
5995 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5999 cat >> confdefs.h <<\EOF
6000 #define NO_THREADS 1
6007 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6008 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6009 echo "configure:6010: checking for DB2 library" >&5
6010 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
6011 echo $ac_n "(cached) $ac_c" 1>&6
6014 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6015 echo "configure:6016: checking for db_open in -ldb" >&5
6016 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
6017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6018 echo $ac_n "(cached) $ac_c" 1>&6
6020 ac_save_LIBS="$LIBS"
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6025 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_lib_$ac_lib_var=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_lib_$ac_lib_var=no"
6044 LIBS="$ac_save_LIBS"
6047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6051 echo "$ac_t""no" 1>&6
6059 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_hdr" >&5
6066 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then
6079 eval "ac_cv_header_$ac_safe=yes"
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 eval "ac_cv_header_$ac_safe=no"
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6092 cat >> confdefs.h <<EOF
6093 #define $ac_tr_hdr 1
6097 echo "$ac_t""no" 1>&6
6101 if test $ac_cv_header_db_h = yes ; then
6102 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6103 echo "configure:6104: checking if db.h is DB2" >&5
6104 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure"
6110 #include "confdefs.h"
6113 /* this check could be improved */
6114 # ifdef DB_VERSION_MAJOR
6115 # if DB_VERSION_MAJOR == 2
6121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6122 egrep "__db_version_2" >/dev/null 2>&1; then
6124 ol_cv_header_db2=yes
6133 echo "$ac_t""$ol_cv_header_db2" 1>&6
6140 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6141 echo "configure:6142: checking for Berkeley DB2" >&5
6142 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6146 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6147 ol_cv_berkeley_db2=no
6149 ol_cv_berkeley_db2=yes
6154 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6155 if test $ol_cv_berkeley_db2 = yes ; then
6156 cat >> confdefs.h <<\EOF
6157 #define HAVE_BERKELEY_DB2 1
6163 if test $ol_cv_berkeley_db2 = yes ; then
6165 ol_with_ldbm_api=db2
6167 if test $ol_with_ldbm_type = hash ; then
6168 cat >> confdefs.h <<\EOF
6169 #define LDBM_USE_DBHASH 1
6173 cat >> confdefs.h <<\EOF
6174 #define LDBM_USE_DBBTREE 1
6179 if test $ol_cv_lib_db2 != yes ; then
6180 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6185 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6186 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6187 echo "configure:6188: checking for Berkeley DB library" >&5
6188 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6192 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6193 echo "configure:6194: checking for dbopen" >&5
6194 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 cat > conftest.$ac_ext <<EOF
6198 #line 6199 "configure"
6199 #include "confdefs.h"
6200 /* System header to define __stub macros and hopefully few prototypes,
6201 which can conflict with char dbopen(); below. */
6203 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 eval "ac_cv_func_dbopen=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_func_dbopen=no"
6234 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6238 echo "$ac_t""no" 1>&6
6240 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6241 echo "configure:6242: checking for dbopen in -ldb" >&5
6242 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
6243 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6244 echo $ac_n "(cached) $ac_c" 1>&6
6246 ac_save_LIBS="$LIBS"
6248 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure"
6250 #include "confdefs.h"
6251 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6262 eval "ac_cv_lib_$ac_lib_var=yes"
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 eval "ac_cv_lib_$ac_lib_var=no"
6270 LIBS="$ac_save_LIBS"
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6274 echo "$ac_t""yes" 1>&6
6277 echo "$ac_t""no" 1>&6
6288 echo "$ac_t""$ol_cv_lib_db" 1>&6
6291 for ac_hdr in db_185.h
6293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_hdr" >&5
6296 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6305 { (eval echo configure:6306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6307 if test -z "$ac_err"; then
6309 eval "ac_cv_header_$ac_safe=yes"
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6315 eval "ac_cv_header_$ac_safe=no"
6319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6320 echo "$ac_t""yes" 1>&6
6321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6322 cat >> confdefs.h <<EOF
6323 #define $ac_tr_hdr 1
6327 echo "$ac_t""no" 1>&6
6331 if test "$ol_cv_header_db2" = yes ; then
6333 ol_cv_header_db=$ac_cv_header_db_185_h
6335 ol_cv_header_db=$ac_cv_header_db_h
6340 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6341 echo "configure:6342: checking for Berkeley DB" >&5
6342 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6346 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6347 ol_cv_berkeley_db=no
6349 ol_cv_berkeley_db=yes
6354 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6355 if test $ol_cv_berkeley_db = yes ; then
6356 cat >> confdefs.h <<\EOF
6357 #define HAVE_BERKELEY_DB 1
6363 if test $ol_cv_berkeley_db = yes ; then
6367 if test $ol_with_ldbm_type = hash ; then
6368 cat >> confdefs.h <<\EOF
6369 #define LDBM_USE_DBHASH 1
6373 cat >> confdefs.h <<\EOF
6374 #define LDBM_USE_DBBTREE 1
6379 if test $ol_cv_lib_db != yes ; then
6380 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6385 if test $ol_with_ldbm_api = manual ; then
6388 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6390 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_hdr" >&5
6395 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6404 { (eval echo configure:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6406 if test -z "$ac_err"; then
6408 eval "ac_cv_header_$ac_safe=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_header_$ac_safe=no"
6418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6421 cat >> confdefs.h <<EOF
6422 #define $ac_tr_hdr 1
6426 echo "$ac_t""no" 1>&6
6432 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6433 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6434 ol_with_ldbm_api=none
6437 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6438 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6439 echo "configure:6440: checking for GDBM library" >&5
6440 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6444 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6445 echo "configure:6446: checking for gdbm_open" >&5
6446 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 /* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char gdbm_open(); below. */
6455 /* Override any gcc2 internal prototype to avoid an error. */
6456 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6463 /* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
6466 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6476 eval "ac_cv_func_gdbm_open=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6481 eval "ac_cv_func_gdbm_open=no"
6486 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6490 echo "$ac_t""no" 1>&6
6492 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6493 echo "configure:6494: checking for gdbm_open in -lgdbm" >&5
6494 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
6495 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 ac_save_LIBS="$LIBS"
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6504 /* We use char because int might match the return type of a gcc2
6505 builtin and then its argument prototype would still apply. */
6512 if { (eval echo configure:6513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6514 eval "ac_cv_lib_$ac_lib_var=yes"
6516 echo "configure: failed program was:" >&5
6517 cat conftest.$ac_ext >&5
6519 eval "ac_cv_lib_$ac_lib_var=no"
6522 LIBS="$ac_save_LIBS"
6525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6526 echo "$ac_t""yes" 1>&6
6527 ol_cv_lib_gdbm=-lgdbm
6529 echo "$ac_t""no" 1>&6
6540 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6543 for ac_hdr in gdbm.h
6545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_hdr" >&5
6548 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6557 { (eval echo configure:6558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6559 if test -z "$ac_err"; then
6561 eval "ac_cv_header_$ac_safe=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_header_$ac_safe=no"
6571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_hdr 1
6579 echo "$ac_t""no" 1>&6
6583 echo $ac_n "checking for db""... $ac_c" 1>&6
6584 echo "configure:6585: checking for db" >&5
6585 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6589 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6597 echo "$ac_t""$ol_cv_gdbm" 1>&6
6598 if test $ol_cv_gdbm = yes ; then
6599 cat >> confdefs.h <<\EOF
6606 if test $ol_cv_gdbm = yes ; then
6608 ol_with_ldbm_api=gdbm
6610 if test $ol_cv_lib_gdbm != yes ; then
6611 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6616 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
6617 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
6618 echo "configure:6619: checking for MDBM library" >&5
6619 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6623 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
6624 echo "configure:6625: checking for mdbm_set_chain" >&5
6625 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6630 "configure"
6630 #include "confdefs.h"
6631 /* System header to define __stub macros and hopefully few prototypes,
6632 which can conflict with char mdbm_set_chain(); below. */
6634 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637 char mdbm_set_chain();
6642 /* The GNU C library defines this for functions which it implements
6643 to always fail with ENOSYS. Some functions are actually named
6644 something starting with __ and the normal name is an alias. */
6645 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
6653 if { (eval echo configure:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6655 eval "ac_cv_func_mdbm_set_chain=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 eval "ac_cv_func_mdbm_set_chain=no"
6665 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
6666 echo "$ac_t""yes" 1>&6
6669 echo "$ac_t""no" 1>&6
6671 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
6672 echo "configure:6673: checking for mdbm_set_chain in -lmdbm" >&5
6673 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
6674 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 ac_save_LIBS="$LIBS"
6679 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6685 char mdbm_set_chain();
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_lib_$ac_lib_var=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_lib_$ac_lib_var=no"
6701 LIBS="$ac_save_LIBS"
6704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ol_cv_lib_mdbm=-lmdbm
6708 echo "$ac_t""no" 1>&6
6719 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
6722 for ac_hdr in mdbm.h
6724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6726 echo "configure:6727: checking for $ac_hdr" >&5
6727 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6738 if test -z "$ac_err"; then
6740 eval "ac_cv_header_$ac_safe=yes"
6743 echo "configure: failed program was:" >&5
6744 cat conftest.$ac_ext >&5
6746 eval "ac_cv_header_$ac_safe=no"
6750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6751 echo "$ac_t""yes" 1>&6
6752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6753 cat >> confdefs.h <<EOF
6754 #define $ac_tr_hdr 1
6758 echo "$ac_t""no" 1>&6
6762 echo $ac_n "checking for db""... $ac_c" 1>&6
6763 echo "configure:6764: checking for db" >&5
6764 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6768 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
6776 echo "$ac_t""$ol_cv_mdbm" 1>&6
6777 if test $ol_cv_mdbm = yes ; then
6778 cat >> confdefs.h <<\EOF
6785 if test $ol_cv_mdbm = yes ; then
6787 ol_with_ldbm_api=mdbm
6788 if test $ol_cv_lib_mdbm != yes ; then
6789 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
6794 if test $ol_with_ldbm_api = auto ; then
6795 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6796 elif test $ol_with_ldbm_api = ndbm ; then
6797 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6798 echo "configure:6799: checking for NDBM library" >&5
6799 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
6800 echo $ac_n "(cached) $ac_c" 1>&6
6803 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6804 echo "configure:6805: checking for dbm_open" >&5
6805 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 /* System header to define __stub macros and hopefully few prototypes,
6812 which can conflict with char dbm_open(); below. */
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 eval "ac_cv_func_dbm_open=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 eval "ac_cv_func_dbm_open=no"
6845 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6849 echo "$ac_t""no" 1>&6
6851 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6852 echo "configure:6853: checking for dbm_open in -lndbm" >&5
6853 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
6854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 ac_save_LIBS="$LIBS"
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6873 eval "ac_cv_lib_$ac_lib_var=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6878 eval "ac_cv_lib_$ac_lib_var=no"
6881 LIBS="$ac_save_LIBS"
6884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6886 ol_cv_lib_ndbm=-lndbm
6888 echo "$ac_t""no" 1>&6
6890 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6891 echo "configure:6892: checking for dbm_open in -ldbm" >&5
6892 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
6893 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6894 echo $ac_n "(cached) $ac_c" 1>&6
6896 ac_save_LIBS="$LIBS"
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 /* Override any gcc2 internal prototype to avoid an error. */
6902 /* We use char because int might match the return type of a gcc2
6903 builtin and then its argument prototype would still apply. */
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 eval "ac_cv_lib_$ac_lib_var=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 eval "ac_cv_lib_$ac_lib_var=no"
6920 LIBS="$ac_save_LIBS"
6923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6924 echo "$ac_t""yes" 1>&6
6925 ol_cv_lib_ndbm=-ldbm
6927 echo "$ac_t""no" 1>&6
6940 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6943 for ac_hdr in ndbm.h
6945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6947 echo "configure:6948: checking for $ac_hdr" >&5
6948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6949 echo $ac_n "(cached) $ac_c" 1>&6
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6957 { (eval echo configure:6958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6959 if test -z "$ac_err"; then
6961 eval "ac_cv_header_$ac_safe=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 eval "ac_cv_header_$ac_safe=no"
6971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6972 echo "$ac_t""yes" 1>&6
6973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6974 cat >> confdefs.h <<EOF
6975 #define $ac_tr_hdr 1
6979 echo "$ac_t""no" 1>&6
6983 echo $ac_n "checking for db""... $ac_c" 1>&6
6984 echo "configure:6985: checking for db" >&5
6985 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6989 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6997 echo "$ac_t""$ol_cv_ndbm" 1>&6
6998 if test $ol_cv_ndbm = yes ; then
6999 cat >> confdefs.h <<\EOF
7006 if test $ol_cv_ndbm = yes ; then
7008 ol_with_ldbm_api=ndbm
7010 if test $ol_cv_lib_ndbm != yes ; then
7011 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
7016 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
7017 echo "configure: warning: could not find suitable LDBM backend" 1>&2
7018 if test $ol_enable_ldbm = yes ; then
7019 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
7022 echo "configure: warning: disabling LDBM" 1>&2
7026 if test $ol_enable_wrappers != no ; then
7027 for ac_hdr in tcpd.h
7029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7031 echo "configure:7032: checking for $ac_hdr" >&5
7032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7033 echo $ac_n "(cached) $ac_c" 1>&6
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7041 { (eval echo configure:7042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7043 if test -z "$ac_err"; then
7045 eval "ac_cv_header_$ac_safe=yes"
7048 echo "configure: failed program was:" >&5
7049 cat conftest.$ac_ext >&5
7051 eval "ac_cv_header_$ac_safe=no"
7055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7058 cat >> confdefs.h <<EOF
7059 #define $ac_tr_hdr 1
7063 echo "$ac_t""no" 1>&6
7068 if test $ac_cv_header_tcpd_h != yes ; then
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7075 int allow_severity = 0;
7076 int deny_severity = 0;
7082 if { (eval echo configure:7083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7094 if test $have_wrappers = yes ; then
7095 cat >> confdefs.h <<\EOF
7101 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
7102 echo "configure:7103: checking for main in -lnsl" >&5
7103 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
7104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7105 echo $ac_n "(cached) $ac_c" 1>&6
7107 ac_save_LIBS="$LIBS"
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 eval "ac_cv_lib_$ac_lib_var=yes"
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 eval "ac_cv_lib_$ac_lib_var=no"
7127 LIBS="$ac_save_LIBS"
7130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7131 echo "$ac_t""yes" 1>&6
7132 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7134 cat >> confdefs.h <<EOF
7135 #define $ac_tr_lib 1
7141 echo "$ac_t""no" 1>&6
7145 echo "configure: warning: could not find -lwrap" 1>&2
7146 if test $ol_enable_wrappers = yes ; then
7147 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7150 echo "configure: warning: disabling wrappers support" 1>&2
7151 ol_enable_wrappers=no
7156 if test $ol_enable_dmalloc != no ; then
7157 for ac_hdr in dmalloc.h
7159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7161 echo "configure:7162: checking for $ac_hdr" >&5
7162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7171 { (eval echo configure:7172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7173 if test -z "$ac_err"; then
7175 eval "ac_cv_header_$ac_safe=yes"
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 eval "ac_cv_header_$ac_safe=no"
7185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_hdr 1
7193 echo "$ac_t""no" 1>&6
7197 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7198 echo "configure:7199: checking for dmalloc_shutdown in -ldmalloc" >&5
7199 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
7200 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 ac_save_LIBS="$LIBS"
7204 LIBS="-ldmalloc $LIBS"
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* Override any gcc2 internal prototype to avoid an error. */
7209 /* We use char because int might match the return type of a gcc2
7210 builtin and then its argument prototype would still apply. */
7211 char dmalloc_shutdown();
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219 eval "ac_cv_lib_$ac_lib_var=yes"
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 eval "ac_cv_lib_$ac_lib_var=no"
7227 LIBS="$ac_save_LIBS"
7230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7232 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7234 cat >> confdefs.h <<EOF
7235 #define $ac_tr_lib 1
7238 LIBS="-ldmalloc $LIBS"
7241 echo "$ac_t""no" 1>&6
7246 # ud needs termcap (should insert check here)
7248 for ac_hdr in termcap.h ncurses.h
7250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7252 echo "configure:7253: checking for $ac_hdr" >&5
7253 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7254 echo $ac_n "(cached) $ac_c" 1>&6
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7262 { (eval echo configure:7263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7264 if test -z "$ac_err"; then
7266 eval "ac_cv_header_$ac_safe=yes"
7269 echo "configure: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7272 eval "ac_cv_header_$ac_safe=no"
7276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7279 cat >> confdefs.h <<EOF
7280 #define $ac_tr_hdr 1
7284 echo "$ac_t""no" 1>&6
7289 if test $ol_link_termcap = no ; then
7290 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7291 echo "configure:7292: checking for tputs in -ltermcap" >&5
7292 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
7293 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 ac_save_LIBS="$LIBS"
7297 LIBS="-ltermcap $LIBS"
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312 eval "ac_cv_lib_$ac_lib_var=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 eval "ac_cv_lib_$ac_lib_var=no"
7320 LIBS="$ac_save_LIBS"
7323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7327 echo "$ac_t""no" 1>&6
7331 if test $have_termcap = yes ; then
7332 cat >> confdefs.h <<\EOF
7333 #define HAVE_TERMCAP 1
7337 TERMCAP_LIBS=-ltermcap
7341 if test $ol_link_termcap = no ; then
7342 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7343 echo "configure:7344: checking for initscr in -lncurses" >&5
7344 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
7345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 ac_save_LIBS="$LIBS"
7349 LIBS="-lncurses $LIBS"
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7353 /* Override any gcc2 internal prototype to avoid an error. */
7354 /* We use char because int might match the return type of a gcc2
7355 builtin and then its argument prototype would still apply. */
7362 if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7364 eval "ac_cv_lib_$ac_lib_var=yes"
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 eval "ac_cv_lib_$ac_lib_var=no"
7372 LIBS="$ac_save_LIBS"
7375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7376 echo "$ac_t""yes" 1>&6
7379 echo "$ac_t""no" 1>&6
7383 if test $have_ncurses = yes ; then
7384 cat >> confdefs.h <<\EOF
7385 #define HAVE_NCURSES 1
7389 TERMCAP_LIBS=-lncurses
7393 if test $ol_link_termcap = no ; then
7394 cat >> confdefs.h <<\EOF
7395 #define NO_TERMCAP 1
7401 # FreeBSD (and others) have crypt(3) in -lcrypt
7402 if test $ol_enable_crypt != no ; then
7403 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7404 echo "configure:7405: checking for crypt" >&5
7405 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char crypt(); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined (__stub_crypt) || defined (__stub___crypt)
7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 eval "ac_cv_func_crypt=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_func_crypt=no"
7445 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7449 echo "$ac_t""no" 1>&6
7451 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7452 echo "configure:7453: checking for crypt in -lcrypt" >&5
7453 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
7454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 ac_save_LIBS="$LIBS"
7458 LIBS="-lcrypt $LIBS"
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 eval "ac_cv_lib_$ac_lib_var=no"
7481 LIBS="$ac_save_LIBS"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7489 echo "$ac_t""no" 1>&6
7496 if test $have_crypt = yes ; then
7497 cat >> confdefs.h <<\EOF
7498 #define HAVE_CRYPT 1
7502 echo "configure: warning: could not find crypt" 1>&2
7503 if test $ol_enable_crypt = yes ; then
7504 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7507 echo "configure: warning: disabling crypt support" 1>&2
7512 # FreeBSD (and others) have setproctitle(3) in -lutil
7513 if test $ol_enable_proctitle != no ; then
7514 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7515 echo "configure:7516: checking for setproctitle" >&5
7516 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char setproctitle(); below. */
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7528 char setproctitle();
7533 /* The GNU C library defines this for functions which it implements
7534 to always fail with ENOSYS. Some functions are actually named
7535 something starting with __ and the normal name is an alias. */
7536 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7544 if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7546 eval "ac_cv_func_setproctitle=yes"
7548 echo "configure: failed program was:" >&5
7549 cat conftest.$ac_ext >&5
7551 eval "ac_cv_func_setproctitle=no"
7556 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7557 echo "$ac_t""yes" 1>&6
7558 have_setproctitle=yes
7560 echo "$ac_t""no" 1>&6
7562 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7563 echo "configure:7564: checking for setproctitle in -lutil" >&5
7564 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
7565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7566 echo $ac_n "(cached) $ac_c" 1>&6
7568 ac_save_LIBS="$LIBS"
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7573 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7576 char setproctitle();
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 eval "ac_cv_lib_$ac_lib_var=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_lib_$ac_lib_var=no"
7592 LIBS="$ac_save_LIBS"
7595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7596 echo "$ac_t""yes" 1>&6
7597 have_setproctitle=yes
7598 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7600 echo "$ac_t""no" 1>&6
7601 have_setproctitle=no
7602 LIBOBJS="$LIBOBJS setproctitle.o"
7608 if test $have_setproctitle = yes ; then
7609 cat >> confdefs.h <<\EOF
7610 #define HAVE_SETPROCTITLE 1
7616 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7617 echo "configure:7618: checking for ANSI C header files" >&5
7618 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7630 { (eval echo configure:7631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7632 if test -z "$ac_err"; then
7634 ac_cv_header_stdc=yes
7637 echo "configure: failed program was:" >&5
7638 cat conftest.$ac_ext >&5
7640 ac_cv_header_stdc=no
7644 if test $ac_cv_header_stdc = yes; then
7645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7652 egrep "memchr" >/dev/null 2>&1; then
7656 ac_cv_header_stdc=no
7662 if test $ac_cv_header_stdc = yes; then
7663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7670 egrep "free" >/dev/null 2>&1; then
7674 ac_cv_header_stdc=no
7680 if test $ac_cv_header_stdc = yes; then
7681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7682 if test "$cross_compiling" = yes; then
7685 cat > conftest.$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7689 #if ((' ' & 0x0FF) == 0x020)
7690 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7691 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7693 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7694 || ('j' <= (c) && (c) <= 'r') \
7695 || ('s' <= (c) && (c) <= 'z'))
7696 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7699 int main () { int i; for (i = 0; i < 256; i++)
7700 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7711 ac_cv_header_stdc=no
7719 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7720 if test $ac_cv_header_stdc = yes; then
7721 cat >> confdefs.h <<\EOF
7722 #define STDC_HEADERS 1
7728 if test $ac_cv_header_stdc != yes; then
7729 echo "configure: warning: could not Standard C compliant headers" 1>&2
7733 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7736 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_hdr that defines DIR" >&5
7738 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 #include <sys/types.h>
7750 if { (eval echo configure:7751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7752 eval "ac_cv_header_dirent_$ac_safe=yes"
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 eval "ac_cv_header_dirent_$ac_safe=no"
7761 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7762 echo "$ac_t""yes" 1>&6
7763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7764 cat >> confdefs.h <<EOF
7765 #define $ac_tr_hdr 1
7767 ac_header_dirent=$ac_hdr; break
7769 echo "$ac_t""no" 1>&6
7772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7773 if test $ac_header_dirent = dirent.h; then
7774 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7775 echo "configure:7776: checking for opendir in -ldir" >&5
7776 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
7777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 ac_save_LIBS="$LIBS"
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7801 eval "ac_cv_lib_$ac_lib_var=no"
7804 LIBS="$ac_save_LIBS"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7811 echo "$ac_t""no" 1>&6
7815 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7816 echo "configure:7817: checking for opendir in -lx" >&5
7817 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
7818 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 ac_save_LIBS="$LIBS"
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7826 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7835 if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7837 eval "ac_cv_lib_$ac_lib_var=yes"
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7842 eval "ac_cv_lib_$ac_lib_var=no"
7845 LIBS="$ac_save_LIBS"
7848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7849 echo "$ac_t""yes" 1>&6
7852 echo "$ac_t""no" 1>&6
7857 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7858 echo "configure:7859: checking for sys/wait.h that is POSIX.1 compatible" >&5
7859 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7865 #include <sys/types.h>
7866 #include <sys/wait.h>
7868 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7871 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7876 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7881 ac_cv_header_sys_wait_h=yes
7883 echo "configure: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7886 ac_cv_header_sys_wait_h=no
7891 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7892 if test $ac_cv_header_sys_wait_h = yes; then
7893 cat >> confdefs.h <<\EOF
7894 #define HAVE_SYS_WAIT_H 1
7899 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7900 echo "configure:7901: checking POSIX termios" >&5
7901 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure"
7906 #include "confdefs.h"
7907 #include <sys/types.h>
7909 #include <termios.h>
7911 /* SunOS 4.0.3 has termios.h but not the library calls. */
7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7917 am_cv_sys_posix_termios=yes
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 am_cv_sys_posix_termios=no
7927 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7930 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7931 echo "configure:7932: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7932 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7935 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7937 gwinsz_in_termios_h=no
7938 if test $am_cv_sys_posix_termios = yes; then
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7942 #include <sys/types.h>
7943 # include <termios.h>
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950 egrep "yes" >/dev/null 2>&1; then
7952 gwinsz_in_termios_h=yes
7958 if test $gwinsz_in_termios_h = no; then
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 #include <sys/types.h>
7963 # include <sys/ioctl.h>
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970 egrep "yes" >/dev/null 2>&1; then
7972 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7980 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7981 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7982 cat >> confdefs.h <<\EOF
7983 #define GWINSZ_IN_SYS_IOCTL 1
7988 if test $am_cv_sys_posix_termios = yes ; then
7989 cat >> confdefs.h <<\EOF
7990 #define HAVE_POSIX_TERMIOS 1
8032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_hdr" >&5
8035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8044 { (eval echo configure:8045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8046 if test -z "$ac_err"; then
8048 eval "ac_cv_header_$ac_safe=yes"
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 eval "ac_cv_header_$ac_safe=no"
8058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8059 echo "$ac_t""yes" 1>&6
8060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8061 cat >> confdefs.h <<EOF
8062 #define $ac_tr_hdr 1
8066 echo "$ac_t""no" 1>&6
8071 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8072 echo "configure:8073: checking for uid_t in sys/types.h" >&5
8073 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8079 #include <sys/types.h>
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 egrep "uid_t" >/dev/null 2>&1; then
8084 ac_cv_type_uid_t=yes
8093 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8094 if test $ac_cv_type_uid_t = no; then
8095 cat >> confdefs.h <<\EOF
8099 cat >> confdefs.h <<\EOF
8105 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8106 echo "configure:8107: checking type of array argument to getgroups" >&5
8107 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 if test "$cross_compiling" = yes; then
8111 ac_cv_type_getgroups=cross
8113 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure"
8115 #include "confdefs.h"
8117 /* Thanks to Mike Rendell for this test. */
8118 #include <sys/types.h>
8121 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8126 union { gid_t gval; long lval; } val;
8129 for (i = 0; i < NGID; i++)
8130 gidset[i] = val.gval;
8131 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8133 /* Exit non-zero if getgroups seems to require an array of ints. This
8134 happens when gid_t is short but getgroups modifies an array of ints. */
8135 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8141 ac_cv_type_getgroups=gid_t
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 ac_cv_type_getgroups=int
8151 if test $ac_cv_type_getgroups = cross; then
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8160 ac_cv_type_getgroups=gid_t
8163 ac_cv_type_getgroups=int
8170 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8171 cat >> confdefs.h <<EOF
8172 #define GETGROUPS_T $ac_cv_type_getgroups
8175 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8176 echo "configure:8177: checking for mode_t" >&5
8177 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8180 cat > conftest.$ac_ext <<EOF
8181 #line 8182 "configure"
8182 #include "confdefs.h"
8183 #include <sys/types.h>
8190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8191 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8193 eval "ac_cv_type_mode_t=yes"
8196 eval "ac_cv_type_mode_t=no"
8201 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8204 echo "$ac_t""no" 1>&6
8205 cat >> confdefs.h <<EOF
8211 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8212 echo "configure:8213: checking for off_t" >&5
8213 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 #include <sys/types.h>
8226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8227 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8229 eval "ac_cv_type_off_t=yes"
8232 eval "ac_cv_type_off_t=no"
8237 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
8238 echo "$ac_t""yes" 1>&6
8240 echo "$ac_t""no" 1>&6
8241 cat >> confdefs.h <<EOF
8247 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8248 echo "configure:8249: checking for pid_t" >&5
8249 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 #include <sys/types.h>
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8265 eval "ac_cv_type_pid_t=yes"
8268 eval "ac_cv_type_pid_t=no"
8273 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8276 echo "$ac_t""no" 1>&6
8277 cat >> confdefs.h <<EOF
8283 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8284 echo "configure:8285: checking for ptrdiff_t" >&5
8285 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8296 if { (eval echo configure:8297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8298 am_cv_type_ptrdiff_t=yes
8300 echo "configure: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8303 am_cv_type_ptrdiff_t=no
8308 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8309 if test $am_cv_type_ptrdiff_t = yes; then
8310 cat >> confdefs.h <<\EOF
8311 #define HAVE_PTRDIFF_T 1
8316 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8317 echo "configure:8318: checking return type of signal handlers" >&5
8318 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 #include <sys/types.h>
8330 extern "C" void (*signal (int, void (*)(int)))(int);
8332 void (*signal ()) ();
8339 if { (eval echo configure:8340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8341 ac_cv_type_signal=void
8343 echo "configure: failed program was:" >&5
8344 cat conftest.$ac_ext >&5
8346 ac_cv_type_signal=int
8351 echo "$ac_t""$ac_cv_type_signal" 1>&6
8352 cat >> confdefs.h <<EOF
8353 #define RETSIGTYPE $ac_cv_type_signal
8357 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8358 echo "configure:8359: checking for size_t" >&5
8359 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8365 #include <sys/types.h>
8372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8373 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8375 eval "ac_cv_type_size_t=yes"
8378 eval "ac_cv_type_size_t=no"
8383 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
8384 echo "$ac_t""yes" 1>&6
8386 echo "$ac_t""no" 1>&6
8387 cat >> confdefs.h <<EOF
8388 #define size_t unsigned
8393 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
8394 echo "configure:8395: checking for member st_blksize in aggregate type struct stat" >&5
8395 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8401 #include <sys/types.h>
8402 #include <sys/stat.h>
8404 struct stat foo; foo.st_blksize;
8407 if { (eval echo configure:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8409 ac_cv_c_struct_member_st_blksize=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 ac_cv_c_struct_member_st_blksize=no
8419 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
8420 st_blksize="$ac_cv_c_struct_member_st_blksize"
8421 if test $ac_cv_c_struct_member_st_blksize = yes; then
8422 cat >> confdefs.h <<\EOF
8423 #define HAVE_ST_BLKSIZE 1
8428 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8429 echo "configure:8430: checking whether time.h and sys/time.h may both be included" >&5
8430 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
8431 echo $ac_n "(cached) $ac_c" 1>&6
8433 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8436 #include <sys/types.h>
8437 #include <sys/time.h>
8443 if { (eval echo configure:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8445 ac_cv_header_time=yes
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8450 ac_cv_header_time=no
8455 echo "$ac_t""$ac_cv_header_time" 1>&6
8456 if test $ac_cv_header_time = yes; then
8457 cat >> confdefs.h <<\EOF
8458 #define TIME_WITH_SYS_TIME 1
8463 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8464 echo "configure:8465: checking whether struct tm is in sys/time.h or time.h" >&5
8465 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 cat > conftest.$ac_ext <<EOF
8469 #line 8470 "configure"
8470 #include "confdefs.h"
8471 #include <sys/types.h>
8474 struct tm *tp; tp->tm_sec;
8477 if { (eval echo configure:8478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8479 ac_cv_struct_tm=time.h
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 ac_cv_struct_tm=sys/time.h
8489 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8490 if test $ac_cv_struct_tm = sys/time.h; then
8491 cat >> confdefs.h <<\EOF
8492 #define TM_IN_SYS_TIME 1
8499 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8500 echo "configure:8501: checking if toupper() requires islower()" >&5
8501 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8505 if test "$cross_compiling" = yes; then
8506 ol_cv_c_upper_lower=safe
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8515 if ('C' == toupper('C'))
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8523 ol_cv_c_upper_lower=no
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 ol_cv_c_upper_lower=yes
8535 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8536 if test $ol_cv_c_upper_lower != no ; then
8537 cat >> confdefs.h <<\EOF
8538 #define C_UPPER_LOWER 1
8543 echo $ac_n "checking for working const""... $ac_c" 1>&6
8544 echo "configure:8545: checking for working const" >&5
8545 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8554 /* Ultrix mips cc rejects this. */
8555 typedef int charset[2]; const charset x;
8556 /* SunOS 4.1.1 cc rejects this. */
8557 char const *const *ccp;
8559 /* NEC SVR4.0.2 mips cc rejects this. */
8560 struct point {int x, y;};
8561 static struct point const zero = {0,0};
8562 /* AIX XL C 1.02.0.0 rejects this.
8563 It does not let you subtract one const X* pointer from another in an arm
8564 of an if-expression whose if-part is not a constant expression */
8565 const char *g = "string";
8566 ccp = &g + (g ? g-g : 0);
8567 /* HPUX 7.0 cc rejects these. */
8570 ccp = (char const *const *) p;
8571 { /* SCO 3.2v4 cc rejects this. */
8573 char const *s = 0 ? (char *) 0 : (char const *) 0;
8577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8579 const int *foo = &x[0];
8582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8583 typedef const int *iptr;
8587 { /* AIX XL C 1.02.0.0 rejects this saying
8588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8589 struct s { int j; const int *ap[3]; };
8590 struct s *b; b->j = 5;
8592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8598 if { (eval echo configure:8599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8610 echo "$ac_t""$ac_cv_c_const" 1>&6
8611 if test $ac_cv_c_const = no; then
8612 cat >> confdefs.h <<\EOF
8619 if test $cross_compiling = yes ; then
8620 cat >> confdefs.h <<\EOF
8621 #define CROSS_COMPILING 1
8625 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8626 echo "configure:8627: checking whether byte ordering is bigendian" >&5
8627 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 ac_cv_c_bigendian=unknown
8631 # See if sys/param.h defines the BYTE_ORDER macro.
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 #include <sys/types.h>
8636 #include <sys/param.h>
8639 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8644 if { (eval echo configure:8645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8646 # It does; now see whether it defined to BIG_ENDIAN or not.
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
8659 if { (eval echo configure:8660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8661 ac_cv_c_bigendian=yes
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8666 ac_cv_c_bigendian=no
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8674 if test $ac_cv_c_bigendian = unknown; then
8675 if test "$cross_compiling" = yes; then
8676 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8682 /* Are we little or big endian? From Harbison&Steele. */
8686 char c[sizeof (long)];
8689 exit (u.c[sizeof (long) - 1] == 1);
8692 if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8694 ac_cv_c_bigendian=no
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8699 ac_cv_c_bigendian=yes
8707 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8708 if test $ac_cv_c_bigendian = yes; then
8709 cat >> confdefs.h <<\EOF
8710 #define WORDS_BIGENDIAN 1
8715 echo $ac_n "checking size of short""... $ac_c" 1>&6
8716 echo "configure:8717: checking size of short" >&5
8717 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
8718 echo $ac_n "(cached) $ac_c" 1>&6
8720 if test "$cross_compiling" = yes; then
8721 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8723 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8729 FILE *f=fopen("conftestval", "w");
8731 fprintf(f, "%d\n", sizeof(short));
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8737 ac_cv_sizeof_short=`cat conftestval`
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 ac_cv_sizeof_short=0
8748 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8749 cat >> confdefs.h <<EOF
8750 #define SIZEOF_SHORT $ac_cv_sizeof_short
8754 echo $ac_n "checking size of int""... $ac_c" 1>&6
8755 echo "configure:8756: checking size of int" >&5
8756 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
8757 echo $ac_n "(cached) $ac_c" 1>&6
8759 if test "$cross_compiling" = yes; then
8760 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8768 FILE *f=fopen("conftestval", "w");
8770 fprintf(f, "%d\n", sizeof(int));
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8776 ac_cv_sizeof_int=`cat conftestval`
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8787 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8788 cat >> confdefs.h <<EOF
8789 #define SIZEOF_INT $ac_cv_sizeof_int
8793 echo $ac_n "checking size of long""... $ac_c" 1>&6
8794 echo "configure:8795: checking size of long" >&5
8795 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8798 if test "$cross_compiling" = yes; then
8799 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8807 FILE *f=fopen("conftestval", "w");
8809 fprintf(f, "%d\n", sizeof(long));
8813 if { (eval echo configure:8814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8815 ac_cv_sizeof_long=`cat conftestval`
8817 echo "configure: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8826 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8827 cat >> confdefs.h <<EOF
8828 #define SIZEOF_LONG $ac_cv_sizeof_long
8834 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8835 echo "configure:8836: checking for 8-bit clean memcmp" >&5
8836 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8839 if test "$cross_compiling" = yes; then
8840 ac_cv_func_memcmp_clean=no
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8848 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8849 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8853 if { (eval echo configure:8854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8855 ac_cv_func_memcmp_clean=yes
8857 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8860 ac_cv_func_memcmp_clean=no
8867 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8868 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8870 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8871 echo "configure:8872: checking for strftime" >&5
8872 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char strftime(); below. */
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_strftime) || defined (__stub___strftime)
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 eval "ac_cv_func_strftime=yes"
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 eval "ac_cv_func_strftime=no"
8912 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8914 cat >> confdefs.h <<\EOF
8915 #define HAVE_STRFTIME 1
8919 echo "$ac_t""no" 1>&6
8920 # strftime is in -lintl on SCO UNIX.
8921 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8922 echo "configure:8923: checking for strftime in -lintl" >&5
8923 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
8924 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8927 ac_save_LIBS="$LIBS"
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8932 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8941 if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8943 eval "ac_cv_lib_$ac_lib_var=yes"
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8948 eval "ac_cv_lib_$ac_lib_var=no"
8951 LIBS="$ac_save_LIBS"
8954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8955 echo "$ac_t""yes" 1>&6
8956 cat >> confdefs.h <<\EOF
8957 #define HAVE_STRFTIME 1
8962 echo "$ac_t""no" 1>&6
8967 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8968 echo "configure:8969: checking for vprintf" >&5
8969 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8975 /* System header to define __stub macros and hopefully few prototypes,
8976 which can conflict with char vprintf(); below. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8986 /* The GNU C library defines this for functions which it implements
8987 to always fail with ENOSYS. Some functions are actually named
8988 something starting with __ and the normal name is an alias. */
8989 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8999 eval "ac_cv_func_vprintf=yes"
9001 echo "configure: failed program was:" >&5
9002 cat conftest.$ac_ext >&5
9004 eval "ac_cv_func_vprintf=no"
9009 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6
9011 cat >> confdefs.h <<\EOF
9012 #define HAVE_VPRINTF 1
9016 echo "$ac_t""no" 1>&6
9019 if test "$ac_cv_func_vprintf" != yes; then
9020 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9021 echo "configure:9022: checking for _doprnt" >&5
9022 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
9023 echo $ac_n "(cached) $ac_c" 1>&6
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9028 /* System header to define __stub macros and hopefully few prototypes,
9029 which can conflict with char _doprnt(); below. */
9031 /* Override any gcc2 internal prototype to avoid an error. */
9032 /* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9039 /* The GNU C library defines this for functions which it implements
9040 to always fail with ENOSYS. Some functions are actually named
9041 something starting with __ and the normal name is an alias. */
9042 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052 eval "ac_cv_func__doprnt=yes"
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 eval "ac_cv_func__doprnt=no"
9062 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9063 echo "$ac_t""yes" 1>&6
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_DOPRNT 1
9069 echo "$ac_t""no" 1>&6
9075 if test $ac_cv_func_vprintf = yes ; then
9076 for ac_func in vsnprintf vsprintf
9078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9079 echo "configure:9080: checking for $ac_func" >&5
9080 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9081 echo $ac_n "(cached) $ac_c" 1>&6
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9086 /* System header to define __stub macros and hopefully few prototypes,
9087 which can conflict with char $ac_func(); below. */
9089 /* Override any gcc2 internal prototype to avoid an error. */
9090 /* We use char because int might match the return type of a gcc2
9091 builtin and then its argument prototype would still apply. */
9097 /* The GNU C library defines this for functions which it implements
9098 to always fail with ENOSYS. Some functions are actually named
9099 something starting with __ and the normal name is an alias. */
9100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9110 eval "ac_cv_func_$ac_func=yes"
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9115 eval "ac_cv_func_$ac_func=no"
9120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9121 echo "$ac_t""yes" 1>&6
9122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9123 cat >> confdefs.h <<EOF
9124 #define $ac_tr_func 1
9128 echo "$ac_t""no" 1>&6
9165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $ac_func" >&5
9167 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9173 /* System header to define __stub macros and hopefully few prototypes,
9174 which can conflict with char $ac_func(); below. */
9176 /* Override any gcc2 internal prototype to avoid an error. */
9177 /* We use char because int might match the return type of a gcc2
9178 builtin and then its argument prototype would still apply. */
9184 /* The GNU C library defines this for functions which it implements
9185 to always fail with ENOSYS. Some functions are actually named
9186 something starting with __ and the normal name is an alias. */
9187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 eval "ac_cv_func_$ac_func=yes"
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9202 eval "ac_cv_func_$ac_func=no"
9207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9210 cat >> confdefs.h <<EOF
9211 #define $ac_tr_func 1
9215 echo "$ac_t""no" 1>&6
9220 for ac_func in getopt strdup tempnam
9222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9223 echo "configure:9224: checking for $ac_func" >&5
9224 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 /* System header to define __stub macros and hopefully few prototypes,
9231 which can conflict with char $ac_func(); below. */
9233 /* Override any gcc2 internal prototype to avoid an error. */
9234 /* We use char because int might match the return type of a gcc2
9235 builtin and then its argument prototype would still apply. */
9241 /* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9252 if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9254 eval "ac_cv_func_$ac_func=yes"
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9259 eval "ac_cv_func_$ac_func=no"
9264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9265 echo "$ac_t""yes" 1>&6
9266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9267 cat >> confdefs.h <<EOF
9268 #define $ac_tr_func 1
9272 echo "$ac_t""no" 1>&6
9273 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9279 # Check Configuration
9281 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9282 echo "configure:9283: checking declaration of sys_errlist" >&5
9283 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9287 cat > conftest.$ac_ext <<EOF
9288 #line 9289 "configure"
9289 #include "confdefs.h"
9292 #include <sys/types.h>
9295 char *c = (char *) *sys_errlist
9298 if { (eval echo configure:9299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9300 ol_cv_dcl_sys_errlist=yes
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 ol_cv_dcl_sys_errlist=no
9310 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9312 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9313 if test $ol_cv_dcl_sys_errlist = no ; then
9314 cat >> confdefs.h <<\EOF
9315 #define DECL_SYS_ERRLIST 1
9318 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9319 echo "configure:9320: checking existence of sys_errlist" >&5
9320 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9329 char *c = (char *) *sys_errlist
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 ol_cv_have_sys_errlist=yes
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 ol_cv_have_sys_errlist=no
9344 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9349 if test "$ol_enable_debug" != no ; then
9350 cat >> confdefs.h <<\EOF
9351 #define LDAP_DEBUG 1
9355 if test "$ol_enable_libui" = yes ; then
9356 cat >> confdefs.h <<\EOF
9357 #define LDAP_LIBUI 1
9361 if test "$ol_enable_cache" = no ; then
9362 cat >> confdefs.h <<\EOF
9363 #define LDAP_NOCACHE 1
9367 if test "$ol_enable_dns" != no ; then
9368 cat >> confdefs.h <<\EOF
9373 if test "$ol_enable_proctitle" != no ; then
9374 cat >> confdefs.h <<\EOF
9375 #define LDAP_PROCTITLE 1
9379 if test "$ol_enable_referrals" != no ; then
9380 cat >> confdefs.h <<\EOF
9381 #define LDAP_REFERRALS 1
9385 if test "$ol_enable_cldap" != no ; then
9386 cat >> confdefs.h <<\EOF
9387 #define LDAP_CONNECTIONLESS 1
9392 if test "$ol_enable_aclgroups" != no ; then
9393 cat >> confdefs.h <<\EOF
9394 #define SLAPD_ACLGROUPS 1
9398 if test "$ol_enable_crypt" != no ; then
9399 cat >> confdefs.h <<\EOF
9400 #define SLAPD_CRYPT 1
9404 if test "$ol_enable_cleartext" != no ; then
9405 cat >> confdefs.h <<\EOF
9406 #define SLAPD_CLEARTEXT 1
9410 if test "$ol_enable_phonetic" != no ; then
9411 cat >> confdefs.h <<\EOF
9412 #define SLAPD_PHONETIC 1
9416 if test "$ol_enable_rlookups" != no ; then
9417 cat >> confdefs.h <<\EOF
9418 #define SLAPD_RLOOKUPS 1
9423 if test "$ol_link_ldbm" != no ; then
9424 cat >> confdefs.h <<\EOF
9425 #define SLAPD_LDBM 1
9432 if test "$ol_enable_passwd" != no ; then
9433 cat >> confdefs.h <<\EOF
9434 #define SLAPD_PASSWD 1
9441 if test "$ol_enable_shell" != no ; then
9442 cat >> confdefs.h <<\EOF
9443 #define SLAPD_SHELL 1
9450 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9451 $BUILD_SLAPD = yes ; then
9455 if test "$ol_link_isode" != no ; then
9481 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9484 # Let make expand exec_prefix.
9485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9487 # Any assignment to VPATH causes Sun make to only execute
9488 # the first set of double-colon rules, so remove it if not needed.
9489 # If there is a colon in the path, we need to keep it.
9490 if test "x$srcdir" = x.; then
9491 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9494 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9496 DEFS=-DHAVE_CONFIG_H
9498 # Without the "./", some shells look in PATH for config.status.
9499 : ${CONFIG_STATUS=./config.status}
9501 echo creating $CONFIG_STATUS
9502 rm -f $CONFIG_STATUS
9503 cat > $CONFIG_STATUS <<EOF
9505 # Generated automatically by configure.
9506 # Run this file to recreate the current configuration.
9507 # This directory was configured as follows,
9508 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9510 # $0 $ac_configure_args
9512 # Compiler output produced by configure, useful for debugging
9513 # configure, is in ./config.log if it exists.
9515 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9518 case "\$ac_option" in
9519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9520 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9521 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9522 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9523 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
9525 -help | --help | --hel | --he | --h)
9526 echo "\$ac_cs_usage"; exit 0 ;;
9527 *) echo "\$ac_cs_usage"; exit 1 ;;
9531 ac_given_srcdir=$srcdir
9532 ac_given_INSTALL="$INSTALL"
9534 trap 'rm -fr `echo "\
9535 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9536 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9537 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9538 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9539 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9540 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9541 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9542 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9543 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9544 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9545 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9546 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9547 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9548 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9549 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9550 include/Makefile:build/top.mk:include/Makefile.in \
9551 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9552 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9553 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9554 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9555 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9556 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9557 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9558 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9559 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9560 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9561 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9562 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9563 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9564 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9565 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9566 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9567 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9568 tests/Makefile:build/top.mk:tests/Makefile.in \
9569 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9571 cat >> $CONFIG_STATUS <<EOF
9573 # Protect against being on the right side of a sed subst in config.status.
9574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9579 s%@CFLAGS@%$CFLAGS%g
9580 s%@CPPFLAGS@%$CPPFLAGS%g
9581 s%@CXXFLAGS@%$CXXFLAGS%g
9582 s%@FFLAGS@%$FFLAGS%g
9584 s%@LDFLAGS@%$LDFLAGS%g
9586 s%@exec_prefix@%$exec_prefix%g
9587 s%@prefix@%$prefix%g
9588 s%@program_transform_name@%$program_transform_name%g
9589 s%@bindir@%$bindir%g
9590 s%@sbindir@%$sbindir%g
9591 s%@libexecdir@%$libexecdir%g
9592 s%@datadir@%$datadir%g
9593 s%@sysconfdir@%$sysconfdir%g
9594 s%@sharedstatedir@%$sharedstatedir%g
9595 s%@localstatedir@%$localstatedir%g
9596 s%@libdir@%$libdir%g
9597 s%@includedir@%$includedir%g
9598 s%@oldincludedir@%$oldincludedir%g
9599 s%@infodir@%$infodir%g
9600 s%@mandir@%$mandir%g
9601 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9602 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9603 s%@INSTALL_DATA@%$INSTALL_DATA%g
9604 s%@PACKAGE@%$PACKAGE%g
9605 s%@VERSION@%$VERSION%g
9606 s%@ACLOCAL@%$ACLOCAL%g
9607 s%@AUTOCONF@%$AUTOCONF%g
9608 s%@AUTOMAKE@%$AUTOMAKE%g
9609 s%@AUTOHEADER@%$AUTOHEADER%g
9610 s%@MAKEINFO@%$MAKEINFO%g
9611 s%@install_sh@%$install_sh%g
9614 s%@AMTARFLAGS@%$AMTARFLAGS%g
9615 s%@SET_MAKE@%$SET_MAKE%g
9616 s%@top_builddir@%$top_builddir%g
9617 s%@ldap_subdir@%$ldap_subdir%g
9619 s%@host_alias@%$host_alias%g
9620 s%@host_cpu@%$host_cpu%g
9621 s%@host_vendor@%$host_vendor%g
9622 s%@host_os@%$host_os%g
9624 s%@build_alias@%$build_alias%g
9625 s%@build_cpu@%$build_cpu%g
9626 s%@build_vendor@%$build_vendor%g
9627 s%@build_os@%$build_os%g
9628 s%@RANLIB@%$RANLIB%g
9633 s%@LIBTOOL@%$LIBTOOL%g
9634 s%@SENDMAIL@%$SENDMAIL%g
9635 s%@EDITOR@%$EDITOR%g
9636 s%@FINGER@%$FINGER%g
9639 s%@LIBOBJS@%$LIBOBJS%g
9640 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9641 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9642 s%@BUILD_LDBM@%$BUILD_LDBM%g
9643 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9644 s%@BUILD_SHELL@%$BUILD_SHELL%g
9645 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9646 s%@LDAP_LIBS@%$LDAP_LIBS%g
9647 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9648 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9649 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9650 s%@LDBM_LIBS@%$LDBM_LIBS%g
9651 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9652 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9653 s%@WRAP_LIBS@%$WRAP_LIBS%g
9654 s%@KRB_LIBS@%$KRB_LIBS%g
9655 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9660 cat >> $CONFIG_STATUS <<\EOF
9662 # Split the substitutions into bite-sized pieces for seds with
9663 # small command number limits, like on Digital OSF/1 and HP-UX.
9664 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9665 ac_file=1 # Number of current file.
9666 ac_beg=1 # First line for current file.
9667 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9670 while $ac_more_lines; do
9671 if test $ac_beg -gt 1; then
9672 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9674 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9676 if test ! -s conftest.s$ac_file; then
9678 rm -f conftest.s$ac_file
9680 if test -z "$ac_sed_cmds"; then
9681 ac_sed_cmds="sed -f conftest.s$ac_file"
9683 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9685 ac_file=`expr $ac_file + 1`
9687 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9690 if test -z "$ac_sed_cmds"; then
9695 cat >> $CONFIG_STATUS <<EOF
9697 CONFIG_FILES=\${CONFIG_FILES-"\
9698 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9699 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9700 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9701 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9702 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9703 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9704 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9705 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9706 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9707 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9708 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9709 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9710 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9711 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9712 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9713 include/Makefile:build/top.mk:include/Makefile.in \
9714 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9715 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9716 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9717 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9718 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9719 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9720 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9721 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9722 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9723 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9724 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9725 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9726 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9727 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9728 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9729 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9730 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9731 tests/Makefile:build/top.mk:tests/Makefile.in \
9734 cat >> $CONFIG_STATUS <<\EOF
9735 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9738 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9739 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9740 *) ac_file_in="${ac_file}.in" ;;
9743 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9745 # Remove last slash and all that follows it. Not all systems have dirname.
9746 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9747 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9748 # The file is in a subdirectory.
9749 test ! -d "$ac_dir" && mkdir "$ac_dir"
9750 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9751 # A "../" for each directory in $ac_dir_suffix.
9752 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9754 ac_dir_suffix= ac_dots=
9757 case "$ac_given_srcdir" in
9759 if test -z "$ac_dots"; then top_srcdir=.
9760 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9761 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9763 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9764 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9767 case "$ac_given_INSTALL" in
9768 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9769 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9772 echo creating "$ac_file"
9774 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9776 *[Mm]akefile*) ac_comsub="1i\\
9777 # $configure_input" ;;
9781 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9783 s%@configure_input@%$configure_input%g
9784 s%@srcdir@%$srcdir%g
9785 s%@top_srcdir@%$top_srcdir%g
9786 s%@INSTALL@%$INSTALL%g
9787 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9794 # ac_d sets the value in "#define NAME VALUE" lines.
9795 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9796 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9799 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9800 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9801 ac_uB='\([ ]\)%\1#\2define\3'
9804 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9805 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9806 ac_eB='$%\1#\2define\3'
9810 if test "${CONFIG_HEADERS+set}" != set; then
9812 cat >> $CONFIG_STATUS <<EOF
9813 CONFIG_HEADERS="include/portable.h"
9815 cat >> $CONFIG_STATUS <<\EOF
9817 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9820 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9821 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9822 *) ac_file_in="${ac_file}.in" ;;
9825 echo creating $ac_file
9827 rm -f conftest.frag conftest.in conftest.out
9828 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9829 cat $ac_file_inputs > conftest.in
9833 # Transform confdefs.h into a sed script conftest.vals that substitutes
9834 # the proper values into config.h.in to produce config.h. And first:
9835 # Protect against being on the right side of a sed subst in config.status.
9836 # Protect against being in an unquoted here document in config.status.
9838 cat > conftest.hdr <<\EOF
9841 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9845 sed -n -f conftest.hdr confdefs.h > conftest.vals
9848 # This sed command replaces #undef with comments. This is necessary, for
9849 # example, in the case of _POSIX_SOURCE, which is predefined and required
9850 # on some systems where configure will not decide to define it.
9851 cat >> conftest.vals <<\EOF
9852 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9855 # Break up conftest.vals because some shells have a limit on
9856 # the size of here documents, and old seds have small limits too.
9861 ac_lines=`grep -c . conftest.vals`
9862 # grep -c gives empty output for an empty file on some AIX systems.
9863 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9864 # Write a limited-size here document to conftest.frag.
9865 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9866 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9868 sed -f conftest.frag conftest.in > conftest.out
9870 mv conftest.out conftest.in
9872 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9874 mv conftest.tail conftest.vals
9878 cat >> $CONFIG_STATUS <<\EOF
9879 rm -f conftest.frag conftest.h
9880 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9881 cat conftest.in >> conftest.h
9883 if cmp -s $ac_file conftest.h 2>/dev/null; then
9884 echo "$ac_file is unchanged"
9887 # Remove last slash and all that follows it. Not all systems have dirname.
9888 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9889 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9890 # The file is in a subdirectory.
9891 test ! -d "$ac_dir" && mkdir "$ac_dir"
9894 mv conftest.h $ac_file
9899 cat >> $CONFIG_STATUS <<EOF
9902 cat >> $CONFIG_STATUS <<\EOF
9905 echo Please \"make depend\" to build dependencies
9909 chmod +x $CONFIG_STATUS
9910 rm -fr confdefs* $ac_clean_files
9911 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1