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-clapd enable connectionless ldap (no)"
28 --with-kerberos use Kerberos (auto)"
30 --with-threads use threads (auto)"
32 --enable-ldapd enable building ldapd (no)"
34 --enable-slapd enable building slapd (yes)"
36 --enable-aclgroup enable ACL group support (auto)"
38 --enable-crypt enable crypt(3) passwords (auto)"
40 --enable-md5 enable MD5 passwords (auto)"
42 --enable-sha1 enable SHA1 passwords (auto)"
44 --enable-wrappers enable tcp wrapper support (no)"
46 --enable-phonetic enable phonetic/soundex (no)"
48 --enable-rlookups enable reverse lookups (auto)"
50 --enable-ldbm enable ldbm backend (yes)"
52 --with-ldbm-api use LDBM API (auto)"
54 --with-ldbm-type use LDBM type (auto)"
56 --enable-passwd enable passwd backend (no)"
58 --enable-shell enable shell backend (no)"
60 --enable-slurpd enable building slurpd (auto)"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file=./config.cache
75 program_transform_name=s,x,x,
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
99 # Maximum number of lines to put in a shell here document.
106 # If the previous option needs an argument, assign it.
107 if test -n "$ac_prev"; then
108 eval "$ac_prev=\$ac_option"
114 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 # Accept the important Cygnus configure options, so we can diagnose typos.
122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125 bindir="$ac_optarg" ;;
127 -build | --build | --buil | --bui | --bu)
129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
130 build="$ac_optarg" ;;
132 -cache-file | --cache-file | --cache-fil | --cache-fi \
133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134 ac_prev=cache_file ;;
135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137 cache_file="$ac_optarg" ;;
139 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 datadir="$ac_optarg" ;;
145 -disable-* | --disable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152 eval "enable_${ac_feature}=no" ;;
154 -enable-* | --enable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}='$ac_optarg'" ;;
167 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169 | --exec | --exe | --ex)
170 ac_prev=exec_prefix ;;
171 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173 | --exec=* | --exe=* | --ex=*)
174 exec_prefix="$ac_optarg" ;;
176 -gas | --gas | --ga | --g)
177 # Obsolete; use --with-gas.
180 -help | --help | --hel | --he)
181 # Omit some internal or obsolete options to make the list less imposing.
182 # This message is too long to be a string in the A/UX 3.1 sh.
184 Usage: configure [options] [host]
185 Options: [defaults in brackets after descriptions]
187 --cache-file=FILE cache test results in FILE
188 --help print this message
189 --no-create do not create output files
190 --quiet, --silent do not print \`checking...' messages
191 --version print the version of autoconf that created configure
192 Directory and file names:
193 --prefix=PREFIX install architecture-independent files in PREFIX
195 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 --bindir=DIR user executables in DIR [EPREFIX/bin]
198 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200 --datadir=DIR read-only architecture-independent data in DIR
202 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
207 --includedir=DIR C header files in DIR [PREFIX/include]
208 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209 --infodir=DIR info documentation in DIR [PREFIX/info]
210 --mandir=DIR man documentation in DIR [PREFIX/man]
211 --srcdir=DIR find the sources in DIR [configure dir or ..]
212 --program-prefix=PREFIX prepend PREFIX to installed program names
213 --program-suffix=SUFFIX append SUFFIX to installed program names
214 --program-transform-name=PROGRAM
215 run sed PROGRAM on installed program names
219 --build=BUILD configure for building on BUILD [BUILD=HOST]
220 --host=HOST configure for HOST [guessed]
221 --target=TARGET configure for TARGET [TARGET=HOST]
222 Features and packages:
223 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227 --x-includes=DIR X include files are in DIR
228 --x-libraries=DIR X library files are in DIR
230 if test -n "$ac_help"; then
231 echo "--enable and --with options recognized:$ac_help"
235 -host | --host | --hos | --ho)
237 -host=* | --host=* | --hos=* | --ho=*)
240 -includedir | --includedir | --includedi | --included | --include \
241 | --includ | --inclu | --incl | --inc)
242 ac_prev=includedir ;;
243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244 | --includ=* | --inclu=* | --incl=* | --inc=*)
245 includedir="$ac_optarg" ;;
247 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250 infodir="$ac_optarg" ;;
252 -libdir | --libdir | --libdi | --libd)
254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
255 libdir="$ac_optarg" ;;
257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258 | --libexe | --libex | --libe)
259 ac_prev=libexecdir ;;
260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261 | --libexe=* | --libex=* | --libe=*)
262 libexecdir="$ac_optarg" ;;
264 -localstatedir | --localstatedir | --localstatedi | --localstated \
265 | --localstate | --localstat | --localsta | --localst \
266 | --locals | --local | --loca | --loc | --lo)
267 ac_prev=localstatedir ;;
268 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
270 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271 localstatedir="$ac_optarg" ;;
273 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276 mandir="$ac_optarg" ;;
279 # Obsolete; use --without-fp.
282 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
287 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292 | --oldin | --oldi | --old | --ol | --o)
293 ac_prev=oldincludedir ;;
294 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297 oldincludedir="$ac_optarg" ;;
299 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302 prefix="$ac_optarg" ;;
304 -program-prefix | --program-prefix | --program-prefi | --program-pref \
305 | --program-pre | --program-pr | --program-p)
306 ac_prev=program_prefix ;;
307 -program-prefix=* | --program-prefix=* | --program-prefi=* \
308 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309 program_prefix="$ac_optarg" ;;
311 -program-suffix | --program-suffix | --program-suffi | --program-suff \
312 | --program-suf | --program-su | --program-s)
313 ac_prev=program_suffix ;;
314 -program-suffix=* | --program-suffix=* | --program-suffi=* \
315 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316 program_suffix="$ac_optarg" ;;
318 -program-transform-name | --program-transform-name \
319 | --program-transform-nam | --program-transform-na \
320 | --program-transform-n | --program-transform- \
321 | --program-transform | --program-transfor \
322 | --program-transfo | --program-transf \
323 | --program-trans | --program-tran \
324 | --progr-tra | --program-tr | --program-t)
325 ac_prev=program_transform_name ;;
326 -program-transform-name=* | --program-transform-name=* \
327 | --program-transform-nam=* | --program-transform-na=* \
328 | --program-transform-n=* | --program-transform-=* \
329 | --program-transform=* | --program-transfor=* \
330 | --program-transfo=* | --program-transf=* \
331 | --program-trans=* | --program-tran=* \
332 | --progr-tra=* | --program-tr=* | --program-t=*)
333 program_transform_name="$ac_optarg" ;;
335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
336 | -silent | --silent | --silen | --sile | --sil)
339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 sbindir="$ac_optarg" ;;
345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347 | --sharedst | --shareds | --shared | --share | --shar \
349 ac_prev=sharedstatedir ;;
350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 sharedstatedir="$ac_optarg" ;;
356 -site | --site | --sit)
358 -site=* | --site=* | --sit=*)
361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364 srcdir="$ac_optarg" ;;
366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367 | --syscon | --sysco | --sysc | --sys | --sy)
368 ac_prev=sysconfdir ;;
369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371 sysconfdir="$ac_optarg" ;;
373 -target | --target | --targe | --targ | --tar | --ta | --t)
375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376 target="$ac_optarg" ;;
378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
381 -version | --version | --versio | --versi | --vers)
382 echo "configure generated by autoconf version 2.12"
386 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* | --without-*)
399 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412 | --x-incl | --x-inc | --x-in | --x-i)
413 ac_prev=x_includes ;;
414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416 x_includes="$ac_optarg" ;;
418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420 ac_prev=x_libraries ;;
421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423 x_libraries="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
474 | --no-cr | --no-c) ;;
475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file=include/ldap.h
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$CONFIG_SITE"; then
527 if test "x$prefix" != xNONE; then
528 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533 for ac_site_file in $CONFIG_SITE; do
534 if test -r "$ac_site_file"; then
535 echo "loading site script $ac_site_file"
540 if test -r "$cache_file"; then
541 echo "loading cache $cache_file"
544 echo "creating cache $cache_file"
549 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550 ac_cpp='$CPP $CPPFLAGS'
551 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553 cross_compiling=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564 ac_n= ac_c='\c' ac_t=
569 for ac_dir in build $srcdir/build; do
570 if test -f $ac_dir/install-sh; then
572 ac_install_sh="$ac_aux_dir/install-sh -c"
574 elif test -f $ac_dir/install.sh; then
576 ac_install_sh="$ac_aux_dir/install.sh -c"
580 if test -z "$ac_aux_dir"; then
581 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
583 ac_config_guess=$ac_aux_dir/config.guess
584 ac_config_sub=$ac_aux_dir/config.sub
585 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
588 echo "configure:589: checking configure arguments" >&5
591 # OpenLDAP --enable-debug
592 # Check whether --enable-debug or --disable-debug was given.
593 if test "${enable_debug+set}" = set; then
594 enableval="$enable_debug"
597 for ol_val in auto yes no ; do
598 if test "$enableval" = "$ol_val" ; then
602 if test "$ol_arg" = "invalid" ; then
603 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
605 ol_enable_debug="$ol_arg"
608 ol_enable_debug="yes"
611 # OpenLDAP --enable-libui
612 # Check whether --enable-libui or --disable-libui was given.
613 if test "${enable_libui+set}" = set; then
614 enableval="$enable_libui"
617 for ol_val in auto yes no ; do
618 if test "$enableval" = "$ol_val" ; then
622 if test "$ol_arg" = "invalid" ; then
623 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
625 ol_enable_libui="$ol_arg"
628 ol_enable_libui="yes"
631 # OpenLDAP --enable-cache
632 # Check whether --enable-cache or --disable-cache was given.
633 if test "${enable_cache+set}" = set; then
634 enableval="$enable_cache"
637 for ol_val in auto yes no ; do
638 if test "$enableval" = "$ol_val" ; then
642 if test "$ol_arg" = "invalid" ; then
643 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
645 ol_enable_cache="$ol_arg"
648 ol_enable_cache="yes"
651 # OpenLDAP --enable-dns
652 # Check whether --enable-dns or --disable-dns was given.
653 if test "${enable_dns+set}" = set; then
654 enableval="$enable_dns"
657 for ol_val in auto yes no ; do
658 if test "$enableval" = "$ol_val" ; then
662 if test "$ol_arg" = "invalid" ; then
663 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
665 ol_enable_dns="$ol_arg"
671 # OpenLDAP --enable-referrals
672 # Check whether --enable-referrals or --disable-referrals was given.
673 if test "${enable_referrals+set}" = set; then
674 enableval="$enable_referrals"
677 for ol_val in auto yes no ; do
678 if test "$enableval" = "$ol_val" ; then
682 if test "$ol_arg" = "invalid" ; then
683 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
685 ol_enable_referrals="$ol_arg"
688 ol_enable_referrals="yes"
690 # end --enable-referrals
691 # OpenLDAP --enable-cldap
692 # Check whether --enable-cldap or --disable-cldap was given.
693 if test "${enable_cldap+set}" = set; then
694 enableval="$enable_cldap"
697 for ol_val in auto yes no ; do
698 if test "$enableval" = "$ol_val" ; then
702 if test "$ol_arg" = "invalid" ; then
703 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
705 ol_enable_cldap="$ol_arg"
712 # OpenLDAP --with-kerberos
713 # Check whether --with-kerberos or --without-kerberos was given.
714 if test "${with_kerberos+set}" = set; then
715 withval="$with_kerberos"
718 for ol_val in auto k5 k4 afs yes no ; do
719 if test "$withval" = "$ol_val" ; then
723 if test "$ol_arg" = "invalid" ; then
724 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
726 ol_with_kerberos="$ol_arg"
729 ol_with_kerberos="auto"
731 # end --with-kerberos
733 # OpenLDAP --with-threads
734 # Check whether --with-threads or --without-threads was given.
735 if test "${with_threads+set}" = set; then
736 withval="$with_threads"
739 for ol_val in auto posix dce mach yes no manual ; do
740 if test "$withval" = "$ol_val" ; then
744 if test "$ol_arg" = "invalid" ; then
745 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
747 ol_with_threads="$ol_arg"
750 ol_with_threads="auto"
756 # OpenLDAP --enable-ldapd
757 # Check whether --enable-ldapd or --disable-ldapd was given.
758 if test "${enable_ldapd+set}" = set; then
759 enableval="$enable_ldapd"
762 for ol_val in auto yes no ; do
763 if test "$enableval" = "$ol_val" ; then
767 if test "$ol_arg" = "invalid" ; then
768 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
770 ol_enable_ldapd="$ol_arg"
777 # OpenLDAP --enable-slapd
778 # Check whether --enable-slapd or --disable-slapd was given.
779 if test "${enable_slapd+set}" = set; then
780 enableval="$enable_slapd"
783 for ol_val in auto yes no ; do
784 if test "$enableval" = "$ol_val" ; then
788 if test "$ol_arg" = "invalid" ; then
789 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
791 ol_enable_slapd="$ol_arg"
794 ol_enable_slapd="yes"
797 # OpenLDAP --enable-aclgroup
798 # Check whether --enable-aclgroup or --disable-aclgroup was given.
799 if test "${enable_aclgroup+set}" = set; then
800 enableval="$enable_aclgroup"
803 for ol_val in auto yes no ; do
804 if test "$enableval" = "$ol_val" ; then
808 if test "$ol_arg" = "invalid" ; then
809 { echo "configure: error: bad value $enableval for --enable-aclgroup" 1>&2; exit 1; }
811 ol_enable_aclgroup="$ol_arg"
814 ol_enable_aclgroup="auto"
816 # end --enable-aclgroup
817 # OpenLDAP --enable-crypt
818 # Check whether --enable-crypt or --disable-crypt was given.
819 if test "${enable_crypt+set}" = set; then
820 enableval="$enable_crypt"
823 for ol_val in auto yes no ; do
824 if test "$enableval" = "$ol_val" ; then
828 if test "$ol_arg" = "invalid" ; then
829 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
831 ol_enable_crypt="$ol_arg"
834 ol_enable_crypt="auto"
837 # OpenLDAP --enable-md5
838 # Check whether --enable-md5 or --disable-md5 was given.
839 if test "${enable_md5+set}" = set; then
840 enableval="$enable_md5"
843 for ol_val in auto yes no ; do
844 if test "$enableval" = "$ol_val" ; then
848 if test "$ol_arg" = "invalid" ; then
849 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
851 ol_enable_md5="$ol_arg"
857 # OpenLDAP --enable-sha1
858 # Check whether --enable-sha1 or --disable-sha1 was given.
859 if test "${enable_sha1+set}" = set; then
860 enableval="$enable_sha1"
863 for ol_val in auto yes no ; do
864 if test "$enableval" = "$ol_val" ; then
868 if test "$ol_arg" = "invalid" ; then
869 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
871 ol_enable_sha1="$ol_arg"
874 ol_enable_sha1="auto"
877 # OpenLDAP --enable-wrappers
878 # Check whether --enable-wrappers or --disable-wrappers was given.
879 if test "${enable_wrappers+set}" = set; then
880 enableval="$enable_wrappers"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
891 ol_enable_wrappers="$ol_arg"
894 ol_enable_wrappers="no"
896 # end --enable-wrappers
897 # OpenLDAP --enable-phonetic
898 # Check whether --enable-phonetic or --disable-phonetic was given.
899 if test "${enable_phonetic+set}" = set; then
900 enableval="$enable_phonetic"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
911 ol_enable_phonetic="$ol_arg"
914 ol_enable_phonetic="no"
916 # end --enable-phonetic
917 # OpenLDAP --enable-rlookups
918 # Check whether --enable-rlookups or --disable-rlookups was given.
919 if test "${enable_rlookups+set}" = set; then
920 enableval="$enable_rlookups"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
931 ol_enable_rlookups="$ol_arg"
934 ol_enable_rlookups="auto"
936 # end --enable-rlookups
938 # OpenLDAP --enable-ldbm
939 # Check whether --enable-ldbm or --disable-ldbm was given.
940 if test "${enable_ldbm+set}" = set; then
941 enableval="$enable_ldbm"
944 for ol_val in auto yes no ; do
945 if test "$enableval" = "$ol_val" ; then
949 if test "$ol_arg" = "invalid" ; then
950 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
952 ol_enable_ldbm="$ol_arg"
958 # OpenLDAP --with-ldbm_api
959 # Check whether --with-ldbm_api or --without-ldbm_api was given.
960 if test "${with_ldbm_api+set}" = set; then
961 withval="$with_ldbm_api"
964 for ol_val in auto db2 db gdbm ndbm manual ; do
965 if test "$withval" = "$ol_val" ; then
969 if test "$ol_arg" = "invalid" ; then
970 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
972 ol_with_ldbm_api="$ol_arg"
975 ol_with_ldbm_api="auto"
977 # end --with-ldbm_api
979 # OpenLDAP --with-ldbm_type
980 # Check whether --with-ldbm_type or --without-ldbm_type was given.
981 if test "${with_ldbm_type+set}" = set; then
982 withval="$with_ldbm_type"
985 for ol_val in auto btree hash ; do
986 if test "$withval" = "$ol_val" ; then
990 if test "$ol_arg" = "invalid" ; then
991 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
993 ol_with_ldbm_type="$ol_arg"
996 ol_with_ldbm_type="auto"
998 # end --with-ldbm_type
1001 # OpenLDAP --enable-passwd
1002 # Check whether --enable-passwd or --disable-passwd was given.
1003 if test "${enable_passwd+set}" = set; then
1004 enableval="$enable_passwd"
1007 for ol_val in auto yes no ; do
1008 if test "$enableval" = "$ol_val" ; then
1012 if test "$ol_arg" = "invalid" ; then
1013 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1015 ol_enable_passwd="$ol_arg"
1018 ol_enable_passwd="no"
1020 # end --enable-passwd
1021 # OpenLDAP --enable-shell
1022 # Check whether --enable-shell or --disable-shell was given.
1023 if test "${enable_shell+set}" = set; then
1024 enableval="$enable_shell"
1027 for ol_val in auto yes no ; do
1028 if test "$enableval" = "$ol_val" ; then
1032 if test "$ol_arg" = "invalid" ; then
1033 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1035 ol_enable_shell="$ol_arg"
1038 ol_enable_shell="no"
1040 # end --enable-shell
1042 # OpenLDAP --enable-slurpd
1043 # Check whether --enable-slurpd or --disable-slurpd was given.
1044 if test "${enable_slurpd+set}" = set; then
1045 enableval="$enable_slurpd"
1048 for ol_val in auto yes no ; do
1049 if test "$enableval" = "$ol_val" ; then
1053 if test "$ol_arg" = "invalid" ; then
1054 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1056 ol_enable_slurpd="$ol_arg"
1059 ol_enable_slurpd="auto"
1061 # end --enable-slurpd
1063 if test $ol_enable_slapd = no ; then
1064 if test $ol_enable_ldbm = yes ; then
1065 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2;
1067 if test $ol_enable_passwd = yes ; then
1068 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2;
1070 if test $ol_enable_shell = yes ; then
1071 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2;
1073 if test $ol_enable_aclgroup = yes ; then
1074 echo "configure: warning: slapd disabled, ignoring --enable_aclgroup argument" 1>&2;
1076 if test $ol_enable_crypt = yes ; then
1077 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2;
1079 if test $ol_enable_md5 = yes ; then
1080 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2;
1082 if test $ol_enable_sha1 = yes ; then
1083 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2;
1085 if test $ol_enable_wrappers = yes ; then
1086 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2;
1088 if test $ol_enable_phonetic = yes ; then
1089 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2;
1091 if test $ol_enable_rlookups = yes ; then
1092 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2;
1094 if test $ol_with_ldbm_api != auto ; then
1095 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2;
1097 if test $ol_with_ldbm_type != auto ; then
1098 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2;
1100 if test $ol_enable_slurpd = yes ; then
1101 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; };
1104 # force settings to no
1108 ol_enable_aclgroup=no
1112 ol_enable_wrappers=no
1113 ol_enable_phonetic=no
1114 ol_enable_rlookups=no
1116 ol_with_ldbm_type=no
1119 elif test $ol_enable_ldbm = no ; then
1121 if test $ol_with_ldbm_api != auto ; then
1122 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2;
1125 if test $ol_with_ldbm_type != auto ; then
1126 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2;
1129 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1130 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; };
1134 ol_with_ldbm_type=no
1138 if test $ol_with_ldbm_api = gdbm -a \
1139 $ol_with_ldbm_type = btree ; then
1140 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; };
1142 if test $ol_with_ldbm_api = ndbm -a \
1143 $ol_with_ldbm_type = btree ; then
1144 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; };
1148 if test $ol_enable_slurpd = yes ; then
1149 if test $ol_with_threads = no ; then
1150 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; };
1154 echo "$ac_t""done" 1>&6
1187 # Extract the first word of "gcc", so it can be a program name with args.
1188 set dummy gcc; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$CC"; then
1195 ac_cv_prog_CC="$CC" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1198 for ac_dir in $PATH; do
1199 test -z "$ac_dir" && ac_dir=.
1200 if test -f $ac_dir/$ac_word; then
1209 if test -n "$CC"; then
1210 echo "$ac_t""$CC" 1>&6
1212 echo "$ac_t""no" 1>&6
1215 if test -z "$CC"; then
1216 # Extract the first word of "cc", so it can be a program name with args.
1217 set dummy cc; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1228 for ac_dir in $PATH; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1232 ac_prog_rejected=yes
1240 if test $ac_prog_rejected = yes; then
1241 # We found a bogon in the path, so make sure we never use it.
1242 set dummy $ac_cv_prog_CC
1244 if test $# -gt 0; then
1245 # We chose a different compiler from the bogus one.
1246 # However, it has the same basename, so the bogon will be chosen
1247 # first if we set CC to just the basename; use the full file name.
1249 set dummy "$ac_dir/$ac_word" "$@"
1257 if test -n "$CC"; then
1258 echo "$ac_t""$CC" 1>&6
1260 echo "$ac_t""no" 1>&6
1263 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1266 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1267 echo "configure:1268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1270 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1273 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1274 cross_compiling=$ac_cv_prog_cc_cross
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1281 if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1282 ac_cv_prog_cc_works=yes
1283 # If we can't run a trivial program, we are probably using a cross compiler.
1284 if (./conftest; exit) 2>/dev/null; then
1285 ac_cv_prog_cc_cross=no
1287 ac_cv_prog_cc_cross=yes
1290 echo "configure: failed program was:" >&5
1291 cat conftest.$ac_ext >&5
1292 ac_cv_prog_cc_works=no
1296 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1297 if test $ac_cv_prog_cc_works = no; then
1298 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1300 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1302 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1303 cross_compiling=$ac_cv_prog_cc_cross
1305 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether we are using GNU C" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.c <<EOF
1315 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1322 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1324 if test $ac_cv_prog_gcc = yes; then
1326 ac_test_CFLAGS="${CFLAGS+set}"
1327 ac_save_CFLAGS="$CFLAGS"
1329 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1330 echo "configure:1331: checking whether ${CC-cc} accepts -g" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 echo 'void f(){}' > conftest.c
1335 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1344 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1345 if test "$ac_test_CFLAGS" = set; then
1346 CFLAGS="$ac_save_CFLAGS"
1347 elif test $ac_cv_prog_cc_g = yes; then
1354 test "${CFLAGS+set}" = set || CFLAGS="-g"
1357 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1358 echo "configure:1359: checking how to run the C preprocessor" >&5
1359 # On Suns, sometimes $CPP names a directory.
1360 if test -n "$CPP" && test -d "$CPP"; then
1363 if test -z "$CPP"; then
1364 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 # This must be in double quotes, not single quotes, because CPP may get
1368 # substituted into the Makefile and "${CC-cc}" will confuse make.
1370 # On the NeXT, cc -E runs the code through the compiler's parser,
1371 # not just through cpp.
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1379 { (eval echo configure:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1380 ac_err=`grep -v '^ *+' conftest.out`
1381 if test -z "$ac_err"; then
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1388 CPP="${CC-cc} -E -traditional-cpp"
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1396 { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1397 ac_err=`grep -v '^ *+' conftest.out`
1398 if test -z "$ac_err"; then
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1410 ac_cv_prog_CPP="$CPP"
1412 CPP="$ac_cv_prog_CPP"
1414 ac_cv_prog_CPP="$CPP"
1416 echo "$ac_t""$CPP" 1>&6
1418 if test $ac_cv_prog_gcc = yes; then
1419 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether ${CC-cc} needs -traditional" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 ac_pattern="Autoconf.*'x'"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1432 egrep "$ac_pattern" >/dev/null 2>&1; then
1434 ac_cv_prog_gcc_traditional=yes
1437 ac_cv_prog_gcc_traditional=no
1442 if test $ac_cv_prog_gcc_traditional = no; then
1443 cat > conftest.$ac_ext <<EOF
1444 #line 1445 "configure"
1445 #include "confdefs.h"
1449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1450 egrep "$ac_pattern" >/dev/null 2>&1; then
1452 ac_cv_prog_gcc_traditional=yes
1459 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1460 if test $ac_cv_prog_gcc_traditional = yes; then
1461 CC="$CC -traditional"
1466 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether ln -s works" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1472 if ln -s X conftestdata 2>/dev/null
1475 ac_cv_prog_LN_S="ln -s"
1480 LN_S="$ac_cv_prog_LN_S"
1481 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1482 echo "$ac_t""yes" 1>&6
1484 echo "$ac_t""no" 1>&6
1487 # Find a good install program. We prefer a C program (faster),
1488 # so one script is as good as another. But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1496 # ./install, which can be erroneously created by make from ./install.sh.
1497 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1498 echo "configure:1499: checking for a BSD compatible install" >&5
1499 if test -z "$INSTALL"; then
1500 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1504 for ac_dir in $PATH; do
1505 # Account for people who put trailing slashes in PATH elements.
1507 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1509 # OSF1 and SCO ODT 3.0 have their own names for install.
1510 for ac_prog in ginstall installbsd scoinst install; do
1511 if test -f $ac_dir/$ac_prog; then
1512 if test $ac_prog = install &&
1513 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1514 # AIX install. It has an incompatible calling convention.
1515 # OSF/1 installbsd also uses dspmsg, but is usable.
1518 ac_cv_path_install="$ac_dir/$ac_prog -c"
1529 if test "${ac_cv_path_install+set}" = set; then
1530 INSTALL="$ac_cv_path_install"
1532 # As a last resort, use the slow shell script. We don't cache a
1533 # path for INSTALL within a source directory, because that will
1534 # break other packages using the cache if that directory is
1535 # removed, or if the path is relative.
1536 INSTALL="$ac_install_sh"
1539 echo "$ac_t""$INSTALL" 1>&6
1541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1542 # It thinks the first close brace ends the variable substitution.
1543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1547 # Extract the first word of "ranlib", so it can be a program name with args.
1548 set dummy ranlib; ac_word=$2
1549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1550 echo "configure:1551: checking for $ac_word" >&5
1551 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 if test -n "$RANLIB"; then
1555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1558 for ac_dir in $PATH; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_prog_RANLIB="ranlib"
1566 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1569 RANLIB="$ac_cv_prog_RANLIB"
1570 if test -n "$RANLIB"; then
1571 echo "$ac_t""$RANLIB" 1>&6
1573 echo "$ac_t""no" 1>&6
1576 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1577 echo "configure:1578: checking whether ${MAKE-make} sets \${MAKE}" >&5
1578 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1579 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftestmake <<\EOF
1584 @echo 'ac_maketemp="${MAKE}"'
1586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1587 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1588 if test -n "$ac_maketemp"; then
1589 eval ac_cv_prog_make_${ac_make}_set=yes
1591 eval ac_cv_prog_make_${ac_make}_set=no
1595 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1596 echo "$ac_t""yes" 1>&6
1599 echo "$ac_t""no" 1>&6
1600 SET_MAKE="MAKE=${MAKE-make}"
1604 # Extract the first word of "sendmail", so it can be a program name with args.
1605 set dummy sendmail; ac_word=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1613 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1617 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 if test -f $ac_dir/$ac_word; then
1620 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1625 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1629 SENDMAIL="$ac_cv_path_SENDMAIL"
1630 if test -n "$SENDMAIL"; then
1631 echo "$ac_t""$SENDMAIL" 1>&6
1633 echo "$ac_t""no" 1>&6
1636 # Extract the first word of "vi", so it can be a program name with args.
1637 set dummy vi; ac_word=$2
1638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1639 echo "configure:1640: checking for $ac_word" >&5
1640 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1645 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1649 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1650 test -z "$ac_dir" && ac_dir=.
1651 if test -f $ac_dir/$ac_word; then
1652 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1657 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1661 EDITOR="$ac_cv_path_EDITOR"
1662 if test -n "$EDITOR"; then
1663 echo "$ac_t""$EDITOR" 1>&6
1665 echo "$ac_t""no" 1>&6
1668 # Extract the first word of "finger", so it can be a program name with args.
1669 set dummy finger; ac_word=$2
1670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_word" >&5
1672 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1677 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1681 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1682 test -z "$ac_dir" && ac_dir=.
1683 if test -f $ac_dir/$ac_word; then
1684 ac_cv_path_FINGER="$ac_dir/$ac_word"
1689 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1693 FINGER="$ac_cv_path_FINGER"
1694 if test -n "$FINGER"; then
1695 echo "$ac_t""$FINGER" 1>&6
1697 echo "$ac_t""no" 1>&6
1703 echo $ac_n "checking for socket""... $ac_c" 1>&6
1704 echo "configure:1705: checking for socket" >&5
1705 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* System header to define __stub macros and hopefully few prototypes,
1712 which can conflict with char socket(); below. */
1714 /* Override any gcc2 internal prototype to avoid an error. */
1715 /* We use char because int might match the return type of a gcc2
1716 builtin and then its argument prototype would still apply. */
1721 /* The GNU C library defines this for functions which it implements
1722 to always fail with ENOSYS. Some functions are actually named
1723 something starting with __ and the normal name is an alias. */
1724 #if defined (__stub_socket) || defined (__stub___socket)
1732 if { (eval echo configure:1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1734 eval "ac_cv_func_socket=yes"
1736 echo "configure: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1739 eval "ac_cv_func_socket=no"
1744 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1745 echo "$ac_t""yes" 1>&6
1748 echo "$ac_t""no" 1>&6
1750 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1751 echo "configure:1752: checking for main in -lsocket" >&5
1752 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1756 ac_save_LIBS="$LIBS"
1757 LIBS="-lsocket $LIBS"
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1766 if { (eval echo configure:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768 eval "ac_cv_lib_$ac_lib_var=yes"
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1773 eval "ac_cv_lib_$ac_lib_var=no"
1776 LIBS="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1782 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1783 cat >> confdefs.h <<EOF
1784 #define $ac_tr_lib 1
1787 LIBS="-lsocket $LIBS"
1790 echo "$ac_t""no" 1>&6
1793 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1794 echo "configure:1795: checking for main in -lnet" >&5
1795 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 ac_save_LIBS="$LIBS"
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1811 eval "ac_cv_lib_$ac_lib_var=yes"
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 eval "ac_cv_lib_$ac_lib_var=no"
1819 LIBS="$ac_save_LIBS"
1822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1823 echo "$ac_t""yes" 1>&6
1824 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1826 cat >> confdefs.h <<EOF
1827 #define $ac_tr_lib 1
1833 echo "$ac_t""no" 1>&6
1836 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1837 echo "configure:1838: checking for main in -lnsl_s" >&5
1838 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 ac_save_LIBS="$LIBS"
1843 LIBS="-lnsl_s $LIBS"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1854 eval "ac_cv_lib_$ac_lib_var=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_lib_$ac_lib_var=no"
1862 LIBS="$ac_save_LIBS"
1865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1867 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1869 cat >> confdefs.h <<EOF
1870 #define $ac_tr_lib 1
1873 LIBS="-lnsl_s $LIBS"
1876 echo "$ac_t""no" 1>&6
1879 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1880 echo "configure:1881: checking for main in -lnsl" >&5
1881 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 ac_save_LIBS="$LIBS"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1897 eval "ac_cv_lib_$ac_lib_var=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 eval "ac_cv_lib_$ac_lib_var=no"
1905 LIBS="$ac_save_LIBS"
1908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1909 echo "$ac_t""yes" 1>&6
1910 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1912 cat >> confdefs.h <<EOF
1913 #define $ac_tr_lib 1
1919 echo "$ac_t""no" 1>&6
1922 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1923 echo "configure:1924: checking for socket in -linet" >&5
1924 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
1925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 ac_save_LIBS="$LIBS"
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 /* Override any gcc2 internal prototype to avoid an error. */
1934 /* We use char because int might match the return type of a gcc2
1935 builtin and then its argument prototype would still apply. */
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1944 eval "ac_cv_lib_$ac_lib_var=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 eval "ac_cv_lib_$ac_lib_var=no"
1952 LIBS="$ac_save_LIBS"
1955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1958 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1959 cat >> confdefs.h <<EOF
1960 #define $ac_tr_lib 1
1966 echo "$ac_t""no" 1>&6
1969 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
1970 echo "configure:1971: checking for main in -lgen" >&5
1971 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
1972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 ac_save_LIBS="$LIBS"
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1987 eval "ac_cv_lib_$ac_lib_var=yes"
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 eval "ac_cv_lib_$ac_lib_var=no"
1995 LIBS="$ac_save_LIBS"
1998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2002 cat >> confdefs.h <<EOF
2003 #define $ac_tr_lib 1
2009 echo "$ac_t""no" 1>&6
2016 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2017 echo "configure:2018: checking for sigset in -lV3" >&5
2018 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 ac_save_LIBS="$LIBS"
2024 cat > conftest.$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2036 if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2043 eval "ac_cv_lib_$ac_lib_var=no"
2046 LIBS="$ac_save_LIBS"
2049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2052 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2053 cat >> confdefs.h <<EOF
2054 #define $ac_tr_lib 1
2060 echo "$ac_t""no" 1>&6
2064 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2065 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_hdr" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err=`grep -v '^ *+' conftest.out`
2081 if test -z "$ac_err"; then
2083 eval "ac_cv_header_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 eval "ac_cv_header_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2096 cat >> confdefs.h <<EOF
2097 #define $ac_tr_hdr 1
2101 echo "$ac_t""no" 1>&6
2106 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2107 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2108 echo "configure:2109: checking for main in -lkrb4" >&5
2109 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 ac_save_LIBS="$LIBS"
2114 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2125 eval "ac_cv_lib_$ac_lib_var=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 eval "ac_cv_lib_$ac_lib_var=no"
2133 LIBS="$ac_save_LIBS"
2136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2140 echo "$ac_t""no" 1>&6
2145 if test $have_k5 = yes ; then
2146 ol_with_kerberos=found
2147 ol_link_kerberos=yes
2149 KRB_DEFS="-DKERBEROS"
2150 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2154 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2155 for ac_hdr in krb.h des.h
2157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_hdr" >&5
2160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2169 { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2170 ac_err=`grep -v '^ *+' conftest.out`
2171 if test -z "$ac_err"; then
2173 eval "ac_cv_header_$ac_safe=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_header_$ac_safe=no"
2183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2186 cat >> confdefs.h <<EOF
2187 #define $ac_tr_hdr 1
2191 echo "$ac_t""no" 1>&6
2196 if test $ac_cv_header_krb_h = yes ; then
2197 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2198 echo "configure:2199: checking for main in -lkrb" >&5
2199 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 ac_save_LIBS="$LIBS"
2204 LIBS="-lkrb -ldes $LIBS"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2230 echo "$ac_t""no" 1>&6
2235 if test $have_k4 = yes ; then
2236 ol_with_kerberos=found
2237 ol_link_kerberos=yes
2239 KRB_DEFS="-DKERBEROS"
2240 KRB_LIBS="-lkrb -ldes"
2247 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2248 for ac_hdr in pthread.h sched.h
2250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2252 echo "configure:2253: checking for $ac_hdr" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2279 cat >> confdefs.h <<EOF
2280 #define $ac_tr_hdr 1
2284 echo "$ac_t""no" 1>&6
2289 if test $ac_cv_header_pthread_h = yes ; then
2290 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2291 echo "configure:2292: checking POSIX thread version" >&5
2292 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2300 # include <pthread.h>
2301 /* this check could be improved */
2302 # ifdef PTHREAD_ONCE_INIT
2307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2308 egrep "final" >/dev/null 2>&1; then
2310 ol_pthread_final=yes
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2322 # include <pthread.h>
2323 /* this check could be improved */
2324 # ifdef pthread_once_init
2329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2330 egrep "draft4" >/dev/null 2>&1; then
2332 ol_pthread_draft4=yes
2335 ol_pthread_draft4=no
2340 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2341 ol_cv_pthread_version=final
2342 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2343 ol_cv_pthread_version=draft4
2345 ol_cv_pthread_version=unknown
2350 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2353 if test $ol_cv_pthread_version = final ; then
2354 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
2355 elif test $ol_cv_pthread_version = draft4 ; then
2356 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
2358 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2361 # consider threads found
2362 ol_with_threads=found
2365 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2366 echo "configure:2367: checking for LinuxThreads" >&5
2367 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2371 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2372 if test "$res" -gt 0 ; then
2373 ol_cv_linux_threads=yes
2375 ol_cv_linux_threads=no
2380 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2383 if test $ol_cv_linux_threads = yes ; then
2384 LTHREAD_DEFS="$LTHREAD_DEFS -DHAVE_LINUX_THREADS"
2388 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2389 echo "configure:2390: checking for pthread_create" >&5
2390 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 /* System header to define __stub macros and hopefully few prototypes,
2397 which can conflict with char pthread_create(); below. */
2399 /* Override any gcc2 internal prototype to avoid an error. */
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char pthread_create();
2406 /* The GNU C library defines this for functions which it implements
2407 to always fail with ENOSYS. Some functions are actually named
2408 something starting with __ and the normal name is an alias. */
2409 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2419 eval "ac_cv_func_pthread_create=yes"
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2424 eval "ac_cv_func_pthread_create=no"
2429 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2433 echo "$ac_t""no" 1>&6
2437 if test $ol_link_threads = no ; then
2438 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2439 echo "configure:2440: checking for pthread_create with -pthread" >&5
2440 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2445 LIBS="-pthread $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <pthread.h>
2452 pthread_create((pthread_t*) 0,
2453 (pthread_attr_t*) 0, 0, 0);
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2459 ol_cv_pthread_flag=yes
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2464 ol_cv_pthread_flag=no
2471 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2473 if test $ol_cv_pthread_flag = yes ; then
2474 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2475 ol_link_threads=posix
2479 if test $ol_link_threads = no ; then
2481 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2482 echo "configure:2483: checking for pthread_create in -lpthread" >&5
2483 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_save_LIBS="$LIBS"
2488 LIBS="-lpthread $LIBS"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2495 char pthread_create();
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2503 eval "ac_cv_lib_$ac_lib_var=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 eval "ac_cv_lib_$ac_lib_var=no"
2511 LIBS="$ac_save_LIBS"
2514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2517 ol_link_threads=posix
2518 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2520 echo "$ac_t""no" 1>&6
2526 if test $ol_link_threads = no ; then
2528 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2529 echo "configure:2530: checking for pthread_create in -lc_r" >&5
2530 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 ac_save_LIBS="$LIBS"
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* Override any gcc2 internal prototype to avoid an error. */
2540 /* We use char because int might match the return type of a gcc2
2541 builtin and then its argument prototype would still apply. */
2542 char pthread_create();
2548 if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2550 eval "ac_cv_lib_$ac_lib_var=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2555 eval "ac_cv_lib_$ac_lib_var=no"
2558 LIBS="$ac_save_LIBS"
2561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2562 echo "$ac_t""yes" 1>&6
2564 ol_link_threads=posix
2565 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2567 echo "$ac_t""no" 1>&6
2573 if test $ol_link_threads = no ; then
2575 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2576 echo "configure:2577: checking for pthread_create in -lpthread" >&5
2577 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 ac_save_LIBS="$LIBS"
2582 LIBS="-lpthread -lmach -lexc -lc $LIBS"
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* Override any gcc2 internal prototype to avoid an error. */
2587 /* We use char because int might match the return type of a gcc2
2588 builtin and then its argument prototype would still apply. */
2589 char pthread_create();
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2597 eval "ac_cv_lib_$ac_lib_var=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_lib_$ac_lib_var=no"
2605 LIBS="$ac_save_LIBS"
2608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2611 ol_link_threads=posix
2612 LTHREAD_DEFS="$LTHREAD_DEFS -DDEC_THREADS"
2613 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2615 echo "$ac_t""no" 1>&6
2621 if test $ol_link_threads != no ; then
2623 LIBS="$LTHREAD_LIBS $LIBS"
2624 for ac_func in sched_yield pthread_yield
2626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_func" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char $ac_func(); below. */
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2657 eval "ac_cv_func_$ac_func=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 eval "ac_cv_func_$ac_func=no"
2667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_func 1
2675 echo "$ac_t""no" 1>&6
2681 if test $ac_cv_func_sched_yield = no -a \
2682 $ac_cv_func_pthread_yield = no ; then
2684 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
2685 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
2688 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
2692 if test $ol_with_threads = posix ; then
2693 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
2697 if test $ol_with_threads = manual ; then
2698 $ol_link_threads=yes
2700 echo "configure: warning: thread defines and link options must be set manually" 1>&2
2702 for ac_hdr in pthread.h sched.h
2704 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2705 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_hdr" >&5
2707 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2716 { (eval echo configure:2717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2717 ac_err=`grep -v '^ *+' conftest.out`
2718 if test -z "$ac_err"; then
2720 eval "ac_cv_header_$ac_safe=yes"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 eval "ac_cv_header_$ac_safe=no"
2730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2731 echo "$ac_t""yes" 1>&6
2732 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2733 cat >> confdefs.h <<EOF
2734 #define $ac_tr_hdr 1
2738 echo "$ac_t""no" 1>&6
2742 for ac_func in sched_yield pthread_yield
2744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_func" >&5
2746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2752 /* System header to define __stub macros and hopefully few prototypes,
2753 which can conflict with char $ac_func(); below. */
2755 /* Override any gcc2 internal prototype to avoid an error. */
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
2762 /* The GNU C library defines this for functions which it implements
2763 to always fail with ENOSYS. Some functions are actually named
2764 something starting with __ and the normal name is an alias. */
2765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2775 eval "ac_cv_func_$ac_func=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 eval "ac_cv_func_$ac_func=no"
2785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2788 cat >> confdefs.h <<EOF
2789 #define $ac_tr_func 1
2793 echo "$ac_t""no" 1>&6
2798 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2799 echo "configure:2800: checking for LinuxThreads" >&5
2800 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2804 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2805 if test "$res" -gt 0 ; then
2806 ol_cv_linux_threads=yes
2808 ol_cv_linux_threads=no
2813 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2817 if test $ol_link_threads = no ; then
2818 if test $ol_with_threads = yes ; then
2819 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
2822 if test $ol_with_threads = auto ; then
2823 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
2824 $ol_with_threads = no
2827 LTHREAD_DEFS="-DNO_THREADS"
2832 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
2833 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
2834 echo "configure:2835: checking for DB2 library" >&5
2835 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2839 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
2840 echo "configure:2841: checking for db_open in -ldb" >&5
2841 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
2842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2845 ac_save_LIBS="$LIBS"
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 /* Override any gcc2 internal prototype to avoid an error. */
2851 /* We use char because int might match the return type of a gcc2
2852 builtin and then its argument prototype would still apply. */
2859 if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2861 eval "ac_cv_lib_$ac_lib_var=yes"
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2866 eval "ac_cv_lib_$ac_lib_var=no"
2869 LIBS="$ac_save_LIBS"
2872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2873 echo "$ac_t""yes" 1>&6
2876 echo "$ac_t""no" 1>&6
2884 echo "$ac_t""$ol_cv_lib_db2" 1>&6
2888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2890 echo "configure:2891: checking for $ac_hdr" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err=`grep -v '^ *+' conftest.out`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2917 cat >> confdefs.h <<EOF
2918 #define $ac_tr_hdr 1
2922 echo "$ac_t""no" 1>&6
2926 if test $ac_cv_header_db_h = yes ; then
2927 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
2928 echo "configure:2929: checking if db.h is DB2" >&5
2929 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2938 /* this check could be improved */
2939 # ifdef DB_VERSION_MAJOR
2940 # if DB_VERSION_MAJOR == 2
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "__db_version_2" >/dev/null 2>&1; then
2949 ol_cv_header_db2=yes
2958 echo "$ac_t""$ol_cv_header_db2" 1>&6
2965 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
2966 echo "configure:2967: checking for Berkeley DB2" >&5
2967 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2971 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
2972 ol_cv_berkeley_db2=no
2974 ol_cv_berkeley_db2=yes
2979 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
2982 if test $ol_cv_berkeley_db2 = yes ; then
2984 ol_with_ldbm_api=db2
2986 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
2988 if test $ol_with_ldbm_type = hash ; then
2989 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
2991 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
2994 if test $ol_cv_lib_db2 != yes ; then
2995 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
3000 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
3001 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
3002 echo "configure:3003: checking for Berkeley DB library" >&5
3003 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3007 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3008 echo "configure:3009: checking for dbopen" >&5
3009 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* System header to define __stub macros and hopefully few prototypes,
3016 which can conflict with char dbopen(); below. */
3018 /* Override any gcc2 internal prototype to avoid an error. */
3019 /* We use char because int might match the return type of a gcc2
3020 builtin and then its argument prototype would still apply. */
3025 /* The GNU C library defines this for functions which it implements
3026 to always fail with ENOSYS. Some functions are actually named
3027 something starting with __ and the normal name is an alias. */
3028 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3036 if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3038 eval "ac_cv_func_dbopen=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.$ac_ext >&5
3043 eval "ac_cv_func_dbopen=no"
3048 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3049 echo "$ac_t""yes" 1>&6
3052 echo "$ac_t""no" 1>&6
3054 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
3055 echo "configure:3056: checking for dbopen in -ldb" >&5
3056 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
3057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 ac_save_LIBS="$LIBS"
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 /* Override any gcc2 internal prototype to avoid an error. */
3066 /* We use char because int might match the return type of a gcc2
3067 builtin and then its argument prototype would still apply. */
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3076 eval "ac_cv_lib_$ac_lib_var=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_lib_$ac_lib_var=no"
3084 LIBS="$ac_save_LIBS"
3087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3091 echo "$ac_t""no" 1>&6
3102 echo "$ac_t""$ol_cv_lib_db" 1>&6
3105 for ac_hdr in db_185.h
3107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3109 echo "configure:3110: checking for $ac_hdr" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3119 { (eval echo configure:3120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3120 ac_err=`grep -v '^ *+' conftest.out`
3121 if test -z "$ac_err"; then
3123 eval "ac_cv_header_$ac_safe=yes"
3126 echo "configure: failed program was:" >&5
3127 cat conftest.$ac_ext >&5
3129 eval "ac_cv_header_$ac_safe=no"
3133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3134 echo "$ac_t""yes" 1>&6
3135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3136 cat >> confdefs.h <<EOF
3137 #define $ac_tr_hdr 1
3141 echo "$ac_t""no" 1>&6
3145 if test $ol_cv_header_db2 = yes ; then
3147 ol_cv_header_db=$ac_cv_header_db_185_h
3149 ol_cv_header_db=$ac_cv_header_db_h
3154 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
3155 echo "configure:3156: checking for Berkeley DB" >&5
3156 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3160 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
3161 ol_cv_berkeley_db=no
3163 ol_cv_berkeley_db=yes
3168 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
3171 if test $ol_cv_berkeley_db = yes ; then
3175 if test $ac_cv_header_db_185_h = yes ; then
3176 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
3179 if test $ol_with_ldbm_type = hash ; then
3180 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
3182 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
3185 if test $ol_cv_lib_db != yes ; then
3186 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
3191 if test $ol_with_ldbm_api = manual ; then
3194 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
3196 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
3198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_hdr" >&5
3201 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3210 { (eval echo configure:3211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3211 ac_err=`grep -v '^ *+' conftest.out`
3212 if test -z "$ac_err"; then
3214 eval "ac_cv_header_$ac_safe=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_header_$ac_safe=no"
3224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3225 echo "$ac_t""yes" 1>&6
3226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3227 cat >> confdefs.h <<EOF
3228 #define $ac_tr_hdr 1
3232 echo "$ac_t""no" 1>&6
3238 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
3239 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2;
3240 $ol_with_ldbm_api=none
3243 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
3244 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
3245 echo "configure:3246: checking for GDBM library" >&5
3246 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3250 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
3251 echo "configure:3252: checking for gdbm_open" >&5
3252 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 /* System header to define __stub macros and hopefully few prototypes,
3259 which can conflict with char gdbm_open(); below. */
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3268 /* The GNU C library defines this for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
3279 if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3281 eval "ac_cv_func_gdbm_open=yes"
3283 echo "configure: failed program was:" >&5
3284 cat conftest.$ac_ext >&5
3286 eval "ac_cv_func_gdbm_open=no"
3291 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3295 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
3298 echo "configure:3299: checking for gdbm_open in -lgdbm" >&5
3299 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
3300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 ac_save_LIBS="$LIBS"
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3319 eval "ac_cv_lib_$ac_lib_var=yes"
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3324 eval "ac_cv_lib_$ac_lib_var=no"
3327 LIBS="$ac_save_LIBS"
3330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ol_cv_lib_gdbm=-lgdbm
3334 echo "$ac_t""no" 1>&6
3345 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
3348 for ac_hdr in gdbm.h
3350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_hdr" >&5
3353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3362 { (eval echo configure:3363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3363 ac_err=`grep -v '^ *+' conftest.out`
3364 if test -z "$ac_err"; then
3366 eval "ac_cv_header_$ac_safe=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_header_$ac_safe=no"
3376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3379 cat >> confdefs.h <<EOF
3380 #define $ac_tr_hdr 1
3384 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for db""... $ac_c" 1>&6
3389 echo "configure:3390: checking for db" >&5
3390 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3394 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
3402 echo "$ac_t""$ol_cv_gdbm" 1>&6
3405 if test $ol_cv_gdbm = yes ; then
3407 ol_with_ldbm_api=gdbm
3409 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
3411 if test $ol_cv_lib_gdbm != yes ; then
3412 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
3417 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
3418 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
3419 echo "configure:3420: checking for NDBM library" >&5
3420 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3424 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3425 echo "configure:3426: checking for dbm_open" >&5
3426 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 /* System header to define __stub macros and hopefully few prototypes,
3433 which can conflict with char dbm_open(); below. */
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3442 /* The GNU C library defines this for functions which it implements
3443 to always fail with ENOSYS. Some functions are actually named
3444 something starting with __ and the normal name is an alias. */
3445 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3453 if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3455 eval "ac_cv_func_dbm_open=yes"
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3460 eval "ac_cv_func_dbm_open=no"
3465 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3466 echo "$ac_t""yes" 1>&6
3469 echo "$ac_t""no" 1>&6
3471 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3472 echo "configure:3473: checking for dbm_open in -lndbm" >&5
3473 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 ac_save_LIBS="$LIBS"
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 /* Override any gcc2 internal prototype to avoid an error. */
3483 /* We use char because int might match the return type of a gcc2
3484 builtin and then its argument prototype would still apply. */
3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3493 eval "ac_cv_lib_$ac_lib_var=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3498 eval "ac_cv_lib_$ac_lib_var=no"
3501 LIBS="$ac_save_LIBS"
3504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3506 ol_cv_lib_ndbm=-lndbm
3508 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3511 echo "configure:3512: checking for dbm_open in -ldbm" >&5
3512 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ol_cv_lib_ndbm=-ldbm
3547 echo "$ac_t""no" 1>&6
3560 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
3563 for ac_hdr in ndbm.h
3565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3567 echo "configure:3568: checking for $ac_hdr" >&5
3568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3577 { (eval echo configure:3578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3578 ac_err=`grep -v '^ *+' conftest.out`
3579 if test -z "$ac_err"; then
3581 eval "ac_cv_header_$ac_safe=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 eval "ac_cv_header_$ac_safe=no"
3591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3594 cat >> confdefs.h <<EOF
3595 #define $ac_tr_hdr 1
3599 echo "$ac_t""no" 1>&6
3603 echo $ac_n "checking for db""... $ac_c" 1>&6
3604 echo "configure:3605: checking for db" >&5
3605 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3609 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
3617 echo "$ac_t""$ol_cv_ndbm" 1>&6
3620 if test $ol_cv_ndbm = yes ; then
3622 ol_with_ldbm_api=ndbm
3624 if test $ol_with_ldbm_api = ndbm ; then
3625 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
3628 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
3630 if test $ol_cv_lib_ndbm != yes ; then
3631 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
3636 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
3637 echo "configure: warning: could not find suitable LDBM backend" 1>&2
3638 if test $ol_enable_ldbm = yes ; then
3639 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
3642 echo "configure: warning: disabling LDBM" 1>&2
3646 if test $ol_enable_wrappers = yes ; then
3647 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
3648 echo "configure:3649: checking for hosts_access in -lwrap" >&5
3649 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS="$LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char hosts_access();
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_lib_$ac_lib_var=no"
3677 LIBS="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3684 echo "$ac_t""no" 1>&6
3689 if test $have_wrappers = yes ; then
3690 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
3691 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
3693 echo "configure: warning: could not find -lwrap" 1>&2
3694 if test $ol_enable_wrappers = yes ; then
3695 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
3698 echo "configure: warning: disabling wrappers support" 1>&2
3699 ol_enable_wrappers=no
3704 # ud needs termcap (should insert check here)
3707 for ac_hdr in termcap.h ncurses.h
3709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3711 echo "configure:3712: checking for $ac_hdr" >&5
3712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3721 { (eval echo configure:3722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3722 ac_err=`grep -v '^ *+' conftest.out`
3723 if test -z "$ac_err"; then
3725 eval "ac_cv_header_$ac_safe=yes"
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 eval "ac_cv_header_$ac_safe=no"
3735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3738 cat >> confdefs.h <<EOF
3739 #define $ac_tr_hdr 1
3743 echo "$ac_t""no" 1>&6
3748 if test $ol_link_termcap = no ; then
3749 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
3750 echo "configure:3751: checking for tputs in -ltermcap" >&5
3751 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
3752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 ac_save_LIBS="$LIBS"
3756 LIBS="-ltermcap $LIBS"
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* Override any gcc2 internal prototype to avoid an error. */
3761 /* We use char because int might match the return type of a gcc2
3762 builtin and then its argument prototype would still apply. */
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3771 eval "ac_cv_lib_$ac_lib_var=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3776 eval "ac_cv_lib_$ac_lib_var=no"
3779 LIBS="$ac_save_LIBS"
3782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3786 echo "$ac_t""no" 1>&6
3790 if test $have_termcap = yes ; then
3792 TERMCAP_LIBS=-ltermcap
3796 if test $ol_link_termcap = no ; then
3797 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
3798 echo "configure:3799: checking for initscr in -lncurses" >&5
3799 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
3800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 ac_save_LIBS="$LIBS"
3804 LIBS="-lncurses $LIBS"
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* Override any gcc2 internal prototype to avoid an error. */
3809 /* We use char because int might match the return type of a gcc2
3810 builtin and then its argument prototype would still apply. */
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3819 eval "ac_cv_lib_$ac_lib_var=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_lib_$ac_lib_var=no"
3827 LIBS="$ac_save_LIBS"
3830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3834 echo "$ac_t""no" 1>&6
3838 if test $have_ncurses = yes ; then
3840 TERMCAP_LIBS=-lncurses
3844 if test $ol_link_termcap = no ; then
3845 TERMCAP_DEFS="-DNOTERMCAP"
3849 # FreeBSD (and others) have crypt(3) in -lcrypt
3850 if test $ol_enable_crypt != no ; then
3851 echo $ac_n "checking for crypt""... $ac_c" 1>&6
3852 echo "configure:3853: checking for crypt" >&5
3853 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 /* System header to define __stub macros and hopefully few prototypes,
3860 which can conflict with char crypt(); below. */
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3869 /* The GNU C library defines this for functions which it implements
3870 to always fail with ENOSYS. Some functions are actually named
3871 something starting with __ and the normal name is an alias. */
3872 #if defined (__stub_crypt) || defined (__stub___crypt)
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3882 eval "ac_cv_func_crypt=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_func_crypt=no"
3892 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3896 echo "$ac_t""no" 1>&6
3898 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3899 echo "configure:3900: checking for crypt in -lcrypt" >&5
3900 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 ac_save_LIBS="$LIBS"
3905 LIBS="-lcrypt $LIBS"
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
3936 echo "$ac_t""no" 1>&6
3943 if test $have_crypt = yes ; then
3944 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
3946 echo "configure: warning: could not find crypt" 1>&2
3947 if test $ol_enable_crypt = yes ; then
3948 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
3951 echo "configure: warning: disabling crypt support" 1>&2
3956 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3957 echo "configure:3958: checking for ANSI C header files" >&5
3958 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3970 { (eval echo configure:3971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3971 ac_err=`grep -v '^ *+' conftest.out`
3972 if test -z "$ac_err"; then
3974 ac_cv_header_stdc=yes
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3980 ac_cv_header_stdc=no
3984 if test $ac_cv_header_stdc = yes; then
3985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 egrep "memchr" >/dev/null 2>&1; then
3996 ac_cv_header_stdc=no
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 egrep "free" >/dev/null 2>&1; then
4014 ac_cv_header_stdc=no
4020 if test $ac_cv_header_stdc = yes; then
4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022 if test "$cross_compiling" = yes; then
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4029 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4032 int main () { int i; for (i = 0; i < 256; i++)
4033 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4044 ac_cv_header_stdc=no
4052 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4053 if test $ac_cv_header_stdc = yes; then
4054 cat >> confdefs.h <<\EOF
4055 #define STDC_HEADERS 1
4061 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4064 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4065 echo "configure:4066: checking for $ac_hdr that defines DIR" >&5
4066 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 #include <sys/types.h>
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 eval "ac_cv_header_dirent_$ac_safe=yes"
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 eval "ac_cv_header_dirent_$ac_safe=no"
4089 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4092 cat >> confdefs.h <<EOF
4093 #define $ac_tr_hdr 1
4095 ac_header_dirent=$ac_hdr; break
4097 echo "$ac_t""no" 1>&6
4100 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4101 if test $ac_header_dirent = dirent.h; then
4102 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4103 echo "configure:4104: checking for opendir in -ldir" >&5
4104 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS="$LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4139 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4144 echo "configure:4145: checking for opendir in -lx" >&5
4145 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 ac_save_LIBS="$LIBS"
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Override any gcc2 internal prototype to avoid an error. */
4155 /* We use char because int might match the return type of a gcc2
4156 builtin and then its argument prototype would still apply. */
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_lib_$ac_lib_var=no"
4173 LIBS="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4180 echo "$ac_t""no" 1>&6
4185 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4186 echo "configure:4187: checking for sys/wait.h that is POSIX.1 compatible" >&5
4187 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4194 #include <sys/wait.h>
4196 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4199 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4204 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4207 if { (eval echo configure:4208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4209 ac_cv_header_sys_wait_h=yes
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4214 ac_cv_header_sys_wait_h=no
4219 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4220 if test $ac_cv_header_sys_wait_h = yes; then
4221 cat >> confdefs.h <<\EOF
4222 #define HAVE_SYS_WAIT_H 1
4242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4244 echo "configure:4245: checking for $ac_hdr" >&5
4245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4254 { (eval echo configure:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4255 ac_err=`grep -v '^ *+' conftest.out`
4256 if test -z "$ac_err"; then
4258 eval "ac_cv_header_$ac_safe=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_header_$ac_safe=no"
4268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4271 cat >> confdefs.h <<EOF
4272 #define $ac_tr_hdr 1
4276 echo "$ac_t""no" 1>&6
4281 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4282 echo "configure:4283: checking for uid_t in sys/types.h" >&5
4283 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 #include <sys/types.h>
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 egrep "uid_t" >/dev/null 2>&1; then
4294 ac_cv_type_uid_t=yes
4303 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4304 if test $ac_cv_type_uid_t = no; then
4305 cat >> confdefs.h <<\EOF
4309 cat >> confdefs.h <<\EOF
4315 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
4316 echo "configure:4317: checking type of array argument to getgroups" >&5
4317 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 if test "$cross_compiling" = yes; then
4321 ac_cv_type_getgroups=cross
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4327 /* Thanks to Mike Rendell for this test. */
4328 #include <sys/types.h>
4331 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4336 union { gid_t gval; long lval; } val;
4339 for (i = 0; i < NGID; i++)
4340 gidset[i] = val.gval;
4341 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4343 /* Exit non-zero if getgroups seems to require an array of ints. This
4344 happens when gid_t is short but getgroups modifies an array of ints. */
4345 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4351 ac_cv_type_getgroups=gid_t
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 ac_cv_type_getgroups=int
4361 if test $ac_cv_type_getgroups = cross; then
4362 cat > conftest.$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4368 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4370 ac_cv_type_getgroups=gid_t
4373 ac_cv_type_getgroups=int
4380 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
4381 cat >> confdefs.h <<EOF
4382 #define GETGROUPS_T $ac_cv_type_getgroups
4386 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4387 echo "configure:4388: checking for mode_t" >&5
4388 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4391 cat > conftest.$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 #include <sys/types.h>
4400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4403 ac_cv_type_mode_t=yes
4406 ac_cv_type_mode_t=no
4411 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4412 if test $ac_cv_type_mode_t = no; then
4413 cat >> confdefs.h <<\EOF
4419 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4420 echo "configure:4421: checking for off_t" >&5
4421 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 cat > conftest.$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 #include <sys/types.h>
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4436 ac_cv_type_off_t=yes
4444 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4445 if test $ac_cv_type_off_t = no; then
4446 cat >> confdefs.h <<\EOF
4452 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4453 echo "configure:4454: checking for pid_t" >&5
4454 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 cat > conftest.$ac_ext <<EOF
4458 #line 4459 "configure"
4459 #include "confdefs.h"
4460 #include <sys/types.h>
4466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4467 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4469 ac_cv_type_pid_t=yes
4477 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4478 if test $ac_cv_type_pid_t = no; then
4479 cat >> confdefs.h <<\EOF
4485 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4486 echo "configure:4487: checking return type of signal handlers" >&5
4487 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 #include <sys/types.h>
4499 extern "C" void (*signal (int, void (*)(int)))(int);
4501 void (*signal ()) ();
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 ac_cv_type_signal=void
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 ac_cv_type_signal=int
4520 echo "$ac_t""$ac_cv_type_signal" 1>&6
4521 cat >> confdefs.h <<EOF
4522 #define RETSIGTYPE $ac_cv_type_signal
4526 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4527 echo "configure:4528: checking for size_t" >&5
4528 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <sys/types.h>
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4543 ac_cv_type_size_t=yes
4546 ac_cv_type_size_t=no
4551 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4552 if test $ac_cv_type_size_t = no; then
4553 cat >> confdefs.h <<\EOF
4554 #define size_t unsigned
4559 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4560 echo "configure:4561: checking for uid_t in sys/types.h" >&5
4561 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570 egrep "uid_t" >/dev/null 2>&1; then
4572 ac_cv_type_uid_t=yes
4581 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4582 if test $ac_cv_type_uid_t = no; then
4583 cat >> confdefs.h <<\EOF
4587 cat >> confdefs.h <<\EOF
4593 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4594 echo "configure:4595: checking for st_blksize in struct stat" >&5
4595 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4598 cat > conftest.$ac_ext <<EOF
4599 #line 4600 "configure"
4600 #include "confdefs.h"
4601 #include <sys/types.h>
4602 #include <sys/stat.h>
4604 struct stat s; s.st_blksize;
4607 if { (eval echo configure:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4609 ac_cv_struct_st_blksize=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 ac_cv_struct_st_blksize=no
4619 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4620 if test $ac_cv_struct_st_blksize = yes; then
4621 cat >> confdefs.h <<\EOF
4622 #define HAVE_ST_BLKSIZE 1
4627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4628 echo "configure:4629: checking whether time.h and sys/time.h may both be included" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 #include <sys/types.h>
4636 #include <sys/time.h>
4642 if { (eval echo configure:4643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4644 ac_cv_header_time=yes
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 ac_cv_header_time=no
4654 echo "$ac_t""$ac_cv_header_time" 1>&6
4655 if test $ac_cv_header_time = yes; then
4656 cat >> confdefs.h <<\EOF
4657 #define TIME_WITH_SYS_TIME 1
4662 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4663 echo "configure:4664: checking whether struct tm is in sys/time.h or time.h" >&5
4664 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 cat > conftest.$ac_ext <<EOF
4668 #line 4669 "configure"
4669 #include "confdefs.h"
4670 #include <sys/types.h>
4673 struct tm *tp; tp->tm_sec;
4676 if { (eval echo configure:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4678 ac_cv_struct_tm=time.h
4680 echo "configure: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4683 ac_cv_struct_tm=sys/time.h
4688 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4689 if test $ac_cv_struct_tm = sys/time.h; then
4690 cat >> confdefs.h <<\EOF
4691 #define TM_IN_SYS_TIME 1
4697 echo $ac_n "checking for working const""... $ac_c" 1>&6
4698 echo "configure:4699: checking for working const" >&5
4699 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4708 /* Ultrix mips cc rejects this. */
4709 typedef int charset[2]; const charset x;
4710 /* SunOS 4.1.1 cc rejects this. */
4711 char const *const *ccp;
4713 /* NEC SVR4.0.2 mips cc rejects this. */
4714 struct point {int x, y;};
4715 static struct point const zero = {0,0};
4716 /* AIX XL C 1.02.0.0 rejects this.
4717 It does not let you subtract one const X* pointer from another in an arm
4718 of an if-expression whose if-part is not a constant expression */
4719 const char *g = "string";
4720 ccp = &g + (g ? g-g : 0);
4721 /* HPUX 7.0 cc rejects these. */
4724 ccp = (char const *const *) p;
4725 { /* SCO 3.2v4 cc rejects this. */
4727 char const *s = 0 ? (char *) 0 : (char const *) 0;
4731 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4733 const int *foo = &x[0];
4736 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4737 typedef const int *iptr;
4741 { /* AIX XL C 1.02.0.0 rejects this saying
4742 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4743 struct s { int j; const int *ap[3]; };
4744 struct s *b; b->j = 5;
4746 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4752 if { (eval echo configure:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4764 echo "$ac_t""$ac_cv_c_const" 1>&6
4765 if test $ac_cv_c_const = no; then
4766 cat >> confdefs.h <<\EOF
4773 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4774 echo "configure:4775: checking for 8-bit clean memcmp" >&5
4775 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test "$cross_compiling" = yes; then
4779 ac_cv_func_memcmp_clean=no
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4787 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4788 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4794 ac_cv_func_memcmp_clean=yes
4796 echo "configure: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4799 ac_cv_func_memcmp_clean=no
4806 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4807 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
4809 echo $ac_n "checking for strftime""... $ac_c" 1>&6
4810 echo "configure:4811: checking for strftime" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char strftime(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_strftime) || defined (__stub___strftime)
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4840 eval "ac_cv_func_strftime=yes"
4842 echo "configure: failed program was:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_func_strftime=no"
4850 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 cat >> confdefs.h <<\EOF
4853 #define HAVE_STRFTIME 1
4857 echo "$ac_t""no" 1>&6
4858 # strftime is in -lintl on SCO UNIX.
4859 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4860 echo "configure:4861: checking for strftime in -lintl" >&5
4861 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 ac_save_LIBS="$LIBS"
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4881 eval "ac_cv_lib_$ac_lib_var=yes"
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4886 eval "ac_cv_lib_$ac_lib_var=no"
4889 LIBS="$ac_save_LIBS"
4892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4894 cat >> confdefs.h <<\EOF
4895 #define HAVE_STRFTIME 1
4900 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4906 echo "configure:4907: checking for vprintf" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char vprintf(); below. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4936 eval "ac_cv_func_vprintf=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5
4941 eval "ac_cv_func_vprintf=no"
4946 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 cat >> confdefs.h <<\EOF
4949 #define HAVE_VPRINTF 1
4953 echo "$ac_t""no" 1>&6
4956 if test "$ac_cv_func_vprintf" != yes; then
4957 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4958 echo "configure:4959: checking for _doprnt" >&5
4959 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 /* System header to define __stub macros and hopefully few prototypes,
4966 which can conflict with char _doprnt(); below. */
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4975 /* The GNU C library defines this for functions which it implements
4976 to always fail with ENOSYS. Some functions are actually named
4977 something starting with __ and the normal name is an alias. */
4978 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4988 eval "ac_cv_func__doprnt=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_func__doprnt=no"
4998 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 cat >> confdefs.h <<\EOF
5001 #define HAVE_DOPRNT 1
5005 echo "$ac_t""no" 1>&6
5010 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
5011 echo "configure:5012: checking for wait3 that fills in rusage" >&5
5012 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 if test "$cross_compiling" = yes; then
5016 ac_cv_func_wait3_rusage=no
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 #include <sys/types.h>
5022 #include <sys/time.h>
5023 #include <sys/resource.h>
5025 /* HP-UX has wait3 but does not fill in rusage at all. */
5029 /* Use a field that we can force nonzero --
5030 voluntary context switches.
5031 For systems like NeXT and OSF/1 that don't set it,
5032 also use the system CPU time. And page faults (I/O) for Linux. */
5034 r.ru_stime.tv_sec = 0;
5035 r.ru_stime.tv_usec = 0;
5036 r.ru_majflt = r.ru_minflt = 0;
5038 case 0: /* Child. */
5039 sleep(1); /* Give up the CPU. */
5041 case -1: _exit(0); /* What can we do? */
5042 default: /* Parent. */
5044 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
5045 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5046 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5052 ac_cv_func_wait3_rusage=yes
5054 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5
5057 ac_cv_func_wait3_rusage=no
5064 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
5065 if test $ac_cv_func_wait3_rusage = yes; then
5066 cat >> confdefs.h <<\EOF
5067 #define HAVE_WAIT3 1
5097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5098 echo "configure:5099: checking for $ac_func" >&5
5099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5102 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105 /* System header to define __stub macros and hopefully few prototypes,
5106 which can conflict with char $ac_func(); below. */
5108 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5115 /* The GNU C library defines this for functions which it implements
5116 to always fail with ENOSYS. Some functions are actually named
5117 something starting with __ and the normal name is an alias. */
5118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5128 eval "ac_cv_func_$ac_func=yes"
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 eval "ac_cv_func_$ac_func=no"
5138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5141 cat >> confdefs.h <<EOF
5142 #define $ac_tr_func 1
5146 echo "$ac_t""no" 1>&6
5151 for ac_func in strdup
5153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_func" >&5
5155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5184 eval "ac_cv_func_$ac_func=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_func_$ac_func=no"
5194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5197 cat >> confdefs.h <<EOF
5198 #define $ac_tr_func 1
5202 echo "$ac_t""no" 1>&6
5203 LIBOBJS="$LIBOBJS ${ac_func}.o"
5209 # Check Configuration
5211 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
5212 echo "configure:5213: checking declaration of sys_errlist" >&5
5213 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 #include <sys/types.h>
5225 char *c = (char *) *sys_errlist
5228 if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5230 ol_cv_dcl_sys_errlist=yes
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 ol_cv_dcl_sys_errlist=no
5240 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
5242 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
5243 if test $ol_cv_dcl_sys_errlist = no ; then
5244 cat >> confdefs.h <<\EOF
5245 #define DECL_SYS_ERRLIST 1
5248 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
5249 echo "configure:5250: checking existence of sys_errlist" >&5
5250 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5259 char *c = (char *) *sys_errlist
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5264 ol_cv_have_sys_errlist=yes
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 ol_cv_have_sys_errlist=no
5274 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
5279 if test $ol_enable_debug != no ; then
5280 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
5282 if test $ol_enable_libui = no ; then
5283 LDAP_DEFS="$LDAP_DEFS -DNO_USERINTERFACE"
5285 if test $ol_enable_cache = no ; then
5286 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
5288 if test $ol_enable_dns != no ; then
5289 LDAP_DEFS="$LDAP_DEFS -DLDAP_DNS"
5291 if test $ol_enable_referrals != no ; then
5292 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
5294 if test $ol_enable_cldap != no ; then
5295 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
5298 if test $ol_enable_aclgroup != no ; then
5299 cat >> confdefs.h <<\EOF
5300 #define SLAPD_ACLGROUP 1
5303 SLAPD_DEFS="$SLAPD_DEFS -DACLGROUP"
5306 if test $ol_enable_md5 != no ; then
5307 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
5310 if test $ol_enable_sha1 != no ; then
5311 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
5314 if test $ol_enable_phonetic != no ; then
5315 cat >> confdefs.h <<\EOF
5316 #define SLAPD_PHONETIC 1
5319 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
5322 if test $ol_enable_rlookups != no ; then
5323 cat >> confdefs.h <<\EOF
5324 #define SLAPD_RLOOKUPS 1
5327 SLAPD_DEFS="$SLAPD_DEFS -DREVERSE_LOOKUPS"
5330 if test $ol_link_ldbm != no ; then
5333 LDBM_DEFS="-DLDAP_LDBM $LDBM_DEFS"
5336 if test $ol_enable_passwd != no ; then
5339 SLAPD_DEFS="-DLDAP_PASSWD $SLAPD_DEFS"
5342 if test $ol_enable_shell != no ; then
5345 SLAPD_DEFS="-DLDAP_SHELL $SLAPD_DEFS"
5348 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
5349 $BUILD_SLAPD = yes ; then
5385 cat > confcache <<\EOF
5386 # This file is a shell script that caches the results of configure
5387 # tests run on this system so they can be shared between configure
5388 # scripts and configure runs. It is not useful on other systems.
5389 # If it contains results you don't want to keep, you may remove or edit it.
5391 # By default, configure uses ./config.cache as the cache file,
5392 # creating it if it does not exist already. You can give configure
5393 # the --cache-file=FILE option to use a different cache file; that is
5394 # what configure does when it calls configure scripts in
5395 # subdirectories, so they share the cache.
5396 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5397 # config.status only pays attention to the cache file if you give it the
5398 # --recheck option to rerun configure.
5401 # The following way of writing the cache mishandles newlines in values,
5402 # but we know of no workaround that is simple, portable, and efficient.
5403 # So, don't put newlines in cache variables' values.
5404 # Ultrix sh set writes to stderr and can't be redirected directly,
5405 # and sets the high bit in the cache file unless we assign to the vars.
5407 case `(ac_space=' '; set) 2>&1` in
5409 # `set' does not quote correctly, so add quotes (double-quote substitution
5410 # turns \\\\ into \\, and sed turns \\ into \).
5412 -e "s/'/'\\\\''/g" \
5413 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5416 # `set' quotes correctly as required by POSIX, so do not add quotes.
5417 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5420 if cmp -s $cache_file confcache; then
5423 if test -w $cache_file; then
5424 echo "updating cache $cache_file"
5425 cat confcache > $cache_file
5427 echo "not updating unwritable cache $cache_file"
5432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5435 # Let make expand exec_prefix.
5436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5438 # Any assignment to VPATH causes Sun make to only execute
5439 # the first set of double-colon rules, so remove it if not needed.
5440 # If there is a colon in the path, we need to keep it.
5441 if test "x$srcdir" = x.; then
5442 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5445 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5447 DEFS=-DHAVE_CONFIG_H
5449 # Without the "./", some shells look in PATH for config.status.
5450 : ${CONFIG_STATUS=./config.status}
5452 echo creating $CONFIG_STATUS
5453 rm -f $CONFIG_STATUS
5454 cat > $CONFIG_STATUS <<EOF
5456 # Generated automatically by configure.
5457 # Run this file to recreate the current configuration.
5458 # This directory was configured as follows,
5459 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5461 # $0 $ac_configure_args
5463 # Compiler output produced by configure, useful for debugging
5464 # configure, is in ./config.log if it exists.
5466 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5469 case "\$ac_option" in
5470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5471 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5472 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5473 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5474 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5476 -help | --help | --hel | --he | --h)
5477 echo "\$ac_cs_usage"; exit 0 ;;
5478 *) echo "\$ac_cs_usage"; exit 1 ;;
5482 ac_given_srcdir=$srcdir
5483 ac_given_INSTALL="$INSTALL"
5485 trap 'rm -fr `echo "\
5486 Makefile:build/top.mk:Makefile.in:build/dir.mk \
5487 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
5488 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
5489 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
5490 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
5491 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
5492 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
5493 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
5494 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
5495 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
5496 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
5497 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
5498 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
5499 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
5500 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
5501 include/Makefile:build/top.mk:include/Makefile.in \
5502 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
5503 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
5504 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
5505 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
5506 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
5507 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
5508 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
5509 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
5510 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
5511 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
5512 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
5513 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
5514 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
5515 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
5516 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
5517 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
5518 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
5519 tests/Makefile:build/top.mk:tests/Makefile.in \
5520 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5522 cat >> $CONFIG_STATUS <<EOF
5524 # Protect against being on the right side of a sed subst in config.status.
5525 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5526 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5529 s%@CFLAGS@%$CFLAGS%g
5530 s%@CPPFLAGS@%$CPPFLAGS%g
5531 s%@CXXFLAGS@%$CXXFLAGS%g
5533 s%@LDFLAGS@%$LDFLAGS%g
5535 s%@exec_prefix@%$exec_prefix%g
5536 s%@prefix@%$prefix%g
5537 s%@program_transform_name@%$program_transform_name%g
5538 s%@bindir@%$bindir%g
5539 s%@sbindir@%$sbindir%g
5540 s%@libexecdir@%$libexecdir%g
5541 s%@datadir@%$datadir%g
5542 s%@sysconfdir@%$sysconfdir%g
5543 s%@sharedstatedir@%$sharedstatedir%g
5544 s%@localstatedir@%$localstatedir%g
5545 s%@libdir@%$libdir%g
5546 s%@includedir@%$includedir%g
5547 s%@oldincludedir@%$oldincludedir%g
5548 s%@infodir@%$infodir%g
5549 s%@mandir@%$mandir%g
5553 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5554 s%@INSTALL_DATA@%$INSTALL_DATA%g
5555 s%@RANLIB@%$RANLIB%g
5556 s%@SET_MAKE@%$SET_MAKE%g
5557 s%@SENDMAIL@%$SENDMAIL%g
5558 s%@EDITOR@%$EDITOR%g
5559 s%@FINGER@%$FINGER%g
5560 s%@LIBOBJS@%$LIBOBJS%g
5561 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
5562 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
5563 s%@BUILD_LDBM@%$BUILD_LDBM%g
5564 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
5565 s%@BUILD_SHELL@%$BUILD_SHELL%g
5566 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
5567 s%@LDAP_DEFS@%$LDAP_DEFS%g
5568 s%@LDAP_LIBS@%$LDAP_LIBS%g
5569 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
5570 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
5571 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
5572 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
5573 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
5574 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
5575 s%@LDBM_DEFS@%$LDBM_DEFS%g
5576 s%@LDBM_LIBS@%$LDBM_LIBS%g
5577 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
5578 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
5579 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
5580 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
5581 s%@KRB_DEFS@%$KRB_DEFS%g
5582 s%@KRB_LIBS@%$KRB_LIBS%g
5583 s%@TERMCAP_DEFS@%$TERMCAP_DEFS%g
5584 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
5589 cat >> $CONFIG_STATUS <<\EOF
5591 # Split the substitutions into bite-sized pieces for seds with
5592 # small command number limits, like on Digital OSF/1 and HP-UX.
5593 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5594 ac_file=1 # Number of current file.
5595 ac_beg=1 # First line for current file.
5596 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5599 while $ac_more_lines; do
5600 if test $ac_beg -gt 1; then
5601 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5603 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5605 if test ! -s conftest.s$ac_file; then
5607 rm -f conftest.s$ac_file
5609 if test -z "$ac_sed_cmds"; then
5610 ac_sed_cmds="sed -f conftest.s$ac_file"
5612 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5614 ac_file=`expr $ac_file + 1`
5616 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5619 if test -z "$ac_sed_cmds"; then
5624 cat >> $CONFIG_STATUS <<EOF
5626 CONFIG_FILES=\${CONFIG_FILES-"\
5627 Makefile:build/top.mk:Makefile.in:build/dir.mk \
5628 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
5629 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
5630 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
5631 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
5632 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
5633 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
5634 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
5635 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
5636 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
5637 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
5638 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
5639 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
5640 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
5641 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
5642 include/Makefile:build/top.mk:include/Makefile.in \
5643 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
5644 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
5645 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
5646 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
5647 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
5648 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
5649 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
5650 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
5651 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
5652 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
5653 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
5654 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
5655 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
5656 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
5657 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
5658 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
5659 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
5660 tests/Makefile:build/top.mk:tests/Makefile.in \
5663 cat >> $CONFIG_STATUS <<\EOF
5664 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5667 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5668 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5669 *) ac_file_in="${ac_file}.in" ;;
5672 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5674 # Remove last slash and all that follows it. Not all systems have dirname.
5675 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5677 # The file is in a subdirectory.
5678 test ! -d "$ac_dir" && mkdir "$ac_dir"
5679 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5680 # A "../" for each directory in $ac_dir_suffix.
5681 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5683 ac_dir_suffix= ac_dots=
5686 case "$ac_given_srcdir" in
5688 if test -z "$ac_dots"; then top_srcdir=.
5689 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5690 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5692 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5693 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5696 case "$ac_given_INSTALL" in
5697 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5698 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5701 echo creating "$ac_file"
5703 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5705 *Makefile*) ac_comsub="1i\\
5706 # $configure_input" ;;
5710 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5712 s%@configure_input@%$configure_input%g
5713 s%@srcdir@%$srcdir%g
5714 s%@top_srcdir@%$top_srcdir%g
5715 s%@INSTALL@%$INSTALL%g
5716 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5720 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5721 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5723 # ac_d sets the value in "#define NAME VALUE" lines.
5724 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5725 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5728 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5729 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5730 ac_uB='\([ ]\)%\1#\2define\3'
5733 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5734 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5735 ac_eB='$%\1#\2define\3'
5739 if test "${CONFIG_HEADERS+set}" != set; then
5741 cat >> $CONFIG_STATUS <<EOF
5742 CONFIG_HEADERS="include/portable.h"
5744 cat >> $CONFIG_STATUS <<\EOF
5746 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5749 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5750 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5751 *) ac_file_in="${ac_file}.in" ;;
5754 echo creating $ac_file
5756 rm -f conftest.frag conftest.in conftest.out
5757 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5758 cat $ac_file_inputs > conftest.in
5762 # Transform confdefs.h into a sed script conftest.vals that substitutes
5763 # the proper values into config.h.in to produce config.h. And first:
5764 # Protect against being on the right side of a sed subst in config.status.
5765 # Protect against being in an unquoted here document in config.status.
5767 cat > conftest.hdr <<\EOF
5770 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5774 sed -n -f conftest.hdr confdefs.h > conftest.vals
5777 # This sed command replaces #undef with comments. This is necessary, for
5778 # example, in the case of _POSIX_SOURCE, which is predefined and required
5779 # on some systems where configure will not decide to define it.
5780 cat >> conftest.vals <<\EOF
5781 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5784 # Break up conftest.vals because some shells have a limit on
5785 # the size of here documents, and old seds have small limits too.
5790 ac_lines=`grep -c . conftest.vals`
5791 # grep -c gives empty output for an empty file on some AIX systems.
5792 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5793 # Write a limited-size here document to conftest.frag.
5794 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5795 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5797 sed -f conftest.frag conftest.in > conftest.out
5799 mv conftest.out conftest.in
5801 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5803 mv conftest.tail conftest.vals
5807 cat >> $CONFIG_STATUS <<\EOF
5808 rm -f conftest.frag conftest.h
5809 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5810 cat conftest.in >> conftest.h
5812 if cmp -s $ac_file conftest.h 2>/dev/null; then
5813 echo "$ac_file is unchanged"
5816 # Remove last slash and all that follows it. Not all systems have dirname.
5817 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5818 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5819 # The file is in a subdirectory.
5820 test ! -d "$ac_dir" && mkdir "$ac_dir"
5823 mv conftest.h $ac_file
5828 cat >> $CONFIG_STATUS <<EOF
5831 cat >> $CONFIG_STATUS <<\EOF
5835 chmod +x $CONFIG_STATUS
5836 rm -fr confdefs* $ac_clean_files
5837 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1