3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --enable-debug enable debugging (yes)"
18 --enable-libui enable library user interface (yes)"
20 --enable-cache enable caching (yes)"
22 --enable-dns enable dns support (no)"
24 --enable-referrals enable referrals (yes)"
26 --enable-cldap enable connectionless ldap (no)"
28 --with-kerberos use Kerberos (auto)"
30 --with-threads use threads (auto)"
32 --with-preemptive thread implementation is preemptive (auto)"
34 --enable-ldapd enable building ldapd (no)"
36 --enable-slapd enable building slapd (yes)"
38 --enable-aclgroups enable ACL group support (auto)"
40 --enable-crypt enable crypt(3) passwords (auto)"
42 --enable-md5 enable MD5 passwords (auto)"
44 --enable-sha1 enable SHA1 passwords (auto)"
46 --enable-wrappers enable tcp wrapper support (no)"
48 --enable-phonetic enable phonetic/soundex (no)"
50 --enable-rlookups enable reverse lookups (auto)"
52 --enable-ldbm enable ldbm backend (yes)"
54 --with-ldbm-api use LDBM API (auto)"
56 --with-ldbm-type use LDBM type (auto)"
58 --enable-passwd enable passwd backend (no)"
60 --enable-shell enable shell backend (no)"
62 --enable-slurpd enable building slurpd (auto)"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
68 cache_file=./config.cache
77 program_transform_name=s,x,x,
85 bindir='${exec_prefix}/bin'
86 sbindir='${exec_prefix}/sbin'
87 libexecdir='${exec_prefix}/libexec'
88 datadir='${prefix}/share'
89 sysconfdir='${prefix}/etc'
90 sharedstatedir='${prefix}/com'
91 localstatedir='${prefix}/var'
92 libdir='${exec_prefix}/lib'
93 includedir='${prefix}/include'
94 oldincludedir='/usr/include'
95 infodir='${prefix}/info'
96 mandir='${prefix}/man'
98 # Initialize some other variables.
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host | --host | --hos | --ho)
239 -host=* | --host=* | --hos=* | --ho=*)
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
360 -site=* | --site=* | --sit=*)
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.12"
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=include/ldap.h
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
557 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566 ac_n= ac_c='\c' ac_t=
571 for ac_dir in build $srcdir/build; do
572 if test -f $ac_dir/install-sh; then
574 ac_install_sh="$ac_aux_dir/install-sh -c"
576 elif test -f $ac_dir/install.sh; then
578 ac_install_sh="$ac_aux_dir/install.sh -c"
582 if test -z "$ac_aux_dir"; then
583 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
585 ac_config_guess=$ac_aux_dir/config.guess
586 ac_config_sub=$ac_aux_dir/config.sub
587 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
589 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
590 echo "configure:591: checking configure arguments" >&5
593 # OpenLDAP --enable-debug
594 # Check whether --enable-debug or --disable-debug was given.
595 if test "${enable_debug+set}" = set; then
596 enableval="$enable_debug"
599 for ol_val in auto yes no ; do
600 if test "$enableval" = "$ol_val" ; then
604 if test "$ol_arg" = "invalid" ; then
605 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
607 ol_enable_debug="$ol_arg"
610 ol_enable_debug="yes"
613 # OpenLDAP --enable-libui
614 # Check whether --enable-libui or --disable-libui was given.
615 if test "${enable_libui+set}" = set; then
616 enableval="$enable_libui"
619 for ol_val in auto yes no ; do
620 if test "$enableval" = "$ol_val" ; then
624 if test "$ol_arg" = "invalid" ; then
625 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
627 ol_enable_libui="$ol_arg"
630 ol_enable_libui="yes"
633 # OpenLDAP --enable-cache
634 # Check whether --enable-cache or --disable-cache was given.
635 if test "${enable_cache+set}" = set; then
636 enableval="$enable_cache"
639 for ol_val in auto yes no ; do
640 if test "$enableval" = "$ol_val" ; then
644 if test "$ol_arg" = "invalid" ; then
645 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
647 ol_enable_cache="$ol_arg"
650 ol_enable_cache="yes"
653 # OpenLDAP --enable-dns
654 # Check whether --enable-dns or --disable-dns was given.
655 if test "${enable_dns+set}" = set; then
656 enableval="$enable_dns"
659 for ol_val in auto yes no ; do
660 if test "$enableval" = "$ol_val" ; then
664 if test "$ol_arg" = "invalid" ; then
665 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
667 ol_enable_dns="$ol_arg"
673 # OpenLDAP --enable-referrals
674 # Check whether --enable-referrals or --disable-referrals was given.
675 if test "${enable_referrals+set}" = set; then
676 enableval="$enable_referrals"
679 for ol_val in auto yes no ; do
680 if test "$enableval" = "$ol_val" ; then
684 if test "$ol_arg" = "invalid" ; then
685 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
687 ol_enable_referrals="$ol_arg"
690 ol_enable_referrals="yes"
692 # end --enable-referrals
693 # OpenLDAP --enable-cldap
694 # Check whether --enable-cldap or --disable-cldap was given.
695 if test "${enable_cldap+set}" = set; then
696 enableval="$enable_cldap"
699 for ol_val in auto yes no ; do
700 if test "$enableval" = "$ol_val" ; then
704 if test "$ol_arg" = "invalid" ; then
705 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
707 ol_enable_cldap="$ol_arg"
714 # OpenLDAP --with-kerberos
715 # Check whether --with-kerberos or --without-kerberos was given.
716 if test "${with_kerberos+set}" = set; then
717 withval="$with_kerberos"
720 for ol_val in auto k5 k4 afs yes no ; do
721 if test "$withval" = "$ol_val" ; then
725 if test "$ol_arg" = "invalid" ; then
726 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
728 ol_with_kerberos="$ol_arg"
731 ol_with_kerberos="auto"
733 # end --with-kerberos
735 # OpenLDAP --with-threads
736 # Check whether --with-threads or --without-threads was given.
737 if test "${with_threads+set}" = set; then
738 withval="$with_threads"
741 for ol_val in auto posix mach lwp yes no manual ; do
742 if test "$withval" = "$ol_val" ; then
746 if test "$ol_arg" = "invalid" ; then
747 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
749 ol_with_threads="$ol_arg"
752 ol_with_threads="auto"
756 # OpenLDAP --with-preemptive
757 # Check whether --with-preemptive or --without-preemptive was given.
758 if test "${with_preemptive+set}" = set; then
759 withval="$with_preemptive"
762 for ol_val in auto yes no manual ; do
763 if test "$withval" = "$ol_val" ; then
767 if test "$ol_arg" = "invalid" ; then
768 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
770 ol_with_preemptive="$ol_arg"
773 ol_with_preemptive="auto"
775 # end --with-preemptive
779 # OpenLDAP --enable-ldapd
780 # Check whether --enable-ldapd or --disable-ldapd was given.
781 if test "${enable_ldapd+set}" = set; then
782 enableval="$enable_ldapd"
785 for ol_val in auto yes no ; do
786 if test "$enableval" = "$ol_val" ; then
790 if test "$ol_arg" = "invalid" ; then
791 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
793 ol_enable_ldapd="$ol_arg"
800 # OpenLDAP --enable-slapd
801 # Check whether --enable-slapd or --disable-slapd was given.
802 if test "${enable_slapd+set}" = set; then
803 enableval="$enable_slapd"
806 for ol_val in auto yes no ; do
807 if test "$enableval" = "$ol_val" ; then
811 if test "$ol_arg" = "invalid" ; then
812 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
814 ol_enable_slapd="$ol_arg"
817 ol_enable_slapd="yes"
820 # OpenLDAP --enable-aclgroups
821 # Check whether --enable-aclgroups or --disable-aclgroups was given.
822 if test "${enable_aclgroups+set}" = set; then
823 enableval="$enable_aclgroups"
826 for ol_val in auto yes no ; do
827 if test "$enableval" = "$ol_val" ; then
831 if test "$ol_arg" = "invalid" ; then
832 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
834 ol_enable_aclgroups="$ol_arg"
837 ol_enable_aclgroups="auto"
839 # end --enable-aclgroups
840 # OpenLDAP --enable-crypt
841 # Check whether --enable-crypt or --disable-crypt was given.
842 if test "${enable_crypt+set}" = set; then
843 enableval="$enable_crypt"
846 for ol_val in auto yes no ; do
847 if test "$enableval" = "$ol_val" ; then
851 if test "$ol_arg" = "invalid" ; then
852 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
854 ol_enable_crypt="$ol_arg"
857 ol_enable_crypt="auto"
860 # OpenLDAP --enable-md5
861 # Check whether --enable-md5 or --disable-md5 was given.
862 if test "${enable_md5+set}" = set; then
863 enableval="$enable_md5"
866 for ol_val in auto yes no ; do
867 if test "$enableval" = "$ol_val" ; then
871 if test "$ol_arg" = "invalid" ; then
872 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
874 ol_enable_md5="$ol_arg"
880 # OpenLDAP --enable-sha1
881 # Check whether --enable-sha1 or --disable-sha1 was given.
882 if test "${enable_sha1+set}" = set; then
883 enableval="$enable_sha1"
886 for ol_val in auto yes no ; do
887 if test "$enableval" = "$ol_val" ; then
891 if test "$ol_arg" = "invalid" ; then
892 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
894 ol_enable_sha1="$ol_arg"
897 ol_enable_sha1="auto"
900 # OpenLDAP --enable-wrappers
901 # Check whether --enable-wrappers or --disable-wrappers was given.
902 if test "${enable_wrappers+set}" = set; then
903 enableval="$enable_wrappers"
906 for ol_val in auto yes no ; do
907 if test "$enableval" = "$ol_val" ; then
911 if test "$ol_arg" = "invalid" ; then
912 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
914 ol_enable_wrappers="$ol_arg"
917 ol_enable_wrappers="no"
919 # end --enable-wrappers
920 # OpenLDAP --enable-phonetic
921 # Check whether --enable-phonetic or --disable-phonetic was given.
922 if test "${enable_phonetic+set}" = set; then
923 enableval="$enable_phonetic"
926 for ol_val in auto yes no ; do
927 if test "$enableval" = "$ol_val" ; then
931 if test "$ol_arg" = "invalid" ; then
932 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
934 ol_enable_phonetic="$ol_arg"
937 ol_enable_phonetic="no"
939 # end --enable-phonetic
940 # OpenLDAP --enable-rlookups
941 # Check whether --enable-rlookups or --disable-rlookups was given.
942 if test "${enable_rlookups+set}" = set; then
943 enableval="$enable_rlookups"
946 for ol_val in auto yes no ; do
947 if test "$enableval" = "$ol_val" ; then
951 if test "$ol_arg" = "invalid" ; then
952 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
954 ol_enable_rlookups="$ol_arg"
957 ol_enable_rlookups="auto"
959 # end --enable-rlookups
961 # OpenLDAP --enable-ldbm
962 # Check whether --enable-ldbm or --disable-ldbm was given.
963 if test "${enable_ldbm+set}" = set; then
964 enableval="$enable_ldbm"
967 for ol_val in auto yes no ; do
968 if test "$enableval" = "$ol_val" ; then
972 if test "$ol_arg" = "invalid" ; then
973 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
975 ol_enable_ldbm="$ol_arg"
981 # OpenLDAP --with-ldbm_api
982 # Check whether --with-ldbm_api or --without-ldbm_api was given.
983 if test "${with_ldbm_api+set}" = set; then
984 withval="$with_ldbm_api"
987 for ol_val in auto db2 db gdbm ndbm manual ; do
988 if test "$withval" = "$ol_val" ; then
992 if test "$ol_arg" = "invalid" ; then
993 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
995 ol_with_ldbm_api="$ol_arg"
998 ol_with_ldbm_api="auto"
1000 # end --with-ldbm_api
1002 # OpenLDAP --with-ldbm_type
1003 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1004 if test "${with_ldbm_type+set}" = set; then
1005 withval="$with_ldbm_type"
1008 for ol_val in auto btree hash ; do
1009 if test "$withval" = "$ol_val" ; then
1013 if test "$ol_arg" = "invalid" ; then
1014 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1016 ol_with_ldbm_type="$ol_arg"
1019 ol_with_ldbm_type="auto"
1021 # end --with-ldbm_type
1024 # OpenLDAP --enable-passwd
1025 # Check whether --enable-passwd or --disable-passwd was given.
1026 if test "${enable_passwd+set}" = set; then
1027 enableval="$enable_passwd"
1030 for ol_val in auto yes no ; do
1031 if test "$enableval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1038 ol_enable_passwd="$ol_arg"
1041 ol_enable_passwd="no"
1043 # end --enable-passwd
1044 # OpenLDAP --enable-shell
1045 # Check whether --enable-shell or --disable-shell was given.
1046 if test "${enable_shell+set}" = set; then
1047 enableval="$enable_shell"
1050 for ol_val in auto yes no ; do
1051 if test "$enableval" = "$ol_val" ; then
1055 if test "$ol_arg" = "invalid" ; then
1056 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1058 ol_enable_shell="$ol_arg"
1061 ol_enable_shell="no"
1063 # end --enable-shell
1065 # OpenLDAP --enable-slurpd
1066 # Check whether --enable-slurpd or --disable-slurpd was given.
1067 if test "${enable_slurpd+set}" = set; then
1068 enableval="$enable_slurpd"
1071 for ol_val in auto yes no ; do
1072 if test "$enableval" = "$ol_val" ; then
1076 if test "$ol_arg" = "invalid" ; then
1077 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1079 ol_enable_slurpd="$ol_arg"
1082 ol_enable_slurpd="auto"
1084 # end --enable-slurpd
1086 if test $ol_enable_slapd = no ; then
1087 if test $ol_enable_ldbm = yes ; then
1088 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1090 if test $ol_enable_passwd = yes ; then
1091 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1093 if test $ol_enable_shell = yes ; then
1094 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1096 if test $ol_enable_aclgroups = yes ; then
1097 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1099 if test $ol_enable_crypt = yes ; then
1100 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1102 if test $ol_enable_md5 = yes ; then
1103 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1105 if test $ol_enable_sha1 = yes ; then
1106 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1108 if test $ol_enable_wrappers = yes ; then
1109 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1111 if test $ol_enable_phonetic = yes ; then
1112 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1114 if test $ol_enable_rlookups = yes ; then
1115 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1117 if test $ol_with_ldbm_api != auto ; then
1118 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1120 if test $ol_with_ldbm_type != auto ; then
1121 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1123 if test $ol_enable_slurpd = yes ; then
1124 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1127 # force settings to no
1131 ol_enable_aclgroups=no
1135 ol_enable_wrappers=no
1136 ol_enable_phonetic=no
1137 ol_enable_rlookups=no
1139 ol_with_ldbm_type=no
1142 elif test $ol_enable_ldbm = no ; then
1144 if test $ol_with_ldbm_api != auto ; then
1145 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1148 if test $ol_with_ldbm_type != auto ; then
1149 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1152 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1153 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1157 ol_with_ldbm_type=no
1161 if test $ol_with_ldbm_api = gdbm -a \
1162 $ol_with_ldbm_type = btree ; then
1163 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1165 if test $ol_with_ldbm_api = ndbm -a \
1166 $ol_with_ldbm_type = btree ; then
1167 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1171 if test $ol_enable_slurpd = yes ; then
1172 if test $ol_with_threads = no ; then
1173 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1177 echo "$ac_t""done" 1>&6
1201 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether ln -s works" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1207 if ln -s X conftestdata 2>/dev/null
1210 ac_cv_prog_LN_S="ln -s"
1215 LN_S="$ac_cv_prog_LN_S"
1216 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1217 echo "$ac_t""yes" 1>&6
1219 echo "$ac_t""no" 1>&6
1222 # Find a good install program. We prefer a C program (faster),
1223 # so one script is as good as another. But avoid the broken or
1224 # incompatible versions:
1225 # SysV /etc/install, /usr/sbin/install
1226 # SunOS /usr/etc/install
1227 # IRIX /sbin/install
1229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1231 # ./install, which can be erroneously created by make from ./install.sh.
1232 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1233 echo "configure:1234: checking for a BSD compatible install" >&5
1234 if test -z "$INSTALL"; then
1235 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1239 for ac_dir in $PATH; do
1240 # Account for people who put trailing slashes in PATH elements.
1242 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1244 # OSF1 and SCO ODT 3.0 have their own names for install.
1245 for ac_prog in ginstall installbsd scoinst install; do
1246 if test -f $ac_dir/$ac_prog; then
1247 if test $ac_prog = install &&
1248 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1249 # AIX install. It has an incompatible calling convention.
1250 # OSF/1 installbsd also uses dspmsg, but is usable.
1253 ac_cv_path_install="$ac_dir/$ac_prog -c"
1264 if test "${ac_cv_path_install+set}" = set; then
1265 INSTALL="$ac_cv_path_install"
1267 # As a last resort, use the slow shell script. We don't cache a
1268 # path for INSTALL within a source directory, because that will
1269 # break other packages using the cache if that directory is
1270 # removed, or if the path is relative.
1271 INSTALL="$ac_install_sh"
1274 echo "$ac_t""$INSTALL" 1>&6
1276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1277 # It thinks the first close brace ends the variable substitution.
1278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1282 # Extract the first word of "ranlib", so it can be a program name with args.
1283 set dummy ranlib; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 if test -n "$RANLIB"; then
1290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1293 for ac_dir in $PATH; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_RANLIB="ranlib"
1301 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1304 RANLIB="$ac_cv_prog_RANLIB"
1305 if test -n "$RANLIB"; then
1306 echo "$ac_t""$RANLIB" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether ${MAKE-make} sets \${MAKE}" >&5
1313 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftestmake <<\EOF
1319 @echo 'ac_maketemp="${MAKE}"'
1321 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1322 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1323 if test -n "$ac_maketemp"; then
1324 eval ac_cv_prog_make_${ac_make}_set=yes
1326 eval ac_cv_prog_make_${ac_make}_set=no
1330 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1331 echo "$ac_t""yes" 1>&6
1334 echo "$ac_t""no" 1>&6
1335 SET_MAKE="MAKE=${MAKE-make}"
1339 # Extract the first word of "sendmail", so it can be a program name with args.
1340 set dummy sendmail; ac_word=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1348 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1352 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f $ac_dir/$ac_word; then
1355 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1360 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1364 SENDMAIL="$ac_cv_path_SENDMAIL"
1365 if test -n "$SENDMAIL"; then
1366 echo "$ac_t""$SENDMAIL" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 # Extract the first word of "vi", so it can be a program name with args.
1372 set dummy vi; ac_word=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1380 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1384 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1385 test -z "$ac_dir" && ac_dir=.
1386 if test -f $ac_dir/$ac_word; then
1387 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1392 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1396 EDITOR="$ac_cv_path_EDITOR"
1397 if test -n "$EDITOR"; then
1398 echo "$ac_t""$EDITOR" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 # Extract the first word of "finger", so it can be a program name with args.
1404 set dummy finger; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1412 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1416 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1417 test -z "$ac_dir" && ac_dir=.
1418 if test -f $ac_dir/$ac_word; then
1419 ac_cv_path_FINGER="$ac_dir/$ac_word"
1424 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1428 FINGER="$ac_cv_path_FINGER"
1429 if test -n "$FINGER"; then
1430 echo "$ac_t""$FINGER" 1>&6
1432 echo "$ac_t""no" 1>&6
1436 # Extract the first word of "gcc", so it can be a program name with args.
1437 set dummy gcc; ac_word=$2
1438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1439 echo "configure:1440: checking for $ac_word" >&5
1440 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1447 for ac_dir in $PATH; do
1448 test -z "$ac_dir" && ac_dir=.
1449 if test -f $ac_dir/$ac_word; then
1458 if test -n "$CC"; then
1459 echo "$ac_t""$CC" 1>&6
1461 echo "$ac_t""no" 1>&6
1464 if test -z "$CC"; then
1465 # Extract the first word of "cc", so it can be a program name with args.
1466 set dummy cc; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 if test -n "$CC"; then
1473 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1477 for ac_dir in $PATH; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1481 ac_prog_rejected=yes
1489 if test $ac_prog_rejected = yes; then
1490 # We found a bogon in the path, so make sure we never use it.
1491 set dummy $ac_cv_prog_CC
1493 if test $# -gt 0; then
1494 # We chose a different compiler from the bogus one.
1495 # However, it has the same basename, so the bogon will be chosen
1496 # first if we set CC to just the basename; use the full file name.
1498 set dummy "$ac_dir/$ac_word" "$@"
1506 if test -n "$CC"; then
1507 echo "$ac_t""$CC" 1>&6
1509 echo "$ac_t""no" 1>&6
1512 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1515 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1516 echo "configure:1517: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1522 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1523 cross_compiling=$ac_cv_prog_cc_cross
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1530 if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1531 ac_cv_prog_cc_works=yes
1532 # If we can't run a trivial program, we are probably using a cross compiler.
1533 if (./conftest; exit) 2>/dev/null; then
1534 ac_cv_prog_cc_cross=no
1536 ac_cv_prog_cc_cross=yes
1539 echo "configure: failed program was:" >&5
1540 cat conftest.$ac_ext >&5
1541 ac_cv_prog_cc_works=no
1545 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1546 if test $ac_cv_prog_cc_works = no; then
1547 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1549 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1551 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1552 cross_compiling=$ac_cv_prog_cc_cross
1554 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1555 echo "configure:1556: checking whether we are using GNU C" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 cat > conftest.c <<EOF
1564 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1571 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1573 if test $ac_cv_prog_gcc = yes; then
1575 ac_test_CFLAGS="${CFLAGS+set}"
1576 ac_save_CFLAGS="$CFLAGS"
1578 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1579 echo "configure:1580: checking whether ${CC-cc} accepts -g" >&5
1580 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 echo 'void f(){}' > conftest.c
1584 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1593 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1594 if test "$ac_test_CFLAGS" = set; then
1595 CFLAGS="$ac_save_CFLAGS"
1596 elif test $ac_cv_prog_cc_g = yes; then
1603 test "${CFLAGS+set}" = set || CFLAGS="-g"
1606 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1607 echo "configure:1608: checking how to run the C preprocessor" >&5
1608 # On Suns, sometimes $CPP names a directory.
1609 if test -n "$CPP" && test -d "$CPP"; then
1612 if test -z "$CPP"; then
1613 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 # This must be in double quotes, not single quotes, because CPP may get
1617 # substituted into the Makefile and "${CC-cc}" will confuse make.
1619 # On the NeXT, cc -E runs the code through the compiler's parser,
1620 # not just through cpp.
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out`
1630 if test -z "$ac_err"; then
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1637 CPP="${CC-cc} -E -traditional-cpp"
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645 { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646 ac_err=`grep -v '^ *+' conftest.out`
1647 if test -z "$ac_err"; then
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1659 ac_cv_prog_CPP="$CPP"
1661 CPP="$ac_cv_prog_CPP"
1663 ac_cv_prog_CPP="$CPP"
1665 echo "$ac_t""$CPP" 1>&6
1667 if test $ac_cv_prog_gcc = yes; then
1668 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether ${CC-cc} needs -traditional" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 ac_pattern="Autoconf.*'x'"
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1681 egrep "$ac_pattern" >/dev/null 2>&1; then
1683 ac_cv_prog_gcc_traditional=yes
1686 ac_cv_prog_gcc_traditional=no
1691 if test $ac_cv_prog_gcc_traditional = no; then
1692 cat > conftest.$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1699 egrep "$ac_pattern" >/dev/null 2>&1; then
1701 ac_cv_prog_gcc_traditional=yes
1708 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1709 if test $ac_cv_prog_gcc_traditional = yes; then
1710 CC="$CC -traditional"
1715 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1716 echo "configure:1717: checking for AIX" >&5
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1726 egrep "yes" >/dev/null 2>&1; then
1728 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1729 #define _ALL_SOURCE 1
1734 echo "$ac_t""no" 1>&6
1739 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1740 echo "configure:1741: checking for POSIXized ISC" >&5
1741 if test -d /etc/conf/kconfig.d &&
1742 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1744 echo "$ac_t""yes" 1>&6
1745 ISC=yes # If later tests want to check for ISC.
1746 cat >> confdefs.h <<\EOF
1747 #define _POSIX_SOURCE 1
1750 if test "$GCC" = yes; then
1756 echo "$ac_t""no" 1>&6
1760 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1761 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1762 echo "configure:1763: checking for minix/config.h" >&5
1763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 #include <minix/config.h>
1771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1772 { (eval echo configure:1773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1773 ac_err=`grep -v '^ *+' conftest.out`
1774 if test -z "$ac_err"; then
1776 eval "ac_cv_header_$ac_safe=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 eval "ac_cv_header_$ac_safe=no"
1786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1787 echo "$ac_t""yes" 1>&6
1790 echo "$ac_t""no" 1>&6
1794 if test "$MINIX" = yes; then
1795 cat >> confdefs.h <<\EOF
1796 #define _POSIX_SOURCE 1
1799 cat >> confdefs.h <<\EOF
1800 #define _POSIX_1_SOURCE 2
1803 cat >> confdefs.h <<\EOF
1812 echo $ac_n "checking for socket""... $ac_c" 1>&6
1813 echo "configure:1814: checking for socket" >&5
1814 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char socket(); below. */
1823 /* Override any gcc2 internal prototype to avoid an error. */
1824 /* We use char because int might match the return type of a gcc2
1825 builtin and then its argument prototype would still apply. */
1830 /* The GNU C library defines this for functions which it implements
1831 to always fail with ENOSYS. Some functions are actually named
1832 something starting with __ and the normal name is an alias. */
1833 #if defined (__stub_socket) || defined (__stub___socket)
1841 if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1843 eval "ac_cv_func_socket=yes"
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 eval "ac_cv_func_socket=no"
1853 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1854 echo "$ac_t""yes" 1>&6
1857 echo "$ac_t""no" 1>&6
1859 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1860 echo "configure:1861: checking for main in -lsocket" >&5
1861 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 ac_save_LIBS="$LIBS"
1866 LIBS="-lsocket $LIBS"
1867 cat > conftest.$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1877 eval "ac_cv_lib_$ac_lib_var=yes"
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1882 eval "ac_cv_lib_$ac_lib_var=no"
1885 LIBS="$ac_save_LIBS"
1888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1892 cat >> confdefs.h <<EOF
1893 #define $ac_tr_lib 1
1896 LIBS="-lsocket $LIBS"
1899 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1903 echo "configure:1904: checking for main in -lnet" >&5
1904 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_save_LIBS="$LIBS"
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1920 eval "ac_cv_lib_$ac_lib_var=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 eval "ac_cv_lib_$ac_lib_var=no"
1928 LIBS="$ac_save_LIBS"
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1935 cat >> confdefs.h <<EOF
1936 #define $ac_tr_lib 1
1942 echo "$ac_t""no" 1>&6
1945 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1946 echo "configure:1947: checking for main in -lnsl_s" >&5
1947 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 ac_save_LIBS="$LIBS"
1952 LIBS="-lnsl_s $LIBS"
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1961 if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1963 eval "ac_cv_lib_$ac_lib_var=yes"
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1968 eval "ac_cv_lib_$ac_lib_var=no"
1971 LIBS="$ac_save_LIBS"
1974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1976 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1977 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_lib 1
1982 LIBS="-lnsl_s $LIBS"
1985 echo "$ac_t""no" 1>&6
1988 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1989 echo "configure:1990: checking for main in -lnsl" >&5
1990 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 ac_save_LIBS="$LIBS"
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2006 eval "ac_cv_lib_$ac_lib_var=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_lib_$ac_lib_var=no"
2014 LIBS="$ac_save_LIBS"
2017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2021 cat >> confdefs.h <<EOF
2022 #define $ac_tr_lib 1
2028 echo "$ac_t""no" 1>&6
2031 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2032 echo "configure:2033: checking for socket in -linet" >&5
2033 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 ac_save_LIBS="$LIBS"
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* Override any gcc2 internal prototype to avoid an error. */
2043 /* We use char because int might match the return type of a gcc2
2044 builtin and then its argument prototype would still apply. */
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2053 eval "ac_cv_lib_$ac_lib_var=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2058 eval "ac_cv_lib_$ac_lib_var=no"
2061 LIBS="$ac_save_LIBS"
2064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2066 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_lib 1
2075 echo "$ac_t""no" 1>&6
2078 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2079 echo "configure:2080: checking for main in -lgen" >&5
2080 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 ac_save_LIBS="$LIBS"
2086 cat > conftest.$ac_ext <<EOF
2087 #line 2088 "configure"
2088 #include "confdefs.h"
2094 if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2096 eval "ac_cv_lib_$ac_lib_var=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_lib_$ac_lib_var=no"
2104 LIBS="$ac_save_LIBS"
2107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2111 cat >> confdefs.h <<EOF
2112 #define $ac_tr_lib 1
2118 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2126 echo "configure:2127: checking for sigset in -lV3" >&5
2127 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 ac_save_LIBS="$LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* Override any gcc2 internal prototype to avoid an error. */
2137 /* We use char because int might match the return type of a gcc2
2138 builtin and then its argument prototype would still apply. */
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_lib_$ac_lib_var=no"
2155 LIBS="$ac_save_LIBS"
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2162 cat >> confdefs.h <<EOF
2163 #define $ac_tr_lib 1
2169 echo "$ac_t""no" 1>&6
2173 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2174 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_hdr" >&5
2179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2188 { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2189 ac_err=`grep -v '^ *+' conftest.out`
2190 if test -z "$ac_err"; then
2192 eval "ac_cv_header_$ac_safe=yes"
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 eval "ac_cv_header_$ac_safe=no"
2202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2205 cat >> confdefs.h <<EOF
2206 #define $ac_tr_hdr 1
2210 echo "$ac_t""no" 1>&6
2215 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2216 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2217 echo "configure:2218: checking for main in -lkrb4" >&5
2218 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 ac_save_LIBS="$LIBS"
2223 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2234 eval "ac_cv_lib_$ac_lib_var=yes"
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 eval "ac_cv_lib_$ac_lib_var=no"
2242 LIBS="$ac_save_LIBS"
2245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2246 echo "$ac_t""yes" 1>&6
2249 echo "$ac_t""no" 1>&6
2254 if test $have_k5 = yes ; then
2255 ol_with_kerberos=found
2256 ol_link_kerberos=yes
2258 cat >> confdefs.h <<\EOF
2259 #define HAVE_KERBEROS 1
2263 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2267 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2268 for ac_hdr in krb.h des.h
2270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_hdr" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out`
2284 if test -z "$ac_err"; then
2286 eval "ac_cv_header_$ac_safe=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 eval "ac_cv_header_$ac_safe=no"
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2299 cat >> confdefs.h <<EOF
2300 #define $ac_tr_hdr 1
2304 echo "$ac_t""no" 1>&6
2309 if test $ac_cv_header_krb_h = yes ; then
2310 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2311 echo "configure:2312: checking for main in -lkrb" >&5
2312 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 ac_save_LIBS="$LIBS"
2317 LIBS="-lkrb -ldes $LIBS"
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2343 echo "$ac_t""no" 1>&6
2348 if test $have_k4 = yes ; then
2349 ol_with_kerberos=found
2350 ol_link_kerberos=yes
2352 cat >> confdefs.h <<\EOF
2353 #define HAVE_KERBEROS 1
2357 KRB_LIBS="-lkrb -ldes"
2364 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2365 for ac_hdr in pthread.h sched.h
2367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2369 echo "configure:2370: checking for $ac_hdr" >&5
2370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #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`
2381 if test -z "$ac_err"; then
2383 eval "ac_cv_header_$ac_safe=yes"
2386 echo "configure: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2389 eval "ac_cv_header_$ac_safe=no"
2393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2396 cat >> confdefs.h <<EOF
2397 #define $ac_tr_hdr 1
2401 echo "$ac_t""no" 1>&6
2406 if test $ac_cv_header_pthread_h = yes ; then
2407 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2408 echo "configure:2409: checking POSIX thread version" >&5
2409 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2417 # include <pthread.h>
2418 /* this check could be improved */
2419 # ifdef PTHREAD_ONCE_INIT
2424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2425 egrep "final" >/dev/null 2>&1; then
2427 ol_pthread_final=yes
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 # include <pthread.h>
2440 /* this check could be improved */
2441 # ifdef pthread_once_init
2446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447 egrep "draft4" >/dev/null 2>&1; then
2449 ol_pthread_draft4=yes
2452 ol_pthread_draft4=no
2457 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2458 ol_cv_pthread_version=final
2459 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2460 ol_cv_pthread_version=draft4
2462 ol_cv_pthread_version=unknown
2467 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2470 if test $ol_cv_pthread_version = final ; then
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_PTHREADS_FINAL 1
2475 elif test $ol_cv_pthread_version = draft4 ; then
2476 cat >> confdefs.h <<\EOF
2477 #define HAVE_PTHREADS_D4 1
2481 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2484 # consider threads found
2485 ol_with_threads=found
2488 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2489 echo "configure:2490: checking for LinuxThreads" >&5
2490 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2494 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2495 if test "$res" -gt 0 ; then
2496 ol_cv_linux_threads=yes
2498 ol_cv_linux_threads=no
2503 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2506 if test $ol_cv_linux_threads = yes ; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_LINUX_THREADS 1
2514 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2515 echo "configure:2516: checking for pthread_create" >&5
2516 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 cat > conftest.$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2522 /* System header to define __stub macros and hopefully few prototypes,
2523 which can conflict with char pthread_create(); below. */
2525 /* Override any gcc2 internal prototype to avoid an error. */
2526 /* We use char because int might match the return type of a gcc2
2527 builtin and then its argument prototype would still apply. */
2528 char pthread_create();
2532 /* The GNU C library defines this for functions which it implements
2533 to always fail with ENOSYS. Some functions are actually named
2534 something starting with __ and the normal name is an alias. */
2535 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2545 eval "ac_cv_func_pthread_create=yes"
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2550 eval "ac_cv_func_pthread_create=no"
2555 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2559 echo "$ac_t""no" 1>&6
2563 if test $ol_link_threads = no ; then
2564 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2565 echo "configure:2566: checking for pthread_create with -pthread" >&5
2566 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2571 LIBS="-pthread $LIBS"
2572 cat > conftest.$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 #include <pthread.h>
2578 pthread_create((pthread_t*) 0,
2579 (pthread_attr_t*) 0, 0, 0);
2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2585 ol_cv_pthread_flag=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 ol_cv_pthread_flag=no
2597 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2599 if test $ol_cv_pthread_flag = yes ; then
2600 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2601 ol_link_threads=posix
2605 if test $ol_link_threads = no ; then
2607 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2608 echo "configure:2609: checking for pthread_create in -lpthread" >&5
2609 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 ac_save_LIBS="$LIBS"
2614 LIBS="-lpthread $LIBS"
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 /* Override any gcc2 internal prototype to avoid an error. */
2619 /* We use char because int might match the return type of a gcc2
2620 builtin and then its argument prototype would still apply. */
2621 char pthread_create();
2627 if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2629 eval "ac_cv_lib_$ac_lib_var=yes"
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2634 eval "ac_cv_lib_$ac_lib_var=no"
2637 LIBS="$ac_save_LIBS"
2640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2643 ol_link_threads=posix
2644 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2646 echo "$ac_t""no" 1>&6
2652 if test $ol_link_threads = no ; then
2654 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2655 echo "configure:2656: checking for pthread_create in -lc_r" >&5
2656 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 ac_save_LIBS="$LIBS"
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 /* Override any gcc2 internal prototype to avoid an error. */
2666 /* We use char because int might match the return type of a gcc2
2667 builtin and then its argument prototype would still apply. */
2668 char pthread_create();
2674 if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2676 eval "ac_cv_lib_$ac_lib_var=yes"
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2681 eval "ac_cv_lib_$ac_lib_var=no"
2684 LIBS="$ac_save_LIBS"
2687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2690 ol_link_threads=posix
2691 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2693 echo "$ac_t""no" 1>&6
2699 if test $ol_link_threads = no ; then
2701 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2702 echo "configure:2703: checking for pthread_create in -lpthread" >&5
2703 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 ac_save_LIBS="$LIBS"
2708 LIBS="-lpthread if test $ol_with_preemptive = auto ; then
2709 ol_with_preemptive=yes
2711 -lmach -lexc -lc $LIBS"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 /* Override any gcc2 internal prototype to avoid an error. */
2716 /* We use char because int might match the return type of a gcc2
2717 builtin and then its argument prototype would still apply. */
2718 char pthread_create();
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2726 eval "ac_cv_lib_$ac_lib_var=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_lib_$ac_lib_var=no"
2734 LIBS="$ac_save_LIBS"
2737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2740 cat >> confdefs.h <<\EOF
2744 ol_link_threads=posix
2745 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2747 echo "$ac_t""no" 1>&6
2753 if test $ol_link_threads != no ; then
2754 cat >> confdefs.h <<\EOF
2755 #define HAVE_PTHREADS 1
2759 save_CPPFLAGS="$CPPFLAGS"
2761 LIBS="$LTHREAD_LIBS $LIBS"
2763 for ac_func in sched_yield pthread_yield
2765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2766 echo "configure:2767: checking for $ac_func" >&5
2767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $ac_func(); below. */
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2783 /* The GNU C library defines this for functions which it implements
2784 to always fail with ENOSYS. Some functions are actually named
2785 something starting with __ and the normal name is an alias. */
2786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2796 eval "ac_cv_func_$ac_func=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 eval "ac_cv_func_$ac_func=no"
2806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2809 cat >> confdefs.h <<EOF
2810 #define $ac_tr_func 1
2814 echo "$ac_t""no" 1>&6
2819 if test $ac_cv_func_sched_yield = no -a \
2820 $ac_cv_func_pthread_yield = no ; then
2821 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
2822 echo "configure:2823: checking for sched_yield in -lrt" >&5
2823 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
2824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 ac_save_LIBS="$LIBS"
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2841 if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
2857 cat >> confdefs.h <<\EOF
2858 #define HAVE_SCHED_YIELD 1
2861 ac_cv_func_sched_yield=yes
2863 echo "$ac_t""no" 1>&6
2864 ac_cv_func_sched_yield=no
2868 if test $ac_cv_func_sched_yield = no -a \
2869 $ac_cv_func_pthread_yield = no ; then
2870 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
2871 echo "configure:2872: checking for sched_yield in -lposix4" >&5
2872 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
2873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 ac_save_LIBS="$LIBS"
2877 LIBS="-lposix4 $LIBS"
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_lib_$ac_lib_var=no"
2900 LIBS="$ac_save_LIBS"
2903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2905 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
2906 cat >> confdefs.h <<\EOF
2907 #define HAVE_SCHED_YIELD 1
2910 ac_cv_func_sched_yield=yes
2912 echo "$ac_t""no" 1>&6
2913 ac_cv_func_sched_yield=no
2917 if test $ac_cv_func_sched_yield = no -a \
2918 $ac_cv_func_pthread_yield = no ; then
2919 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
2920 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
2923 for ac_func in pthread_kill
2925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_func" >&5
2927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* System header to define __stub macros and hopefully few prototypes,
2934 which can conflict with char $ac_func(); below. */
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2956 eval "ac_cv_func_$ac_func=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_func_$ac_func=no"
2966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_func 1
2974 echo "$ac_t""no" 1>&6
2979 if test $ol_with_preemptive = auto ; then
2980 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
2981 echo "configure:2982: checking for preemptive Pthread implementation" >&5
2982 if test "$cross_compiling" = yes; then
2984 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2990 #include <sys/types.h>
2991 #include <sys/time.h>
2993 #include <pthread.h>
3005 select(0, NULL, NULL, NULL, &tv);
3009 select(0, NULL, NULL, NULL, &tv);
3011 exit(1); /* if we exit here, the select blocked the whole process */
3015 int argc; char **argv;
3018 pthread_create(&t, NULL, (void *) task, NULL);
3020 #if HAVE_SCHED_YIELD
3021 sched_yield(); /* make sure task runs first */
3023 #if defined(HAVE_PTHREAD_YIELD)
3024 pthread_yield(); /* make sure task runs first */
3031 if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3033 ol_pthread_preemptive=yes
3035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
3038 ol_pthread_preemptive=no
3043 echo "$ac_t""$ol_pthread_preemptive" 1>&6
3045 if test $ol_pthread_preemptive = yes ; then
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_PREEMPTIVE_PTHREADS 1
3050 ol_with_preemptive=yes
3054 CPPFLAGS="$save_CPPFLAGS"
3057 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3061 if test $ol_with_threads = posix ; then
3062 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3066 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3067 for ac_hdr in mach/cthreads.h
3069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_hdr" >&5
3072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3081 { (eval echo configure:3082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3082 ac_err=`grep -v '^ *+' conftest.out`
3083 if test -z "$ac_err"; then
3085 eval "ac_cv_header_$ac_safe=yes"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 eval "ac_cv_header_$ac_safe=no"
3095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3098 cat >> confdefs.h <<EOF
3099 #define $ac_tr_hdr 1
3103 echo "$ac_t""no" 1>&6
3107 if test $ac_cv_header_mach_cthreads_h = yes ; then
3108 ol_with_threads=found
3110 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3111 echo "configure:3112: checking for cthread_fork" >&5
3112 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 /* System header to define __stub macros and hopefully few prototypes,
3119 which can conflict with char cthread_fork(); below. */
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3124 char cthread_fork();
3128 /* The GNU C library defines this for functions which it implements
3129 to always fail with ENOSYS. Some functions are actually named
3130 something starting with __ and the normal name is an alias. */
3131 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3141 eval "ac_cv_func_cthread_fork=yes"
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 eval "ac_cv_func_cthread_fork=no"
3151 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3155 echo "$ac_t""no" 1>&6
3159 if test $ol_link_threads = no ; then
3160 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3161 echo "configure:3162: checking for cthread_fork with -all_load" >&5
3162 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3167 LIBS="-all_load $LIBS"
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3171 #include <mach/cthreads.h>
3174 cthread_fork((void *)0, (void *)0);
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3180 ol_cv_cthread_all_load=yes
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 ol_cv_cthread_all_load=no
3192 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3194 if test $ol_cv_cthread_all_load = yes ; then
3195 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3196 ol_link_threads=mach
3200 if test $ol_link_threads != no ; then
3201 : check for cthread specific functionality here
3203 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3207 if test $ol_with_threads = mach ; then
3208 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3212 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3213 for ac_hdr in thread.h synch.h
3215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3217 echo "configure:3218: checking for $ac_hdr" >&5
3218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3227 { (eval echo configure:3228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3228 ac_err=`grep -v '^ *+' conftest.out`
3229 if test -z "$ac_err"; then
3231 eval "ac_cv_header_$ac_safe=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 eval "ac_cv_header_$ac_safe=no"
3241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3244 cat >> confdefs.h <<EOF
3245 #define $ac_tr_hdr 1
3249 echo "$ac_t""no" 1>&6
3253 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3254 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3255 echo "configure:3256: checking for thr_create in -lthread" >&5
3256 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 ac_save_LIBS="$LIBS"
3261 LIBS="-lthread $LIBS"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3276 eval "ac_cv_lib_$ac_lib_var=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3281 eval "ac_cv_lib_$ac_lib_var=no"
3284 LIBS="$ac_save_LIBS"
3287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3291 echo "$ac_t""no" 1>&6
3296 if test $have_lwp = yes ; then
3297 cat >> confdefs.h <<\EOF
3301 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3303 if test $ol_with_preemptive = auto ; then
3304 ol_with_preemptive=yes
3309 for ac_hdr in lwp/lwp.h
3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_hdr" >&5
3314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3323 { (eval echo configure:3324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3324 ac_err=`grep -v '^ *+' conftest.out`
3325 if test -z "$ac_err"; then
3327 eval "ac_cv_header_$ac_safe=yes"
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 eval "ac_cv_header_$ac_safe=no"
3337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_hdr 1
3345 echo "$ac_t""no" 1>&6
3349 if test $ac_cv_header_lwp_lwp_h = yes ; then
3350 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3351 echo "configure:3352: checking for lwp_create in -llwp" >&5
3352 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_save_LIBS="$LIBS"
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3372 eval "ac_cv_lib_$ac_lib_var=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_lib_$ac_lib_var=no"
3380 LIBS="$ac_save_LIBS"
3383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3387 echo "$ac_t""no" 1>&6
3392 if test $have_lwp = yes ; then
3393 cat >> confdefs.h <<\EOF
3397 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3399 if test $ol_with_preemptive = auto ; then
3400 ol_with_preemptive=no
3406 if test $ol_with_preemptive = yes ; then
3407 cat >> confdefs.h <<\EOF
3408 #define PREEMPTIVE_THREADS 1
3413 if test $ol_with_threads = manual ; then
3414 $ol_link_threads=yes
3416 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3418 for ac_hdr in pthread.h sched.h
3420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_hdr" >&5
3423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3432 { (eval echo configure:3433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3433 ac_err=`grep -v '^ *+' conftest.out`
3434 if test -z "$ac_err"; then
3436 eval "ac_cv_header_$ac_safe=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_header_$ac_safe=no"
3446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_hdr 1
3454 echo "$ac_t""no" 1>&6
3458 for ac_func in sched_yield pthread_yield
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3514 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3515 echo "configure:3516: checking for LinuxThreads" >&5
3516 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3520 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3521 if test "$res" -gt 0 ; then
3522 ol_cv_linux_threads=yes
3524 ol_cv_linux_threads=no
3529 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3532 for ac_hdr in mach/cthreads.h
3534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_hdr" >&5
3537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3546 { (eval echo configure:3547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3547 ac_err=`grep -v '^ *+' conftest.out`
3548 if test -z "$ac_err"; then
3550 eval "ac_cv_header_$ac_safe=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 eval "ac_cv_header_$ac_safe=no"
3560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3561 echo "$ac_t""yes" 1>&6
3562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3563 cat >> confdefs.h <<EOF
3564 #define $ac_tr_hdr 1
3568 echo "$ac_t""no" 1>&6
3572 for ac_hdr in lwp/lwp.h
3574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3576 echo "configure:3577: checking for $ac_hdr" >&5
3577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3586 { (eval echo configure:3587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3587 ac_err=`grep -v '^ *+' conftest.out`
3588 if test -z "$ac_err"; then
3590 eval "ac_cv_header_$ac_safe=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_header_$ac_safe=no"
3600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3603 cat >> confdefs.h <<EOF
3604 #define $ac_tr_hdr 1
3608 echo "$ac_t""no" 1>&6
3612 for ac_hdr in thread.h synch.h
3614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3616 echo "configure:3617: checking for $ac_hdr" >&5
3617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3626 { (eval echo configure:3627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3627 ac_err=`grep -v '^ *+' conftest.out`
3628 if test -z "$ac_err"; then
3630 eval "ac_cv_header_$ac_safe=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_header_$ac_safe=no"
3640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3643 cat >> confdefs.h <<EOF
3644 #define $ac_tr_hdr 1
3648 echo "$ac_t""no" 1>&6
3654 if test $ol_link_threads = no ; then
3655 if test $ol_with_threads = yes ; then
3656 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3659 if test $ol_with_threads = auto ; then
3660 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3661 $ol_with_threads = no
3664 cat >> confdefs.h <<\EOF
3665 #define NO_THREADS 1
3668 cat >> confdefs.h <<\EOF
3669 #define PREEMPTIVE_THREADS 1
3676 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3677 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3678 echo "configure:3679: checking for DB2 library" >&5
3679 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3683 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3684 echo "configure:3685: checking for db_open in -ldb" >&5
3685 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 ac_save_LIBS="$LIBS"
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3705 eval "ac_cv_lib_$ac_lib_var=yes"
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 eval "ac_cv_lib_$ac_lib_var=no"
3713 LIBS="$ac_save_LIBS"
3716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3717 echo "$ac_t""yes" 1>&6
3720 echo "$ac_t""no" 1>&6
3728 echo "$ac_t""$ol_cv_lib_db2" 1>&6
3732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3734 echo "configure:3735: checking for $ac_hdr" >&5
3735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3744 { (eval echo configure:3745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3745 ac_err=`grep -v '^ *+' conftest.out`
3746 if test -z "$ac_err"; then
3748 eval "ac_cv_header_$ac_safe=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 eval "ac_cv_header_$ac_safe=no"
3758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3761 cat >> confdefs.h <<EOF
3762 #define $ac_tr_hdr 1
3766 echo "$ac_t""no" 1>&6
3770 if test $ac_cv_header_db_h = yes ; then
3771 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
3772 echo "configure:3773: checking if db.h is DB2" >&5
3773 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3782 /* this check could be improved */
3783 # ifdef DB_VERSION_MAJOR
3784 # if DB_VERSION_MAJOR == 2
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 egrep "__db_version_2" >/dev/null 2>&1; then
3793 ol_cv_header_db2=yes
3802 echo "$ac_t""$ol_cv_header_db2" 1>&6
3809 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
3810 echo "configure:3811: checking for Berkeley DB2" >&5
3811 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3815 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
3816 ol_cv_berkeley_db2=no
3818 ol_cv_berkeley_db2=yes
3823 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
3824 if test $ol_cv_berkeley_db2 = yes ; then
3825 cat >> confdefs.h <<\EOF
3826 #define HAVE_BERKELEY_DB2 1
3832 if test $ol_cv_berkeley_db2 = yes ; then
3834 ol_with_ldbm_api=db2
3836 if test $ol_with_ldbm_type = hash ; then
3837 cat >> confdefs.h <<\EOF
3838 #define LDBM_USE_DBHASH 1
3842 cat >> confdefs.h <<\EOF
3843 #define LDBM_USE_DBBTREE 1
3848 if test $ol_cv_lib_db2 != yes ; then
3849 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
3854 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
3855 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
3856 echo "configure:3857: checking for Berkeley DB library" >&5
3857 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3861 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3862 echo "configure:3863: checking for dbopen" >&5
3863 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* System header to define __stub macros and hopefully few prototypes,
3870 which can conflict with char dbopen(); below. */
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3879 /* The GNU C library defines this for functions which it implements
3880 to always fail with ENOSYS. Some functions are actually named
3881 something starting with __ and the normal name is an alias. */
3882 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3892 eval "ac_cv_func_dbopen=yes"
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 eval "ac_cv_func_dbopen=no"
3902 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3906 echo "$ac_t""no" 1>&6
3908 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
3909 echo "configure:3910: checking for dbopen in -ldb" >&5
3910 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
3911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 ac_save_LIBS="$LIBS"
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3928 if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3930 eval "ac_cv_lib_$ac_lib_var=yes"
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3935 eval "ac_cv_lib_$ac_lib_var=no"
3938 LIBS="$ac_save_LIBS"
3941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3945 echo "$ac_t""no" 1>&6
3956 echo "$ac_t""$ol_cv_lib_db" 1>&6
3959 for ac_hdr in db_185.h
3961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3963 echo "configure:3964: checking for $ac_hdr" >&5
3964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3973 { (eval echo configure:3974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3974 ac_err=`grep -v '^ *+' conftest.out`
3975 if test -z "$ac_err"; then
3977 eval "ac_cv_header_$ac_safe=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_header_$ac_safe=no"
3987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3988 echo "$ac_t""yes" 1>&6
3989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3990 cat >> confdefs.h <<EOF
3991 #define $ac_tr_hdr 1
3995 echo "$ac_t""no" 1>&6
3999 if test $ol_cv_header_db2 = yes ; then
4001 ol_cv_header_db=$ac_cv_header_db_185_h
4003 ol_cv_header_db=$ac_cv_header_db_h
4008 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4009 echo "configure:4010: checking for Berkeley DB" >&5
4010 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4014 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4015 ol_cv_berkeley_db=no
4017 ol_cv_berkeley_db=yes
4022 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4023 if test $ol_cv_berkeley_db = yes ; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_BERKELEY_DB 1
4031 if test $ol_cv_berkeley_db = yes ; then
4035 if test $ol_with_ldbm_type = hash ; then
4036 cat >> confdefs.h <<\EOF
4037 #define LDBM_USE_DBHASH 1
4041 cat >> confdefs.h <<\EOF
4042 #define LDBM_USE_DBBTREE 1
4047 if test $ol_cv_lib_db != yes ; then
4048 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4053 if test $ol_with_ldbm_api = manual ; then
4056 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4058 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4062 echo "configure:4063: checking for $ac_hdr" >&5
4063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4072 { (eval echo configure:4073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4073 ac_err=`grep -v '^ *+' conftest.out`
4074 if test -z "$ac_err"; then
4076 eval "ac_cv_header_$ac_safe=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 eval "ac_cv_header_$ac_safe=no"
4086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4089 cat >> confdefs.h <<EOF
4090 #define $ac_tr_hdr 1
4094 echo "$ac_t""no" 1>&6
4100 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4101 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4102 $ol_with_ldbm_api=none
4105 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4106 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4107 echo "configure:4108: checking for GDBM library" >&5
4108 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4112 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4113 echo "configure:4114: checking for gdbm_open" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char gdbm_open(); below. */
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4143 eval "ac_cv_func_gdbm_open=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_func_gdbm_open=no"
4153 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4157 echo "$ac_t""no" 1>&6
4159 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4160 echo "configure:4161: checking for gdbm_open in -lgdbm" >&5
4161 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 ac_save_LIBS="$LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4194 ol_cv_lib_gdbm=-lgdbm
4196 echo "$ac_t""no" 1>&6
4207 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4210 for ac_hdr in gdbm.h
4212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214 echo "configure:4215: checking for $ac_hdr" >&5
4215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out`
4226 if test -z "$ac_err"; then
4228 eval "ac_cv_header_$ac_safe=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 eval "ac_cv_header_$ac_safe=no"
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4241 cat >> confdefs.h <<EOF
4242 #define $ac_tr_hdr 1
4246 echo "$ac_t""no" 1>&6
4250 echo $ac_n "checking for db""... $ac_c" 1>&6
4251 echo "configure:4252: checking for db" >&5
4252 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4256 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4264 echo "$ac_t""$ol_cv_gdbm" 1>&6
4265 if test $ol_cv_gdbm = yes ; then
4266 cat >> confdefs.h <<\EOF
4273 if test $ol_cv_gdbm = yes ; then
4275 ol_with_ldbm_api=gdbm
4277 if test $ol_cv_lib_gdbm != yes ; then
4278 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4283 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4284 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4285 echo "configure:4286: checking for NDBM library" >&5
4286 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4290 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4291 echo "configure:4292: checking for dbm_open" >&5
4292 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char dbm_open(); below. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4308 /* The GNU C library defines this for functions which it implements
4309 to always fail with ENOSYS. Some functions are actually named
4310 something starting with __ and the normal name is an alias. */
4311 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4321 eval "ac_cv_func_dbm_open=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_func_dbm_open=no"
4331 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4335 echo "$ac_t""no" 1>&6
4337 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4338 echo "configure:4339: checking for dbm_open in -lndbm" >&5
4339 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4343 ac_save_LIBS="$LIBS"
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 /* We use char because int might match the return type of a gcc2
4350 builtin and then its argument prototype would still apply. */
4357 if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4359 eval "ac_cv_lib_$ac_lib_var=yes"
4361 echo "configure: failed program was:" >&5
4362 cat conftest.$ac_ext >&5
4364 eval "ac_cv_lib_$ac_lib_var=no"
4367 LIBS="$ac_save_LIBS"
4370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ol_cv_lib_ndbm=-lndbm
4374 echo "$ac_t""no" 1>&6
4376 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4377 echo "configure:4378: checking for dbm_open in -ldbm" >&5
4378 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 ac_save_LIBS="$LIBS"
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4387 /* Override any gcc2 internal prototype to avoid an error. */
4388 /* We use char because int might match the return type of a gcc2
4389 builtin and then its argument prototype would still apply. */
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4398 eval "ac_cv_lib_$ac_lib_var=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 eval "ac_cv_lib_$ac_lib_var=no"
4406 LIBS="$ac_save_LIBS"
4409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ol_cv_lib_ndbm=-ldbm
4413 echo "$ac_t""no" 1>&6
4426 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4429 for ac_hdr in ndbm.h
4431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_hdr" >&5
4434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4443 { (eval echo configure:4444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4444 ac_err=`grep -v '^ *+' conftest.out`
4445 if test -z "$ac_err"; then
4447 eval "ac_cv_header_$ac_safe=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_header_$ac_safe=no"
4457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4458 echo "$ac_t""yes" 1>&6
4459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4460 cat >> confdefs.h <<EOF
4461 #define $ac_tr_hdr 1
4465 echo "$ac_t""no" 1>&6
4469 echo $ac_n "checking for db""... $ac_c" 1>&6
4470 echo "configure:4471: checking for db" >&5
4471 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4475 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4483 echo "$ac_t""$ol_cv_ndbm" 1>&6
4484 if test $ol_cv_ndbm = yes ; then
4485 cat >> confdefs.h <<\EOF
4492 if test $ol_cv_ndbm = yes ; then
4494 ol_with_ldbm_api=ndbm
4496 if test $ol_with_ldbm_api = ndbm ; then
4497 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4500 if test $ol_cv_lib_ndbm != yes ; then
4501 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4506 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4507 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4508 if test $ol_enable_ldbm = yes ; then
4509 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4512 echo "configure: warning: disabling LDBM" 1>&2
4516 if test $ol_enable_wrappers = yes ; then
4517 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4518 echo "configure:4519: checking for hosts_access in -lwrap" >&5
4519 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4521 echo $ac_n "(cached) $ac_c" 1>&6
4523 ac_save_LIBS="$LIBS"
4525 cat > conftest.$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char hosts_access();
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4539 eval "ac_cv_lib_$ac_lib_var=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_lib_$ac_lib_var=no"
4547 LIBS="$ac_save_LIBS"
4550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4551 echo "$ac_t""yes" 1>&6
4554 echo "$ac_t""no" 1>&6
4559 if test $have_wrappers = yes ; then
4560 cat >> confdefs.h <<\EOF
4564 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4566 echo "configure: warning: could not find -lwrap" 1>&2
4567 if test $ol_enable_wrappers = yes ; then
4568 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4571 echo "configure: warning: disabling wrappers support" 1>&2
4572 ol_enable_wrappers=no
4577 # ud needs termcap (should insert check here)
4579 for ac_hdr in termcap.h ncurses.h
4581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_hdr" >&5
4584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 cat > conftest.$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4593 { (eval echo configure:4594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4594 ac_err=`grep -v '^ *+' conftest.out`
4595 if test -z "$ac_err"; then
4597 eval "ac_cv_header_$ac_safe=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 eval "ac_cv_header_$ac_safe=no"
4607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4608 echo "$ac_t""yes" 1>&6
4609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4610 cat >> confdefs.h <<EOF
4611 #define $ac_tr_hdr 1
4615 echo "$ac_t""no" 1>&6
4620 if test $ol_link_termcap = no ; then
4621 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4622 echo "configure:4623: checking for tputs in -ltermcap" >&5
4623 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4628 LIBS="-ltermcap $LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4658 echo "$ac_t""no" 1>&6
4662 if test $have_termcap = yes ; then
4663 cat >> confdefs.h <<\EOF
4664 #define HAVE_TERMCAP 1
4668 TERMCAP_LIBS=-ltermcap
4672 if test $ol_link_termcap = no ; then
4673 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4674 echo "configure:4675: checking for initscr in -lncurses" >&5
4675 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 ac_save_LIBS="$LIBS"
4680 LIBS="-lncurses $LIBS"
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4695 eval "ac_cv_lib_$ac_lib_var=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_lib_$ac_lib_var=no"
4703 LIBS="$ac_save_LIBS"
4706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4710 echo "$ac_t""no" 1>&6
4714 if test $have_ncurses = yes ; then
4715 cat >> confdefs.h <<\EOF
4716 #define HAVE_NCURSES 1
4720 TERMCAP_LIBS=-lncurses
4724 if test $ol_link_termcap = no ; then
4725 cat >> confdefs.h <<\EOF
4726 #define NO_TERMCAP 1
4732 # FreeBSD (and others) have crypt(3) in -lcrypt
4733 if test $ol_enable_crypt != no ; then
4734 echo $ac_n "checking for crypt""... $ac_c" 1>&6
4735 echo "configure:4736: checking for crypt" >&5
4736 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* System header to define __stub macros and hopefully few prototypes,
4743 which can conflict with char crypt(); below. */
4745 /* Override any gcc2 internal prototype to avoid an error. */
4746 /* We use char because int might match the return type of a gcc2
4747 builtin and then its argument prototype would still apply. */
4752 /* The GNU C library defines this for functions which it implements
4753 to always fail with ENOSYS. Some functions are actually named
4754 something starting with __ and the normal name is an alias. */
4755 #if defined (__stub_crypt) || defined (__stub___crypt)
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4765 eval "ac_cv_func_crypt=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 eval "ac_cv_func_crypt=no"
4775 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4779 echo "$ac_t""no" 1>&6
4781 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4782 echo "configure:4783: checking for crypt in -lcrypt" >&5
4783 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 ac_save_LIBS="$LIBS"
4788 LIBS="-lcrypt $LIBS"
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4792 /* Override any gcc2 internal prototype to avoid an error. */
4793 /* We use char because int might match the return type of a gcc2
4794 builtin and then its argument prototype would still apply. */
4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4803 eval "ac_cv_lib_$ac_lib_var=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 eval "ac_cv_lib_$ac_lib_var=no"
4811 LIBS="$ac_save_LIBS"
4814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
4819 echo "$ac_t""no" 1>&6
4826 if test $have_crypt = yes ; then
4827 cat >> confdefs.h <<\EOF
4828 #define HAVE_CRYPT 1
4832 echo "configure: warning: could not find crypt" 1>&2
4833 if test $ol_enable_crypt = yes ; then
4834 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
4837 echo "configure: warning: disabling crypt support" 1>&2
4842 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4843 echo "configure:4844: checking for ANSI C header files" >&5
4844 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4856 { (eval echo configure:4857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4857 ac_err=`grep -v '^ *+' conftest.out`
4858 if test -z "$ac_err"; then
4860 ac_cv_header_stdc=yes
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4866 ac_cv_header_stdc=no
4870 if test $ac_cv_header_stdc = yes; then
4871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 egrep "memchr" >/dev/null 2>&1; then
4882 ac_cv_header_stdc=no
4888 if test $ac_cv_header_stdc = yes; then
4889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4896 egrep "free" >/dev/null 2>&1; then
4900 ac_cv_header_stdc=no
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4915 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4916 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4918 int main () { int i; for (i = 0; i < 256; i++)
4919 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 ac_cv_header_stdc=no
4938 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4939 if test $ac_cv_header_stdc = yes; then
4940 cat >> confdefs.h <<\EOF
4941 #define STDC_HEADERS 1
4947 if test $ac_cv_header_stdc != yes; then
4948 echo "configure: warning: could not locate Standard C headers" 1>&2
4952 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4955 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_hdr that defines DIR" >&5
4957 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4960 cat > conftest.$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4963 #include <sys/types.h>
4969 if { (eval echo configure:4970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4971 eval "ac_cv_header_dirent_$ac_safe=yes"
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4976 eval "ac_cv_header_dirent_$ac_safe=no"
4980 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4983 cat >> confdefs.h <<EOF
4984 #define $ac_tr_hdr 1
4986 ac_header_dirent=$ac_hdr; break
4988 echo "$ac_t""no" 1>&6
4991 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4992 if test $ac_header_dirent = dirent.h; then
4993 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4994 echo "configure:4995: checking for opendir in -ldir" >&5
4995 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 ac_save_LIBS="$LIBS"
5001 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5015 eval "ac_cv_lib_$ac_lib_var=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_lib_$ac_lib_var=no"
5023 LIBS="$ac_save_LIBS"
5026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5030 echo "$ac_t""no" 1>&6
5034 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5035 echo "configure:5036: checking for opendir in -lx" >&5
5036 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 ac_save_LIBS="$LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 eval "ac_cv_lib_$ac_lib_var=no"
5064 LIBS="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5071 echo "$ac_t""no" 1>&6
5076 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5077 echo "configure:5078: checking for sys/wait.h that is POSIX.1 compatible" >&5
5078 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 #include <sys/types.h>
5085 #include <sys/wait.h>
5087 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5090 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5095 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5098 if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5100 ac_cv_header_sys_wait_h=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 ac_cv_header_sys_wait_h=no
5110 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5111 if test $ac_cv_header_sys_wait_h = yes; then
5112 cat >> confdefs.h <<\EOF
5113 #define HAVE_SYS_WAIT_H 1
5141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5143 echo "configure:5144: checking for $ac_hdr" >&5
5144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5153 { (eval echo configure:5154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5154 ac_err=`grep -v '^ *+' conftest.out`
5155 if test -z "$ac_err"; then
5157 eval "ac_cv_header_$ac_safe=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 eval "ac_cv_header_$ac_safe=no"
5167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5170 cat >> confdefs.h <<EOF
5171 #define $ac_tr_hdr 1
5175 echo "$ac_t""no" 1>&6
5180 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5181 echo "configure:5182: checking for uid_t in sys/types.h" >&5
5182 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 #include <sys/types.h>
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 egrep "uid_t" >/dev/null 2>&1; then
5193 ac_cv_type_uid_t=yes
5202 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5203 if test $ac_cv_type_uid_t = no; then
5204 cat >> confdefs.h <<\EOF
5208 cat >> confdefs.h <<\EOF
5214 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5215 echo "configure:5216: checking type of array argument to getgroups" >&5
5216 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5219 if test "$cross_compiling" = yes; then
5220 ac_cv_type_getgroups=cross
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5226 /* Thanks to Mike Rendell for this test. */
5227 #include <sys/types.h>
5230 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5235 union { gid_t gval; long lval; } val;
5238 for (i = 0; i < NGID; i++)
5239 gidset[i] = val.gval;
5240 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5242 /* Exit non-zero if getgroups seems to require an array of ints. This
5243 happens when gid_t is short but getgroups modifies an array of ints. */
5244 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5250 ac_cv_type_getgroups=gid_t
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 ac_cv_type_getgroups=int
5260 if test $ac_cv_type_getgroups = cross; then
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5269 ac_cv_type_getgroups=gid_t
5272 ac_cv_type_getgroups=int
5279 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5280 cat >> confdefs.h <<EOF
5281 #define GETGROUPS_T $ac_cv_type_getgroups
5285 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5286 echo "configure:5287: checking for mode_t" >&5
5287 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5293 #include <sys/types.h>
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5302 ac_cv_type_mode_t=yes
5305 ac_cv_type_mode_t=no
5310 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5311 if test $ac_cv_type_mode_t = no; then
5312 cat >> confdefs.h <<\EOF
5318 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5319 echo "configure:5320: checking for off_t" >&5
5320 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 #include <sys/types.h>
5332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5335 ac_cv_type_off_t=yes
5343 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5344 if test $ac_cv_type_off_t = no; then
5345 cat >> confdefs.h <<\EOF
5351 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5352 echo "configure:5353: checking for pid_t" >&5
5353 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5359 #include <sys/types.h>
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5368 ac_cv_type_pid_t=yes
5376 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5377 if test $ac_cv_type_pid_t = no; then
5378 cat >> confdefs.h <<\EOF
5384 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5385 echo "configure:5386: checking return type of signal handlers" >&5
5386 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #include <sys/types.h>
5398 extern "C" void (*signal (int, void (*)(int)))(int);
5400 void (*signal ()) ();
5407 if { (eval echo configure:5408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5409 ac_cv_type_signal=void
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 ac_cv_type_signal=int
5419 echo "$ac_t""$ac_cv_type_signal" 1>&6
5420 cat >> confdefs.h <<EOF
5421 #define RETSIGTYPE $ac_cv_type_signal
5425 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5426 echo "configure:5427: checking for size_t" >&5
5427 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 #include <sys/types.h>
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5442 ac_cv_type_size_t=yes
5445 ac_cv_type_size_t=no
5450 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5451 if test $ac_cv_type_size_t = no; then
5452 cat >> confdefs.h <<\EOF
5453 #define size_t unsigned
5458 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5459 echo "configure:5460: checking for uid_t in sys/types.h" >&5
5460 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 #include <sys/types.h>
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469 egrep "uid_t" >/dev/null 2>&1; then
5471 ac_cv_type_uid_t=yes
5480 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5481 if test $ac_cv_type_uid_t = no; then
5482 cat >> confdefs.h <<\EOF
5486 cat >> confdefs.h <<\EOF
5492 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5493 echo "configure:5494: checking for st_blksize in struct stat" >&5
5494 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 #include <sys/types.h>
5501 #include <sys/stat.h>
5503 struct stat s; s.st_blksize;
5506 if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 ac_cv_struct_st_blksize=yes
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 ac_cv_struct_st_blksize=no
5518 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5519 if test $ac_cv_struct_st_blksize = yes; then
5520 cat >> confdefs.h <<\EOF
5521 #define HAVE_ST_BLKSIZE 1
5526 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5527 echo "configure:5528: checking whether time.h and sys/time.h may both be included" >&5
5528 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 #include <sys/types.h>
5535 #include <sys/time.h>
5541 if { (eval echo configure:5542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5543 ac_cv_header_time=yes
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5548 ac_cv_header_time=no
5553 echo "$ac_t""$ac_cv_header_time" 1>&6
5554 if test $ac_cv_header_time = yes; then
5555 cat >> confdefs.h <<\EOF
5556 #define TIME_WITH_SYS_TIME 1
5561 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5562 echo "configure:5563: checking whether struct tm is in sys/time.h or time.h" >&5
5563 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5569 #include <sys/types.h>
5572 struct tm *tp; tp->tm_sec;
5575 if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5577 ac_cv_struct_tm=time.h
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 ac_cv_struct_tm=sys/time.h
5587 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5588 if test $ac_cv_struct_tm = sys/time.h; then
5589 cat >> confdefs.h <<\EOF
5590 #define TM_IN_SYS_TIME 1
5597 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
5598 echo "configure:5599: checking if toupper() requires islower()" >&5
5599 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5603 if test "$cross_compiling" = yes; then
5604 ol_cv_c_upper_lower=safe
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5613 if ('C' == toupper('C'))
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5621 ol_cv_c_upper_lower=no
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 ol_cv_c_upper_lower=yes
5633 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
5634 if test $ol_cv_c_upper_lower != no ; then
5635 cat >> confdefs.h <<\EOF
5636 #define C_UPPER_LOWER 1
5641 echo $ac_n "checking for working const""... $ac_c" 1>&6
5642 echo "configure:5643: checking for working const" >&5
5643 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5652 /* Ultrix mips cc rejects this. */
5653 typedef int charset[2]; const charset x;
5654 /* SunOS 4.1.1 cc rejects this. */
5655 char const *const *ccp;
5657 /* NEC SVR4.0.2 mips cc rejects this. */
5658 struct point {int x, y;};
5659 static struct point const zero = {0,0};
5660 /* AIX XL C 1.02.0.0 rejects this.
5661 It does not let you subtract one const X* pointer from another in an arm
5662 of an if-expression whose if-part is not a constant expression */
5663 const char *g = "string";
5664 ccp = &g + (g ? g-g : 0);
5665 /* HPUX 7.0 cc rejects these. */
5668 ccp = (char const *const *) p;
5669 { /* SCO 3.2v4 cc rejects this. */
5671 char const *s = 0 ? (char *) 0 : (char const *) 0;
5675 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5677 const int *foo = &x[0];
5680 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5681 typedef const int *iptr;
5685 { /* AIX XL C 1.02.0.0 rejects this saying
5686 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5687 struct s { int j; const int *ap[3]; };
5688 struct s *b; b->j = 5;
5690 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5696 if { (eval echo configure:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5708 echo "$ac_t""$ac_cv_c_const" 1>&6
5709 if test $ac_cv_c_const = no; then
5710 cat >> confdefs.h <<\EOF
5718 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
5719 echo "configure:5720: checking for 8-bit clean memcmp" >&5
5720 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 if test "$cross_compiling" = yes; then
5724 ac_cv_func_memcmp_clean=no
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5732 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5733 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5739 ac_cv_func_memcmp_clean=yes
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 ac_cv_func_memcmp_clean=no
5751 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
5752 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
5754 echo $ac_n "checking for strftime""... $ac_c" 1>&6
5755 echo "configure:5756: checking for strftime" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char strftime(); below. */
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_strftime) || defined (__stub___strftime)
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5785 eval "ac_cv_func_strftime=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 eval "ac_cv_func_strftime=no"
5795 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 cat >> confdefs.h <<\EOF
5798 #define HAVE_STRFTIME 1
5802 echo "$ac_t""no" 1>&6
5803 # strftime is in -lintl on SCO UNIX.
5804 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
5805 echo "configure:5806: checking for strftime in -lintl" >&5
5806 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
5807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 ac_save_LIBS="$LIBS"
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5826 eval "ac_cv_lib_$ac_lib_var=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_lib_$ac_lib_var=no"
5834 LIBS="$ac_save_LIBS"
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 cat >> confdefs.h <<\EOF
5840 #define HAVE_STRFTIME 1
5845 echo "$ac_t""no" 1>&6
5850 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5851 echo "configure:5852: checking for vprintf" >&5
5852 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 cat > conftest.$ac_ext <<EOF
5856 #line 5857 "configure"
5857 #include "confdefs.h"
5858 /* System header to define __stub macros and hopefully few prototypes,
5859 which can conflict with char vprintf(); below. */
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_vprintf) || defined (__stub___vprintf)
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5881 eval "ac_cv_func_vprintf=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 eval "ac_cv_func_vprintf=no"
5891 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE_VPRINTF 1
5898 echo "$ac_t""no" 1>&6
5901 if test "$ac_cv_func_vprintf" != yes; then
5902 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5903 echo "configure:5904: checking for _doprnt" >&5
5904 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5910 /* System header to define __stub macros and hopefully few prototypes,
5911 which can conflict with char _doprnt(); below. */
5913 /* Override any gcc2 internal prototype to avoid an error. */
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5920 /* The GNU C library defines this for functions which it implements
5921 to always fail with ENOSYS. Some functions are actually named
5922 something starting with __ and the normal name is an alias. */
5923 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5933 eval "ac_cv_func__doprnt=yes"
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 eval "ac_cv_func__doprnt=no"
5943 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
5944 echo "$ac_t""yes" 1>&6
5945 cat >> confdefs.h <<\EOF
5946 #define HAVE_DOPRNT 1
5950 echo "$ac_t""no" 1>&6
5955 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
5956 echo "configure:5957: checking for wait3 that fills in rusage" >&5
5957 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
5958 echo $ac_n "(cached) $ac_c" 1>&6
5960 if test "$cross_compiling" = yes; then
5961 ac_cv_func_wait3_rusage=no
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 #include <sys/types.h>
5967 #include <sys/time.h>
5968 #include <sys/resource.h>
5970 /* HP-UX has wait3 but does not fill in rusage at all. */
5974 /* Use a field that we can force nonzero --
5975 voluntary context switches.
5976 For systems like NeXT and OSF/1 that don't set it,
5977 also use the system CPU time. And page faults (I/O) for Linux. */
5979 r.ru_stime.tv_sec = 0;
5980 r.ru_stime.tv_usec = 0;
5981 r.ru_majflt = r.ru_minflt = 0;
5983 case 0: /* Child. */
5984 sleep(1); /* Give up the CPU. */
5986 case -1: _exit(0); /* What can we do? */
5987 default: /* Parent. */
5989 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
5990 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5991 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5997 ac_cv_func_wait3_rusage=yes
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6002 ac_cv_func_wait3_rusage=no
6009 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6010 if test $ac_cv_func_wait3_rusage = yes; then
6011 cat >> confdefs.h <<\EOF
6012 #define HAVE_WAIT3 1
6048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6049 echo "configure:6050: checking for $ac_func" >&5
6050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6051 echo $ac_n "(cached) $ac_c" 1>&6
6053 cat > conftest.$ac_ext <<EOF
6054 #line 6055 "configure"
6055 #include "confdefs.h"
6056 /* System header to define __stub macros and hopefully few prototypes,
6057 which can conflict with char $ac_func(); below. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6066 /* The GNU C library defines this for functions which it implements
6067 to always fail with ENOSYS. Some functions are actually named
6068 something starting with __ and the normal name is an alias. */
6069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6077 if { (eval echo configure:6078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6079 eval "ac_cv_func_$ac_func=yes"
6081 echo "configure: failed program was:" >&5
6082 cat conftest.$ac_ext >&5
6084 eval "ac_cv_func_$ac_func=no"
6089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6092 cat >> confdefs.h <<EOF
6093 #define $ac_tr_func 1
6097 echo "$ac_t""no" 1>&6
6102 for ac_func in getopt strdup tempnam
6104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_func" >&5
6106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6112 /* System header to define __stub macros and hopefully few prototypes,
6113 which can conflict with char $ac_func(); below. */
6115 /* Override any gcc2 internal prototype to avoid an error. */
6116 /* We use char because int might match the return type of a gcc2
6117 builtin and then its argument prototype would still apply. */
6122 /* The GNU C library defines this for functions which it implements
6123 to always fail with ENOSYS. Some functions are actually named
6124 something starting with __ and the normal name is an alias. */
6125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6133 if { (eval echo configure:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6135 eval "ac_cv_func_$ac_func=yes"
6137 echo "configure: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6140 eval "ac_cv_func_$ac_func=no"
6145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6146 echo "$ac_t""yes" 1>&6
6147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6148 cat >> confdefs.h <<EOF
6149 #define $ac_tr_func 1
6153 echo "$ac_t""no" 1>&6
6154 LIBOBJS="$LIBOBJS ${ac_func}.o"
6160 # Check Configuration
6162 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6163 echo "configure:6164: checking declaration of sys_errlist" >&5
6164 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6173 #include <sys/types.h>
6176 char *c = (char *) *sys_errlist
6179 if { (eval echo configure:6180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6181 ol_cv_dcl_sys_errlist=yes
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 ol_cv_dcl_sys_errlist=no
6191 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6193 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6194 if test $ol_cv_dcl_sys_errlist = no ; then
6195 cat >> confdefs.h <<\EOF
6196 #define DECL_SYS_ERRLIST 1
6199 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6200 echo "configure:6201: checking existence of sys_errlist" >&5
6201 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6210 char *c = (char *) *sys_errlist
6213 if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6215 ol_cv_have_sys_errlist=yes
6217 echo "configure: failed program was:" >&5
6218 cat conftest.$ac_ext >&5
6220 ol_cv_have_sys_errlist=no
6225 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6230 if test $ol_enable_debug != no ; then
6231 cat >> confdefs.h <<\EOF
6232 #define LDAP_DEBUG 1
6236 if test $ol_enable_libui = yes ; then
6237 cat >> confdefs.h <<\EOF
6238 #define LDAP_LIBUI 1
6242 if test $ol_enable_cache = no ; then
6243 cat >> confdefs.h <<\EOF
6244 #define LDAP_NOCACHE 1
6248 if test $ol_enable_dns != no ; then
6249 cat >> confdefs.h <<\EOF
6254 if test $ol_enable_referrals != no ; then
6255 cat >> confdefs.h <<\EOF
6256 #define LDAP_REFERRALS 1
6260 if test $ol_enable_cldap != no ; then
6261 cat >> confdefs.h <<\EOF
6262 #define LDAP_CONNECTIONLESS 1
6267 if test $ol_enable_aclgroups != no ; then
6268 cat >> confdefs.h <<\EOF
6269 #define SLAPD_ACLGROUPS 1
6273 if test $ol_enable_crypt != no ; then
6274 cat >> confdefs.h <<\EOF
6275 #define SLAPD_CRYPT 1
6279 if test $ol_enable_md5 != no ; then
6280 cat >> confdefs.h <<\EOF
6285 if test $ol_enable_sha1 != no ; then
6286 cat >> confdefs.h <<\EOF
6287 #define SLAPD_SHA1 1
6291 if test $ol_enable_phonetic != no ; then
6292 cat >> confdefs.h <<\EOF
6293 #define SLAPD_PHONETIC 1
6297 if test $ol_enable_rlookups != no ; then
6298 cat >> confdefs.h <<\EOF
6299 #define SLAPD_RLOOKUPS 1
6304 if test $ol_link_ldbm != no ; then
6305 cat >> confdefs.h <<\EOF
6306 #define SLAPD_LDBM 1
6313 if test $ol_enable_passwd != no ; then
6314 cat >> confdefs.h <<\EOF
6315 #define SLAPD_PASSWD 1
6322 if test $ol_enable_shell != no ; then
6323 cat >> confdefs.h <<\EOF
6324 #define SLAPD_SHELL 1
6331 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
6332 $BUILD_SLAPD = yes ; then
6359 cat > confcache <<\EOF
6360 # This file is a shell script that caches the results of configure
6361 # tests run on this system so they can be shared between configure
6362 # scripts and configure runs. It is not useful on other systems.
6363 # If it contains results you don't want to keep, you may remove or edit it.
6365 # By default, configure uses ./config.cache as the cache file,
6366 # creating it if it does not exist already. You can give configure
6367 # the --cache-file=FILE option to use a different cache file; that is
6368 # what configure does when it calls configure scripts in
6369 # subdirectories, so they share the cache.
6370 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6371 # config.status only pays attention to the cache file if you give it the
6372 # --recheck option to rerun configure.
6375 # The following way of writing the cache mishandles newlines in values,
6376 # but we know of no workaround that is simple, portable, and efficient.
6377 # So, don't put newlines in cache variables' values.
6378 # Ultrix sh set writes to stderr and can't be redirected directly,
6379 # and sets the high bit in the cache file unless we assign to the vars.
6381 case `(ac_space=' '; set) 2>&1` in
6383 # `set' does not quote correctly, so add quotes (double-quote substitution
6384 # turns \\\\ into \\, and sed turns \\ into \).
6386 -e "s/'/'\\\\''/g" \
6387 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6390 # `set' quotes correctly as required by POSIX, so do not add quotes.
6391 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6394 if cmp -s $cache_file confcache; then
6397 if test -w $cache_file; then
6398 echo "updating cache $cache_file"
6399 cat confcache > $cache_file
6401 echo "not updating unwritable cache $cache_file"
6406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6409 # Let make expand exec_prefix.
6410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6412 # Any assignment to VPATH causes Sun make to only execute
6413 # the first set of double-colon rules, so remove it if not needed.
6414 # If there is a colon in the path, we need to keep it.
6415 if test "x$srcdir" = x.; then
6416 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6419 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6421 DEFS=-DHAVE_CONFIG_H
6423 # Without the "./", some shells look in PATH for config.status.
6424 : ${CONFIG_STATUS=./config.status}
6426 echo creating $CONFIG_STATUS
6427 rm -f $CONFIG_STATUS
6428 cat > $CONFIG_STATUS <<EOF
6430 # Generated automatically by configure.
6431 # Run this file to recreate the current configuration.
6432 # This directory was configured as follows,
6433 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6435 # $0 $ac_configure_args
6437 # Compiler output produced by configure, useful for debugging
6438 # configure, is in ./config.log if it exists.
6440 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6443 case "\$ac_option" in
6444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6445 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6446 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6447 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6448 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6450 -help | --help | --hel | --he | --h)
6451 echo "\$ac_cs_usage"; exit 0 ;;
6452 *) echo "\$ac_cs_usage"; exit 1 ;;
6456 ac_given_srcdir=$srcdir
6457 ac_given_INSTALL="$INSTALL"
6459 trap 'rm -fr `echo "\
6460 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6461 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6462 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6463 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6464 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6465 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6466 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6467 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6468 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6469 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6470 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6471 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6472 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6473 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6474 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6475 include/Makefile:build/top.mk:include/Makefile.in \
6476 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6477 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6478 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6479 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6480 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6481 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6482 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6483 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6484 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6485 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6486 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6487 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6488 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6489 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6490 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6491 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6492 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6493 tests/Makefile:build/top.mk:tests/Makefile.in \
6494 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6496 cat >> $CONFIG_STATUS <<EOF
6498 # Protect against being on the right side of a sed subst in config.status.
6499 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6500 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6503 s%@CFLAGS@%$CFLAGS%g
6504 s%@CPPFLAGS@%$CPPFLAGS%g
6505 s%@CXXFLAGS@%$CXXFLAGS%g
6507 s%@LDFLAGS@%$LDFLAGS%g
6509 s%@exec_prefix@%$exec_prefix%g
6510 s%@prefix@%$prefix%g
6511 s%@program_transform_name@%$program_transform_name%g
6512 s%@bindir@%$bindir%g
6513 s%@sbindir@%$sbindir%g
6514 s%@libexecdir@%$libexecdir%g
6515 s%@datadir@%$datadir%g
6516 s%@sysconfdir@%$sysconfdir%g
6517 s%@sharedstatedir@%$sharedstatedir%g
6518 s%@localstatedir@%$localstatedir%g
6519 s%@libdir@%$libdir%g
6520 s%@includedir@%$includedir%g
6521 s%@oldincludedir@%$oldincludedir%g
6522 s%@infodir@%$infodir%g
6523 s%@mandir@%$mandir%g
6525 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6526 s%@INSTALL_DATA@%$INSTALL_DATA%g
6527 s%@RANLIB@%$RANLIB%g
6528 s%@SET_MAKE@%$SET_MAKE%g
6529 s%@SENDMAIL@%$SENDMAIL%g
6530 s%@EDITOR@%$EDITOR%g
6531 s%@FINGER@%$FINGER%g
6534 s%@LIBOBJS@%$LIBOBJS%g
6535 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
6536 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
6537 s%@BUILD_LDBM@%$BUILD_LDBM%g
6538 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
6539 s%@BUILD_SHELL@%$BUILD_SHELL%g
6540 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
6541 s%@LDAP_LIBS@%$LDAP_LIBS%g
6542 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
6543 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
6544 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
6545 s%@LDBM_LIBS@%$LDBM_LIBS%g
6546 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
6547 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
6548 s%@KRB_LIBS@%$KRB_LIBS%g
6549 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
6554 cat >> $CONFIG_STATUS <<\EOF
6556 # Split the substitutions into bite-sized pieces for seds with
6557 # small command number limits, like on Digital OSF/1 and HP-UX.
6558 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6559 ac_file=1 # Number of current file.
6560 ac_beg=1 # First line for current file.
6561 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6564 while $ac_more_lines; do
6565 if test $ac_beg -gt 1; then
6566 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6568 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6570 if test ! -s conftest.s$ac_file; then
6572 rm -f conftest.s$ac_file
6574 if test -z "$ac_sed_cmds"; then
6575 ac_sed_cmds="sed -f conftest.s$ac_file"
6577 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6579 ac_file=`expr $ac_file + 1`
6581 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6584 if test -z "$ac_sed_cmds"; then
6589 cat >> $CONFIG_STATUS <<EOF
6591 CONFIG_FILES=\${CONFIG_FILES-"\
6592 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6593 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6594 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6595 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6596 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6597 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6598 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6599 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6600 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6601 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6602 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6603 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6604 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6605 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6606 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6607 include/Makefile:build/top.mk:include/Makefile.in \
6608 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6609 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6610 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6611 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6612 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6613 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6614 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6615 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6616 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6617 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6618 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6619 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6620 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6621 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6622 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6623 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6624 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6625 tests/Makefile:build/top.mk:tests/Makefile.in \
6628 cat >> $CONFIG_STATUS <<\EOF
6629 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6632 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6633 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6634 *) ac_file_in="${ac_file}.in" ;;
6637 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6639 # Remove last slash and all that follows it. Not all systems have dirname.
6640 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6641 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6642 # The file is in a subdirectory.
6643 test ! -d "$ac_dir" && mkdir "$ac_dir"
6644 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6645 # A "../" for each directory in $ac_dir_suffix.
6646 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6648 ac_dir_suffix= ac_dots=
6651 case "$ac_given_srcdir" in
6653 if test -z "$ac_dots"; then top_srcdir=.
6654 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6655 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6657 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6658 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6661 case "$ac_given_INSTALL" in
6662 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6663 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6666 echo creating "$ac_file"
6668 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6670 *Makefile*) ac_comsub="1i\\
6671 # $configure_input" ;;
6675 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6677 s%@configure_input@%$configure_input%g
6678 s%@srcdir@%$srcdir%g
6679 s%@top_srcdir@%$top_srcdir%g
6680 s%@INSTALL@%$INSTALL%g
6681 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6685 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6686 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6688 # ac_d sets the value in "#define NAME VALUE" lines.
6689 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6690 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6693 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6694 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6695 ac_uB='\([ ]\)%\1#\2define\3'
6698 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6699 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6700 ac_eB='$%\1#\2define\3'
6704 if test "${CONFIG_HEADERS+set}" != set; then
6706 cat >> $CONFIG_STATUS <<EOF
6707 CONFIG_HEADERS="include/portable.h"
6709 cat >> $CONFIG_STATUS <<\EOF
6711 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6712 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6714 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6715 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6716 *) ac_file_in="${ac_file}.in" ;;
6719 echo creating $ac_file
6721 rm -f conftest.frag conftest.in conftest.out
6722 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6723 cat $ac_file_inputs > conftest.in
6727 # Transform confdefs.h into a sed script conftest.vals that substitutes
6728 # the proper values into config.h.in to produce config.h. And first:
6729 # Protect against being on the right side of a sed subst in config.status.
6730 # Protect against being in an unquoted here document in config.status.
6732 cat > conftest.hdr <<\EOF
6735 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6739 sed -n -f conftest.hdr confdefs.h > conftest.vals
6742 # This sed command replaces #undef with comments. This is necessary, for
6743 # example, in the case of _POSIX_SOURCE, which is predefined and required
6744 # on some systems where configure will not decide to define it.
6745 cat >> conftest.vals <<\EOF
6746 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6749 # Break up conftest.vals because some shells have a limit on
6750 # the size of here documents, and old seds have small limits too.
6755 ac_lines=`grep -c . conftest.vals`
6756 # grep -c gives empty output for an empty file on some AIX systems.
6757 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6758 # Write a limited-size here document to conftest.frag.
6759 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6760 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6762 sed -f conftest.frag conftest.in > conftest.out
6764 mv conftest.out conftest.in
6766 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6768 mv conftest.tail conftest.vals
6772 cat >> $CONFIG_STATUS <<\EOF
6773 rm -f conftest.frag conftest.h
6774 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6775 cat conftest.in >> conftest.h
6777 if cmp -s $ac_file conftest.h 2>/dev/null; then
6778 echo "$ac_file is unchanged"
6781 # Remove last slash and all that follows it. Not all systems have dirname.
6782 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6783 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6784 # The file is in a subdirectory.
6785 test ! -d "$ac_dir" && mkdir "$ac_dir"
6788 mv conftest.h $ac_file
6793 cat >> $CONFIG_STATUS <<EOF
6796 cat >> $CONFIG_STATUS <<\EOF
6800 chmod +x $CONFIG_STATUS
6801 rm -fr confdefs* $ac_clean_files
6802 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1