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-referrals enable referrals (yes)"
24 --enable-clapd enable connectionless ldap (no)"
26 --with-kerberos use Kerberos (no)"
28 --with-kerberos-afs use AFS Kerberos (no)"
30 --with-threads use threads (yes)"
32 --enable-ldapd enable building ldapd (no)"
34 --enable-slapd enable building slapd (yes)"
36 --enable-aclgroup enable ACL group support (yes)"
38 --enable-crypt enable crypt(3) passwords (yes)"
40 --enable-md5 enable MD5 passwords (yes)"
42 --enable-sha1 enable SHA1 passwords (yes)"
44 --enable-wrappers enable tcp wrapper support (no)"
46 --enable-phonetic enable phonetic/soundex (no)"
48 --enable-rlookups enable reverse lookups (yes)"
50 --enable-ldbm enable ldbm backend (yes)"
52 --enable-passwd enable passwd backend (yes)"
54 --enable-shell enable shell backend (yes)"
56 --with-ndbm use NDB for LDBM backend (any)"
58 --with-gdbm use GDBM for LDBM backend (any)"
60 --with-dbhash use Berkeley DB Hash for LDBM backend (any)"
62 --with-dbbtree use Berkeley DB Btrees for LDBM backend (any)"
64 --with-db2 use Berkeley DB2 API (any)"
66 --enable-slurpd enable building slurpd (yes)"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.12"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=include/ldap.h
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
575 for ac_dir in build $srcdir/build; do
576 if test -f $ac_dir/install-sh; then
578 ac_install_sh="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh; then
582 ac_install_sh="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593 echo $ac_n "checking arguments""... $ac_c" 1>&6
594 echo "configure:595: checking arguments" >&5
597 # Check whether --enable-debug or --disable-debug was given.
598 if test "${enable_debug+set}" = set; then
599 enableval="$enable_debug"
600 test "$enableval" != no && enableval=yes
601 if test "$enableval" != "yes" ; then
612 # Check whether --enable-libui or --disable-libui was given.
613 if test "${enable_libui+set}" = set; then
614 enableval="$enable_libui"
615 test "$enableval" != no && enableval=yes
616 if test "$enableval" != "yes" ; then
627 # Check whether --enable-cache or --disable-cache was given.
628 if test "${enable_cache+set}" = set; then
629 enableval="$enable_cache"
630 test "$enableval" != no && enableval=yes
631 if test "$enableval" != "yes" ; then
642 # Check whether --enable-referrals or --disable-referrals was given.
643 if test "${enable_referrals+set}" = set; then
644 enableval="$enable_referrals"
645 test "$enableval" != no && enableval=yes
646 if test "$enableval" != "yes" ; then
658 # Check whether --enable-cldap or --disable-cldap was given.
659 if test "${enable_cldap+set}" = set; then
660 enableval="$enable_cldap"
661 test "$enableval" != yes && enableval=no
662 if test "$enableval" != "no" ; then
674 # Check whether --with-kerberos or --without-kerberos was given.
675 if test "${with_kerberos+set}" = set; then
676 withval="$with_kerberos"
683 # Check whether --with-kerberos-afs or --without-kerberos-afs was given.
684 if test "${with_kerberos_afs+set}" = set; then
685 withval="$with_kerberos_afs"
692 # Check whether --with-threads or --without-threads was given.
693 if test "${with_threads+set}" = set; then
694 withval="$with_threads"
703 # Check whether --enable-ldapd or --disable-ldapd was given.
704 if test "${enable_ldapd+set}" = set; then
705 enableval="$enable_ldapd"
706 test "$enableval" != yes && enableval=no
707 if test "$enableval" != "no" ; then
719 # Check whether --enable-slapd or --disable-slapd was given.
720 if test "${enable_slapd+set}" = set; then
721 enableval="$enable_slapd"
722 test "$enableval" != no && enableval=yes
723 if test "$enableval" != "yes" ; then
734 # Check whether --enable-aclgroup or --disable-aclgroup was given.
735 if test "${enable_aclgroup+set}" = set; then
736 enableval="$enable_aclgroup"
737 test "$enableval" != no && enableval=yes
738 if test "$enableval" != "yes" ; then
749 # Check whether --enable-crypt or --disable-crypt was given.
750 if test "${enable_crypt+set}" = set; then
751 enableval="$enable_crypt"
752 test "$enableval" != no && enableval=yes
753 if test "$enableval" != "yes" ; then
764 # Check whether --enable-md5 or --disable-md5 was given.
765 if test "${enable_md5+set}" = set; then
766 enableval="$enable_md5"
767 test "$enableval" != no && enableval=yes
768 if test "$enableval" != "yes" ; then
779 # Check whether --enable-sha1 or --disable-sha1 was given.
780 if test "${enable_sha1+set}" = set; then
781 enableval="$enable_sha1"
782 test "$enableval" != no && enableval=yes
783 if test "$enableval" != "yes" ; then
794 # Check whether --enable-wrappers or --disable-wrappers was given.
795 if test "${enable_wrappers+set}" = set; then
796 enableval="$enable_wrappers"
797 test "$enableval" != yes && enableval=no
798 if test "$enableval" != "no" ; then
800 SLAPD_TCP_WRAPPERS=yes
802 SLAPD_TCP_WRAPPERS=no
806 SLAPD_TCP_WRAPPERS=no
809 # Check whether --enable-phonetic or --disable-phonetic was given.
810 if test "${enable_phonetic+set}" = set; then
811 enableval="$enable_phonetic"
812 test "$enableval" != yes && enableval=no
813 if test "$enableval" != "no" ; then
824 # Check whether --enable-rlookups or --disable-rlookups was given.
825 if test "${enable_rlookups+set}" = set; then
826 enableval="$enable_rlookups"
827 test "$enableval" != no && enableval=yes
828 if test "$enableval" != "yes" ; then
840 # Check whether --enable-ldbm or --disable-ldbm was given.
841 if test "${enable_ldbm+set}" = set; then
842 enableval="$enable_ldbm"
843 test "$enableval" != no && enableval=yes
844 if test "$enableval" != "yes" ; then
855 # Check whether --enable-passwd or --disable-passwd was given.
856 if test "${enable_passwd+set}" = set; then
857 enableval="$enable_passwd"
858 test "$enableval" != no && enableval=yes
859 if test "$enableval" != "yes" ; then
870 # Check whether --enable-shell or --disable-shell was given.
871 if test "${enable_shell+set}" = set; then
872 enableval="$enable_shell"
873 test "$enableval" != no && enableval=yes
874 if test "$enableval" != "yes" ; then
886 # Check whether --with-ndbm or --without-ndbm was given.
887 if test "${with_ndbm+set}" = set; then
895 # Check whether --with-gdbm or --without-gdbm was given.
896 if test "${with_gdbm+set}" = set; then
904 # Check whether --with-dbhash or --without-dbhash was given.
905 if test "${with_dbhash+set}" = set; then
906 withval="$with_dbhash"
913 # Check whether --with-dbbtree or --without-dbbtree was given.
914 if test "${with_dbbtree+set}" = set; then
915 withval="$with_dbbtree"
922 # Check whether --with-db2 or --without-db2 was given.
923 if test "${with_db2+set}" = set; then
932 # Check whether --enable-slurpd or --disable-slurpd was given.
933 if test "${enable_slurpd+set}" = set; then
934 enableval="$enable_slurpd"
935 test "$enableval" != no && enableval=yes
936 if test "$enableval" != "yes" ; then
948 echo "$ac_t""done" 1>&6
950 echo $ac_n "checking LDBM preferences""... $ac_c" 1>&6
951 echo "configure:952: checking LDBM preferences" >&5
954 if test "$opt_ndbm" = yes ; then
957 if test "$opt_gdbm" = yes ; then
960 if test "$opt_dbhash" = yes ; then
963 if test "$opt_dbbtree" = yes ; then
966 echo "$ac_t""$ldbm_prefer" 1>&6
968 if test "$BUILD_SLAPD" != "yes" ; then
976 ## general LDAP arguments
980 if test "$LDAP_DEBUG" = "yes" ; then
981 LDAP_DEFS="$LDAP_DEFS -DLDAP_DEBUG"
983 if test "$LDAP_REFERRALS" = "yes" ; then
984 cat >> confdefs.h <<\EOF
985 #define LDAP_REFERRALS 1
988 LDAP_DEFS="$LDAP_DEFS -DLDAP_REFERRALS"
990 if test "$LDAP_CACHE" = "no" ; then
991 cat >> confdefs.h <<\EOF
992 #define LDAP_NOCACHE 1
995 LDAP_DEFS="$LDAP_DEFS -DNO_CACHE"
997 if test "$LDAP_CLDAP" = "yes" ; then
998 cat >> confdefs.h <<\EOF
999 #define LDAP_CONNECTIONLESS 1
1002 LDAP_DEFS="$LDAP_DEFS -DCLDAP"
1013 if test "$SLAPD_PHONETIC" = "yes" ; then
1014 cat >> confdefs.h <<\EOF
1015 #define SLAPD_PHONETIC 1
1018 SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
1021 if test "$SLAPD_MD5" = "yes" ; then
1022 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_MD5"
1025 if test "$SLAPD_SHA1" = "yes" ; then
1026 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_SHA1"
1029 if test "$SLAPD_LDBM" = "yes" ; then
1030 SLAPD_DEFS="$SLAPD_DEFS -DLDAP_LDBM"
1032 if test "$SLAPD_PASSWD" = "yes" ; then
1033 SLAPD_DEFS="$SLAPD_DEFS -DLDAP_PASSWD"
1035 if test "$SLAPD_SHELL" = "yes" ; then
1036 SLAPD_DEFS="$SLAPD_DEFS -DLDAP_SHELL"
1043 # Extract the first word of "gcc", so it can be a program name with args.
1044 set dummy gcc; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1065 if test -n "$CC"; then
1066 echo "$ac_t""$CC" 1>&6
1068 echo "$ac_t""no" 1>&6
1071 if test -z "$CC"; then
1072 # Extract the first word of "cc", so it can be a program name with args.
1073 set dummy cc; ac_word=$2
1074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075 echo "configure:1076: checking for $ac_word" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 if test -n "$CC"; then
1080 ac_cv_prog_CC="$CC" # Let the user override the test.
1082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1084 for ac_dir in $PATH; do
1085 test -z "$ac_dir" && ac_dir=.
1086 if test -f $ac_dir/$ac_word; then
1087 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1088 ac_prog_rejected=yes
1096 if test $ac_prog_rejected = yes; then
1097 # We found a bogon in the path, so make sure we never use it.
1098 set dummy $ac_cv_prog_CC
1100 if test $# -gt 0; then
1101 # We chose a different compiler from the bogus one.
1102 # However, it has the same basename, so the bogon will be chosen
1103 # first if we set CC to just the basename; use the full file name.
1105 set dummy "$ac_dir/$ac_word" "$@"
1113 if test -n "$CC"; then
1114 echo "$ac_t""$CC" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1122 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1123 echo "configure:1124: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1126 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1127 ac_cpp='$CPP $CPPFLAGS'
1128 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1129 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1130 cross_compiling=$ac_cv_prog_cc_cross
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1137 if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1138 ac_cv_prog_cc_works=yes
1139 # If we can't run a trivial program, we are probably using a cross compiler.
1140 if (./conftest; exit) 2>/dev/null; then
1141 ac_cv_prog_cc_cross=no
1143 ac_cv_prog_cc_cross=yes
1146 echo "configure: failed program was:" >&5
1147 cat conftest.$ac_ext >&5
1148 ac_cv_prog_cc_works=no
1152 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1153 if test $ac_cv_prog_cc_works = no; then
1154 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1157 echo "configure:1158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1158 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1159 cross_compiling=$ac_cv_prog_cc_cross
1161 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether we are using GNU C" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 cat > conftest.c <<EOF
1171 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1178 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1180 if test $ac_cv_prog_gcc = yes; then
1182 ac_test_CFLAGS="${CFLAGS+set}"
1183 ac_save_CFLAGS="$CFLAGS"
1185 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${CC-cc} accepts -g" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 echo 'void f(){}' > conftest.c
1191 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1200 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1201 if test "$ac_test_CFLAGS" = set; then
1202 CFLAGS="$ac_save_CFLAGS"
1203 elif test $ac_cv_prog_cc_g = yes; then
1210 test "${CFLAGS+set}" = set || CFLAGS="-g"
1213 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1214 echo "configure:1215: checking how to run the C preprocessor" >&5
1215 # On Suns, sometimes $CPP names a directory.
1216 if test -n "$CPP" && test -d "$CPP"; then
1219 if test -z "$CPP"; then
1220 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 # This must be in double quotes, not single quotes, because CPP may get
1224 # substituted into the Makefile and "${CC-cc}" will confuse make.
1226 # On the NeXT, cc -E runs the code through the compiler's parser,
1227 # not just through cpp.
1228 cat > conftest.$ac_ext <<EOF
1229 #line 1230 "configure"
1230 #include "confdefs.h"
1234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235 { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236 ac_err=`grep -v '^ *+' conftest.out`
1237 if test -z "$ac_err"; then
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 CPP="${CC-cc} -E -traditional-cpp"
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1266 ac_cv_prog_CPP="$CPP"
1268 CPP="$ac_cv_prog_CPP"
1270 ac_cv_prog_CPP="$CPP"
1272 echo "$ac_t""$CPP" 1>&6
1274 if test $ac_cv_prog_gcc = yes; then
1275 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1276 echo "configure:1277: checking whether ${CC-cc} needs -traditional" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 ac_pattern="Autoconf.*'x'"
1281 cat > conftest.$ac_ext <<EOF
1282 #line 1283 "configure"
1283 #include "confdefs.h"
1287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1288 egrep "$ac_pattern" >/dev/null 2>&1; then
1290 ac_cv_prog_gcc_traditional=yes
1293 ac_cv_prog_gcc_traditional=no
1298 if test $ac_cv_prog_gcc_traditional = no; then
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1306 egrep "$ac_pattern" >/dev/null 2>&1; then
1308 ac_cv_prog_gcc_traditional=yes
1315 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1316 if test $ac_cv_prog_gcc_traditional = yes; then
1317 CC="$CC -traditional"
1322 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1323 echo "configure:1324: checking whether ln -s works" >&5
1324 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1325 echo $ac_n "(cached) $ac_c" 1>&6
1328 if ln -s X conftestdata 2>/dev/null
1331 ac_cv_prog_LN_S="ln -s"
1336 LN_S="$ac_cv_prog_LN_S"
1337 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1338 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # ./install, which can be erroneously created by make from ./install.sh.
1353 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1354 echo "configure:1355: checking for a BSD compatible install" >&5
1355 if test -z "$INSTALL"; then
1356 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1360 for ac_dir in $PATH; do
1361 # Account for people who put trailing slashes in PATH elements.
1363 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1365 # OSF1 and SCO ODT 3.0 have their own names for install.
1366 for ac_prog in ginstall installbsd scoinst install; do
1367 if test -f $ac_dir/$ac_prog; then
1368 if test $ac_prog = install &&
1369 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1370 # AIX install. It has an incompatible calling convention.
1371 # OSF/1 installbsd also uses dspmsg, but is usable.
1374 ac_cv_path_install="$ac_dir/$ac_prog -c"
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL="$ac_cv_path_install"
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL="$ac_install_sh"
1395 echo "$ac_t""$INSTALL" 1>&6
1397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398 # It thinks the first close brace ends the variable substitution.
1399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1403 # Extract the first word of "ranlib", so it can be a program name with args.
1404 set dummy ranlib; ac_word=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$RANLIB"; then
1411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1414 for ac_dir in $PATH; do
1415 test -z "$ac_dir" && ac_dir=.
1416 if test -f $ac_dir/$ac_word; then
1417 ac_cv_prog_RANLIB="ranlib"
1422 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1425 RANLIB="$ac_cv_prog_RANLIB"
1426 if test -n "$RANLIB"; then
1427 echo "$ac_t""$RANLIB" 1>&6
1429 echo "$ac_t""no" 1>&6
1432 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether ${MAKE-make} sets \${MAKE}" >&5
1434 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1435 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftestmake <<\EOF
1440 @echo 'ac_maketemp="${MAKE}"'
1442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1443 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1444 if test -n "$ac_maketemp"; then
1445 eval ac_cv_prog_make_${ac_make}_set=yes
1447 eval ac_cv_prog_make_${ac_make}_set=no
1451 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1452 echo "$ac_t""yes" 1>&6
1455 echo "$ac_t""no" 1>&6
1456 SET_MAKE="MAKE=${MAKE-make}"
1460 # Extract the first word of "sendmail", so it can be a program name with args.
1461 set dummy sendmail; ac_word=$2
1462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1463 echo "configure:1464: checking for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1469 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1473 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1474 test -z "$ac_dir" && ac_dir=.
1475 if test -f $ac_dir/$ac_word; then
1476 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1481 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1485 SENDMAIL="$ac_cv_path_SENDMAIL"
1486 if test -n "$SENDMAIL"; then
1487 echo "$ac_t""$SENDMAIL" 1>&6
1489 echo "$ac_t""no" 1>&6
1492 # Extract the first word of "vi", so it can be a program name with args.
1493 set dummy vi; ac_word=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1501 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1505 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 if test -f $ac_dir/$ac_word; then
1508 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1513 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1517 EDITOR="$ac_cv_path_EDITOR"
1518 if test -n "$EDITOR"; then
1519 echo "$ac_t""$EDITOR" 1>&6
1521 echo "$ac_t""no" 1>&6
1524 # Extract the first word of "finger", so it can be a program name with args.
1525 set dummy finger; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1533 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1537 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/$ac_word; then
1540 ac_cv_path_FINGER="$ac_dir/$ac_word"
1545 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1549 FINGER="$ac_cv_path_FINGER"
1550 if test -n "$FINGER"; then
1551 echo "$ac_t""$FINGER" 1>&6
1553 echo "$ac_t""no" 1>&6
1559 if test "$opt_thread" = "no" ; then
1560 LTHREAD_DEFS="-DNO_THREADS"
1563 for ac_hdr in pthread.h sched.h
1565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_hdr" >&5
1568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out`
1579 if test -z "$ac_err"; then
1581 eval "ac_cv_header_$ac_safe=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 eval "ac_cv_header_$ac_safe=no"
1591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1592 echo "$ac_t""yes" 1>&6
1593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1594 cat >> confdefs.h <<EOF
1595 #define $ac_tr_hdr 1
1599 echo "$ac_t""no" 1>&6
1604 if test "$ac_cv_header_pthread_h" = yes ; then
1605 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
1606 echo "configure:1607: checking POSIX thread version" >&5
1607 if eval "test \"`echo '$''{'cf_cv_pthread_version'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1615 #include <pthread.h>
1616 /* this check could be improved */
1617 #ifdef PTHREAD_ONCE_INIT
1622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1623 egrep "final" >/dev/null 2>&1; then
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1637 #include <pthread.h>
1638 /* this check could be improved */
1639 #ifdef pthread_once_init
1644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1645 egrep "draft4" >/dev/null 2>&1; then
1655 if test $pthread_final = yes -a $pthread_draft4 = no; then
1656 cf_cv_pthread_version=final
1657 elif test $pthread_final = no -a $pthread_draft4 = yes; then
1658 cf_cv_pthread_version=draft4
1660 cf_cv_pthread_version=unknown
1665 echo "$ac_t""$cf_cv_pthread_version" 1>&6
1667 if test $cf_cv_pthread_version = final ; then
1668 LTHREAD_DEFS="$LTHREAD_DEFS -DPOSIX_THREADS"
1669 elif test $cf_cv_pthread_version = draft4 ; then
1670 LTHREAD_DEFS="$LTHREAD_DEFS -DTHREAD_MIT_PTHREADS"
1672 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
1676 echo $ac_n "checking compiler for -pthread option""... $ac_c" 1>&6
1677 echo "configure:1678: checking compiler for -pthread option" >&5
1678 if eval "test \"`echo '$''{'cf_cv_pthread_flag'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1682 save_CPPFLAGS=$CPPFLAGS
1683 CPPFLAGS="-pthread $CPPFLAGS"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <pthread.h>
1690 if(0) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1696 cf_cv_pthread_flag=yes
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 cf_cv_pthread_flag=no
1704 CPPFLAGS=$save_CPPFLAGS
1708 echo "$ac_t""$cf_cv_pthread_flag" 1>&6
1710 if test $cf_cv_pthread_flag = yes ; then
1711 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
1715 LTHREAD_DEFS="-DNO_THREADS"
1724 if test "$SLAPD_LDBM" = "yes" ; then
1725 if test $ldbm_prefer = any -o $ldbm_prefer = dbbtree \
1726 -o $ldbm_prefer = dbhash ; then
1727 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
1728 echo "configure:1729: checking for dbopen" >&5
1729 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char dbopen(); below. */
1738 /* Override any gcc2 internal prototype to avoid an error. */
1739 /* We use char because int might match the return type of a gcc2
1740 builtin and then its argument prototype would still apply. */
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined (__stub_dbopen) || defined (__stub___dbopen)
1756 if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1758 eval "ac_cv_func_dbopen=yes"
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 eval "ac_cv_func_dbopen=no"
1768 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1771 ldbm_use=$ldbm_prefer
1774 echo "$ac_t""no" 1>&6
1776 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
1777 echo "configure:1778: checking for dbopen in -ldb" >&5
1778 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
1779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 ac_save_LIBS="$LIBS"
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* Override any gcc2 internal prototype to avoid an error. */
1788 /* We use char because int might match the return type of a gcc2
1789 builtin and then its argument prototype would still apply. */
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1798 eval "ac_cv_lib_$ac_lib_var=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_lib_$ac_lib_var=no"
1806 LIBS="$ac_save_LIBS"
1809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1812 ldbm_use=$ldbm_prefer
1814 LDBM_LIBS="$LDBM_LIBS -ldb"
1817 echo "$ac_t""no" 1>&6
1824 if test $ldbm_prefer = found ; then
1825 if test $ldbm_use = dbhash ; then
1826 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBHASH"
1828 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
1832 echo $ac_n "checking for db2""... $ac_c" 1>&6
1833 echo "configure:1834: checking for db2" >&5
1834 if eval "test \"`echo '$''{'cf_cv_db2'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1843 /* this check could be improved */
1844 #ifdef DB_VERSION_MAJOR
1845 #if DB_VERSION_MAJOR == 2
1851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1852 egrep "__db_version_2" >/dev/null 2>&1; then
1863 echo "$ac_t""$cf_cv_db2" 1>&6
1865 if test $cf_cv_db2 = yes ; then
1866 if test $opt_db2 = yes ; then
1867 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
1869 for ac_hdr in db_185.h
1871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_hdr" >&5
1874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1883 { (eval echo configure:1884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1884 ac_err=`grep -v '^ *+' conftest.out`
1885 if test -z "$ac_err"; then
1887 eval "ac_cv_header_$ac_safe=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 eval "ac_cv_header_$ac_safe=no"
1897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1900 cat >> confdefs.h <<EOF
1901 #define $ac_tr_hdr 1
1905 echo "$ac_t""no" 1>&6
1909 if test $ac_cv_header_db_185_h = no ; then
1910 { echo "configure: error: select --with-db2 or install db2 with 1.85 compatibility" 1>&2; exit 1; }
1913 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
1916 if test $opt_db2 = yes ; then
1917 { echo "configure: error: could not local DB2" 1>&2; exit 1; }
1922 if test $ldbm_prefer = any -o $ldbm_prefer = gdbm ; then
1923 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
1924 echo "configure:1925: checking for gdbm_open in -lgdbm" >&5
1925 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
1926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 ac_save_LIBS="$LIBS"
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1945 eval "ac_cv_lib_$ac_lib_var=yes"
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1950 eval "ac_cv_lib_$ac_lib_var=no"
1953 LIBS="$ac_save_LIBS"
1956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1959 ldbm_use=$ldbm_prefer
1961 LDBM_LIBS="$LDBM_LIBS -lgdbm"
1962 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_GDBM"
1965 echo "$ac_t""no" 1>&6
1969 if test $ldbm_prefer = any -o $ldbm_prefer = ndbm ; then
1970 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
1971 echo "configure:1972: checking for dbm_open in -ldbm" >&5
1972 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
1973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 ac_save_LIBS="$LIBS"
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 /* Override any gcc2 internal prototype to avoid an error. */
1982 /* We use char because int might match the return type of a gcc2
1983 builtin and then its argument prototype would still apply. */
1990 if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1992 eval "ac_cv_lib_$ac_lib_var=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 eval "ac_cv_lib_$ac_lib_var=no"
2000 LIBS="$ac_save_LIBS"
2003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2004 echo "$ac_t""yes" 1>&6
2008 LDBM_LIBS="$LDBM_LIBS -ldbm"
2009 LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_NDBM"
2012 echo "$ac_t""no" 1>&6
2017 if test $ldbm_prefer != found ; then
2018 { echo "configure: error: could not find suitable db for $ldbm_prefer backend" 1>&2; exit 1; }
2021 if test $ldbm_use = ndbm ; then
2022 echo "configure: warning: LDBM using NDBM" 1>&2
2026 if test "$SLAPD_TCP_WRAPPERS" = "yes" ; then
2027 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
2028 echo "configure:2029: checking for hosts_access in -lwrap" >&5
2029 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
2030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 ac_save_LIBS="$LIBS"
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2038 /* Override any gcc2 internal prototype to avoid an error. */
2039 /* We use char because int might match the return type of a gcc2
2040 builtin and then its argument prototype would still apply. */
2041 char hosts_access();
2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2049 eval "ac_cv_lib_$ac_lib_var=yes"
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2054 eval "ac_cv_lib_$ac_lib_var=no"
2057 LIBS="$ac_save_LIBS"
2060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2061 echo "$ac_t""yes" 1>&6
2063 SLAPD_DEFS="$SLAPD_DEFS -DTCP_WRAPPERS"
2064 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
2067 echo "$ac_t""no" 1>&6
2072 # ud needs termcap (should insert check here)
2073 LIBTERMCAP="-ltermcap"
2076 # FreeBSD (and others) have crypt(3) in -lcrypt
2077 if test "$SLAPD_CRYPT" = "yes" ; then
2078 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2079 echo "configure:2080: checking for crypt" >&5
2080 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* System header to define __stub macros and hopefully few prototypes,
2087 which can conflict with char crypt(); below. */
2089 /* Override any gcc2 internal prototype to avoid an error. */
2090 /* We use char because int might match the return type of a gcc2
2091 builtin and then its argument prototype would still apply. */
2096 /* The GNU C library defines this for functions which it implements
2097 to always fail with ENOSYS. Some functions are actually named
2098 something starting with __ and the normal name is an alias. */
2099 #if defined (__stub_crypt) || defined (__stub___crypt)
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2109 eval "ac_cv_func_crypt=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 eval "ac_cv_func_crypt=no"
2119 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2123 echo "$ac_t""no" 1>&6
2125 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2126 echo "configure:2127: checking for crypt in -lcrypt" >&5
2127 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 ac_save_LIBS="$LIBS"
2132 LIBS="-lcrypt $LIBS"
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* Override any gcc2 internal prototype to avoid an error. */
2137 /* We use char because int might match the return type of a gcc2
2138 builtin and then its argument prototype would still apply. */
2145 if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2147 eval "ac_cv_lib_$ac_lib_var=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_lib_$ac_lib_var=no"
2155 LIBS="$ac_save_LIBS"
2158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
2163 echo "$ac_t""no" 1>&6
2170 if test $have_crypt = yes ; then
2171 LUTIL_DEFS="$LUTIL_DEFS -DLDAP_CRYPT"
2173 echo "configure: warning: could not find crypt" 1>&2
2178 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2181 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_hdr that defines DIR" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2189 #include <sys/types.h>
2195 if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2197 eval "ac_cv_header_dirent_$ac_safe=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 eval "ac_cv_header_dirent_$ac_safe=no"
2206 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2209 cat >> confdefs.h <<EOF
2210 #define $ac_tr_hdr 1
2212 ac_header_dirent=$ac_hdr; break
2214 echo "$ac_t""no" 1>&6
2217 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2218 if test $ac_header_dirent = dirent.h; then
2219 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2220 echo "configure:2221: checking for opendir in -ldir" >&5
2221 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 ac_save_LIBS="$LIBS"
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* Override any gcc2 internal prototype to avoid an error. */
2231 /* We use char because int might match the return type of a gcc2
2232 builtin and then its argument prototype would still apply. */
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2241 eval "ac_cv_lib_$ac_lib_var=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2246 eval "ac_cv_lib_$ac_lib_var=no"
2249 LIBS="$ac_save_LIBS"
2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2256 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2261 echo "configure:2262: checking for opendir in -lx" >&5
2262 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 ac_save_LIBS="$LIBS"
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 /* Override any gcc2 internal prototype to avoid an error. */
2272 /* We use char because int might match the return type of a gcc2
2273 builtin and then its argument prototype would still apply. */
2280 if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2282 eval "ac_cv_lib_$ac_lib_var=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 eval "ac_cv_lib_$ac_lib_var=no"
2290 LIBS="$ac_save_LIBS"
2293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2297 echo "$ac_t""no" 1>&6
2302 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2303 echo "configure:2304: checking for ANSI C header files" >&5
2304 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2316 { (eval echo configure:2317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2317 ac_err=`grep -v '^ *+' conftest.out`
2318 if test -z "$ac_err"; then
2320 ac_cv_header_stdc=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2326 ac_cv_header_stdc=no
2330 if test $ac_cv_header_stdc = yes; then
2331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2338 egrep "memchr" >/dev/null 2>&1; then
2342 ac_cv_header_stdc=no
2348 if test $ac_cv_header_stdc = yes; then
2349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2356 egrep "free" >/dev/null 2>&1; then
2360 ac_cv_header_stdc=no
2366 if test $ac_cv_header_stdc = yes; then
2367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2368 if test "$cross_compiling" = yes; then
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2375 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2376 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2378 int main () { int i; for (i = 0; i < 256; i++)
2379 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 ac_cv_header_stdc=no
2398 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2399 if test $ac_cv_header_stdc = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define STDC_HEADERS 1
2406 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2407 echo "configure:2408: checking for sys/wait.h that is POSIX.1 compatible" >&5
2408 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <sys/types.h>
2415 #include <sys/wait.h>
2417 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2420 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2425 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2428 if { (eval echo configure:2429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 ac_cv_header_sys_wait_h=yes
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2435 ac_cv_header_sys_wait_h=no
2440 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2441 if test $ac_cv_header_sys_wait_h = yes; then
2442 cat >> confdefs.h <<\EOF
2443 #define HAVE_SYS_WAIT_H 1
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2501 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2502 echo "configure:2503: checking for uid_t in sys/types.h" >&5
2503 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <sys/types.h>
2511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2512 egrep "uid_t" >/dev/null 2>&1; then
2514 ac_cv_type_uid_t=yes
2523 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2524 if test $ac_cv_type_uid_t = no; then
2525 cat >> confdefs.h <<\EOF
2529 cat >> confdefs.h <<\EOF
2535 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2536 echo "configure:2537: checking type of array argument to getgroups" >&5
2537 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test "$cross_compiling" = yes; then
2541 ac_cv_type_getgroups=cross
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2547 /* Thanks to Mike Rendell for this test. */
2548 #include <sys/types.h>
2551 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2556 union { gid_t gval; long lval; } val;
2559 for (i = 0; i < NGID; i++)
2560 gidset[i] = val.gval;
2561 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2563 /* Exit non-zero if getgroups seems to require an array of ints. This
2564 happens when gid_t is short but getgroups modifies an array of ints. */
2565 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2571 ac_cv_type_getgroups=gid_t
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 ac_cv_type_getgroups=int
2581 if test $ac_cv_type_getgroups = cross; then
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2588 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2590 ac_cv_type_getgroups=gid_t
2593 ac_cv_type_getgroups=int
2600 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2601 cat >> confdefs.h <<EOF
2602 #define GETGROUPS_T $ac_cv_type_getgroups
2606 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2607 echo "configure:2608: checking for mode_t" >&5
2608 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 #include <sys/types.h>
2620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2621 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2623 ac_cv_type_mode_t=yes
2626 ac_cv_type_mode_t=no
2631 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2632 if test $ac_cv_type_mode_t = no; then
2633 cat >> confdefs.h <<\EOF
2639 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2640 echo "configure:2641: checking for off_t" >&5
2641 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <sys/types.h>
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2656 ac_cv_type_off_t=yes
2664 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2665 if test $ac_cv_type_off_t = no; then
2666 cat >> confdefs.h <<\EOF
2672 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for pid_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2689 ac_cv_type_pid_t=yes
2697 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2698 if test $ac_cv_type_pid_t = no; then
2699 cat >> confdefs.h <<\EOF
2705 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2706 echo "configure:2707: checking return type of signal handlers" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_signal'+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"
2713 #include <sys/types.h>
2719 extern "C" void (*signal (int, void (*)(int)))(int);
2721 void (*signal ()) ();
2728 if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 ac_cv_type_signal=void
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2735 ac_cv_type_signal=int
2740 echo "$ac_t""$ac_cv_type_signal" 1>&6
2741 cat >> confdefs.h <<EOF
2742 #define RETSIGTYPE $ac_cv_type_signal
2746 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2747 echo "configure:2748: checking for size_t" >&5
2748 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 #include <sys/types.h>
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2763 ac_cv_type_size_t=yes
2766 ac_cv_type_size_t=no
2771 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2772 if test $ac_cv_type_size_t = no; then
2773 cat >> confdefs.h <<\EOF
2774 #define size_t unsigned
2779 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2780 echo "configure:2781: checking for uid_t in sys/types.h" >&5
2781 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 #include <sys/types.h>
2789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2790 egrep "uid_t" >/dev/null 2>&1; then
2792 ac_cv_type_uid_t=yes
2801 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2802 if test $ac_cv_type_uid_t = no; then
2803 cat >> confdefs.h <<\EOF
2807 cat >> confdefs.h <<\EOF
2813 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
2814 echo "configure:2815: checking for st_blksize in struct stat" >&5
2815 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2824 struct stat s; s.st_blksize;
2827 if { (eval echo configure:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2829 ac_cv_struct_st_blksize=yes
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2834 ac_cv_struct_st_blksize=no
2839 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
2840 if test $ac_cv_struct_st_blksize = yes; then
2841 cat >> confdefs.h <<\EOF
2842 #define HAVE_ST_BLKSIZE 1
2847 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2848 echo "configure:2849: checking whether time.h and sys/time.h may both be included" >&5
2849 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 #include <sys/types.h>
2856 #include <sys/time.h>
2862 if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2864 ac_cv_header_time=yes
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 ac_cv_header_time=no
2874 echo "$ac_t""$ac_cv_header_time" 1>&6
2875 if test $ac_cv_header_time = yes; then
2876 cat >> confdefs.h <<\EOF
2877 #define TIME_WITH_SYS_TIME 1
2882 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2883 echo "configure:2884: checking whether struct tm is in sys/time.h or time.h" >&5
2884 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <sys/types.h>
2893 struct tm *tp; tp->tm_sec;
2896 if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2898 ac_cv_struct_tm=time.h
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 ac_cv_struct_tm=sys/time.h
2908 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2909 if test $ac_cv_struct_tm = sys/time.h; then
2910 cat >> confdefs.h <<\EOF
2911 #define TM_IN_SYS_TIME 1
2917 echo $ac_n "checking for working const""... $ac_c" 1>&6
2918 echo "configure:2919: checking for working const" >&5
2919 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2928 /* Ultrix mips cc rejects this. */
2929 typedef int charset[2]; const charset x;
2930 /* SunOS 4.1.1 cc rejects this. */
2931 char const *const *ccp;
2933 /* NEC SVR4.0.2 mips cc rejects this. */
2934 struct point {int x, y;};
2935 static struct point const zero = {0,0};
2936 /* AIX XL C 1.02.0.0 rejects this.
2937 It does not let you subtract one const X* pointer from another in an arm
2938 of an if-expression whose if-part is not a constant expression */
2939 const char *g = "string";
2940 ccp = &g + (g ? g-g : 0);
2941 /* HPUX 7.0 cc rejects these. */
2944 ccp = (char const *const *) p;
2945 { /* SCO 3.2v4 cc rejects this. */
2947 char const *s = 0 ? (char *) 0 : (char const *) 0;
2951 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2953 const int *foo = &x[0];
2956 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2957 typedef const int *iptr;
2961 { /* AIX XL C 1.02.0.0 rejects this saying
2962 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2963 struct s { int j; const int *ap[3]; };
2964 struct s *b; b->j = 5;
2966 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2972 if { (eval echo configure:2973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2976 echo "configure: failed program was:" >&5
2977 cat conftest.$ac_ext >&5
2984 echo "$ac_t""$ac_cv_c_const" 1>&6
2985 if test $ac_cv_c_const = no; then
2986 cat >> confdefs.h <<\EOF
2993 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2994 echo "configure:2995: checking for 8-bit clean memcmp" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 if test "$cross_compiling" = yes; then
2999 ac_cv_func_memcmp_clean=no
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3007 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3008 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3012 if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3014 ac_cv_func_memcmp_clean=yes
3016 echo "configure: failed program was:" >&5
3017 cat conftest.$ac_ext >&5
3019 ac_cv_func_memcmp_clean=no
3026 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3027 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3029 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3030 echo "configure:3031: checking return type of signal handlers" >&5
3031 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 #include <sys/types.h>
3043 extern "C" void (*signal (int, void (*)(int)))(int);
3045 void (*signal ()) ();
3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3054 ac_cv_type_signal=void
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3059 ac_cv_type_signal=int
3064 echo "$ac_t""$ac_cv_type_signal" 1>&6
3065 cat >> confdefs.h <<EOF
3066 #define RETSIGTYPE $ac_cv_type_signal
3070 echo $ac_n "checking for strftime""... $ac_c" 1>&6
3071 echo "configure:3072: checking for strftime" >&5
3072 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 /* System header to define __stub macros and hopefully few prototypes,
3079 which can conflict with char strftime(); below. */
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3088 /* The GNU C library defines this for functions which it implements
3089 to always fail with ENOSYS. Some functions are actually named
3090 something starting with __ and the normal name is an alias. */
3091 #if defined (__stub_strftime) || defined (__stub___strftime)
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3101 eval "ac_cv_func_strftime=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 eval "ac_cv_func_strftime=no"
3111 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_STRFTIME 1
3118 echo "$ac_t""no" 1>&6
3119 # strftime is in -lintl on SCO UNIX.
3120 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
3121 echo "configure:3122: checking for strftime in -lintl" >&5
3122 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
3123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_save_LIBS="$LIBS"
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3142 eval "ac_cv_lib_$ac_lib_var=yes"
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 eval "ac_cv_lib_$ac_lib_var=no"
3150 LIBS="$ac_save_LIBS"
3153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3154 echo "$ac_t""yes" 1>&6
3155 cat >> confdefs.h <<\EOF
3156 #define HAVE_STRFTIME 1
3161 echo "$ac_t""no" 1>&6
3166 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3167 echo "configure:3168: checking for vprintf" >&5
3168 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* System header to define __stub macros and hopefully few prototypes,
3175 which can conflict with char vprintf(); below. */
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3184 /* The GNU C library defines this for functions which it implements
3185 to always fail with ENOSYS. Some functions are actually named
3186 something starting with __ and the normal name is an alias. */
3187 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3197 eval "ac_cv_func_vprintf=yes"
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 eval "ac_cv_func_vprintf=no"
3207 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 cat >> confdefs.h <<\EOF
3210 #define HAVE_VPRINTF 1
3214 echo "$ac_t""no" 1>&6
3217 if test "$ac_cv_func_vprintf" != yes; then
3218 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3219 echo "configure:3220: checking for _doprnt" >&5
3220 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* System header to define __stub macros and hopefully few prototypes,
3227 which can conflict with char _doprnt(); below. */
3229 /* Override any gcc2 internal prototype to avoid an error. */
3230 /* We use char because int might match the return type of a gcc2
3231 builtin and then its argument prototype would still apply. */
3236 /* The GNU C library defines this for functions which it implements
3237 to always fail with ENOSYS. Some functions are actually named
3238 something starting with __ and the normal name is an alias. */
3239 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3249 eval "ac_cv_func__doprnt=yes"
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 eval "ac_cv_func__doprnt=no"
3259 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 cat >> confdefs.h <<\EOF
3262 #define HAVE_DOPRNT 1
3266 echo "$ac_t""no" 1>&6
3271 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
3272 echo "configure:3273: checking for wait3 that fills in rusage" >&5
3273 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 if test "$cross_compiling" = yes; then
3277 ac_cv_func_wait3_rusage=no
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3282 #include <sys/types.h>
3283 #include <sys/time.h>
3284 #include <sys/resource.h>
3286 /* HP-UX has wait3 but does not fill in rusage at all. */
3290 /* Use a field that we can force nonzero --
3291 voluntary context switches.
3292 For systems like NeXT and OSF/1 that don't set it,
3293 also use the system CPU time. And page faults (I/O) for Linux. */
3295 r.ru_stime.tv_sec = 0;
3296 r.ru_stime.tv_usec = 0;
3297 r.ru_majflt = r.ru_minflt = 0;
3299 case 0: /* Child. */
3300 sleep(1); /* Give up the CPU. */
3302 case -1: _exit(0); /* What can we do? */
3303 default: /* Parent. */
3305 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
3306 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
3307 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3313 ac_cv_func_wait3_rusage=yes
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 ac_cv_func_wait3_rusage=no
3325 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
3326 if test $ac_cv_func_wait3_rusage = yes; then
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_WAIT3 1
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3404 for ac_func in strdup
3406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3407 echo "configure:3408: checking for $ac_func" >&5
3408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 /* System header to define __stub macros and hopefully few prototypes,
3415 which can conflict with char $ac_func(); below. */
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3424 /* The GNU C library defines this for functions which it implements
3425 to always fail with ENOSYS. Some functions are actually named
3426 something starting with __ and the normal name is an alias. */
3427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3437 eval "ac_cv_func_$ac_func=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_func_$ac_func=no"
3447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3450 cat >> confdefs.h <<EOF
3451 #define $ac_tr_func 1
3455 echo "$ac_t""no" 1>&6
3456 LIBOBJS="$LIBOBJS ${ac_func}.o"
3462 # Check Configuration
3464 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
3465 echo "configure:3466: checking declaration of sys_errlist" >&5
3466 if eval "test \"`echo '$''{'cf_cv_dcl_sys_errlist'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3475 #include <sys/types.h>
3478 char *c = (char *) *sys_errlist
3481 if { (eval echo configure:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483 cf_cv_dcl_sys_errlist=yes
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 cf_cv_dcl_sys_errlist=no
3493 echo "$ac_t""$cf_cv_dcl_sys_errlist" 1>&6
3495 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
3496 if test $cf_cv_dcl_sys_errlist = no ; then
3497 cat >> confdefs.h <<\EOF
3498 #define DECL_SYS_ERRLIST 1
3501 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
3502 echo "configure:3503: checking existence of sys_errlist" >&5
3503 if eval "test \"`echo '$''{'cf_cv_have_sys_errlist'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3512 char *c = (char *) *sys_errlist
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3517 cf_cv_have_sys_errlist=yes
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 cf_cv_have_sys_errlist=no
3527 echo "$ac_t""$cf_cv_have_sys_errlist" 1>&6
3557 cat > confcache <<\EOF
3558 # This file is a shell script that caches the results of configure
3559 # tests run on this system so they can be shared between configure
3560 # scripts and configure runs. It is not useful on other systems.
3561 # If it contains results you don't want to keep, you may remove or edit it.
3563 # By default, configure uses ./config.cache as the cache file,
3564 # creating it if it does not exist already. You can give configure
3565 # the --cache-file=FILE option to use a different cache file; that is
3566 # what configure does when it calls configure scripts in
3567 # subdirectories, so they share the cache.
3568 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3569 # config.status only pays attention to the cache file if you give it the
3570 # --recheck option to rerun configure.
3573 # The following way of writing the cache mishandles newlines in values,
3574 # but we know of no workaround that is simple, portable, and efficient.
3575 # So, don't put newlines in cache variables' values.
3576 # Ultrix sh set writes to stderr and can't be redirected directly,
3577 # and sets the high bit in the cache file unless we assign to the vars.
3579 case `(ac_space=' '; set) 2>&1` in
3581 # `set' does not quote correctly, so add quotes (double-quote substitution
3582 # turns \\\\ into \\, and sed turns \\ into \).
3584 -e "s/'/'\\\\''/g" \
3585 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3588 # `set' quotes correctly as required by POSIX, so do not add quotes.
3589 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3592 if cmp -s $cache_file confcache; then
3595 if test -w $cache_file; then
3596 echo "updating cache $cache_file"
3597 cat confcache > $cache_file
3599 echo "not updating unwritable cache $cache_file"
3604 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3607 # Let make expand exec_prefix.
3608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3610 # Any assignment to VPATH causes Sun make to only execute
3611 # the first set of double-colon rules, so remove it if not needed.
3612 # If there is a colon in the path, we need to keep it.
3613 if test "x$srcdir" = x.; then
3614 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3617 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3619 DEFS=-DHAVE_CONFIG_H
3621 # Without the "./", some shells look in PATH for config.status.
3622 : ${CONFIG_STATUS=./config.status}
3624 echo creating $CONFIG_STATUS
3625 rm -f $CONFIG_STATUS
3626 cat > $CONFIG_STATUS <<EOF
3628 # Generated automatically by configure.
3629 # Run this file to recreate the current configuration.
3630 # This directory was configured as follows,
3631 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3633 # $0 $ac_configure_args
3635 # Compiler output produced by configure, useful for debugging
3636 # configure, is in ./config.log if it exists.
3638 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3641 case "\$ac_option" in
3642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3643 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3644 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3645 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3646 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3648 -help | --help | --hel | --he | --h)
3649 echo "\$ac_cs_usage"; exit 0 ;;
3650 *) echo "\$ac_cs_usage"; exit 1 ;;
3654 ac_given_srcdir=$srcdir
3655 ac_given_INSTALL="$INSTALL"
3657 trap 'rm -fr `echo "\
3658 Makefile:build/top.mk:Makefile.in:build/dir.mk \
3659 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
3660 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
3661 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
3662 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
3663 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
3664 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
3665 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
3666 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
3667 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
3668 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
3669 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
3670 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
3671 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
3672 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
3673 include/Makefile:build/top.mk:include/Makefile.in \
3674 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
3675 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
3676 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
3677 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
3678 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
3679 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
3680 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
3681 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
3682 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
3683 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
3684 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
3685 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
3686 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
3687 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
3688 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
3689 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
3690 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
3691 tests/Makefile:build/top.mk:tests/Makefile.in \
3692 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3694 cat >> $CONFIG_STATUS <<EOF
3696 # Protect against being on the right side of a sed subst in config.status.
3697 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3698 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3701 s%@CFLAGS@%$CFLAGS%g
3702 s%@CPPFLAGS@%$CPPFLAGS%g
3703 s%@CXXFLAGS@%$CXXFLAGS%g
3705 s%@LDFLAGS@%$LDFLAGS%g
3707 s%@exec_prefix@%$exec_prefix%g
3708 s%@prefix@%$prefix%g
3709 s%@program_transform_name@%$program_transform_name%g
3710 s%@bindir@%$bindir%g
3711 s%@sbindir@%$sbindir%g
3712 s%@libexecdir@%$libexecdir%g
3713 s%@datadir@%$datadir%g
3714 s%@sysconfdir@%$sysconfdir%g
3715 s%@sharedstatedir@%$sharedstatedir%g
3716 s%@localstatedir@%$localstatedir%g
3717 s%@libdir@%$libdir%g
3718 s%@includedir@%$includedir%g
3719 s%@oldincludedir@%$oldincludedir%g
3720 s%@infodir@%$infodir%g
3721 s%@mandir@%$mandir%g
3725 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3726 s%@INSTALL_DATA@%$INSTALL_DATA%g
3727 s%@RANLIB@%$RANLIB%g
3728 s%@SET_MAKE@%$SET_MAKE%g
3729 s%@SENDMAIL@%$SENDMAIL%g
3730 s%@EDITOR@%$EDITOR%g
3731 s%@FINGER@%$FINGER%g
3732 s%@LIBTERMCAP@%$LIBTERMCAP%g
3733 s%@LIBOBJS@%$LIBOBJS%g
3734 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
3735 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
3736 s%@SLAPD_LDBM@%$SLAPD_LDBM%g
3737 s%@SLAPD_PASSWD@%$SLAPD_PASSWD%g
3738 s%@SLAPD_SHELL@%$SLAPD_SHELL%g
3739 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
3740 s%@LDAP_DEFS@%$LDAP_DEFS%g
3741 s%@LDAP_LIBS@%$LDAP_LIBS%g
3742 s%@LDAPD_DEFS@%$LDAPD_DEFS%g
3743 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
3744 s%@SLAPD_DEFS@%$SLAPD_DEFS%g
3745 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
3746 s%@SLURPD_DEFS@%$SLURPD_DEFS%g
3747 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
3748 s%@LDBM_DEFS@%$LDBM_DEFS%g
3749 s%@LDBM_LIBS@%$LDBM_LIBS%g
3750 s%@LTHREAD_DEFS@%$LTHREAD_DEFS%g
3751 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
3752 s%@LUTIL_DEFS@%$LUTIL_DEFS%g
3753 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
3758 cat >> $CONFIG_STATUS <<\EOF
3760 # Split the substitutions into bite-sized pieces for seds with
3761 # small command number limits, like on Digital OSF/1 and HP-UX.
3762 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3763 ac_file=1 # Number of current file.
3764 ac_beg=1 # First line for current file.
3765 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3768 while $ac_more_lines; do
3769 if test $ac_beg -gt 1; then
3770 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3772 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3774 if test ! -s conftest.s$ac_file; then
3776 rm -f conftest.s$ac_file
3778 if test -z "$ac_sed_cmds"; then
3779 ac_sed_cmds="sed -f conftest.s$ac_file"
3781 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3783 ac_file=`expr $ac_file + 1`
3785 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3788 if test -z "$ac_sed_cmds"; then
3793 cat >> $CONFIG_STATUS <<EOF
3795 CONFIG_FILES=\${CONFIG_FILES-"\
3796 Makefile:build/top.mk:Makefile.in:build/dir.mk \
3797 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
3798 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
3799 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
3800 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
3801 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
3802 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
3803 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
3804 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
3805 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
3806 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
3807 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
3808 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
3809 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
3810 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
3811 include/Makefile:build/top.mk:include/Makefile.in \
3812 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
3813 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
3814 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
3815 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
3816 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
3817 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
3818 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
3819 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
3820 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
3821 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
3822 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
3823 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
3824 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
3825 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
3826 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
3827 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
3828 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
3829 tests/Makefile:build/top.mk:tests/Makefile.in \
3832 cat >> $CONFIG_STATUS <<\EOF
3833 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3836 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3837 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3838 *) ac_file_in="${ac_file}.in" ;;
3841 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3843 # Remove last slash and all that follows it. Not all systems have dirname.
3844 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3846 # The file is in a subdirectory.
3847 test ! -d "$ac_dir" && mkdir "$ac_dir"
3848 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3849 # A "../" for each directory in $ac_dir_suffix.
3850 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3852 ac_dir_suffix= ac_dots=
3855 case "$ac_given_srcdir" in
3857 if test -z "$ac_dots"; then top_srcdir=.
3858 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3859 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3861 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3862 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3865 case "$ac_given_INSTALL" in
3866 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3867 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3870 echo creating "$ac_file"
3872 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3874 *Makefile*) ac_comsub="1i\\
3875 # $configure_input" ;;
3879 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3881 s%@configure_input@%$configure_input%g
3882 s%@srcdir@%$srcdir%g
3883 s%@top_srcdir@%$top_srcdir%g
3884 s%@INSTALL@%$INSTALL%g
3885 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3892 # ac_d sets the value in "#define NAME VALUE" lines.
3893 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3894 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3897 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3898 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3899 ac_uB='\([ ]\)%\1#\2define\3'
3902 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3903 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3904 ac_eB='$%\1#\2define\3'
3908 if test "${CONFIG_HEADERS+set}" != set; then
3910 cat >> $CONFIG_STATUS <<EOF
3911 CONFIG_HEADERS="include/portable.h"
3913 cat >> $CONFIG_STATUS <<\EOF
3915 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3918 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3919 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3920 *) ac_file_in="${ac_file}.in" ;;
3923 echo creating $ac_file
3925 rm -f conftest.frag conftest.in conftest.out
3926 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3927 cat $ac_file_inputs > conftest.in
3931 # Transform confdefs.h into a sed script conftest.vals that substitutes
3932 # the proper values into config.h.in to produce config.h. And first:
3933 # Protect against being on the right side of a sed subst in config.status.
3934 # Protect against being in an unquoted here document in config.status.
3936 cat > conftest.hdr <<\EOF
3939 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3943 sed -n -f conftest.hdr confdefs.h > conftest.vals
3946 # This sed command replaces #undef with comments. This is necessary, for
3947 # example, in the case of _POSIX_SOURCE, which is predefined and required
3948 # on some systems where configure will not decide to define it.
3949 cat >> conftest.vals <<\EOF
3950 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3953 # Break up conftest.vals because some shells have a limit on
3954 # the size of here documents, and old seds have small limits too.
3959 ac_lines=`grep -c . conftest.vals`
3960 # grep -c gives empty output for an empty file on some AIX systems.
3961 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3962 # Write a limited-size here document to conftest.frag.
3963 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3964 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3966 sed -f conftest.frag conftest.in > conftest.out
3968 mv conftest.out conftest.in
3970 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3972 mv conftest.tail conftest.vals
3976 cat >> $CONFIG_STATUS <<\EOF
3977 rm -f conftest.frag conftest.h
3978 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3979 cat conftest.in >> conftest.h
3981 if cmp -s $ac_file conftest.h 2>/dev/null; then
3982 echo "$ac_file is unchanged"
3985 # Remove last slash and all that follows it. Not all systems have dirname.
3986 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3988 # The file is in a subdirectory.
3989 test ! -d "$ac_dir" && mkdir "$ac_dir"
3992 mv conftest.h $ac_file
3997 cat >> $CONFIG_STATUS <<EOF
4000 cat >> $CONFIG_STATUS <<\EOF
4004 chmod +x $CONFIG_STATUS
4005 rm -fr confdefs* $ac_clean_files
4006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1