3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-perl enable perl backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static build static libraries [default=yes]
79 --enable-static=PKGS only build shared libraries if the current package
80 appears as an element in the PKGS list"
82 --enable-shared build shared libraries [default=yes]
83 --enable-shared=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
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"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/ldap.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
597 for ac_dir in build $srcdir/build; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # Find a good install program. We prefer a C program (faster),
615 # so one script is as good as another. But avoid the broken or
616 # incompatible versions:
617 # SysV /etc/install, /usr/sbin/install
618 # SunOS /usr/etc/install
621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
624 # ./install, which can be erroneously created by make from ./install.sh.
625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
626 echo "configure:627: checking for a BSD compatible install" >&5
627 if test -z "$INSTALL"; then
628 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
632 for ac_dir in $PATH; do
633 # Account for people who put trailing slashes in PATH elements.
635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
637 # OSF1 and SCO ODT 3.0 have their own names for install.
638 # Don't use installbsd from OSF since it installs stuff as root
640 for ac_prog in ginstall scoinst install; do
641 if test -f $ac_dir/$ac_prog; then
642 if test $ac_prog = install &&
643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
644 # AIX install. It has an incompatible calling convention.
647 ac_cv_path_install="$ac_dir/$ac_prog -c"
658 if test "${ac_cv_path_install+set}" = set; then
659 INSTALL="$ac_cv_path_install"
661 # As a last resort, use the slow shell script. We don't cache a
662 # path for INSTALL within a source directory, because that will
663 # break other packages using the cache if that directory is
664 # removed, or if the path is relative.
665 INSTALL="$ac_install_sh"
668 echo "$ac_t""$INSTALL" 1>&6
670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
671 # It thinks the first close brace ends the variable substitution.
672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
678 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
679 echo "configure:680: checking whether build environment is sane" >&5
682 echo timestamp > conftestfile
683 # Do `set' in a subshell so we don't clobber the current shell's
684 # arguments. Must try -L first in case configure is actually a
685 # symlink; some systems play weird games with the mod time of symlinks
686 # (eg FreeBSD returns the mod time of the symlink's containing
689 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
690 if test "$*" = "X"; then
692 set X `ls -t $srcdir/configure conftestfile`
694 if test "$*" != "X $srcdir/configure conftestfile" \
695 && test "$*" != "X conftestfile $srcdir/configure"; then
697 # If neither matched, then we have a broken ls. This can happen
698 # if, for instance, CONFIG_SHELL is bash and it inherits a
699 # broken ls alias from the environment. This has actually
700 # happened. Such a system could not be considered "sane".
701 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
702 alias in your environment" 1>&2; exit 1; }
705 test "$2" = conftestfile
711 { echo "configure: error: newly created file is older than distributed files!
712 Check your system clock" 1>&2; exit 1; }
715 echo "$ac_t""yes" 1>&6
716 if test "$program_transform_name" = s,x,x,; then
717 program_transform_name=
719 # Double any \ or $. echo might interpret backslashes.
720 cat <<\EOF_SED > conftestsed
721 s,\\,\\\\,g; s,\$,$$,g
723 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
726 test "$program_prefix" != NONE &&
727 program_transform_name="s,^,${program_prefix},; $program_transform_name"
728 # Use a double $ so make ignores it.
729 test "$program_suffix" != NONE &&
730 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
732 # sed with no file args requires a program.
733 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftestmake <<\EOF
743 @echo 'ac_maketemp="${MAKE}"'
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748 eval ac_cv_prog_make_${ac_make}_set=yes
750 eval ac_cv_prog_make_${ac_make}_set=no
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
758 echo "$ac_t""no" 1>&6
759 SET_MAKE="MAKE=${MAKE-make}"
767 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
768 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
773 missing_dir=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 ACLOCAL="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 AUTOCONF="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOMAKE="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
819 AUTOHEADER=autoheader
820 echo "$ac_t""found" 1>&6
822 AUTOHEADER="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
833 echo "$ac_t""found" 1>&6
835 MAKEINFO="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
842 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
843 echo "configure:844: checking configure arguments" >&5
848 ldap_subdir="openldap"
850 # Check whether --with-subdir or --without-subdir was given.
851 if test "${with_subdir+set}" = set; then
852 withval="$with_subdir"
854 if test "$withval" = "no"; then
856 elif test "$withval" != "yes"; then
857 ldap_subdir="$withval"
863 # OpenLDAP --enable-debug
864 # Check whether --enable-debug or --disable-debug was given.
865 if test "${enable_debug+set}" = set; then
866 enableval="$enable_debug"
869 for ol_val in auto yes no ; do
870 if test "$enableval" = "$ol_val" ; then
874 if test "$ol_arg" = "invalid" ; then
875 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
877 ol_enable_debug="$ol_arg"
880 ol_enable_debug="yes"
884 # OpenLDAP --enable-proctitle
885 # Check whether --enable-proctitle or --disable-proctitle was given.
886 if test "${enable_proctitle+set}" = set; then
887 enableval="$enable_proctitle"
890 for ol_val in auto yes no ; do
891 if test "$enableval" = "$ol_val" ; then
895 if test "$ol_arg" = "invalid" ; then
896 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
898 ol_enable_proctitle="$ol_arg"
901 ol_enable_proctitle="yes"
903 # end --enable-proctitle
904 # OpenLDAP --enable-cache
905 # Check whether --enable-cache or --disable-cache was given.
906 if test "${enable_cache+set}" = set; then
907 enableval="$enable_cache"
910 for ol_val in auto yes no ; do
911 if test "$enableval" = "$ol_val" ; then
915 if test "$ol_arg" = "invalid" ; then
916 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
918 ol_enable_cache="$ol_arg"
921 ol_enable_cache="yes"
924 # OpenLDAP --enable-dns
925 # Check whether --enable-dns or --disable-dns was given.
926 if test "${enable_dns+set}" = set; then
927 enableval="$enable_dns"
930 for ol_val in auto yes no ; do
931 if test "$enableval" = "$ol_val" ; then
935 if test "$ol_arg" = "invalid" ; then
936 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
938 ol_enable_dns="$ol_arg"
944 # OpenLDAP --enable-referrals
945 # Check whether --enable-referrals or --disable-referrals was given.
946 if test "${enable_referrals+set}" = set; then
947 enableval="$enable_referrals"
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-referrals" 1>&2; exit 1; }
958 ol_enable_referrals="$ol_arg"
961 ol_enable_referrals="yes"
963 # end --enable-referrals
964 # OpenLDAP --enable-cldap
965 # Check whether --enable-cldap or --disable-cldap was given.
966 if test "${enable_cldap+set}" = set; then
967 enableval="$enable_cldap"
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-cldap" 1>&2; exit 1; }
978 ol_enable_cldap="$ol_arg"
984 # OpenLDAP --enable-x_compile
985 # Check whether --enable-x_compile or --disable-x_compile was given.
986 if test "${enable_x_compile+set}" = set; then
987 enableval="$enable_x_compile"
990 for ol_val in 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-x_compile" 1>&2; exit 1; }
998 ol_enable_x_compile="$ol_arg"
1001 ol_enable_x_compile="no"
1003 # end --enable-x_compile
1006 # OpenLDAP --enable-dmalloc
1007 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1008 if test "${enable_dmalloc+set}" = set; then
1009 enableval="$enable_dmalloc"
1012 for ol_val in auto yes no ; do
1013 if test "$enableval" = "$ol_val" ; then
1017 if test "$ol_arg" = "invalid" ; then
1018 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1020 ol_enable_dmalloc="$ol_arg"
1023 ol_enable_dmalloc="no"
1025 # end --enable-dmalloc
1027 # OpenLDAP --with-kerberos
1028 # Check whether --with-kerberos or --without-kerberos was given.
1029 if test "${with_kerberos+set}" = set; then
1030 withval="$with_kerberos"
1033 for ol_val in auto k5 k4 afs yes no ; do
1034 if test "$withval" = "$ol_val" ; then
1038 if test "$ol_arg" = "invalid" ; then
1039 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1041 ol_with_kerberos="$ol_arg"
1044 ol_with_kerberos="auto"
1046 # end --with-kerberos
1048 # OpenLDAP --with-threads
1049 # Check whether --with-threads or --without-threads was given.
1050 if test "${with_threads+set}" = set; then
1051 withval="$with_threads"
1054 for ol_val in auto posix mach lwp yes no manual ; do
1055 if test "$withval" = "$ol_val" ; then
1059 if test "$ol_arg" = "invalid" ; then
1060 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1062 ol_with_threads="$ol_arg"
1065 ol_with_threads="auto"
1067 # end --with-threads
1069 # OpenLDAP --with-yielding_select
1070 # Check whether --with-yielding_select or --without-yielding_select was given.
1071 if test "${with_yielding_select+set}" = set; then
1072 withval="$with_yielding_select"
1075 for ol_val in auto yes no manual ; do
1076 if test "$withval" = "$ol_val" ; then
1080 if test "$ol_arg" = "invalid" ; then
1081 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1083 ol_with_yielding_select="$ol_arg"
1086 ol_with_yielding_select="auto"
1088 # end --with-yielding_select
1092 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1093 if test "${with_xxldapdoptions+set}" = set; then
1094 withval="$with_xxldapdoptions"
1098 # OpenLDAP --enable-ldapd
1099 # Check whether --enable-ldapd or --disable-ldapd was given.
1100 if test "${enable_ldapd+set}" = set; then
1101 enableval="$enable_ldapd"
1104 for ol_val in auto yes no ; do
1105 if test "$enableval" = "$ol_val" ; then
1109 if test "$ol_arg" = "invalid" ; then
1110 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1112 ol_enable_ldapd="$ol_arg"
1115 ol_enable_ldapd="no"
1117 # end --enable-ldapd
1119 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1120 if test "${with_xxslapdoptions+set}" = set; then
1121 withval="$with_xxslapdoptions"
1125 # OpenLDAP --enable-slapd
1126 # Check whether --enable-slapd or --disable-slapd was given.
1127 if test "${enable_slapd+set}" = set; then
1128 enableval="$enable_slapd"
1131 for ol_val in auto yes no ; do
1132 if test "$enableval" = "$ol_val" ; then
1136 if test "$ol_arg" = "invalid" ; then
1137 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1139 ol_enable_slapd="$ol_arg"
1142 ol_enable_slapd="yes"
1144 # end --enable-slapd
1145 # OpenLDAP --enable-aclgroups
1146 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1147 if test "${enable_aclgroups+set}" = set; then
1148 enableval="$enable_aclgroups"
1151 for ol_val in auto yes no ; do
1152 if test "$enableval" = "$ol_val" ; then
1156 if test "$ol_arg" = "invalid" ; then
1157 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1159 ol_enable_aclgroups="$ol_arg"
1162 ol_enable_aclgroups="auto"
1164 # end --enable-aclgroups
1165 # OpenLDAP --enable-cleartext
1166 # Check whether --enable-cleartext or --disable-cleartext was given.
1167 if test "${enable_cleartext+set}" = set; then
1168 enableval="$enable_cleartext"
1171 for ol_val in auto yes no ; do
1172 if test "$enableval" = "$ol_val" ; then
1176 if test "$ol_arg" = "invalid" ; then
1177 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1179 ol_enable_cleartext="$ol_arg"
1182 ol_enable_cleartext="yes"
1184 # end --enable-cleartext
1185 # OpenLDAP --enable-crypt
1186 # Check whether --enable-crypt or --disable-crypt was given.
1187 if test "${enable_crypt+set}" = set; then
1188 enableval="$enable_crypt"
1191 for ol_val in auto yes no ; do
1192 if test "$enableval" = "$ol_val" ; then
1196 if test "$ol_arg" = "invalid" ; then
1197 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1199 ol_enable_crypt="$ol_arg"
1202 ol_enable_crypt="auto"
1204 # end --enable-crypt
1205 # OpenLDAP --enable-wrappers
1206 # Check whether --enable-wrappers or --disable-wrappers was given.
1207 if test "${enable_wrappers+set}" = set; then
1208 enableval="$enable_wrappers"
1211 for ol_val in auto yes no ; do
1212 if test "$enableval" = "$ol_val" ; then
1216 if test "$ol_arg" = "invalid" ; then
1217 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1219 ol_enable_wrappers="$ol_arg"
1222 ol_enable_wrappers="no"
1224 # end --enable-wrappers
1225 # OpenLDAP --enable-phonetic
1226 # Check whether --enable-phonetic or --disable-phonetic was given.
1227 if test "${enable_phonetic+set}" = set; then
1228 enableval="$enable_phonetic"
1231 for ol_val in auto yes no ; do
1232 if test "$enableval" = "$ol_val" ; then
1236 if test "$ol_arg" = "invalid" ; then
1237 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1239 ol_enable_phonetic="$ol_arg"
1242 ol_enable_phonetic="no"
1244 # end --enable-phonetic
1245 # OpenLDAP --enable-rlookups
1246 # Check whether --enable-rlookups or --disable-rlookups was given.
1247 if test "${enable_rlookups+set}" = set; then
1248 enableval="$enable_rlookups"
1251 for ol_val in auto yes no ; do
1252 if test "$enableval" = "$ol_val" ; then
1256 if test "$ol_arg" = "invalid" ; then
1257 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1259 ol_enable_rlookups="$ol_arg"
1262 ol_enable_rlookups="auto"
1264 # end --enable-rlookups
1266 # OpenLDAP --enable-ldbm
1267 # Check whether --enable-ldbm or --disable-ldbm was given.
1268 if test "${enable_ldbm+set}" = set; then
1269 enableval="$enable_ldbm"
1272 for ol_val in auto yes no ; do
1273 if test "$enableval" = "$ol_val" ; then
1277 if test "$ol_arg" = "invalid" ; then
1278 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1280 ol_enable_ldbm="$ol_arg"
1283 ol_enable_ldbm="yes"
1286 # OpenLDAP --with-ldbm_api
1287 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1288 if test "${with_ldbm_api+set}" = set; then
1289 withval="$with_ldbm_api"
1292 for ol_val in auto db2 db gdbm ndbm manual ; do
1293 if test "$withval" = "$ol_val" ; then
1297 if test "$ol_arg" = "invalid" ; then
1298 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1300 ol_with_ldbm_api="$ol_arg"
1303 ol_with_ldbm_api="auto"
1305 # end --with-ldbm_api
1307 # OpenLDAP --with-ldbm_type
1308 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1309 if test "${with_ldbm_type+set}" = set; then
1310 withval="$with_ldbm_type"
1313 for ol_val in auto btree hash ; do
1314 if test "$withval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1321 ol_with_ldbm_type="$ol_arg"
1324 ol_with_ldbm_type="auto"
1326 # end --with-ldbm_type
1329 # OpenLDAP --enable-passwd
1330 # Check whether --enable-passwd or --disable-passwd was given.
1331 if test "${enable_passwd+set}" = set; then
1332 enableval="$enable_passwd"
1335 for ol_val in auto yes no ; do
1336 if test "$enableval" = "$ol_val" ; then
1340 if test "$ol_arg" = "invalid" ; then
1341 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1343 ol_enable_passwd="$ol_arg"
1346 ol_enable_passwd="no"
1348 # end --enable-passwd
1349 # OpenLDAP --enable-perl
1350 # Check whether --enable-perl or --disable-perl was given.
1351 if test "${enable_perl+set}" = set; then
1352 enableval="$enable_perl"
1355 for ol_val in auto yes no ; do
1356 if test "$enableval" = "$ol_val" ; then
1360 if test "$ol_arg" = "invalid" ; then
1361 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1363 ol_enable_perl="$ol_arg"
1369 # OpenLDAP --enable-shell
1370 # Check whether --enable-shell or --disable-shell was given.
1371 if test "${enable_shell+set}" = set; then
1372 enableval="$enable_shell"
1375 for ol_val in auto yes no ; do
1376 if test "$enableval" = "$ol_val" ; then
1380 if test "$ol_arg" = "invalid" ; then
1381 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1383 ol_enable_shell="$ol_arg"
1386 ol_enable_shell="no"
1388 # end --enable-shell
1390 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1391 if test "${with_xxslurpdoptions+set}" = set; then
1392 withval="$with_xxslurpdoptions"
1396 # OpenLDAP --enable-slurpd
1397 # Check whether --enable-slurpd or --disable-slurpd was given.
1398 if test "${enable_slurpd+set}" = set; then
1399 enableval="$enable_slurpd"
1402 for ol_val in auto yes no ; do
1403 if test "$enableval" = "$ol_val" ; then
1407 if test "$ol_arg" = "invalid" ; then
1408 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1410 ol_enable_slurpd="$ol_arg"
1413 ol_enable_slurpd="auto"
1415 # end --enable-slurpd
1417 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1418 if test "${with_xxliboptions+set}" = set; then
1419 withval="$with_xxliboptions"
1423 # Check whether --enable-static or --disable-static was given.
1424 if test "${enable_static+set}" = set; then
1425 enableval="$enable_static"
1426 p=${PACKAGE-default}
1427 case "$enableval" in
1428 yes) enable_static=yes ;;
1429 no) enable_static=no ;;
1432 # Look at the argument we got. We use all the common list separators.
1433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1434 for pkg in $enableval; do
1435 if test "X$pkg" = "X$p"; then
1446 # Check whether --enable-shared or --disable-shared was given.
1447 if test "${enable_shared+set}" = set; then
1448 enableval="$enable_shared"
1449 p=${PACKAGE-default}
1450 case "$enableval" in
1451 yes) enable_shared=yes ;;
1452 no) enable_shared=no ;;
1455 # Look at the argument we got. We use all the common list separators.
1456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1457 for pkg in $enableval; do
1458 if test "X$pkg" = "X$p"; then
1471 if test $ol_enable_dns = yes ; then
1472 if test $ol_enable_referrals = no ; then
1473 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1475 if test $ol_enable_referrals = auto ; then
1476 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1477 ol_enable_referrals=yes
1481 if test $ol_enable_slapd = no ; then
1482 if test $ol_enable_ldbm = yes ; then
1483 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1485 if test $ol_enable_passwd = yes ; then
1486 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1488 if test $ol_enable_perl = yes ; then
1489 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1491 if test $ol_enable_shell = yes ; then
1492 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1494 if test $ol_enable_aclgroups = yes ; then
1495 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1497 if test $ol_enable_wrappers = yes ; then
1498 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1500 if test $ol_enable_phonetic = yes ; then
1501 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1503 if test $ol_enable_rlookups = yes ; then
1504 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1506 if test $ol_with_ldbm_api != auto ; then
1507 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1509 if test $ol_with_ldbm_type != auto ; then
1510 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1512 if test $ol_enable_slurpd = yes ; then
1513 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1516 # force settings to no
1521 ol_enable_aclgroups=no
1522 ol_enable_wrappers=no
1523 ol_enable_phonetic=no
1524 ol_enable_rlookups=no
1526 ol_with_ldbm_type=no
1529 elif test $ol_enable_ldbm = no ; then
1531 if test $ol_with_ldbm_api != auto ; then
1532 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1535 if test $ol_with_ldbm_type != auto ; then
1536 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1539 if test $ol_enable_passwd = no -a \
1540 $ol_enable_perl = no -a
1541 $ol_enable_shell = no ; then
1542 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1546 ol_with_ldbm_type=no
1550 if test $ol_with_ldbm_api = gdbm -a \
1551 $ol_with_ldbm_type = btree ; then
1552 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1554 if test $ol_with_ldbm_api = ndbm -a \
1555 $ol_with_ldbm_type = btree ; then
1556 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1560 if test $ol_enable_slurpd = yes ; then
1561 if test $ol_with_threads = no ; then
1562 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1566 echo "$ac_t""done" 1>&6
1569 # Make sure we can run config.sub.
1570 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1571 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1574 echo $ac_n "checking host system type""... $ac_c" 1>&6
1575 echo "configure:1576: checking host system type" >&5
1578 case "$host_alias" in
1582 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1585 *) host_alias=$nonopt ;;
1589 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1590 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$ac_t""$host" 1>&6
1617 SLAPD_PERL_CPPFLAGS=
1623 # Find a good install program. We prefer a C program (faster),
1624 # so one script is as good as another. But avoid the broken or
1625 # incompatible versions:
1626 # SysV /etc/install, /usr/sbin/install
1627 # SunOS /usr/etc/install
1628 # IRIX /sbin/install
1630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1633 # ./install, which can be erroneously created by make from ./install.sh.
1634 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1635 echo "configure:1636: checking for a BSD compatible install" >&5
1636 if test -z "$INSTALL"; then
1637 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1641 for ac_dir in $PATH; do
1642 # Account for people who put trailing slashes in PATH elements.
1644 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1646 # OSF1 and SCO ODT 3.0 have their own names for install.
1647 # Don't use installbsd from OSF since it installs stuff as root
1649 for ac_prog in ginstall scoinst install; do
1650 if test -f $ac_dir/$ac_prog; then
1651 if test $ac_prog = install &&
1652 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1653 # AIX install. It has an incompatible calling convention.
1656 ac_cv_path_install="$ac_dir/$ac_prog -c"
1667 if test "${ac_cv_path_install+set}" = set; then
1668 INSTALL="$ac_cv_path_install"
1670 # As a last resort, use the slow shell script. We don't cache a
1671 # path for INSTALL within a source directory, because that will
1672 # break other packages using the cache if that directory is
1673 # removed, or if the path is relative.
1674 INSTALL="$ac_install_sh"
1677 echo "$ac_t""$INSTALL" 1>&6
1679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680 # It thinks the first close brace ends the variable substitution.
1681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1687 # Extract the first word of "ranlib", so it can be a program name with args.
1688 set dummy ranlib; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 if test -n "$RANLIB"; then
1695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_RANLIB="ranlib"
1707 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1710 RANLIB="$ac_cv_prog_RANLIB"
1711 if test -n "$RANLIB"; then
1712 echo "$ac_t""$RANLIB" 1>&6
1714 echo "$ac_t""no" 1>&6
1717 # Extract the first word of "gcc", so it can be a program name with args.
1718 set dummy gcc; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 if test -f $ac_dir/$ac_word; then
1740 if test -n "$CC"; then
1741 echo "$ac_t""$CC" 1>&6
1743 echo "$ac_t""no" 1>&6
1746 if test -z "$CC"; then
1747 # Extract the first word of "cc", so it can be a program name with args.
1748 set dummy cc; ac_word=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1751 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1760 for ac_dir in $ac_dummy; do
1761 test -z "$ac_dir" && ac_dir=.
1762 if test -f $ac_dir/$ac_word; then
1763 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1764 ac_prog_rejected=yes
1772 if test $ac_prog_rejected = yes; then
1773 # We found a bogon in the path, so make sure we never use it.
1774 set dummy $ac_cv_prog_CC
1776 if test $# -gt 0; then
1777 # We chose a different compiler from the bogus one.
1778 # However, it has the same basename, so the bogon will be chosen
1779 # first if we set CC to just the basename; use the full file name.
1781 set dummy "$ac_dir/$ac_word" "$@"
1789 if test -n "$CC"; then
1790 echo "$ac_t""$CC" 1>&6
1792 echo "$ac_t""no" 1>&6
1795 if test -z "$CC"; then
1796 case "`uname -s`" in
1798 # Extract the first word of "cl", so it can be a program name with args.
1799 set dummy cl; ac_word=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 for ac_dir in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1821 if test -n "$CC"; then
1822 echo "$ac_t""$CC" 1>&6
1824 echo "$ac_t""no" 1>&6
1829 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1832 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1836 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1839 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1840 cross_compiling=$ac_cv_prog_cc_cross
1842 cat > conftest.$ac_ext << EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1849 if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1850 ac_cv_prog_cc_works=yes
1851 # If we can't run a trivial program, we are probably using a cross compiler.
1852 if (./conftest; exit) 2>/dev/null; then
1853 ac_cv_prog_cc_cross=no
1855 ac_cv_prog_cc_cross=yes
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 ac_cv_prog_cc_works=no
1864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1867 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1868 cross_compiling=$ac_cv_prog_cc_cross
1870 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1871 if test $ac_cv_prog_cc_works = no; then
1872 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1874 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1875 echo "configure:1876: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1876 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1877 cross_compiling=$ac_cv_prog_cc_cross
1879 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1880 echo "configure:1881: checking whether we are using GNU C" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.c <<EOF
1889 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1896 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1898 if test $ac_cv_prog_gcc = yes; then
1904 ac_test_CFLAGS="${CFLAGS+set}"
1905 ac_save_CFLAGS="$CFLAGS"
1907 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether ${CC-cc} accepts -g" >&5
1909 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 echo 'void f(){}' > conftest.c
1913 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1922 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1923 if test "$ac_test_CFLAGS" = set; then
1924 CFLAGS="$ac_save_CFLAGS"
1925 elif test $ac_cv_prog_cc_g = yes; then
1926 if test "$GCC" = yes; then
1932 if test "$GCC" = yes; then
1939 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1940 if test "${with_gnu_ld+set}" = set; then
1941 withval="$with_gnu_ld"
1942 test "$withval" = no || with_gnu_ld=yes
1949 if test "$ac_cv_prog_gcc" = yes; then
1950 # Check if gcc -print-prog-name=ld gives a path.
1951 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1952 echo "configure:1953: checking for ld used by GCC" >&5
1953 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1955 # Accept absolute paths.
1957 test -z "$LD" && LD="$ac_prog"
1960 # If it fails, then pretend we aren't using GCC.
1964 # If it is relative, then search for the first ld in PATH.
1968 elif test "$with_gnu_ld" = yes; then
1969 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1970 echo "configure:1971: checking for GNU ld" >&5
1972 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1973 echo "configure:1974: checking for non-GNU ld" >&5
1975 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 if test -z "$LD"; then
1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1980 for ac_dir in $PATH; do
1981 test -z "$ac_dir" && ac_dir=.
1982 if test -f "$ac_dir/$ac_prog"; then
1983 ac_cv_path_LD="$ac_dir/$ac_prog"
1984 # Check to see if the program is GNU ld. I'd rather use --version,
1985 # but apparently some GNU ld's only accept -v.
1986 # Break only if it was the GNU/non-GNU ld that we prefer.
1987 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1988 test "$with_gnu_ld" != no && break
1990 test "$with_gnu_ld" != yes && break
1996 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2001 if test -n "$LD"; then
2002 echo "$ac_t""$LD" 1>&6
2004 echo "$ac_t""no" 1>&6
2006 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2008 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2009 echo "configure:2010: checking if the linker ($LD) is GNU ld" >&5
2010 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2014 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2015 ac_cv_prog_gnu_ld=yes
2017 ac_cv_prog_gnu_ld=no
2021 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2024 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2025 echo "configure:2026: checking for BSD-compatible nm" >&5
2026 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2035 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/nm; then
2038 # Check to see if the nm accepts a BSD-compat flag.
2039 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2040 # nm: unknown option "B" ignored
2041 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2042 ac_cv_path_NM="$ac_dir/nm -B"
2043 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2044 ac_cv_path_NM="$ac_dir/nm -p"
2046 ac_cv_path_NM="$ac_dir/nm"
2052 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2058 echo "$ac_t""$NM" 1>&6
2061 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2062 echo "configure:2063: checking whether ln -s works" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2067 if ln -s X conftestdata 2>/dev/null
2070 ac_cv_prog_LN_S="ln -s"
2075 LN_S="$ac_cv_prog_LN_S"
2076 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2077 echo "$ac_t""yes" 1>&6
2079 echo "$ac_t""no" 1>&6
2082 # Always use our own libtool.
2083 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2085 # Check for any special flags to pass to ltconfig.
2087 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2088 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2089 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2090 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2091 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2093 # Some flags need to be propagated to the compiler or linker for good
2097 # Find out which ABI we are using.
2098 echo '#line 2099 "configure"' > conftest.$ac_ext
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100 case "`/usr/bin/file conftest.o`" in
2116 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2117 CFLAGS="$CFLAGS -belf"
2121 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2122 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2123 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2124 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2125 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2126 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2129 for ac_prog in mawk gawk nawk awk
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_word" >&5
2135 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 if test -n "$AWK"; then
2139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 for ac_dir in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_prog_AWK="$ac_prog"
2153 AWK="$ac_cv_prog_AWK"
2154 if test -n "$AWK"; then
2155 echo "$ac_t""$AWK" 1>&6
2157 echo "$ac_t""no" 1>&6
2160 test -n "$AWK" && break
2163 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2164 echo "configure:2165: checking whether ln -s works" >&5
2165 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2169 if ln -s X conftestdata 2>/dev/null
2172 ac_cv_prog_LN_S="ln -s"
2177 LN_S="$ac_cv_prog_LN_S"
2178 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2179 echo "$ac_t""yes" 1>&6
2181 echo "$ac_t""no" 1>&6
2185 # Extract the first word of "sendmail", so it can be a program name with args.
2186 set dummy sendmail; ac_word=$2
2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_word" >&5
2189 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2194 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2197 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2202 for ac_dir in $ac_dummy; do
2203 test -z "$ac_dir" && ac_dir=.
2204 if test -f $ac_dir/$ac_word; then
2205 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2210 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2214 SENDMAIL="$ac_cv_path_SENDMAIL"
2215 if test -n "$SENDMAIL"; then
2216 echo "$ac_t""$SENDMAIL" 1>&6
2218 echo "$ac_t""no" 1>&6
2221 # Extract the first word of "vi", so it can be a program name with args.
2222 set dummy vi; ac_word=$2
2223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_word" >&5
2225 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2230 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2233 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2237 ac_dummy="$PATH:/usr/ucb"
2238 for ac_dir in $ac_dummy; do
2239 test -z "$ac_dir" && ac_dir=.
2240 if test -f $ac_dir/$ac_word; then
2241 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2246 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2250 EDITOR="$ac_cv_path_EDITOR"
2251 if test -n "$EDITOR"; then
2252 echo "$ac_t""$EDITOR" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 # Extract the first word of "finger", so it can be a program name with args.
2258 set dummy finger; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2266 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2269 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2273 ac_dummy="$PATH:/usr/ucb"
2274 for ac_dir in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_path_FINGER="$ac_dir/$ac_word"
2282 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2286 FINGER="$ac_cv_path_FINGER"
2287 if test -n "$FINGER"; then
2288 echo "$ac_t""$FINGER" 1>&6
2290 echo "$ac_t""no" 1>&6
2294 if test $ol_enable_perl = yes ; then
2295 # Extract the first word of "perl", so it can be a program name with args.
2296 set dummy perl; ac_word=$2
2297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_word" >&5
2299 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2304 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2307 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2320 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2324 PERLBIN="$ac_cv_path_PERLBIN"
2325 if test -n "$PERLBIN"; then
2326 echo "$ac_t""$PERLBIN" 1>&6
2328 echo "$ac_t""no" 1>&6
2332 if test "no$PERLBIN" = "no" ; then
2336 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2337 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2340 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2341 echo "configure:2342: checking how to run the C preprocessor" >&5
2342 # On Suns, sometimes $CPP names a directory.
2343 if test -n "$CPP" && test -d "$CPP"; then
2346 if test -z "$CPP"; then
2347 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 # This must be in double quotes, not single quotes, because CPP may get
2351 # substituted into the Makefile and "${CC-cc}" will confuse make.
2353 # On the NeXT, cc -E runs the code through the compiler's parser,
2354 # not just through cpp.
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 CPP="${CC-cc} -E -traditional-cpp"
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2379 { (eval echo configure:2380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2381 if test -z "$ac_err"; then
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 CPP="${CC-cc} -nologo -E"
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2412 ac_cv_prog_CPP="$CPP"
2414 CPP="$ac_cv_prog_CPP"
2416 ac_cv_prog_CPP="$CPP"
2418 echo "$ac_t""$CPP" 1>&6
2421 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2422 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2424 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2425 echo "configure: warning: programs compiled here do run here..." 1>&2
2426 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2428 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2429 echo "configure: warning: programs compiled here do not run here..." 1>&2
2430 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2433 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2434 echo "configure:2435: checking for AIX" >&5
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2444 egrep "yes" >/dev/null 2>&1; then
2446 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2447 #define _ALL_SOURCE 1
2452 echo "$ac_t""no" 1>&6
2457 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2458 echo "configure:2459: checking for POSIXized ISC" >&5
2459 if test -d /etc/conf/kconfig.d &&
2460 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2462 echo "$ac_t""yes" 1>&6
2463 ISC=yes # If later tests want to check for ISC.
2464 cat >> confdefs.h <<\EOF
2465 #define _POSIX_SOURCE 1
2468 if test "$GCC" = yes; then
2474 echo "$ac_t""no" 1>&6
2478 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2479 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2480 echo "configure:2481: checking for minix/config.h" >&5
2481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <minix/config.h>
2489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2490 { (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2492 if test -z "$ac_err"; then
2494 eval "ac_cv_header_$ac_safe=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 eval "ac_cv_header_$ac_safe=no"
2504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2505 echo "$ac_t""yes" 1>&6
2508 echo "$ac_t""no" 1>&6
2512 if test "$MINIX" = yes; then
2513 cat >> confdefs.h <<\EOF
2514 #define _POSIX_SOURCE 1
2517 cat >> confdefs.h <<\EOF
2518 #define _POSIX_1_SOURCE 2
2521 cat >> confdefs.h <<\EOF
2528 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2529 echo "configure:2530: checking for Cygwin environment" >&5
2530 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2540 #define __CYGWIN__ __CYGWIN32__
2545 if { (eval echo configure:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2558 echo "$ac_t""$ac_cv_cygwin" 1>&6
2560 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2561 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2562 echo "configure:2563: checking for mingw32 environment" >&5
2563 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2564 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2574 if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2587 echo "$ac_t""$ac_cv_mingw32" 1>&6
2589 test "$ac_cv_mingw32" = yes && MINGW32=yes
2592 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2593 echo "configure:2594: checking for executable suffix" >&5
2594 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2601 echo 'int main () { return 0; }' > conftest.$ac_ext
2603 if { (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2604 for file in conftest.*; do
2606 *.c | *.o | *.obj) ;;
2607 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2611 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2614 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2619 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2620 echo "$ac_t""${ac_cv_exeext}" 1>&6
2623 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2624 echo "configure:2625: checking for object suffix" >&5
2625 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2629 echo 'int i = 1;' > conftest.$ac_ext
2630 if { (eval echo configure:2631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2631 for ac_file in conftest.*; do
2634 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2638 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2643 echo "$ac_t""$ac_cv_objext" 1>&6
2644 OBJEXT=$ac_cv_objext
2645 ac_objext=$ac_cv_objext
2651 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2652 echo "configure:2653: checking for ${CC-cc} option to accept ANSI C" >&5
2653 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 am_cv_prog_cc_stdc=no
2658 # Don't try gcc -ansi; that turns off useful extensions and
2659 # breaks some systems' header files.
2660 # AIX -qlanglvl=ansi
2661 # Ultrix and OSF/1 -std1
2662 # HP-UX -Aa -D_HPUX_SOURCE
2663 # SVR4 -Xc -D__EXTENSIONS__
2664 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666 CC="$ac_save_CC $ac_arg"
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2688 s = g (p, va_arg (v,int));
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2705 if { (eval echo configure:2706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2707 am_cv_prog_cc_stdc="$ac_arg"; break
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2718 if test -z "$am_cv_prog_cc_stdc"; then
2719 echo "$ac_t""none needed" 1>&6
2721 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2723 case "x$am_cv_prog_cc_stdc" in
2725 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2728 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2729 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2735 echo $ac_n "checking for socket""... $ac_c" 1>&6
2736 echo "configure:2737: checking for socket" >&5
2737 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char socket(); below. */
2746 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2753 /* The GNU C library defines this for functions which it implements
2754 to always fail with ENOSYS. Some functions are actually named
2755 something starting with __ and the normal name is an alias. */
2756 #if defined (__stub_socket) || defined (__stub___socket)
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2766 eval "ac_cv_func_socket=yes"
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2771 eval "ac_cv_func_socket=no"
2776 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2780 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2783 echo "configure:2784: checking for main in -lsocket" >&5
2784 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 ac_save_LIBS="$LIBS"
2789 LIBS="-lsocket $LIBS"
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2800 eval "ac_cv_lib_$ac_lib_var=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 eval "ac_cv_lib_$ac_lib_var=no"
2808 LIBS="$ac_save_LIBS"
2811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2813 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2815 cat >> confdefs.h <<EOF
2816 #define $ac_tr_lib 1
2819 LIBS="-lsocket $LIBS"
2822 echo "$ac_t""no" 1>&6
2825 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2826 echo "configure:2827: checking for main in -lnet" >&5
2827 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 ac_save_LIBS="$LIBS"
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2843 eval "ac_cv_lib_$ac_lib_var=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 eval "ac_cv_lib_$ac_lib_var=no"
2851 LIBS="$ac_save_LIBS"
2854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2858 cat >> confdefs.h <<EOF
2859 #define $ac_tr_lib 1
2865 echo "$ac_t""no" 1>&6
2868 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2869 echo "configure:2870: checking for main in -lnsl_s" >&5
2870 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 ac_save_LIBS="$LIBS"
2875 LIBS="-lnsl_s $LIBS"
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 eval "ac_cv_lib_$ac_lib_var=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_lib_$ac_lib_var=no"
2894 LIBS="$ac_save_LIBS"
2897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2901 cat >> confdefs.h <<EOF
2902 #define $ac_tr_lib 1
2905 LIBS="-lnsl_s $LIBS"
2908 echo "$ac_t""no" 1>&6
2911 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2912 echo "configure:2913: checking for main in -lnsl" >&5
2913 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 ac_save_LIBS="$LIBS"
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2927 if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2929 eval "ac_cv_lib_$ac_lib_var=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2934 eval "ac_cv_lib_$ac_lib_var=no"
2937 LIBS="$ac_save_LIBS"
2940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2941 echo "$ac_t""yes" 1>&6
2942 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2943 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2944 cat >> confdefs.h <<EOF
2945 #define $ac_tr_lib 1
2951 echo "$ac_t""no" 1>&6
2954 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2955 echo "configure:2956: checking for socket in -linet" >&5
2956 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 ac_save_LIBS="$LIBS"
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 /* Override any gcc2 internal prototype to avoid an error. */
2966 /* We use char because int might match the return type of a gcc2
2967 builtin and then its argument prototype would still apply. */
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2976 eval "ac_cv_lib_$ac_lib_var=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2981 eval "ac_cv_lib_$ac_lib_var=no"
2984 LIBS="$ac_save_LIBS"
2987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2988 echo "$ac_t""yes" 1>&6
2989 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2990 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2991 cat >> confdefs.h <<EOF
2992 #define $ac_tr_lib 1
2998 echo "$ac_t""no" 1>&6
3001 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3002 echo "configure:3003: checking for main in -lgen" >&5
3003 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 ac_save_LIBS="$LIBS"
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3019 eval "ac_cv_lib_$ac_lib_var=yes"
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 eval "ac_cv_lib_$ac_lib_var=no"
3027 LIBS="$ac_save_LIBS"
3030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3033 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3034 cat >> confdefs.h <<EOF
3035 #define $ac_tr_lib 1
3041 echo "$ac_t""no" 1>&6
3048 for ac_func in res_search
3050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_func" >&5
3052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 /* System header to define __stub macros and hopefully few prototypes,
3059 which can conflict with char $ac_func(); below. */
3061 /* Override any gcc2 internal prototype to avoid an error. */
3062 /* We use char because int might match the return type of a gcc2
3063 builtin and then its argument prototype would still apply. */
3068 /* The GNU C library defines this for functions which it implements
3069 to always fail with ENOSYS. Some functions are actually named
3070 something starting with __ and the normal name is an alias. */
3071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3081 eval "ac_cv_func_$ac_func=yes"
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 eval "ac_cv_func_$ac_func=no"
3091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3092 echo "$ac_t""yes" 1>&6
3093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3094 cat >> confdefs.h <<EOF
3095 #define $ac_tr_func 1
3099 echo "$ac_t""no" 1>&6
3103 if test $ac_cv_func_res_search = "no" ; then
3104 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3105 echo "configure:3106: checking for res_search in -lbind" >&5
3106 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 ac_save_LIBS="$LIBS"
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* Override any gcc2 internal prototype to avoid an error. */
3116 /* We use char because int might match the return type of a gcc2
3117 builtin and then its argument prototype would still apply. */
3124 if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3126 eval "ac_cv_lib_$ac_lib_var=yes"
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3131 eval "ac_cv_lib_$ac_lib_var=no"
3134 LIBS="$ac_save_LIBS"
3137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3138 echo "$ac_t""yes" 1>&6
3139 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3141 cat >> confdefs.h <<EOF
3142 #define $ac_tr_lib 1
3148 echo "$ac_t""no" 1>&6
3151 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3152 cat >> confdefs.h <<\EOF
3153 #define HAVE_RES_SEARCH 1
3157 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3158 echo "configure:3159: checking for res_search in -lresolv" >&5
3159 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_save_LIBS="$LIBS"
3164 LIBS="-lresolv $LIBS"
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 /* Override any gcc2 internal prototype to avoid an error. */
3169 /* We use char because int might match the return type of a gcc2
3170 builtin and then its argument prototype would still apply. */
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 eval "ac_cv_lib_$ac_lib_var=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_lib_$ac_lib_var=no"
3187 LIBS="$ac_save_LIBS"
3190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3194 cat >> confdefs.h <<EOF
3195 #define $ac_tr_lib 1
3198 LIBS="-lresolv $LIBS"
3201 echo "$ac_t""no" 1>&6
3204 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3205 cat >> confdefs.h <<\EOF
3206 #define HAVE_RES_SEARCH 1
3213 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3214 echo "configure:3215: checking for sigset in -lV3" >&5
3215 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_save_LIBS="$LIBS"
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3235 eval "ac_cv_lib_$ac_lib_var=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 eval "ac_cv_lib_$ac_lib_var=no"
3243 LIBS="$ac_save_LIBS"
3246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3247 echo "$ac_t""yes" 1>&6
3248 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3250 cat >> confdefs.h <<EOF
3251 #define $ac_tr_lib 1
3257 echo "$ac_t""no" 1>&6
3263 if test $ol_enable_ldapd != no ; then
3264 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3265 echo "configure:3266: checking for main in -lxtpp" >&5
3266 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 ac_save_LIBS="$LIBS"
3271 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3282 eval "ac_cv_lib_$ac_lib_var=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_lib_$ac_lib_var=no"
3290 LIBS="$ac_save_LIBS"
3293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3294 echo "$ac_t""yes" 1>&6
3297 cat >> confdefs.h <<\EOF
3301 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3304 echo "$ac_t""no" 1>&6
3308 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3309 echo "configure:3310: checking for main in -ldsap" >&5
3310 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3311 if eval "test \"`echo '$''{'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="-ldsap -lisode $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 -ldsap"
3348 echo "$ac_t""no" 1>&6
3352 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3353 echo "configure:3354: checking for main in -lisode" >&5
3354 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3355 if eval "test \"`echo '$''{'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="-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
3386 #define HAVE_ISODE 1
3389 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3392 echo "$ac_t""no" 1>&6
3398 if test $ol_link_isode != no; then
3399 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3400 echo "configure:3401: checking for main in -lpp" >&5
3401 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 ac_save_LIBS="$LIBS"
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417 eval "ac_cv_lib_$ac_lib_var=yes"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3422 eval "ac_cv_lib_$ac_lib_var=no"
3425 LIBS="$ac_save_LIBS"
3428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3431 cat >> confdefs.h <<\EOF
3435 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3438 echo "$ac_t""no" 1>&6
3443 # Extract the first word of "pepsy", so it can be a program name with args.
3444 set dummy pepsy; ac_word=$2
3445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_word" >&5
3447 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3452 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3455 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3458 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3460 for ac_dir in $ac_dummy; do
3461 test -z "$ac_dir" && ac_dir=.
3462 if test -f $ac_dir/$ac_word; then
3463 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3471 PEPSY="$ac_cv_path_PEPSY"
3472 if test -n "$PEPSY"; then
3473 echo "$ac_t""$PEPSY" 1>&6
3475 echo "$ac_t""no" 1>&6
3482 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3483 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3487 echo "configure:3488: checking for $ac_hdr" >&5
3488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3497 { (eval echo configure:3498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3499 if test -z "$ac_err"; then
3501 eval "ac_cv_header_$ac_safe=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_header_$ac_safe=no"
3511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3514 cat >> confdefs.h <<EOF
3515 #define $ac_tr_hdr 1
3519 echo "$ac_t""no" 1>&6
3524 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3525 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3526 echo "configure:3527: checking for main in -lkrb4" >&5
3527 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 ac_save_LIBS="$LIBS"
3532 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3541 if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3543 eval "ac_cv_lib_$ac_lib_var=yes"
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 eval "ac_cv_lib_$ac_lib_var=no"
3551 LIBS="$ac_save_LIBS"
3554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3555 echo "$ac_t""yes" 1>&6
3558 echo "$ac_t""no" 1>&6
3563 if test $have_k5 = yes ; then
3564 ol_with_kerberos=found
3565 ol_link_kerberos=yes
3567 cat >> confdefs.h <<\EOF
3568 #define HAVE_KERBEROS 1
3571 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3576 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3577 for ac_hdr in krb.h des.h
3579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3581 echo "configure:3582: checking for $ac_hdr" >&5
3582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3591 { (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3593 if test -z "$ac_err"; then
3595 eval "ac_cv_header_$ac_safe=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 eval "ac_cv_header_$ac_safe=no"
3605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3608 cat >> confdefs.h <<EOF
3609 #define $ac_tr_hdr 1
3613 echo "$ac_t""no" 1>&6
3618 if test $ac_cv_header_krb_h = yes ; then
3619 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3620 echo "configure:3621: checking for main in -lkrb" >&5
3621 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3626 LIBS="-lkrb -ldes $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 eval "ac_cv_lib_$ac_lib_var=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 eval "ac_cv_lib_$ac_lib_var=no"
3645 LIBS="$ac_save_LIBS"
3648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3652 echo "$ac_t""no" 1>&6
3657 if test $have_k4 = yes ; then
3658 ol_with_kerberos=found
3659 ol_link_kerberos=yes
3661 cat >> confdefs.h <<\EOF
3662 #define HAVE_KERBEROS 1
3665 KRB_LIBS="-lkrb -ldes"
3672 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3673 -o $ol_with_threads = posix ; then
3675 for ac_hdr in pthread.h sched.h
3677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3679 echo "configure:3680: checking for $ac_hdr" >&5
3680 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3689 { (eval echo configure:3690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3691 if test -z "$ac_err"; then
3693 eval "ac_cv_header_$ac_safe=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 eval "ac_cv_header_$ac_safe=no"
3703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3706 cat >> confdefs.h <<EOF
3707 #define $ac_tr_hdr 1
3711 echo "$ac_t""no" 1>&6
3716 if test $ac_cv_header_pthread_h = yes ; then
3717 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3718 echo "configure:3719: checking POSIX thread version" >&5
3719 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3727 # include <pthread.h>
3728 /* this check could be improved */
3729 # ifdef PTHREAD_ONCE_INIT
3730 pthread_version_final
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 egrep "pthread_version_final" >/dev/null 2>&1; then
3737 ol_pthread_final=yes
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3749 # include <pthread.h>
3750 /* this check could be improved */
3751 # ifdef pthread_once_init
3752 pthread_version_draft4
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3757 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3759 ol_pthread_draft4=yes
3762 ol_pthread_draft4=no
3767 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3768 ol_cv_pthread_version=final
3769 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3770 ol_cv_pthread_version=draft4
3772 ol_cv_pthread_version=unknown
3777 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3780 if test $ol_cv_pthread_version = final ; then
3781 cat >> confdefs.h <<\EOF
3782 #define HAVE_PTHREADS_FINAL 1
3785 elif test $ol_cv_pthread_version = draft4 ; then
3786 cat >> confdefs.h <<\EOF
3787 #define HAVE_PTHREADS_D4 1
3791 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3794 # consider threads found
3795 ol_with_threads=found
3798 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3799 echo "configure:3800: checking for LinuxThreads" >&5
3800 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3804 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3805 if test "$res" -gt 0 ; then
3806 ol_cv_linux_threads=yes
3808 ol_cv_linux_threads=no
3813 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3816 if test $ol_cv_linux_threads = yes ; then
3817 cat >> confdefs.h <<\EOF
3818 #define HAVE_LINUX_THREADS 1
3824 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3825 echo "configure:3826: checking for pthread_create" >&5
3826 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* System header to define __stub macros and hopefully few prototypes,
3833 which can conflict with char pthread_create(); below. */
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char pthread_create();
3842 /* The GNU C library defines this for functions which it implements
3843 to always fail with ENOSYS. Some functions are actually named
3844 something starting with __ and the normal name is an alias. */
3845 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 eval "ac_cv_func_pthread_create=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_func_pthread_create=no"
3865 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3869 echo "$ac_t""no" 1>&6
3873 if test $ol_link_threads = no ; then
3874 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3875 echo "configure:3876: checking for pthread_create with -kthread" >&5
3876 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3881 LIBS="-kthread $LIBS"
3882 cat > conftest.$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3894 ol_cv_kthread_flag=yes
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 ol_cv_kthread_flag=no
3906 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3908 if test $ol_cv_kthread_flag = yes ; then
3909 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
3910 ol_link_threads=posix
3914 if test $ol_link_threads = no ; then
3915 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3916 echo "configure:3917: checking for pthread_create with -pthread" >&5
3917 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3922 LIBS="-pthread $LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3935 ol_cv_pthread_flag=yes
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 ol_cv_pthread_flag=no
3947 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3949 if test $ol_cv_pthread_flag = yes ; then
3950 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3951 ol_link_threads=posix
3955 if test $ol_link_threads = no ; then
3956 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3957 echo "configure:3958: checking for pthread_create with -pthreads" >&5
3958 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3963 LIBS="-pthreads $LIBS"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976 ol_cv_pthreads_flag=yes
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 ol_cv_pthreads_flag=no
3988 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3990 if test $ol_cv_pthreads_flag = yes ; then
3991 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3992 ol_link_threads=posix
3996 if test $ol_link_threads = no ; then
3997 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3998 echo "configure:3999: checking for pthread_create with -thread" >&5
3999 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4004 LIBS="-thread $LIBS"
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4017 ol_cv_thread_flag=yes
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 ol_cv_thread_flag=no
4029 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4031 if test $ol_cv_thread_flag = yes ; then
4032 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4033 ol_link_threads=posix
4037 if test $ol_link_threads = no ; then
4039 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4040 echo "configure:4041: checking for pthread_mutex_lock in -lpthread" >&5
4041 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 ac_save_LIBS="$LIBS"
4046 LIBS="-lpthread -lexc $LIBS"
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char pthread_mutex_lock();
4056 pthread_mutex_lock()
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4066 eval "ac_cv_lib_$ac_lib_var=no"
4069 LIBS="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4075 ol_link_threads=posix
4076 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4077 if test $ol_with_yielding_select = auto ; then
4078 ol_with_yielding_select=yes
4082 echo "$ac_t""no" 1>&6
4089 if test $ol_link_threads = no ; then
4091 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4092 echo "configure:4093: checking for pthread_mutex_unlock in -lpthreads" >&5
4093 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 ac_save_LIBS="$LIBS"
4098 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* Override any gcc2 internal prototype to avoid an error. */
4103 /* We use char because int might match the return type of a gcc2
4104 builtin and then its argument prototype would still apply. */
4105 char pthread_mutex_unlock();
4108 pthread_mutex_unlock()
4111 if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4113 eval "ac_cv_lib_$ac_lib_var=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4118 eval "ac_cv_lib_$ac_lib_var=no"
4121 LIBS="$ac_save_LIBS"
4124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4127 ol_link_threads=posix
4128 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4129 if test $ol_with_yielding_select = auto ; then
4130 ol_with_yielding_select=yes
4134 echo "$ac_t""no" 1>&6
4141 if test $ol_link_threads = no ; then
4143 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4144 echo "configure:4145: checking for pthread_create in -lpthread" >&5
4145 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 ac_save_LIBS="$LIBS"
4150 LIBS="-lpthread $LIBS"
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4157 char pthread_create();
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_lib_$ac_lib_var=no"
4173 LIBS="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4179 ol_link_threads=posix
4180 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4182 echo "$ac_t""no" 1>&6
4189 if test $ol_link_threads = no ; then
4191 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4192 echo "configure:4193: checking for pthread_create in -lc_r" >&5
4193 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4197 ac_save_LIBS="$LIBS"
4199 cat > conftest.$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4205 char pthread_create();
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4213 eval "ac_cv_lib_$ac_lib_var=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_lib_$ac_lib_var=no"
4221 LIBS="$ac_save_LIBS"
4224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4225 echo "$ac_t""yes" 1>&6
4227 ol_link_threads=posix
4228 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4230 echo "$ac_t""no" 1>&6
4237 if test $ol_link_threads = no ; then
4239 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4240 echo "configure:4241: checking for pthread_create in -lpthreads" >&5
4241 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 ac_save_LIBS="$LIBS"
4246 LIBS="-lpthreads $LIBS"
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4253 char pthread_create();
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_lib_$ac_lib_var=no"
4269 LIBS="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4275 ol_link_threads=posix
4276 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4278 echo "$ac_t""no" 1>&6
4285 if test $ol_link_threads = no ; then
4287 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4288 echo "configure:4289: checking for pthread_join in -lpthreads" >&5
4289 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 ac_save_LIBS="$LIBS"
4294 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 /* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301 char pthread_join();
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309 eval "ac_cv_lib_$ac_lib_var=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_lib_$ac_lib_var=no"
4317 LIBS="$ac_save_LIBS"
4320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4323 ol_link_threads=posix
4324 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4327 echo "$ac_t""no" 1>&6
4334 if test $ol_link_threads = no; then
4336 LIBS="$LIBS -lpthread"
4337 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4338 echo "configure:4339: checking for pthread_create() in HP-UX -lpthread" >&5
4339 ol_try_pthread_hpux_11=no
4340 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4348 #include <pthread.h>
4350 #ifndef ELFABI_HPUX_REL11
4355 pthread_create(NULL, NULL, NULL, NULL);
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 ol_try_pthread_hpux_11=yes
4361 ol_cv_pthread_hpux_11=yes
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 ol_cv_pthread_hpux_11=no
4371 echo "$ac_t""yes" 1>&6
4374 if test $ol_cv_pthread_hpux_11=yes ; then
4375 ol_link_threads=posix
4376 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4377 if test $ol_try_pthread_hpux_11=yes ; then
4378 ac_cv_func_pthread_attr_init=yes
4383 if test $ol_link_threads != no ; then
4384 cat >> confdefs.h <<\EOF
4385 #define HAVE_PTHREADS 1
4389 save_CPPFLAGS="$CPPFLAGS"
4391 LIBS="$LTHREAD_LIBS $LIBS"
4393 for ac_func in sched_yield pthread_yield
4395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_func" >&5
4397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* System header to define __stub macros and hopefully few prototypes,
4404 which can conflict with char $ac_func(); below. */
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 /* We use char because int might match the return type of a gcc2
4408 builtin and then its argument prototype would still apply. */
4413 /* The GNU C library defines this for functions which it implements
4414 to always fail with ENOSYS. Some functions are actually named
4415 something starting with __ and the normal name is an alias. */
4416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4426 eval "ac_cv_func_$ac_func=yes"
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4431 eval "ac_cv_func_$ac_func=no"
4436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4437 echo "$ac_t""yes" 1>&6
4438 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4439 cat >> confdefs.h <<EOF
4440 #define $ac_tr_func 1
4444 echo "$ac_t""no" 1>&6
4449 if test $ac_cv_func_sched_yield = no -a \
4450 $ac_cv_func_pthread_yield = no ; then
4451 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4452 echo "configure:4453: checking for sched_yield in -lrt" >&5
4453 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 ac_save_LIBS="$LIBS"
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 eval "ac_cv_lib_$ac_lib_var=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_lib_$ac_lib_var=no"
4481 LIBS="$ac_save_LIBS"
4484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6
4486 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4487 cat >> confdefs.h <<\EOF
4488 #define HAVE_SCHED_YIELD 1
4491 ac_cv_func_sched_yield=yes
4493 echo "$ac_t""no" 1>&6
4494 ac_cv_func_sched_yield=no
4498 if test $ac_cv_func_sched_yield = no -a \
4499 $ac_cv_func_pthread_yield = no ; then
4500 for ac_func in thr_yield
4502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4503 echo "configure:4504: checking for $ac_func" >&5
4504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* System header to define __stub macros and hopefully few prototypes,
4511 which can conflict with char $ac_func(); below. */
4513 /* Override any gcc2 internal prototype to avoid an error. */
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4520 /* The GNU C library defines this for functions which it implements
4521 to always fail with ENOSYS. Some functions are actually named
4522 something starting with __ and the normal name is an alias. */
4523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 eval "ac_cv_func_$ac_func=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 eval "ac_cv_func_$ac_func=no"
4543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4544 echo "$ac_t""yes" 1>&6
4545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4546 cat >> confdefs.h <<EOF
4547 #define $ac_tr_func 1
4551 echo "$ac_t""no" 1>&6
4556 if test $ac_cv_func_sched_yield = no -a \
4557 $ac_cv_func_pthread_yield = no -a \
4558 "$ac_cv_func_thr_yield" = no ; then
4559 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4562 for ac_func in pthread_kill pthread_detach
4564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_func" >&5
4566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 /* System header to define __stub macros and hopefully few prototypes,
4573 which can conflict with char $ac_func(); below. */
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_func_$ac_func=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_func_$ac_func=no"
4605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4608 cat >> confdefs.h <<EOF
4609 #define $ac_tr_func 1
4613 echo "$ac_t""no" 1>&6
4618 if test $ac_cv_func_pthread_detach = no ; then
4619 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
4623 pthread_setconcurrency \
4624 pthread_getconcurrency \
4625 thr_setconcurrency \
4626 thr_getconcurrency \
4629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_func" >&5
4631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 /* System header to define __stub macros and hopefully few prototypes,
4638 which can conflict with char $ac_func(); below. */
4640 /* Override any gcc2 internal prototype to avoid an error. */
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4647 /* The GNU C library defines this for functions which it implements
4648 to always fail with ENOSYS. Some functions are actually named
4649 something starting with __ and the normal name is an alias. */
4650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_func_$ac_func=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_func_$ac_func=no"
4670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4671 echo "$ac_t""yes" 1>&6
4672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4673 cat >> confdefs.h <<EOF
4674 #define $ac_tr_func 1
4678 echo "$ac_t""no" 1>&6
4683 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4684 echo "configure:4685: checking if pthread_create() works" >&5
4685 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4689 if test "$cross_compiling" = yes; then
4690 ol_cv_pthread_create_works=yes
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4696 #include <pthread.h>
4698 #define NULL (void*)0
4701 static void *task(p)
4704 return (void *) (p == NULL);
4707 int main(argc, argv)
4712 exit(pthread_create(&t, NULL, task, NULL));
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4718 ol_cv_pthread_create_works=yes
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4723 ol_cv_pthread_create_works=no
4730 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4732 if test $ol_cv_pthread_create_works = no ; then
4733 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4736 if test $ol_with_yielding_select = auto ; then
4737 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4738 echo "configure:4739: checking if select yields when using pthreads" >&5
4739 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4743 if test "$cross_compiling" = yes; then
4745 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4751 #include <sys/types.h>
4752 #include <sys/time.h>
4754 #include <pthread.h>
4756 #define NULL (void*) 0
4759 static int fildes[2];
4761 static void *task(p)
4773 FD_SET(fildes[0], &rfds);
4775 /* we're not interested in any fds */
4776 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4783 exit(0); /* if we exit here, the select blocked the whole process */
4786 int main(argc, argv)
4792 /* create a pipe to select */
4793 if(pipe(&fildes[0])) {
4798 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4799 (void) pthread_setconcurrency(2);
4801 #ifdef HAVE_THR_SETCONCURRENCY
4802 /* Set Solaris LWP concurrency to 2 */
4803 thr_setconcurrency(2);
4807 pthread_create(&t, NULL, task, NULL);
4809 #if HAVE_SCHED_YIELD
4810 sched_yield(); /* make sure task runs first */
4812 #ifdef HAVE_PTHREAD_YIELD
4813 pthread_yield(); /* make sure task runs first */
4820 if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4822 ol_cv_pthread_select_yields=no
4824 echo "configure: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4827 ol_cv_pthread_select_yields=yes
4834 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4836 if test $ol_cv_pthread_select_yields = yes ; then
4837 ol_with_yielding_select=yes
4841 CPPFLAGS="$save_CPPFLAGS"
4844 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4848 if test $ol_with_threads = posix ; then
4849 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4853 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4854 -o $ol_with_threads = mach ; then
4856 for ac_hdr in mach/cthreads.h
4858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4860 echo "configure:4861: checking for $ac_hdr" >&5
4861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4870 { (eval echo configure:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4872 if test -z "$ac_err"; then
4874 eval "ac_cv_header_$ac_safe=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 eval "ac_cv_header_$ac_safe=no"
4884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4887 cat >> confdefs.h <<EOF
4888 #define $ac_tr_hdr 1
4892 echo "$ac_t""no" 1>&6
4896 if test $ac_cv_header_mach_cthreads_h = yes ; then
4897 ol_with_threads=found
4899 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4900 echo "configure:4901: checking for cthread_fork" >&5
4901 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* System header to define __stub macros and hopefully few prototypes,
4908 which can conflict with char cthread_fork(); below. */
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4913 char cthread_fork();
4917 /* The GNU C library defines this for functions which it implements
4918 to always fail with ENOSYS. Some functions are actually named
4919 something starting with __ and the normal name is an alias. */
4920 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4928 if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 eval "ac_cv_func_cthread_fork=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_func_cthread_fork=no"
4940 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4941 echo "$ac_t""yes" 1>&6
4944 echo "$ac_t""no" 1>&6
4948 if test $ol_link_threads = no ; then
4949 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4950 echo "configure:4951: checking for cthread_fork with -all_load" >&5
4951 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4956 LIBS="-all_load $LIBS"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 #include <mach/cthreads.h>
4963 cthread_fork((void *)0, (void *)0);
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4969 ol_cv_cthread_all_load=yes
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4974 ol_cv_cthread_all_load=no
4981 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4983 if test $ol_cv_cthread_all_load = yes ; then
4984 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4985 ol_link_threads=mach
4989 if test $ol_link_threads != no ; then
4990 : check for cthread specific functionality here
4991 cat >> confdefs.h <<\EOF
4992 #define HAVE_MACH_CTHREADS 1
4996 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5000 if test $ol_with_threads = mach ; then
5001 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5005 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5006 -o $ol_with_threads = lwp ; then
5008 for ac_hdr in thread.h synch.h
5010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_hdr" >&5
5013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5022 { (eval echo configure:5023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5024 if test -z "$ac_err"; then
5026 eval "ac_cv_header_$ac_safe=yes"
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5032 eval "ac_cv_header_$ac_safe=no"
5036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5039 cat >> confdefs.h <<EOF
5040 #define $ac_tr_hdr 1
5044 echo "$ac_t""no" 1>&6
5048 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5049 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5050 echo "configure:5051: checking for thr_create in -lthread" >&5
5051 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 ac_save_LIBS="$LIBS"
5056 LIBS="-lthread $LIBS"
5057 cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5086 echo "$ac_t""no" 1>&6
5091 if test $have_thr = yes ; then
5092 cat >> confdefs.h <<\EOF
5096 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5099 if test $ol_with_yielding_select = auto ; then
5100 ol_with_yielding_select=yes
5104 thr_setconcurrency \
5105 thr_getconcurrency \
5108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5109 echo "configure:5110: checking for $ac_func" >&5
5110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5113 cat > conftest.$ac_ext <<EOF
5114 #line 5115 "configure"
5115 #include "confdefs.h"
5116 /* System header to define __stub macros and hopefully few prototypes,
5117 which can conflict with char $ac_func(); below. */
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5126 /* The GNU C library defines this for functions which it implements
5127 to always fail with ENOSYS. Some functions are actually named
5128 something starting with __ and the normal name is an alias. */
5129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5139 eval "ac_cv_func_$ac_func=yes"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5144 eval "ac_cv_func_$ac_func=no"
5149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5150 echo "$ac_t""yes" 1>&6
5151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5152 cat >> confdefs.h <<EOF
5153 #define $ac_tr_func 1
5157 echo "$ac_t""no" 1>&6
5164 for ac_hdr in lwp/lwp.h
5166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_hdr" >&5
5169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5178 { (eval echo configure:5179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5180 if test -z "$ac_err"; then
5182 eval "ac_cv_header_$ac_safe=yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 eval "ac_cv_header_$ac_safe=no"
5192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5195 cat >> confdefs.h <<EOF
5196 #define $ac_tr_hdr 1
5200 echo "$ac_t""no" 1>&6
5204 if test $ac_cv_header_lwp_lwp_h = yes ; then
5205 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5206 echo "configure:5207: checking for lwp_create in -llwp" >&5
5207 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 ac_save_LIBS="$LIBS"
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5227 eval "ac_cv_lib_$ac_lib_var=yes"
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 eval "ac_cv_lib_$ac_lib_var=no"
5235 LIBS="$ac_save_LIBS"
5238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5242 echo "$ac_t""no" 1>&6
5247 if test $have_lwp = yes ; then
5248 cat >> confdefs.h <<\EOF
5252 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5255 if test $ol_with_yielding_select = auto ; then
5256 ol_with_yielding_select=no
5262 if test $ol_with_yielding_select = yes ; then
5263 cat >> confdefs.h <<\EOF
5264 #define HAVE_YIELDING_SELECT 1
5269 if test $ol_with_threads = manual ; then
5272 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5274 for ac_hdr in pthread.h sched.h
5276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5278 echo "configure:5279: checking for $ac_hdr" >&5
5279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288 { (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290 if test -z "$ac_err"; then
5292 eval "ac_cv_header_$ac_safe=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_header_$ac_safe=no"
5302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5305 cat >> confdefs.h <<EOF
5306 #define $ac_tr_hdr 1
5310 echo "$ac_t""no" 1>&6
5314 for ac_func in sched_yield pthread_yield
5316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5317 echo "configure:5318: checking for $ac_func" >&5
5318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324 /* System header to define __stub macros and hopefully few prototypes,
5325 which can conflict with char $ac_func(); below. */
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5334 /* The GNU C library defines this for functions which it implements
5335 to always fail with ENOSYS. Some functions are actually named
5336 something starting with __ and the normal name is an alias. */
5337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5347 eval "ac_cv_func_$ac_func=yes"
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 eval "ac_cv_func_$ac_func=no"
5357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5358 echo "$ac_t""yes" 1>&6
5359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5360 cat >> confdefs.h <<EOF
5361 #define $ac_tr_func 1
5365 echo "$ac_t""no" 1>&6
5370 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5371 echo "configure:5372: checking for LinuxThreads" >&5
5372 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5376 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5377 if test "$res" -gt 0 ; then
5378 ol_cv_linux_threads=yes
5380 ol_cv_linux_threads=no
5385 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5388 for ac_hdr in mach/cthreads.h
5390 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_hdr" >&5
5393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5402 { (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5404 if test -z "$ac_err"; then
5406 eval "ac_cv_header_$ac_safe=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 eval "ac_cv_header_$ac_safe=no"
5416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5417 echo "$ac_t""yes" 1>&6
5418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5419 cat >> confdefs.h <<EOF
5420 #define $ac_tr_hdr 1
5424 echo "$ac_t""no" 1>&6
5428 for ac_hdr in lwp/lwp.h
5430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_hdr" >&5
5433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5442 { (eval echo configure:5443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5444 if test -z "$ac_err"; then
5446 eval "ac_cv_header_$ac_safe=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_header_$ac_safe=no"
5456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5459 cat >> confdefs.h <<EOF
5460 #define $ac_tr_hdr 1
5464 echo "$ac_t""no" 1>&6
5468 for ac_hdr in thread.h synch.h
5470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5472 echo "configure:5473: checking for $ac_hdr" >&5
5473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5482 { (eval echo configure:5483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5484 if test -z "$ac_err"; then
5486 eval "ac_cv_header_$ac_safe=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 eval "ac_cv_header_$ac_safe=no"
5496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5499 cat >> confdefs.h <<EOF
5500 #define $ac_tr_hdr 1
5504 echo "$ac_t""no" 1>&6
5510 if test $ol_link_threads != no ; then
5511 cat >> confdefs.h <<\EOF
5515 cat >> confdefs.h <<\EOF
5516 #define _REENTRANT 1
5519 cat >> confdefs.h <<\EOF
5520 #define THREAD_SAFE 1
5523 cat >> confdefs.h <<\EOF
5524 #define _THREAD_SAFE 1
5527 cat >> confdefs.h <<\EOF
5528 #define THREADSAFE 1
5531 cat >> confdefs.h <<\EOF
5532 #define _THREADSAFE 1
5536 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5537 echo "configure:5538: checking for thread specific errno" >&5
5538 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5556 ol_cv_errno_thread_specific=yes
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 ol_cv_errno_thread_specific=no
5567 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5569 if test $ol_cv_errno_thread_specific != yes ; then
5570 LIBS="$LTHREAD_LIBS $LIBS"
5577 if test $ol_link_threads = no ; then
5578 if test $ol_with_threads = yes ; then
5579 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5582 if test $ol_with_threads = auto ; then
5583 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5587 cat >> confdefs.h <<\EOF
5588 #define NO_THREADS 1
5595 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5596 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5597 echo "configure:5598: checking for DB2 library" >&5
5598 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5602 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5603 echo "configure:5604: checking for db_open in -ldb" >&5
5604 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 ac_save_LIBS="$LIBS"
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_lib_$ac_lib_var=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_lib_$ac_lib_var=no"
5632 LIBS="$ac_save_LIBS"
5635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5639 echo "$ac_t""no" 1>&6
5647 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5653 echo "configure:5654: checking for $ac_hdr" >&5
5654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5655 echo $ac_n "(cached) $ac_c" 1>&6
5657 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5665 if test -z "$ac_err"; then
5667 eval "ac_cv_header_$ac_safe=yes"
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 eval "ac_cv_header_$ac_safe=no"
5677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5680 cat >> confdefs.h <<EOF
5681 #define $ac_tr_hdr 1
5685 echo "$ac_t""no" 1>&6
5689 if test $ac_cv_header_db_h = yes ; then
5690 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5691 echo "configure:5692: checking if db.h is DB2" >&5
5692 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5701 /* this check could be improved */
5702 # ifdef DB_VERSION_MAJOR
5703 # if DB_VERSION_MAJOR == 2
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 egrep "__db_version_2" >/dev/null 2>&1; then
5712 ol_cv_header_db2=yes
5721 echo "$ac_t""$ol_cv_header_db2" 1>&6
5728 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5729 echo "configure:5730: checking for Berkeley DB2" >&5
5730 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5734 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
5735 ol_cv_berkeley_db2=no
5737 ol_cv_berkeley_db2=yes
5742 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5743 if test $ol_cv_berkeley_db2 = yes ; then
5744 cat >> confdefs.h <<\EOF
5745 #define HAVE_BERKELEY_DB2 1
5751 if test $ol_cv_berkeley_db2 = yes ; then
5753 ol_with_ldbm_api=db2
5755 if test $ol_with_ldbm_type = hash ; then
5756 cat >> confdefs.h <<\EOF
5757 #define LDBM_USE_DBHASH 1
5761 cat >> confdefs.h <<\EOF
5762 #define LDBM_USE_DBBTREE 1
5767 if test $ol_cv_lib_db2 != yes ; then
5768 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5773 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5774 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5775 echo "configure:5776: checking for Berkeley DB library" >&5
5776 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5780 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5781 echo "configure:5782: checking for dbopen" >&5
5782 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5788 /* System header to define __stub macros and hopefully few prototypes,
5789 which can conflict with char dbopen(); below. */
5791 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5798 /* The GNU C library defines this for functions which it implements
5799 to always fail with ENOSYS. Some functions are actually named
5800 something starting with __ and the normal name is an alias. */
5801 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5809 if { (eval echo configure:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5811 eval "ac_cv_func_dbopen=yes"
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5816 eval "ac_cv_func_dbopen=no"
5821 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5825 echo "$ac_t""no" 1>&6
5827 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5828 echo "configure:5829: checking for dbopen in -ldb" >&5
5829 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5831 echo $ac_n "(cached) $ac_c" 1>&6
5833 ac_save_LIBS="$LIBS"
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_lib_$ac_lib_var=no"
5857 LIBS="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5864 echo "$ac_t""no" 1>&6
5875 echo "$ac_t""$ol_cv_lib_db" 1>&6
5878 for ac_hdr in db_185.h
5880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_hdr" >&5
5883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5892 { (eval echo configure:5893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5894 if test -z "$ac_err"; then
5896 eval "ac_cv_header_$ac_safe=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 eval "ac_cv_header_$ac_safe=no"
5906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5909 cat >> confdefs.h <<EOF
5910 #define $ac_tr_hdr 1
5914 echo "$ac_t""no" 1>&6
5918 if test "$ol_cv_header_db2" = yes ; then
5920 ol_cv_header_db=$ac_cv_header_db_185_h
5922 ol_cv_header_db=$ac_cv_header_db_h
5927 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5928 echo "configure:5929: checking for Berkeley DB" >&5
5929 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5930 echo $ac_n "(cached) $ac_c" 1>&6
5933 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
5934 ol_cv_berkeley_db=no
5936 ol_cv_berkeley_db=yes
5941 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5942 if test $ol_cv_berkeley_db = yes ; then
5943 cat >> confdefs.h <<\EOF
5944 #define HAVE_BERKELEY_DB 1
5950 if test $ol_cv_berkeley_db = yes ; then
5954 if test $ol_with_ldbm_type = hash ; then
5955 cat >> confdefs.h <<\EOF
5956 #define LDBM_USE_DBHASH 1
5960 cat >> confdefs.h <<\EOF
5961 #define LDBM_USE_DBBTREE 1
5966 if test $ol_cv_lib_db != yes ; then
5967 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5972 if test $ol_with_ldbm_api = manual ; then
5975 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5977 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5981 echo "configure:5982: checking for $ac_hdr" >&5
5982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5991 { (eval echo configure:5992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5993 if test -z "$ac_err"; then
5995 eval "ac_cv_header_$ac_safe=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_header_$ac_safe=no"
6005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6006 echo "$ac_t""yes" 1>&6
6007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6008 cat >> confdefs.h <<EOF
6009 #define $ac_tr_hdr 1
6013 echo "$ac_t""no" 1>&6
6019 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6020 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6021 ol_with_ldbm_api=none
6024 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6025 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6026 echo "configure:6027: checking for GDBM library" >&5
6027 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6031 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6032 echo "configure:6033: checking for gdbm_open" >&5
6033 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char gdbm_open(); below. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6062 eval "ac_cv_func_gdbm_open=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 eval "ac_cv_func_gdbm_open=no"
6072 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6076 echo "$ac_t""no" 1>&6
6078 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6079 echo "configure:6080: checking for gdbm_open in -lgdbm" >&5
6080 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6084 ac_save_LIBS="$LIBS"
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6100 eval "ac_cv_lib_$ac_lib_var=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_lib_$ac_lib_var=no"
6108 LIBS="$ac_save_LIBS"
6111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ol_cv_lib_gdbm=-lgdbm
6115 echo "$ac_t""no" 1>&6
6126 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6129 for ac_hdr in gdbm.h
6131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_hdr" >&5
6134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6145 if test -z "$ac_err"; then
6147 eval "ac_cv_header_$ac_safe=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_header_$ac_safe=no"
6157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6160 cat >> confdefs.h <<EOF
6161 #define $ac_tr_hdr 1
6165 echo "$ac_t""no" 1>&6
6169 echo $ac_n "checking for db""... $ac_c" 1>&6
6170 echo "configure:6171: checking for db" >&5
6171 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6175 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6183 echo "$ac_t""$ol_cv_gdbm" 1>&6
6184 if test $ol_cv_gdbm = yes ; then
6185 cat >> confdefs.h <<\EOF
6192 if test $ol_cv_gdbm = yes ; then
6194 ol_with_ldbm_api=gdbm
6196 if test $ol_cv_lib_gdbm != yes ; then
6197 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6202 if test $ol_with_ldbm_api = auto ; then
6203 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6204 elif test $ol_with_ldbm_api = ndbm ; then
6205 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6206 echo "configure:6207: checking for NDBM library" >&5
6207 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6211 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6212 echo "configure:6213: checking for dbm_open" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char dbm_open(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6242 eval "ac_cv_func_dbm_open=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 eval "ac_cv_func_dbm_open=no"
6252 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6256 echo "$ac_t""no" 1>&6
6258 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6259 echo "configure:6260: checking for dbm_open in -lndbm" >&5
6260 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6262 echo $ac_n "(cached) $ac_c" 1>&6
6264 ac_save_LIBS="$LIBS"
6266 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6269 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 eval "ac_cv_lib_$ac_lib_var=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 eval "ac_cv_lib_$ac_lib_var=no"
6288 LIBS="$ac_save_LIBS"
6291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ol_cv_lib_ndbm=-lndbm
6295 echo "$ac_t""no" 1>&6
6297 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6298 echo "configure:6299: checking for dbm_open in -ldbm" >&5
6299 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 ac_save_LIBS="$LIBS"
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6317 if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6319 eval "ac_cv_lib_$ac_lib_var=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 eval "ac_cv_lib_$ac_lib_var=no"
6327 LIBS="$ac_save_LIBS"
6330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6331 echo "$ac_t""yes" 1>&6
6332 ol_cv_lib_ndbm=-ldbm
6334 echo "$ac_t""no" 1>&6
6347 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6350 for ac_hdr in ndbm.h
6352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6354 echo "configure:6355: checking for $ac_hdr" >&5
6355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6364 { (eval echo configure:6365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6366 if test -z "$ac_err"; then
6368 eval "ac_cv_header_$ac_safe=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 eval "ac_cv_header_$ac_safe=no"
6378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6381 cat >> confdefs.h <<EOF
6382 #define $ac_tr_hdr 1
6386 echo "$ac_t""no" 1>&6
6390 echo $ac_n "checking for db""... $ac_c" 1>&6
6391 echo "configure:6392: checking for db" >&5
6392 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6396 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6404 echo "$ac_t""$ol_cv_ndbm" 1>&6
6405 if test $ol_cv_ndbm = yes ; then
6406 cat >> confdefs.h <<\EOF
6413 if test $ol_cv_ndbm = yes ; then
6415 ol_with_ldbm_api=ndbm
6417 if test $ol_cv_lib_ndbm != yes ; then
6418 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6423 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6424 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6425 if test $ol_enable_ldbm = yes ; then
6426 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6429 echo "configure: warning: disabling LDBM" 1>&2
6433 if test $ol_enable_wrappers != no ; then
6434 for ac_hdr in tcpd.h
6436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6438 echo "configure:6439: checking for $ac_hdr" >&5
6439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6448 { (eval echo configure:6449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6450 if test -z "$ac_err"; then
6452 eval "ac_cv_header_$ac_safe=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_header_$ac_safe=no"
6462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6463 echo "$ac_t""yes" 1>&6
6464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6465 cat >> confdefs.h <<EOF
6466 #define $ac_tr_hdr 1
6470 echo "$ac_t""no" 1>&6
6475 if test $ac_cv_header_tcpd_h != yes ; then
6478 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6479 echo "configure:6480: checking for main in -lwrap" >&5
6480 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6482 echo $ac_n "(cached) $ac_c" 1>&6
6484 ac_save_LIBS="$LIBS"
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_lib_$ac_lib_var=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_lib_$ac_lib_var=no"
6504 LIBS="$ac_save_LIBS"
6507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6508 echo "$ac_t""yes" 1>&6
6511 echo "$ac_t""no" 1>&6
6517 if test $have_wrappers = yes ; then
6518 cat >> confdefs.h <<\EOF
6522 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6524 echo "configure: warning: could not find -lwrap" 1>&2
6525 if test $ol_enable_wrappers = yes ; then
6526 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6529 echo "configure: warning: disabling wrappers support" 1>&2
6530 ol_enable_wrappers=no
6534 if test $ol_enable_syslog != no ; then
6535 echo $ac_n "checking for openlog""... $ac_c" 1>&6
6536 echo "configure:6537: checking for openlog" >&5
6537 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
6538 echo $ac_n "(cached) $ac_c" 1>&6
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 /* System header to define __stub macros and hopefully few prototypes,
6544 which can conflict with char openlog(); below. */
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 /* We use char because int might match the return type of a gcc2
6548 builtin and then its argument prototype would still apply. */
6553 /* The GNU C library defines this for functions which it implements
6554 to always fail with ENOSYS. Some functions are actually named
6555 something starting with __ and the normal name is an alias. */
6556 #if defined (__stub_openlog) || defined (__stub___openlog)
6564 if { (eval echo configure:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6566 eval "ac_cv_func_openlog=yes"
6568 echo "configure: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6571 eval "ac_cv_func_openlog=no"
6576 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
6577 echo "$ac_t""yes" 1>&6
6580 echo "$ac_t""no" 1>&6
6583 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
6584 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
6586 ol_enable_syslog=$ac_cv_func_openlog
6589 if test $ol_enable_dmalloc != no ; then
6590 for ac_hdr in dmalloc.h
6592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6594 echo "configure:6595: checking for $ac_hdr" >&5
6595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6596 echo $ac_n "(cached) $ac_c" 1>&6
6598 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure"
6600 #include "confdefs.h"
6603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6604 { (eval echo configure:6605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6606 if test -z "$ac_err"; then
6608 eval "ac_cv_header_$ac_safe=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_header_$ac_safe=no"
6618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6621 cat >> confdefs.h <<EOF
6622 #define $ac_tr_hdr 1
6626 echo "$ac_t""no" 1>&6
6630 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6631 echo "configure:6632: checking for dmalloc_shutdown in -ldmalloc" >&5
6632 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 ac_save_LIBS="$LIBS"
6637 LIBS="-ldmalloc $LIBS"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644 char dmalloc_shutdown();
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6660 LIBS="$ac_save_LIBS"
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6665 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6667 cat >> confdefs.h <<EOF
6668 #define $ac_tr_lib 1
6671 LIBS="-ldmalloc $LIBS"
6674 echo "$ac_t""no" 1>&6
6679 # ud needs termcap (should insert check here)
6681 for ac_hdr in termcap.h ncurses.h
6683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6684 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6685 echo "configure:6686: checking for $ac_hdr" >&5
6686 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6687 echo $ac_n "(cached) $ac_c" 1>&6
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6695 { (eval echo configure:6696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6697 if test -z "$ac_err"; then
6699 eval "ac_cv_header_$ac_safe=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_header_$ac_safe=no"
6709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6712 cat >> confdefs.h <<EOF
6713 #define $ac_tr_hdr 1
6717 echo "$ac_t""no" 1>&6
6722 if test $ol_link_termcap = no ; then
6723 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6724 echo "configure:6725: checking for tputs in -ltermcap" >&5
6725 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 ac_save_LIBS="$LIBS"
6730 LIBS="-ltermcap $LIBS"
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* Override any gcc2 internal prototype to avoid an error. */
6735 /* We use char because int might match the return type of a gcc2
6736 builtin and then its argument prototype would still apply. */
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_lib_$ac_lib_var=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_lib_$ac_lib_var=no"
6753 LIBS="$ac_save_LIBS"
6756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no" 1>&6
6764 if test $have_termcap = yes ; then
6765 cat >> confdefs.h <<\EOF
6766 #define HAVE_TERMCAP 1
6770 TERMCAP_LIBS=-ltermcap
6774 if test $ol_link_termcap = no ; then
6775 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6776 echo "configure:6777: checking for initscr in -lncurses" >&5
6777 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 ac_save_LIBS="$LIBS"
6782 LIBS="-lncurses $LIBS"
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6797 eval "ac_cv_lib_$ac_lib_var=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6802 eval "ac_cv_lib_$ac_lib_var=no"
6805 LIBS="$ac_save_LIBS"
6808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6812 echo "$ac_t""no" 1>&6
6816 if test $have_ncurses = yes ; then
6817 cat >> confdefs.h <<\EOF
6818 #define HAVE_NCURSES 1
6822 TERMCAP_LIBS=-lncurses
6826 if test $ol_link_termcap = no ; then
6827 cat >> confdefs.h <<\EOF
6828 #define NO_TERMCAP 1
6834 # FreeBSD (and others) have crypt(3) in -lcrypt
6835 if test $ol_enable_crypt != no ; then
6836 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6837 echo "configure:6838: checking for crypt" >&5
6838 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 /* System header to define __stub macros and hopefully few prototypes,
6845 which can conflict with char crypt(); below. */
6847 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */
6854 /* The GNU C library defines this for functions which it implements
6855 to always fail with ENOSYS. Some functions are actually named
6856 something starting with __ and the normal name is an alias. */
6857 #if defined (__stub_crypt) || defined (__stub___crypt)
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6867 eval "ac_cv_func_crypt=yes"
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 eval "ac_cv_func_crypt=no"
6877 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6878 echo "$ac_t""yes" 1>&6
6881 echo "$ac_t""no" 1>&6
6883 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6884 echo "configure:6885: checking for crypt in -lcrypt" >&5
6885 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 ac_save_LIBS="$LIBS"
6890 LIBS="-lcrypt $LIBS"
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6894 /* Override any gcc2 internal prototype to avoid an error. */
6895 /* We use char because int might match the return type of a gcc2
6896 builtin and then its argument prototype would still apply. */
6903 if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6905 eval "ac_cv_lib_$ac_lib_var=yes"
6907 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6910 eval "ac_cv_lib_$ac_lib_var=no"
6913 LIBS="$ac_save_LIBS"
6916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6921 echo "$ac_t""no" 1>&6
6928 if test $have_crypt = yes ; then
6929 cat >> confdefs.h <<\EOF
6930 #define HAVE_CRYPT 1
6934 echo "configure: warning: could not find crypt" 1>&2
6935 if test $ol_enable_crypt = yes ; then
6936 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6939 echo "configure: warning: disabling crypt support" 1>&2
6944 # FreeBSD (and others) have setproctitle(3) in -lutil
6945 if test $ol_enable_proctitle != no ; then
6946 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6947 echo "configure:6948: checking for setproctitle" >&5
6948 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+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"
6954 /* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char setproctitle(); below. */
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6960 char setproctitle();
6964 /* The GNU C library defines this for functions which it implements
6965 to always fail with ENOSYS. Some functions are actually named
6966 something starting with __ and the normal name is an alias. */
6967 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6975 if { (eval echo configure:6976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6977 eval "ac_cv_func_setproctitle=yes"
6979 echo "configure: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6982 eval "ac_cv_func_setproctitle=no"
6987 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 have_setproctitle=yes
6991 echo "$ac_t""no" 1>&6
6993 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6994 echo "configure:6995: checking for setproctitle in -lutil" >&5
6995 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 ac_save_LIBS="$LIBS"
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */
7007 char setproctitle();
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7015 eval "ac_cv_lib_$ac_lib_var=yes"
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 eval "ac_cv_lib_$ac_lib_var=no"
7023 LIBS="$ac_save_LIBS"
7026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 have_setproctitle=yes
7029 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7031 echo "$ac_t""no" 1>&6
7032 have_setproctitle=no
7033 LIBOBJS="$LIBOBJS setproctitle.o"
7039 if test $have_setproctitle = yes ; then
7040 cat >> confdefs.h <<\EOF
7041 #define HAVE_SETPROCTITLE 1
7047 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7048 echo "configure:7049: checking for ANSI C header files" >&5
7049 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7061 { (eval echo configure:7062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7063 if test -z "$ac_err"; then
7065 ac_cv_header_stdc=yes
7068 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5
7071 ac_cv_header_stdc=no
7075 if test $ac_cv_header_stdc = yes; then
7076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 egrep "memchr" >/dev/null 2>&1; then
7087 ac_cv_header_stdc=no
7093 if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat > conftest.$ac_ext <<EOF
7096 #line 7097 "configure"
7097 #include "confdefs.h"
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 egrep "free" >/dev/null 2>&1; then
7105 ac_cv_header_stdc=no
7111 if test $ac_cv_header_stdc = yes; then
7112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7113 if test "$cross_compiling" = yes; then
7116 cat > conftest.$ac_ext <<EOF
7117 #line 7118 "configure"
7118 #include "confdefs.h"
7120 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7123 int main () { int i; for (i = 0; i < 256; i++)
7124 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 ac_cv_header_stdc=no
7143 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7144 if test $ac_cv_header_stdc = yes; then
7145 cat >> confdefs.h <<\EOF
7146 #define STDC_HEADERS 1
7152 if test $ac_cv_header_stdc != yes; then
7153 echo "configure: warning: could not Standard C compliant headers" 1>&2
7157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7160 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7161 echo "configure:7162: checking for $ac_hdr that defines DIR" >&5
7162 if eval "test \"`echo '$''{'ac_cv_header_dirent_$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"
7168 #include <sys/types.h>
7174 if { (eval echo configure:7175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7176 eval "ac_cv_header_dirent_$ac_safe=yes"
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 eval "ac_cv_header_dirent_$ac_safe=no"
7185 if eval "test \"`echo '$ac_cv_header_dirent_'$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
7191 ac_header_dirent=$ac_hdr; break
7193 echo "$ac_t""no" 1>&6
7196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7197 if test $ac_header_dirent = dirent.h; then
7198 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7199 echo "configure:7200: checking for opendir in -ldir" >&5
7200 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 ac_save_LIBS="$LIBS"
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 eval "ac_cv_lib_$ac_lib_var=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_lib_$ac_lib_var=no"
7228 LIBS="$ac_save_LIBS"
7231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7235 echo "$ac_t""no" 1>&6
7239 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7240 echo "configure:7241: checking for opendir in -lx" >&5
7241 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 ac_save_LIBS="$LIBS"
7247 cat > conftest.$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7250 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7259 if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7261 eval "ac_cv_lib_$ac_lib_var=yes"
7263 echo "configure: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7266 eval "ac_cv_lib_$ac_lib_var=no"
7269 LIBS="$ac_save_LIBS"
7272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7276 echo "$ac_t""no" 1>&6
7281 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7282 echo "configure:7283: checking for sys/wait.h that is POSIX.1 compatible" >&5
7283 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 #include <sys/types.h>
7290 #include <sys/wait.h>
7292 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7295 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7300 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7303 if { (eval echo configure:7304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7305 ac_cv_header_sys_wait_h=yes
7307 echo "configure: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7310 ac_cv_header_sys_wait_h=no
7315 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7316 if test $ac_cv_header_sys_wait_h = yes; then
7317 cat >> confdefs.h <<\EOF
7318 #define HAVE_SYS_WAIT_H 1
7323 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7324 echo "configure:7325: checking POSIX termios" >&5
7325 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7331 #include <sys/types.h>
7333 #include <termios.h>
7335 /* SunOS 4.0.3 has termios.h but not the library calls. */
7339 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7341 am_cv_sys_posix_termios=yes
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7346 am_cv_sys_posix_termios=no
7351 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7354 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7355 echo "configure:7356: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7356 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7359 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7361 gwinsz_in_termios_h=no
7362 if test $am_cv_sys_posix_termios = yes; then
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7366 #include <sys/types.h>
7367 # include <termios.h>
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 egrep "yes" >/dev/null 2>&1; then
7376 gwinsz_in_termios_h=yes
7382 if test $gwinsz_in_termios_h = no; then
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 #include <sys/types.h>
7387 # include <sys/ioctl.h>
7393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394 egrep "yes" >/dev/null 2>&1; then
7396 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7404 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7405 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7406 cat >> confdefs.h <<\EOF
7407 #define GWINSZ_IN_SYS_IOCTL 1
7412 if test $am_cv_sys_posix_termios = yes ; then
7413 cat >> confdefs.h <<\EOF
7414 #define HAVE_POSIX_TERMIOS 1
7452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7454 echo "configure:7455: checking for $ac_hdr" >&5
7455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7464 { (eval echo configure:7465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7466 if test -z "$ac_err"; then
7468 eval "ac_cv_header_$ac_safe=yes"
7471 echo "configure: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7474 eval "ac_cv_header_$ac_safe=no"
7478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7479 echo "$ac_t""yes" 1>&6
7480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7481 cat >> confdefs.h <<EOF
7482 #define $ac_tr_hdr 1
7486 echo "$ac_t""no" 1>&6
7491 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7492 echo "configure:7493: checking for uid_t in sys/types.h" >&5
7493 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 cat > conftest.$ac_ext <<EOF
7497 #line 7498 "configure"
7498 #include "confdefs.h"
7499 #include <sys/types.h>
7501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7502 egrep "uid_t" >/dev/null 2>&1; then
7504 ac_cv_type_uid_t=yes
7513 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7514 if test $ac_cv_type_uid_t = no; then
7515 cat >> confdefs.h <<\EOF
7519 cat >> confdefs.h <<\EOF
7525 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7526 echo "configure:7527: checking type of array argument to getgroups" >&5
7527 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7530 if test "$cross_compiling" = yes; then
7531 ac_cv_type_getgroups=cross
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7537 /* Thanks to Mike Rendell for this test. */
7538 #include <sys/types.h>
7541 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7546 union { gid_t gval; long lval; } val;
7549 for (i = 0; i < NGID; i++)
7550 gidset[i] = val.gval;
7551 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7553 /* Exit non-zero if getgroups seems to require an array of ints. This
7554 happens when gid_t is short but getgroups modifies an array of ints. */
7555 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7561 ac_cv_type_getgroups=gid_t
7563 echo "configure: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7566 ac_cv_type_getgroups=int
7571 if test $ac_cv_type_getgroups = cross; then
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7580 ac_cv_type_getgroups=gid_t
7583 ac_cv_type_getgroups=int
7590 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7591 cat >> confdefs.h <<EOF
7592 #define GETGROUPS_T $ac_cv_type_getgroups
7595 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7596 echo "configure:7597: checking for mode_t" >&5
7597 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 #include <sys/types.h>
7609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7610 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7612 ac_cv_type_mode_t=yes
7615 ac_cv_type_mode_t=no
7620 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7621 if test $ac_cv_type_mode_t = no; then
7622 cat >> confdefs.h <<\EOF
7628 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7629 echo "configure:7630: checking for off_t" >&5
7630 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 #include <sys/types.h>
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7645 ac_cv_type_off_t=yes
7653 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7654 if test $ac_cv_type_off_t = no; then
7655 cat >> confdefs.h <<\EOF
7661 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7662 echo "configure:7663: checking for pid_t" >&5
7663 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 #include <sys/types.h>
7675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7676 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7678 ac_cv_type_pid_t=yes
7686 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7687 if test $ac_cv_type_pid_t = no; then
7688 cat >> confdefs.h <<\EOF
7694 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7695 echo "configure:7696: checking for ptrdiff_t" >&5
7696 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7707 if { (eval echo configure:7708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7709 am_cv_type_ptrdiff_t=yes
7711 echo "configure: failed program was:" >&5
7712 cat conftest.$ac_ext >&5
7714 am_cv_type_ptrdiff_t=no
7719 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7720 if test $am_cv_type_ptrdiff_t = yes; then
7721 cat >> confdefs.h <<\EOF
7722 #define HAVE_PTRDIFF_T 1
7727 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7728 echo "configure:7729: checking return type of signal handlers" >&5
7729 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7730 echo $ac_n "(cached) $ac_c" 1>&6
7732 cat > conftest.$ac_ext <<EOF
7733 #line 7734 "configure"
7734 #include "confdefs.h"
7735 #include <sys/types.h>
7741 extern "C" void (*signal (int, void (*)(int)))(int);
7743 void (*signal ()) ();
7750 if { (eval echo configure:7751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7752 ac_cv_type_signal=void
7754 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5
7757 ac_cv_type_signal=int
7762 echo "$ac_t""$ac_cv_type_signal" 1>&6
7763 cat >> confdefs.h <<EOF
7764 #define RETSIGTYPE $ac_cv_type_signal
7768 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
7769 echo "configure:7770: checking for sig_atomic_t" >&5
7770 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
7771 echo $ac_n "(cached) $ac_c" 1>&6
7773 cat > conftest.$ac_ext <<EOF
7774 #line 7775 "configure"
7775 #include "confdefs.h"
7778 sig_atomic_t atomic;
7781 if { (eval echo configure:7782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7783 ol_cv_type_sig_atomic_t=yes
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 ol_cv_type_sig_atomic_t=no
7793 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
7794 if test $ol_cv_type_sig_atomic_t = no; then
7795 cat >> confdefs.h <<\EOF
7796 #define sig_atomic_t int
7801 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7802 echo "configure:7803: checking for size_t" >&5
7803 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 #include <sys/types.h>
7815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7818 ac_cv_type_size_t=yes
7821 ac_cv_type_size_t=no
7826 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7827 if test $ac_cv_type_size_t = no; then
7828 cat >> confdefs.h <<\EOF
7829 #define size_t unsigned
7834 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7835 echo "configure:7836: checking for st_blksize in struct stat" >&5
7836 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7837 echo $ac_n "(cached) $ac_c" 1>&6
7839 cat > conftest.$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842 #include <sys/types.h>
7843 #include <sys/stat.h>
7845 struct stat s; s.st_blksize;
7848 if { (eval echo configure:7849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7850 ac_cv_struct_st_blksize=yes
7852 echo "configure: failed program was:" >&5
7853 cat conftest.$ac_ext >&5
7855 ac_cv_struct_st_blksize=no
7860 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7861 if test $ac_cv_struct_st_blksize = yes; then
7862 cat >> confdefs.h <<\EOF
7863 #define HAVE_ST_BLKSIZE 1
7868 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7869 echo "configure:7870: checking whether time.h and sys/time.h may both be included" >&5
7870 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 #include <sys/types.h>
7877 #include <sys/time.h>
7883 if { (eval echo configure:7884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 ac_cv_header_time=yes
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7890 ac_cv_header_time=no
7895 echo "$ac_t""$ac_cv_header_time" 1>&6
7896 if test $ac_cv_header_time = yes; then
7897 cat >> confdefs.h <<\EOF
7898 #define TIME_WITH_SYS_TIME 1
7903 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7904 echo "configure:7905: checking whether struct tm is in sys/time.h or time.h" >&5
7905 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 #include <sys/types.h>
7914 struct tm *tp; tp->tm_sec;
7917 if { (eval echo configure:7918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7919 ac_cv_struct_tm=time.h
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 ac_cv_struct_tm=sys/time.h
7929 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7930 if test $ac_cv_struct_tm = sys/time.h; then
7931 cat >> confdefs.h <<\EOF
7932 #define TM_IN_SYS_TIME 1
7939 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7940 echo "configure:7941: checking if toupper() requires islower()" >&5
7941 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7945 if test "$cross_compiling" = yes; then
7946 ol_cv_c_upper_lower=safe
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7955 if ('C' == toupper('C'))
7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7963 ol_cv_c_upper_lower=no
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7968 ol_cv_c_upper_lower=yes
7975 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7976 if test $ol_cv_c_upper_lower != no ; then
7977 cat >> confdefs.h <<\EOF
7978 #define C_UPPER_LOWER 1
7983 echo $ac_n "checking for working const""... $ac_c" 1>&6
7984 echo "configure:7985: checking for working const" >&5
7985 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6
7988 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7994 /* Ultrix mips cc rejects this. */
7995 typedef int charset[2]; const charset x;
7996 /* SunOS 4.1.1 cc rejects this. */
7997 char const *const *ccp;
7999 /* NEC SVR4.0.2 mips cc rejects this. */
8000 struct point {int x, y;};
8001 static struct point const zero = {0,0};
8002 /* AIX XL C 1.02.0.0 rejects this.
8003 It does not let you subtract one const X* pointer from another in an arm
8004 of an if-expression whose if-part is not a constant expression */
8005 const char *g = "string";
8006 ccp = &g + (g ? g-g : 0);
8007 /* HPUX 7.0 cc rejects these. */
8010 ccp = (char const *const *) p;
8011 { /* SCO 3.2v4 cc rejects this. */
8013 char const *s = 0 ? (char *) 0 : (char const *) 0;
8017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8019 const int *foo = &x[0];
8022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8023 typedef const int *iptr;
8027 { /* AIX XL C 1.02.0.0 rejects this saying
8028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8029 struct s { int j; const int *ap[3]; };
8030 struct s *b; b->j = 5;
8032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 if { (eval echo configure:8039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8050 echo "$ac_t""$ac_cv_c_const" 1>&6
8051 if test $ac_cv_c_const = no; then
8052 cat >> confdefs.h <<\EOF
8058 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8059 echo "configure:8060: checking if compiler understands volatile" >&5
8060 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8068 volatile int a; int * volatile b = x ? &y : &z;
8069 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8073 if { (eval echo configure:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8075 ol_cv_c_volatile=yes
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8085 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8086 if test $ol_cv_c_volatile = yes; then
8089 cat >> confdefs.h <<\EOF
8096 if test $cross_compiling = yes ; then
8097 cat >> confdefs.h <<\EOF
8098 #define CROSS_COMPILING 1
8102 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8103 echo "configure:8104: checking whether byte ordering is bigendian" >&5
8104 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 ac_cv_c_bigendian=unknown
8108 # See if sys/param.h defines the BYTE_ORDER macro.
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 #include <sys/types.h>
8113 #include <sys/param.h>
8116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8121 if { (eval echo configure:8122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8123 # It does; now see whether it defined to BIG_ENDIAN or not.
8124 cat > conftest.$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8127 #include <sys/types.h>
8128 #include <sys/param.h>
8131 #if BYTE_ORDER != BIG_ENDIAN
8136 if { (eval echo configure:8137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8138 ac_cv_c_bigendian=yes
8140 echo "configure: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8143 ac_cv_c_bigendian=no
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8151 if test $ac_cv_c_bigendian = unknown; then
8152 if test "$cross_compiling" = yes; then
8153 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8155 cat > conftest.$ac_ext <<EOF
8156 #line 8157 "configure"
8157 #include "confdefs.h"
8159 /* Are we little or big endian? From Harbison&Steele. */
8163 char c[sizeof (long)];
8166 exit (u.c[sizeof (long) - 1] == 1);
8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8171 ac_cv_c_bigendian=no
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8176 ac_cv_c_bigendian=yes
8184 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8185 if test $ac_cv_c_bigendian = yes; then
8186 cat >> confdefs.h <<\EOF
8187 #define WORDS_BIGENDIAN 1
8192 echo $ac_n "checking size of short""... $ac_c" 1>&6
8193 echo "configure:8194: checking size of short" >&5
8194 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8197 if test "$cross_compiling" = yes; then
8198 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8206 FILE *f=fopen("conftestval", "w");
8208 fprintf(f, "%d\n", sizeof(short));
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8214 ac_cv_sizeof_short=`cat conftestval`
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 ac_cv_sizeof_short=0
8225 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8226 cat >> confdefs.h <<EOF
8227 #define SIZEOF_SHORT $ac_cv_sizeof_short
8231 echo $ac_n "checking size of int""... $ac_c" 1>&6
8232 echo "configure:8233: checking size of int" >&5
8233 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8236 if test "$cross_compiling" = yes; then
8237 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8245 FILE *f=fopen("conftestval", "w");
8247 fprintf(f, "%d\n", sizeof(int));
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8253 ac_cv_sizeof_int=`cat conftestval`
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8264 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8265 cat >> confdefs.h <<EOF
8266 #define SIZEOF_INT $ac_cv_sizeof_int
8270 echo $ac_n "checking size of long""... $ac_c" 1>&6
8271 echo "configure:8272: checking size of long" >&5
8272 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 if test "$cross_compiling" = yes; then
8276 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure"
8280 #include "confdefs.h"
8284 FILE *f=fopen("conftestval", "w");
8286 fprintf(f, "%d\n", sizeof(long));
8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8292 ac_cv_sizeof_long=`cat conftestval`
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8303 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8304 cat >> confdefs.h <<EOF
8305 #define SIZEOF_LONG $ac_cv_sizeof_long
8311 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8312 echo "configure:8313: checking for 8-bit clean memcmp" >&5
8313 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8316 if test "$cross_compiling" = yes; then
8317 ac_cv_func_memcmp_clean=no
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8325 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8326 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8330 if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8332 ac_cv_func_memcmp_clean=yes
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8337 ac_cv_func_memcmp_clean=no
8344 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8345 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8347 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8348 echo "configure:8349: checking for strftime" >&5
8349 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8352 cat > conftest.$ac_ext <<EOF
8353 #line 8354 "configure"
8354 #include "confdefs.h"
8355 /* System header to define __stub macros and hopefully few prototypes,
8356 which can conflict with char strftime(); below. */
8358 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8365 /* The GNU C library defines this for functions which it implements
8366 to always fail with ENOSYS. Some functions are actually named
8367 something starting with __ and the normal name is an alias. */
8368 #if defined (__stub_strftime) || defined (__stub___strftime)
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8378 eval "ac_cv_func_strftime=yes"
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8383 eval "ac_cv_func_strftime=no"
8388 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 cat >> confdefs.h <<\EOF
8391 #define HAVE_STRFTIME 1
8395 echo "$ac_t""no" 1>&6
8396 # strftime is in -lintl on SCO UNIX.
8397 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8398 echo "configure:8399: checking for strftime in -lintl" >&5
8399 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8403 ac_save_LIBS="$LIBS"
8405 cat > conftest.$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8419 eval "ac_cv_lib_$ac_lib_var=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 eval "ac_cv_lib_$ac_lib_var=no"
8427 LIBS="$ac_save_LIBS"
8430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 cat >> confdefs.h <<\EOF
8433 #define HAVE_STRFTIME 1
8438 echo "$ac_t""no" 1>&6
8443 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8444 echo "configure:8445: checking for vprintf" >&5
8445 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char vprintf(); below. */
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8461 /* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8472 if { (eval echo configure:8473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8474 eval "ac_cv_func_vprintf=yes"
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 eval "ac_cv_func_vprintf=no"
8484 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8485 echo "$ac_t""yes" 1>&6
8486 cat >> confdefs.h <<\EOF
8487 #define HAVE_VPRINTF 1
8491 echo "$ac_t""no" 1>&6
8494 if test "$ac_cv_func_vprintf" != yes; then
8495 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8496 echo "configure:8497: checking for _doprnt" >&5
8497 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char _doprnt(); below. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8526 eval "ac_cv_func__doprnt=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 eval "ac_cv_func__doprnt=no"
8536 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 cat >> confdefs.h <<\EOF
8539 #define HAVE_DOPRNT 1
8543 echo "$ac_t""no" 1>&6
8549 if test $ac_cv_func_vprintf = yes ; then
8550 for ac_func in vsnprintf vsprintf
8552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8553 echo "configure:8554: checking for $ac_func" >&5
8554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8557 cat > conftest.$ac_ext <<EOF
8558 #line 8559 "configure"
8559 #include "confdefs.h"
8560 /* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char $ac_func(); below. */
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8570 /* The GNU C library defines this for functions which it implements
8571 to always fail with ENOSYS. Some functions are actually named
8572 something starting with __ and the normal name is an alias. */
8573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8583 eval "ac_cv_func_$ac_func=yes"
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 eval "ac_cv_func_$ac_func=no"
8593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8594 echo "$ac_t""yes" 1>&6
8595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8596 cat >> confdefs.h <<EOF
8597 #define $ac_tr_func 1
8601 echo "$ac_t""no" 1>&6
8639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8640 echo "configure:8641: checking for $ac_func" >&5
8641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 /* System header to define __stub macros and hopefully few prototypes,
8648 which can conflict with char $ac_func(); below. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8651 /* We use char because int might match the return type of a gcc2
8652 builtin and then its argument prototype would still apply. */
8657 /* The GNU C library defines this for functions which it implements
8658 to always fail with ENOSYS. Some functions are actually named
8659 something starting with __ and the normal name is an alias. */
8660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8670 eval "ac_cv_func_$ac_func=yes"
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 eval "ac_cv_func_$ac_func=no"
8680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6
8682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8683 cat >> confdefs.h <<EOF
8684 #define $ac_tr_func 1
8688 echo "$ac_t""no" 1>&6
8693 # these functions are required to build a thread_safe -lldap
8701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8702 echo "configure:8703: checking for $ac_func" >&5
8703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8709 /* System header to define __stub macros and hopefully few prototypes,
8710 which can conflict with char $ac_func(); below. */
8712 /* Override any gcc2 internal prototype to avoid an error. */
8713 /* We use char because int might match the return type of a gcc2
8714 builtin and then its argument prototype would still apply. */
8719 /* The GNU C library defines this for functions which it implements
8720 to always fail with ENOSYS. Some functions are actually named
8721 something starting with __ and the normal name is an alias. */
8722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8730 if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8732 eval "ac_cv_func_$ac_func=yes"
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 eval "ac_cv_func_$ac_func=no"
8742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8745 cat >> confdefs.h <<EOF
8746 #define $ac_tr_func 1
8750 echo "$ac_t""no" 1>&6
8755 if test "$ac_cv_func_ctime_r" = yes ; then
8756 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
8757 echo "configure:8758: checking number of arguments of ctime_r" >&5
8758 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8761 cat > conftest.$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8766 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
8769 if { (eval echo configure:8770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8771 ol_cv_func_ctime_r_nargs=3
8773 echo "configure: failed program was:" >&5
8774 cat conftest.$ac_ext >&5
8776 ol_cv_func_ctime_r_nargs=0
8779 if test $ol_cv_func_ctime_r_nargs = 0 ; then
8780 cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure"
8782 #include "confdefs.h"
8785 time_t ti; char *buffer;
8786 ctime_r(&ti,buffer);
8789 if { (eval echo configure:8790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8791 ol_cv_func_ctime_r_nargs=2
8793 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8796 ol_cv_func_ctime_r_nargs=0
8803 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
8804 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
8805 cat >> confdefs.h <<EOF
8806 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
8812 ol_cv_func_ctime_r=0
8815 if test "$ac_cv_func_strtok_r" = yes \
8816 -a "$ac_cv_func_ctime_r" = yes \
8817 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
8818 -a "$ac_cv_func_gethostbyaddr_r" = yes \
8819 -a "$ac_cv_func_gethostbyname_r" = yes \
8822 cat >> confdefs.h <<\EOF
8823 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
8828 if test $ol_link_threads != no ; then
8829 cat >> confdefs.h <<\EOF
8830 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8835 for ac_func in getopt tempnam
8837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8838 echo "configure:8839: checking for $ac_func" >&5
8839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 /* System header to define __stub macros and hopefully few prototypes,
8846 which can conflict with char $ac_func(); below. */
8848 /* Override any gcc2 internal prototype to avoid an error. */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8855 /* The GNU C library defines this for functions which it implements
8856 to always fail with ENOSYS. Some functions are actually named
8857 something starting with __ and the normal name is an alias. */
8858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8868 eval "ac_cv_func_$ac_func=yes"
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 eval "ac_cv_func_$ac_func=no"
8878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8879 echo "$ac_t""yes" 1>&6
8880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8881 cat >> confdefs.h <<EOF
8882 #define $ac_tr_func 1
8886 echo "$ac_t""no" 1>&6
8887 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
8893 # Check Configuration
8895 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8896 echo "configure:8897: checking declaration of sys_errlist" >&5
8897 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8901 cat > conftest.$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8906 #include <sys/types.h>
8909 char *c = (char *) *sys_errlist
8912 if { (eval echo configure:8913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8914 ol_cv_dcl_sys_errlist=yes
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8919 ol_cv_dcl_sys_errlist=no
8924 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8926 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8927 if test $ol_cv_dcl_sys_errlist = no ; then
8928 cat >> confdefs.h <<\EOF
8929 #define DECL_SYS_ERRLIST 1
8932 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8933 echo "configure:8934: checking existence of sys_errlist" >&5
8934 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8943 char *c = (char *) *sys_errlist
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948 ol_cv_have_sys_errlist=yes
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 ol_cv_have_sys_errlist=no
8958 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8963 if test "$ol_enable_debug" != no ; then
8964 cat >> confdefs.h <<\EOF
8965 #define LDAP_DEBUG 1
8969 if test "$ol_enable_syslog" = yes ; then
8970 cat >> confdefs.h <<\EOF
8971 #define LDAP_SYSLOG 1
8975 if test "$ol_enable_libui" = yes ; then
8976 cat >> confdefs.h <<\EOF
8977 #define LDAP_LIBUI 1
8981 if test "$ol_enable_cache" = no ; then
8982 cat >> confdefs.h <<\EOF
8983 #define LDAP_NOCACHE 1
8987 if test "$ol_enable_dns" != no ; then
8988 cat >> confdefs.h <<\EOF
8989 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_API_VENDOR_VERSION
8993 if test "$ol_enable_proctitle" != no ; then
8994 cat >> confdefs.h <<\EOF
8995 #define LDAP_PROCTITLE 1
8999 if test "$ol_enable_referrals" != no ; then
9000 cat >> confdefs.h <<\EOF
9001 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_API_VENDOR_VERSION
9005 if test "$ol_enable_cldap" != no ; then
9006 cat >> confdefs.h <<\EOF
9007 #define LDAP_CONNECTIONLESS 1
9012 if test "$ol_enable_aclgroups" != no ; then
9013 cat >> confdefs.h <<\EOF
9014 #define SLAPD_ACLGROUPS 1
9018 if test "$ol_enable_crypt" != no ; then
9019 cat >> confdefs.h <<\EOF
9020 #define SLAPD_CRYPT 1
9024 if test "$ol_enable_cleartext" != no ; then
9025 cat >> confdefs.h <<\EOF
9026 #define SLAPD_CLEARTEXT 1
9030 if test "$ol_enable_phonetic" != no ; then
9031 cat >> confdefs.h <<\EOF
9032 #define SLAPD_PHONETIC 1
9036 if test "$ol_enable_rlookups" != no ; then
9037 cat >> confdefs.h <<\EOF
9038 #define SLAPD_RLOOKUPS 1
9043 if test "$ol_link_ldbm" != no ; then
9044 cat >> confdefs.h <<\EOF
9045 #define SLAPD_LDBM 1
9052 if test "$ol_enable_passwd" != no ; then
9053 cat >> confdefs.h <<\EOF
9054 #define SLAPD_PASSWD 1
9061 if test "$ol_enable_perl" != no ; then
9062 cat >> confdefs.h <<\EOF
9063 #define SLAPD_PERL 1
9070 if test "$ol_enable_shell" != no ; then
9071 cat >> confdefs.h <<\EOF
9072 #define SLAPD_SHELL 1
9079 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9080 $BUILD_SLAPD = yes ; then
9084 if test "$ol_link_isode" != no ; then
9113 cat > confcache <<\EOF
9114 # This file is a shell script that caches the results of configure
9115 # tests run on this system so they can be shared between configure
9116 # scripts and configure runs. It is not useful on other systems.
9117 # If it contains results you don't want to keep, you may remove or edit it.
9119 # By default, configure uses ./config.cache as the cache file,
9120 # creating it if it does not exist already. You can give configure
9121 # the --cache-file=FILE option to use a different cache file; that is
9122 # what configure does when it calls configure scripts in
9123 # subdirectories, so they share the cache.
9124 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9125 # config.status only pays attention to the cache file if you give it the
9126 # --recheck option to rerun configure.
9129 # The following way of writing the cache mishandles newlines in values,
9130 # but we know of no workaround that is simple, portable, and efficient.
9131 # So, don't put newlines in cache variables' values.
9132 # Ultrix sh set writes to stderr and can't be redirected directly,
9133 # and sets the high bit in the cache file unless we assign to the vars.
9135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9137 # `set' does not quote correctly, so add quotes (double-quote substitution
9138 # turns \\\\ into \\, and sed turns \\ into \).
9140 -e "s/'/'\\\\''/g" \
9141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9144 # `set' quotes correctly as required by POSIX, so do not add quotes.
9145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9148 if cmp -s $cache_file confcache; then
9151 if test -w $cache_file; then
9152 echo "updating cache $cache_file"
9153 cat confcache > $cache_file
9155 echo "not updating unwritable cache $cache_file"
9160 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9163 # Let make expand exec_prefix.
9164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9166 # Any assignment to VPATH causes Sun make to only execute
9167 # the first set of double-colon rules, so remove it if not needed.
9168 # If there is a colon in the path, we need to keep it.
9169 if test "x$srcdir" = x.; then
9170 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9173 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9175 DEFS=-DHAVE_CONFIG_H
9177 # Without the "./", some shells look in PATH for config.status.
9178 : ${CONFIG_STATUS=./config.status}
9180 echo creating $CONFIG_STATUS
9181 rm -f $CONFIG_STATUS
9182 cat > $CONFIG_STATUS <<EOF
9184 # Generated automatically by configure.
9185 # Run this file to recreate the current configuration.
9186 # This directory was configured as follows,
9187 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9189 # $0 $ac_configure_args
9191 # Compiler output produced by configure, useful for debugging
9192 # configure, is in ./config.log if it exists.
9194 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9197 case "\$ac_option" in
9198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9199 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9200 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9201 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9202 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9204 -help | --help | --hel | --he | --h)
9205 echo "\$ac_cs_usage"; exit 0 ;;
9206 *) echo "\$ac_cs_usage"; exit 1 ;;
9210 ac_given_srcdir=$srcdir
9211 ac_given_INSTALL="$INSTALL"
9213 trap 'rm -fr `echo "\
9214 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9215 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9216 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9217 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9218 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9219 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9220 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9221 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9222 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9223 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9224 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9225 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9226 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9227 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9228 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9229 include/Makefile:build/top.mk:include/Makefile.in \
9230 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9231 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9232 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9233 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9234 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9235 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9236 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9237 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9238 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9239 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9240 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9241 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9242 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9243 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9244 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9245 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9246 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9247 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9248 tests/Makefile:build/top.mk:tests/Makefile.in \
9249 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9251 cat >> $CONFIG_STATUS <<EOF
9253 # Protect against being on the right side of a sed subst in config.status.
9254 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9255 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9259 s%@CFLAGS@%$CFLAGS%g
9260 s%@CPPFLAGS@%$CPPFLAGS%g
9261 s%@CXXFLAGS@%$CXXFLAGS%g
9262 s%@FFLAGS@%$FFLAGS%g
9264 s%@LDFLAGS@%$LDFLAGS%g
9266 s%@exec_prefix@%$exec_prefix%g
9267 s%@prefix@%$prefix%g
9268 s%@program_transform_name@%$program_transform_name%g
9269 s%@bindir@%$bindir%g
9270 s%@sbindir@%$sbindir%g
9271 s%@libexecdir@%$libexecdir%g
9272 s%@datadir@%$datadir%g
9273 s%@sysconfdir@%$sysconfdir%g
9274 s%@sharedstatedir@%$sharedstatedir%g
9275 s%@localstatedir@%$localstatedir%g
9276 s%@libdir@%$libdir%g
9277 s%@includedir@%$includedir%g
9278 s%@oldincludedir@%$oldincludedir%g
9279 s%@infodir@%$infodir%g
9280 s%@mandir@%$mandir%g
9281 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9282 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9283 s%@INSTALL_DATA@%$INSTALL_DATA%g
9284 s%@PACKAGE@%$PACKAGE%g
9285 s%@VERSION@%$VERSION%g
9286 s%@ACLOCAL@%$ACLOCAL%g
9287 s%@AUTOCONF@%$AUTOCONF%g
9288 s%@AUTOMAKE@%$AUTOMAKE%g
9289 s%@AUTOHEADER@%$AUTOHEADER%g
9290 s%@MAKEINFO@%$MAKEINFO%g
9291 s%@SET_MAKE@%$SET_MAKE%g
9292 s%@top_builddir@%$top_builddir%g
9293 s%@ldap_subdir@%$ldap_subdir%g
9295 s%@host_alias@%$host_alias%g
9296 s%@host_cpu@%$host_cpu%g
9297 s%@host_vendor@%$host_vendor%g
9298 s%@host_os@%$host_os%g
9299 s%@RANLIB@%$RANLIB%g
9304 s%@LIBTOOL@%$LIBTOOL%g
9306 s%@SENDMAIL@%$SENDMAIL%g
9307 s%@EDITOR@%$EDITOR%g
9308 s%@FINGER@%$FINGER%g
9309 s%@PERLBIN@%$PERLBIN%g
9311 s%@EXEEXT@%$EXEEXT%g
9312 s%@OBJEXT@%$OBJEXT%g
9314 s%@LIBOBJS@%$LIBOBJS%g
9315 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9316 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9317 s%@BUILD_LDBM@%$BUILD_LDBM%g
9318 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9319 s%@BUILD_PERL@%$BUILD_PERL%g
9320 s%@BUILD_SHELL@%$BUILD_SHELL%g
9321 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9322 s%@LDAP_LIBS@%$LDAP_LIBS%g
9323 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9324 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9325 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9326 s%@LDBM_LIBS@%$LDBM_LIBS%g
9327 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9328 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9329 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
9330 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
9331 s%@KRB_LIBS@%$KRB_LIBS%g
9332 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9337 cat >> $CONFIG_STATUS <<\EOF
9339 # Split the substitutions into bite-sized pieces for seds with
9340 # small command number limits, like on Digital OSF/1 and HP-UX.
9341 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9342 ac_file=1 # Number of current file.
9343 ac_beg=1 # First line for current file.
9344 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9347 while $ac_more_lines; do
9348 if test $ac_beg -gt 1; then
9349 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9351 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9353 if test ! -s conftest.s$ac_file; then
9355 rm -f conftest.s$ac_file
9357 if test -z "$ac_sed_cmds"; then
9358 ac_sed_cmds="sed -f conftest.s$ac_file"
9360 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9362 ac_file=`expr $ac_file + 1`
9364 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9367 if test -z "$ac_sed_cmds"; then
9372 cat >> $CONFIG_STATUS <<EOF
9374 CONFIG_FILES=\${CONFIG_FILES-"\
9375 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9376 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9377 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9378 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9379 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9380 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9381 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9382 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9383 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9384 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9385 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9386 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9387 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9388 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9389 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9390 include/Makefile:build/top.mk:include/Makefile.in \
9391 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9392 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9393 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9394 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9395 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9396 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9397 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9398 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9399 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9400 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9401 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9402 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9403 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9404 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9405 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9406 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9407 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9408 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9409 tests/Makefile:build/top.mk:tests/Makefile.in \
9412 cat >> $CONFIG_STATUS <<\EOF
9413 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9416 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9417 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9418 *) ac_file_in="${ac_file}.in" ;;
9421 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9423 # Remove last slash and all that follows it. Not all systems have dirname.
9424 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9425 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9426 # The file is in a subdirectory.
9427 test ! -d "$ac_dir" && mkdir "$ac_dir"
9428 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9429 # A "../" for each directory in $ac_dir_suffix.
9430 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9432 ac_dir_suffix= ac_dots=
9435 case "$ac_given_srcdir" in
9437 if test -z "$ac_dots"; then top_srcdir=.
9438 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9439 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9441 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9442 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9445 case "$ac_given_INSTALL" in
9446 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9447 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9450 echo creating "$ac_file"
9452 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9454 *Makefile*) ac_comsub="1i\\
9455 # $configure_input" ;;
9459 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9461 s%@configure_input@%$configure_input%g
9462 s%@srcdir@%$srcdir%g
9463 s%@top_srcdir@%$top_srcdir%g
9464 s%@INSTALL@%$INSTALL%g
9465 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9472 # ac_d sets the value in "#define NAME VALUE" lines.
9473 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9474 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9477 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9478 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9479 ac_uB='\([ ]\)%\1#\2define\3'
9482 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9483 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9484 ac_eB='$%\1#\2define\3'
9488 if test "${CONFIG_HEADERS+set}" != set; then
9490 cat >> $CONFIG_STATUS <<EOF
9491 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
9493 cat >> $CONFIG_STATUS <<\EOF
9495 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9498 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9499 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9500 *) ac_file_in="${ac_file}.in" ;;
9503 echo creating $ac_file
9505 rm -f conftest.frag conftest.in conftest.out
9506 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9507 cat $ac_file_inputs > conftest.in
9511 # Transform confdefs.h into a sed script conftest.vals that substitutes
9512 # the proper values into config.h.in to produce config.h. And first:
9513 # Protect against being on the right side of a sed subst in config.status.
9514 # Protect against being in an unquoted here document in config.status.
9516 cat > conftest.hdr <<\EOF
9519 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9523 sed -n -f conftest.hdr confdefs.h > conftest.vals
9526 # This sed command replaces #undef with comments. This is necessary, for
9527 # example, in the case of _POSIX_SOURCE, which is predefined and required
9528 # on some systems where configure will not decide to define it.
9529 cat >> conftest.vals <<\EOF
9530 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9533 # Break up conftest.vals because some shells have a limit on
9534 # the size of here documents, and old seds have small limits too.
9539 ac_lines=`grep -c . conftest.vals`
9540 # grep -c gives empty output for an empty file on some AIX systems.
9541 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9542 # Write a limited-size here document to conftest.frag.
9543 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9544 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9546 sed -f conftest.frag conftest.in > conftest.out
9548 mv conftest.out conftest.in
9550 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9552 mv conftest.tail conftest.vals
9556 cat >> $CONFIG_STATUS <<\EOF
9557 rm -f conftest.frag conftest.h
9558 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9559 cat conftest.in >> conftest.h
9561 if cmp -s $ac_file conftest.h 2>/dev/null; then
9562 echo "$ac_file is unchanged"
9565 # Remove last slash and all that follows it. Not all systems have dirname.
9566 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9567 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9568 # The file is in a subdirectory.
9569 test ! -d "$ac_dir" && mkdir "$ac_dir"
9572 mv conftest.h $ac_file
9577 cat >> $CONFIG_STATUS <<EOF
9580 cat >> $CONFIG_STATUS <<\EOF
9583 echo Please \"make depend\" to build dependencies
9587 chmod +x $CONFIG_STATUS
9588 rm -fr confdefs* $ac_clean_files
9589 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1