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-proctitle enable proctitle support (yes)"
20 --enable-libui enable library user interface (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable dns support (no)"
26 --enable-referrals enable referrals (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --with-kerberos use Kerberos (auto)"
34 --with-threads use threads (auto)"
36 --with-preemptive thread implementation is preemptive (auto)"
38 --enable-ldapd enable building ldapd (no)"
40 --enable-slapd enable building slapd (yes)"
42 --enable-aclgroups enable ACL group support (auto)"
44 --enable-crypt enable crypt(3) passwords (auto)"
46 --enable-md5 enable MD5 passwords (auto)"
48 --enable-sha1 enable SHA1 passwords (auto)"
50 --enable-wrappers enable tcp wrapper support (no)"
52 --enable-phonetic enable phonetic/soundex (no)"
54 --enable-rlookups enable reverse lookups (auto)"
56 --enable-ldbm enable ldbm backend (yes)"
58 --with-ldbm-api use LDBM API (auto)"
60 --with-ldbm-type use LDBM type (auto)"
62 --enable-passwd enable passwd backend (no)"
64 --enable-shell enable shell backend (no)"
66 --enable-slurpd enable building slurpd (auto)"
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 configure arguments""... $ac_c" 1>&6
594 echo "configure:595: checking configure arguments" >&5
597 # OpenLDAP --enable-debug
598 # Check whether --enable-debug or --disable-debug was given.
599 if test "${enable_debug+set}" = set; then
600 enableval="$enable_debug"
603 for ol_val in auto yes no ; do
604 if test "$enableval" = "$ol_val" ; then
608 if test "$ol_arg" = "invalid" ; then
609 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
611 ol_enable_debug="$ol_arg"
614 ol_enable_debug="yes"
617 # OpenLDAP --enable-proctitle
618 # Check whether --enable-proctitle or --disable-proctitle was given.
619 if test "${enable_proctitle+set}" = set; then
620 enableval="$enable_proctitle"
623 for ol_val in auto yes no ; do
624 if test "$enableval" = "$ol_val" ; then
628 if test "$ol_arg" = "invalid" ; then
629 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
631 ol_enable_proctitle="$ol_arg"
634 ol_enable_proctitle="yes"
636 # end --enable-proctitle
637 # OpenLDAP --enable-libui
638 # Check whether --enable-libui or --disable-libui was given.
639 if test "${enable_libui+set}" = set; then
640 enableval="$enable_libui"
643 for ol_val in auto yes no ; do
644 if test "$enableval" = "$ol_val" ; then
648 if test "$ol_arg" = "invalid" ; then
649 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
651 ol_enable_libui="$ol_arg"
654 ol_enable_libui="yes"
657 # OpenLDAP --enable-cache
658 # Check whether --enable-cache or --disable-cache was given.
659 if test "${enable_cache+set}" = set; then
660 enableval="$enable_cache"
663 for ol_val in auto yes no ; do
664 if test "$enableval" = "$ol_val" ; then
668 if test "$ol_arg" = "invalid" ; then
669 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
671 ol_enable_cache="$ol_arg"
674 ol_enable_cache="yes"
677 # OpenLDAP --enable-dns
678 # Check whether --enable-dns or --disable-dns was given.
679 if test "${enable_dns+set}" = set; then
680 enableval="$enable_dns"
683 for ol_val in auto yes no ; do
684 if test "$enableval" = "$ol_val" ; then
688 if test "$ol_arg" = "invalid" ; then
689 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
691 ol_enable_dns="$ol_arg"
697 # OpenLDAP --enable-referrals
698 # Check whether --enable-referrals or --disable-referrals was given.
699 if test "${enable_referrals+set}" = set; then
700 enableval="$enable_referrals"
703 for ol_val in auto yes no ; do
704 if test "$enableval" = "$ol_val" ; then
708 if test "$ol_arg" = "invalid" ; then
709 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
711 ol_enable_referrals="$ol_arg"
714 ol_enable_referrals="yes"
716 # end --enable-referrals
717 # OpenLDAP --enable-cldap
718 # Check whether --enable-cldap or --disable-cldap was given.
719 if test "${enable_cldap+set}" = set; then
720 enableval="$enable_cldap"
723 for ol_val in auto yes no ; do
724 if test "$enableval" = "$ol_val" ; then
728 if test "$ol_arg" = "invalid" ; then
729 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
731 ol_enable_cldap="$ol_arg"
737 # OpenLDAP --enable-x_compile
738 # Check whether --enable-x_compile or --disable-x_compile was given.
739 if test "${enable_x_compile+set}" = set; then
740 enableval="$enable_x_compile"
743 for ol_val in yes no ; do
744 if test "$enableval" = "$ol_val" ; then
748 if test "$ol_arg" = "invalid" ; then
749 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
751 ol_enable_x_compile="$ol_arg"
754 ol_enable_x_compile="no"
756 # end --enable-x_compile
758 # OpenLDAP --with-kerberos
759 # Check whether --with-kerberos or --without-kerberos was given.
760 if test "${with_kerberos+set}" = set; then
761 withval="$with_kerberos"
764 for ol_val in auto k5 k4 afs yes no ; do
765 if test "$withval" = "$ol_val" ; then
769 if test "$ol_arg" = "invalid" ; then
770 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
772 ol_with_kerberos="$ol_arg"
775 ol_with_kerberos="auto"
777 # end --with-kerberos
779 # OpenLDAP --with-threads
780 # Check whether --with-threads or --without-threads was given.
781 if test "${with_threads+set}" = set; then
782 withval="$with_threads"
785 for ol_val in auto posix mach lwp yes no manual ; do
786 if test "$withval" = "$ol_val" ; then
790 if test "$ol_arg" = "invalid" ; then
791 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
793 ol_with_threads="$ol_arg"
796 ol_with_threads="auto"
800 # OpenLDAP --with-preemptive
801 # Check whether --with-preemptive or --without-preemptive was given.
802 if test "${with_preemptive+set}" = set; then
803 withval="$with_preemptive"
806 for ol_val in auto yes no manual ; do
807 if test "$withval" = "$ol_val" ; then
811 if test "$ol_arg" = "invalid" ; then
812 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
814 ol_with_preemptive="$ol_arg"
817 ol_with_preemptive="auto"
819 # end --with-preemptive
823 # OpenLDAP --enable-ldapd
824 # Check whether --enable-ldapd or --disable-ldapd was given.
825 if test "${enable_ldapd+set}" = set; then
826 enableval="$enable_ldapd"
829 for ol_val in auto yes no ; do
830 if test "$enableval" = "$ol_val" ; then
834 if test "$ol_arg" = "invalid" ; then
835 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
837 ol_enable_ldapd="$ol_arg"
844 # OpenLDAP --enable-slapd
845 # Check whether --enable-slapd or --disable-slapd was given.
846 if test "${enable_slapd+set}" = set; then
847 enableval="$enable_slapd"
850 for ol_val in auto yes no ; do
851 if test "$enableval" = "$ol_val" ; then
855 if test "$ol_arg" = "invalid" ; then
856 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
858 ol_enable_slapd="$ol_arg"
861 ol_enable_slapd="yes"
864 # OpenLDAP --enable-aclgroups
865 # Check whether --enable-aclgroups or --disable-aclgroups was given.
866 if test "${enable_aclgroups+set}" = set; then
867 enableval="$enable_aclgroups"
870 for ol_val in auto yes no ; do
871 if test "$enableval" = "$ol_val" ; then
875 if test "$ol_arg" = "invalid" ; then
876 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
878 ol_enable_aclgroups="$ol_arg"
881 ol_enable_aclgroups="auto"
883 # end --enable-aclgroups
884 # OpenLDAP --enable-crypt
885 # Check whether --enable-crypt or --disable-crypt was given.
886 if test "${enable_crypt+set}" = set; then
887 enableval="$enable_crypt"
890 for ol_val in auto yes no ; do
891 if test "$enableval" = "$ol_val" ; then
895 if test "$ol_arg" = "invalid" ; then
896 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
898 ol_enable_crypt="$ol_arg"
901 ol_enable_crypt="auto"
904 # OpenLDAP --enable-md5
905 # Check whether --enable-md5 or --disable-md5 was given.
906 if test "${enable_md5+set}" = set; then
907 enableval="$enable_md5"
910 for ol_val in auto yes no ; do
911 if test "$enableval" = "$ol_val" ; then
915 if test "$ol_arg" = "invalid" ; then
916 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
918 ol_enable_md5="$ol_arg"
924 # OpenLDAP --enable-sha1
925 # Check whether --enable-sha1 or --disable-sha1 was given.
926 if test "${enable_sha1+set}" = set; then
927 enableval="$enable_sha1"
930 for ol_val in auto yes no ; do
931 if test "$enableval" = "$ol_val" ; then
935 if test "$ol_arg" = "invalid" ; then
936 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
938 ol_enable_sha1="$ol_arg"
941 ol_enable_sha1="auto"
944 # OpenLDAP --enable-wrappers
945 # Check whether --enable-wrappers or --disable-wrappers was given.
946 if test "${enable_wrappers+set}" = set; then
947 enableval="$enable_wrappers"
950 for ol_val in auto yes no ; do
951 if test "$enableval" = "$ol_val" ; then
955 if test "$ol_arg" = "invalid" ; then
956 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
958 ol_enable_wrappers="$ol_arg"
961 ol_enable_wrappers="no"
963 # end --enable-wrappers
964 # OpenLDAP --enable-phonetic
965 # Check whether --enable-phonetic or --disable-phonetic was given.
966 if test "${enable_phonetic+set}" = set; then
967 enableval="$enable_phonetic"
970 for ol_val in auto yes no ; do
971 if test "$enableval" = "$ol_val" ; then
975 if test "$ol_arg" = "invalid" ; then
976 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
978 ol_enable_phonetic="$ol_arg"
981 ol_enable_phonetic="no"
983 # end --enable-phonetic
984 # OpenLDAP --enable-rlookups
985 # Check whether --enable-rlookups or --disable-rlookups was given.
986 if test "${enable_rlookups+set}" = set; then
987 enableval="$enable_rlookups"
990 for ol_val in auto yes no ; do
991 if test "$enableval" = "$ol_val" ; then
995 if test "$ol_arg" = "invalid" ; then
996 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
998 ol_enable_rlookups="$ol_arg"
1001 ol_enable_rlookups="auto"
1003 # end --enable-rlookups
1005 # OpenLDAP --enable-ldbm
1006 # Check whether --enable-ldbm or --disable-ldbm was given.
1007 if test "${enable_ldbm+set}" = set; then
1008 enableval="$enable_ldbm"
1011 for ol_val in auto yes no ; do
1012 if test "$enableval" = "$ol_val" ; then
1016 if test "$ol_arg" = "invalid" ; then
1017 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1019 ol_enable_ldbm="$ol_arg"
1022 ol_enable_ldbm="yes"
1025 # OpenLDAP --with-ldbm_api
1026 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1027 if test "${with_ldbm_api+set}" = set; then
1028 withval="$with_ldbm_api"
1031 for ol_val in auto db2 db gdbm ndbm manual ; do
1032 if test "$withval" = "$ol_val" ; then
1036 if test "$ol_arg" = "invalid" ; then
1037 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1039 ol_with_ldbm_api="$ol_arg"
1042 ol_with_ldbm_api="auto"
1044 # end --with-ldbm_api
1046 # OpenLDAP --with-ldbm_type
1047 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1048 if test "${with_ldbm_type+set}" = set; then
1049 withval="$with_ldbm_type"
1052 for ol_val in auto btree hash ; do
1053 if test "$withval" = "$ol_val" ; then
1057 if test "$ol_arg" = "invalid" ; then
1058 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1060 ol_with_ldbm_type="$ol_arg"
1063 ol_with_ldbm_type="auto"
1065 # end --with-ldbm_type
1068 # OpenLDAP --enable-passwd
1069 # Check whether --enable-passwd or --disable-passwd was given.
1070 if test "${enable_passwd+set}" = set; then
1071 enableval="$enable_passwd"
1074 for ol_val in auto yes no ; do
1075 if test "$enableval" = "$ol_val" ; then
1079 if test "$ol_arg" = "invalid" ; then
1080 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1082 ol_enable_passwd="$ol_arg"
1085 ol_enable_passwd="no"
1087 # end --enable-passwd
1088 # OpenLDAP --enable-shell
1089 # Check whether --enable-shell or --disable-shell was given.
1090 if test "${enable_shell+set}" = set; then
1091 enableval="$enable_shell"
1094 for ol_val in auto yes no ; do
1095 if test "$enableval" = "$ol_val" ; then
1099 if test "$ol_arg" = "invalid" ; then
1100 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1102 ol_enable_shell="$ol_arg"
1105 ol_enable_shell="no"
1107 # end --enable-shell
1109 # OpenLDAP --enable-slurpd
1110 # Check whether --enable-slurpd or --disable-slurpd was given.
1111 if test "${enable_slurpd+set}" = set; then
1112 enableval="$enable_slurpd"
1115 for ol_val in auto yes no ; do
1116 if test "$enableval" = "$ol_val" ; then
1120 if test "$ol_arg" = "invalid" ; then
1121 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1123 ol_enable_slurpd="$ol_arg"
1126 ol_enable_slurpd="auto"
1128 # end --enable-slurpd
1130 if test $ol_enable_slapd = no ; then
1131 if test $ol_enable_ldbm = yes ; then
1132 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1134 if test $ol_enable_passwd = yes ; then
1135 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1137 if test $ol_enable_shell = yes ; then
1138 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1140 if test $ol_enable_aclgroups = yes ; then
1141 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1143 if test $ol_enable_crypt = yes ; then
1144 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1146 if test $ol_enable_md5 = yes ; then
1147 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1149 if test $ol_enable_sha1 = yes ; then
1150 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1152 if test $ol_enable_wrappers = yes ; then
1153 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1155 if test $ol_enable_phonetic = yes ; then
1156 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1158 if test $ol_enable_rlookups = yes ; then
1159 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1161 if test $ol_with_ldbm_api != auto ; then
1162 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1164 if test $ol_with_ldbm_type != auto ; then
1165 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1167 if test $ol_enable_slurpd = yes ; then
1168 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1171 # force settings to no
1175 ol_enable_aclgroups=no
1179 ol_enable_wrappers=no
1180 ol_enable_phonetic=no
1181 ol_enable_rlookups=no
1183 ol_with_ldbm_type=no
1186 elif test $ol_enable_ldbm = no ; then
1188 if test $ol_with_ldbm_api != auto ; then
1189 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1192 if test $ol_with_ldbm_type != auto ; then
1193 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1196 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1197 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1201 ol_with_ldbm_type=no
1205 if test $ol_with_ldbm_api = gdbm -a \
1206 $ol_with_ldbm_type = btree ; then
1207 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1209 if test $ol_with_ldbm_api = ndbm -a \
1210 $ol_with_ldbm_type = btree ; then
1211 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1215 if test $ol_enable_slurpd = yes ; then
1216 if test $ol_with_threads = no ; then
1217 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1221 echo "$ac_t""done" 1>&6
1245 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ln -s works" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1251 if ln -s X conftestdata 2>/dev/null
1254 ac_cv_prog_LN_S="ln -s"
1259 LN_S="$ac_cv_prog_LN_S"
1260 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1261 echo "$ac_t""yes" 1>&6
1263 echo "$ac_t""no" 1>&6
1266 # Find a good install program. We prefer a C program (faster),
1267 # so one script is as good as another. But avoid the broken or
1268 # incompatible versions:
1269 # SysV /etc/install, /usr/sbin/install
1270 # SunOS /usr/etc/install
1271 # IRIX /sbin/install
1273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1275 # ./install, which can be erroneously created by make from ./install.sh.
1276 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1277 echo "configure:1278: checking for a BSD compatible install" >&5
1278 if test -z "$INSTALL"; then
1279 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1283 for ac_dir in $PATH; do
1284 # Account for people who put trailing slashes in PATH elements.
1286 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1288 # OSF1 and SCO ODT 3.0 have their own names for install.
1289 for ac_prog in ginstall installbsd scoinst install; do
1290 if test -f $ac_dir/$ac_prog; then
1291 if test $ac_prog = install &&
1292 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1293 # AIX install. It has an incompatible calling convention.
1294 # OSF/1 installbsd also uses dspmsg, but is usable.
1297 ac_cv_path_install="$ac_dir/$ac_prog -c"
1308 if test "${ac_cv_path_install+set}" = set; then
1309 INSTALL="$ac_cv_path_install"
1311 # As a last resort, use the slow shell script. We don't cache a
1312 # path for INSTALL within a source directory, because that will
1313 # break other packages using the cache if that directory is
1314 # removed, or if the path is relative.
1315 INSTALL="$ac_install_sh"
1318 echo "$ac_t""$INSTALL" 1>&6
1320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1321 # It thinks the first close brace ends the variable substitution.
1322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1326 # Extract the first word of "ranlib", so it can be a program name with args.
1327 set dummy ranlib; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test -n "$RANLIB"; then
1334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1337 for ac_dir in $PATH; do
1338 test -z "$ac_dir" && ac_dir=.
1339 if test -f $ac_dir/$ac_word; then
1340 ac_cv_prog_RANLIB="ranlib"
1345 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1348 RANLIB="$ac_cv_prog_RANLIB"
1349 if test -n "$RANLIB"; then
1350 echo "$ac_t""$RANLIB" 1>&6
1352 echo "$ac_t""no" 1>&6
1355 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ${MAKE-make} sets \${MAKE}" >&5
1357 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1358 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftestmake <<\EOF
1363 @echo 'ac_maketemp="${MAKE}"'
1365 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1366 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1367 if test -n "$ac_maketemp"; then
1368 eval ac_cv_prog_make_${ac_make}_set=yes
1370 eval ac_cv_prog_make_${ac_make}_set=no
1374 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1378 echo "$ac_t""no" 1>&6
1379 SET_MAKE="MAKE=${MAKE-make}"
1383 # Extract the first word of "sendmail", so it can be a program name with args.
1384 set dummy sendmail; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1396 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1397 test -z "$ac_dir" && ac_dir=.
1398 if test -f $ac_dir/$ac_word; then
1399 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1404 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1408 SENDMAIL="$ac_cv_path_SENDMAIL"
1409 if test -n "$SENDMAIL"; then
1410 echo "$ac_t""$SENDMAIL" 1>&6
1412 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "vi", so it can be a program name with args.
1416 set dummy vi; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1424 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1428 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1436 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1440 EDITOR="$ac_cv_path_EDITOR"
1441 if test -n "$EDITOR"; then
1442 echo "$ac_t""$EDITOR" 1>&6
1444 echo "$ac_t""no" 1>&6
1447 # Extract the first word of "finger", so it can be a program name with args.
1448 set dummy finger; ac_word=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1456 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1460 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1461 test -z "$ac_dir" && ac_dir=.
1462 if test -f $ac_dir/$ac_word; then
1463 ac_cv_path_FINGER="$ac_dir/$ac_word"
1468 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1472 FINGER="$ac_cv_path_FINGER"
1473 if test -n "$FINGER"; then
1474 echo "$ac_t""$FINGER" 1>&6
1476 echo "$ac_t""no" 1>&6
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481 set dummy gcc; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1491 for ac_dir in $PATH; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1502 if test -n "$CC"; then
1503 echo "$ac_t""$CC" 1>&6
1505 echo "$ac_t""no" 1>&6
1508 if test -z "$CC"; then
1509 # Extract the first word of "cc", so it can be a program name with args.
1510 set dummy cc; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1521 for ac_dir in $PATH; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1525 ac_prog_rejected=yes
1533 if test $ac_prog_rejected = yes; then
1534 # We found a bogon in the path, so make sure we never use it.
1535 set dummy $ac_cv_prog_CC
1537 if test $# -gt 0; then
1538 # We chose a different compiler from the bogus one.
1539 # However, it has the same basename, so the bogon will be chosen
1540 # first if we set CC to just the basename; use the full file name.
1542 set dummy "$ac_dir/$ac_word" "$@"
1550 if test -n "$CC"; then
1551 echo "$ac_t""$CC" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1559 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1566 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1567 cross_compiling=$ac_cv_prog_cc_cross
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1575 ac_cv_prog_cc_works=yes
1576 # If we can't run a trivial program, we are probably using a cross compiler.
1577 if (./conftest; exit) 2>/dev/null; then
1578 ac_cv_prog_cc_cross=no
1580 ac_cv_prog_cc_cross=yes
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 ac_cv_prog_cc_works=no
1589 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1590 if test $ac_cv_prog_cc_works = no; then
1591 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1593 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1595 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1596 cross_compiling=$ac_cv_prog_cc_cross
1598 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether we are using GNU C" >&5
1600 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 cat > conftest.c <<EOF
1608 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1615 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1617 if test $ac_cv_prog_gcc = yes; then
1619 ac_test_CFLAGS="${CFLAGS+set}"
1620 ac_save_CFLAGS="$CFLAGS"
1622 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether ${CC-cc} accepts -g" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 echo 'void f(){}' > conftest.c
1628 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1637 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1638 if test "$ac_test_CFLAGS" = set; then
1639 CFLAGS="$ac_save_CFLAGS"
1640 elif test $ac_cv_prog_cc_g = yes; then
1647 test "${CFLAGS+set}" = set || CFLAGS="-g"
1651 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
1652 echo "configure: warning: cross compiling.... go for it" 1>&2
1654 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
1655 echo "configure: warning: programs compiled here do run here..." 1>&2
1656 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
1658 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
1659 echo "configure: warning: programs compiled here do not run here..." 1>&2
1660 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
1663 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1664 echo "configure:1665: checking how to run the C preprocessor" >&5
1665 # On Suns, sometimes $CPP names a directory.
1666 if test -n "$CPP" && test -d "$CPP"; then
1669 if test -z "$CPP"; then
1670 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 # This must be in double quotes, not single quotes, because CPP may get
1674 # substituted into the Makefile and "${CC-cc}" will confuse make.
1676 # On the NeXT, cc -E runs the code through the compiler's parser,
1677 # not just through cpp.
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685 { (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686 ac_err=`grep -v '^ *+' conftest.out`
1687 if test -z "$ac_err"; then
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1694 CPP="${CC-cc} -E -traditional-cpp"
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1702 { (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1703 ac_err=`grep -v '^ *+' conftest.out`
1704 if test -z "$ac_err"; then
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1716 ac_cv_prog_CPP="$CPP"
1718 CPP="$ac_cv_prog_CPP"
1720 ac_cv_prog_CPP="$CPP"
1722 echo "$ac_t""$CPP" 1>&6
1726 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1727 echo "configure:1728: checking for AIX" >&5
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1737 egrep "yes" >/dev/null 2>&1; then
1739 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1740 #define _ALL_SOURCE 1
1745 echo "$ac_t""no" 1>&6
1750 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1751 echo "configure:1752: checking for POSIXized ISC" >&5
1752 if test -d /etc/conf/kconfig.d &&
1753 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1755 echo "$ac_t""yes" 1>&6
1756 ISC=yes # If later tests want to check for ISC.
1757 cat >> confdefs.h <<\EOF
1758 #define _POSIX_SOURCE 1
1761 if test "$GCC" = yes; then
1767 echo "$ac_t""no" 1>&6
1771 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1772 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1773 echo "configure:1774: checking for minix/config.h" >&5
1774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 #include <minix/config.h>
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1784 ac_err=`grep -v '^ *+' conftest.out`
1785 if test -z "$ac_err"; then
1787 eval "ac_cv_header_$ac_safe=yes"
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1793 eval "ac_cv_header_$ac_safe=no"
1797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1798 echo "$ac_t""yes" 1>&6
1801 echo "$ac_t""no" 1>&6
1805 if test "$MINIX" = yes; then
1806 cat >> confdefs.h <<\EOF
1807 #define _POSIX_SOURCE 1
1810 cat >> confdefs.h <<\EOF
1811 #define _POSIX_1_SOURCE 2
1814 cat >> confdefs.h <<\EOF
1823 echo $ac_n "checking for socket""... $ac_c" 1>&6
1824 echo "configure:1825: checking for socket" >&5
1825 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char socket(); below. */
1834 /* Override any gcc2 internal prototype to avoid an error. */
1835 /* We use char because int might match the return type of a gcc2
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined (__stub_socket) || defined (__stub___socket)
1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1854 eval "ac_cv_func_socket=yes"
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1859 eval "ac_cv_func_socket=no"
1864 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1865 echo "$ac_t""yes" 1>&6
1868 echo "$ac_t""no" 1>&6
1870 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1871 echo "configure:1872: checking for main in -lsocket" >&5
1872 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 ac_save_LIBS="$LIBS"
1877 LIBS="-lsocket $LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1888 eval "ac_cv_lib_$ac_lib_var=yes"
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 eval "ac_cv_lib_$ac_lib_var=no"
1896 LIBS="$ac_save_LIBS"
1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1900 echo "$ac_t""yes" 1>&6
1901 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1903 cat >> confdefs.h <<EOF
1904 #define $ac_tr_lib 1
1907 LIBS="-lsocket $LIBS"
1910 echo "$ac_t""no" 1>&6
1913 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1914 echo "configure:1915: checking for main in -lnet" >&5
1915 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 ac_save_LIBS="$LIBS"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1931 eval "ac_cv_lib_$ac_lib_var=yes"
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1936 eval "ac_cv_lib_$ac_lib_var=no"
1939 LIBS="$ac_save_LIBS"
1942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1943 echo "$ac_t""yes" 1>&6
1944 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1946 cat >> confdefs.h <<EOF
1947 #define $ac_tr_lib 1
1953 echo "$ac_t""no" 1>&6
1956 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1957 echo "configure:1958: checking for main in -lnsl_s" >&5
1958 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 ac_save_LIBS="$LIBS"
1963 LIBS="-lnsl_s $LIBS"
1964 cat > conftest.$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1972 if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1974 eval "ac_cv_lib_$ac_lib_var=yes"
1976 echo "configure: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1979 eval "ac_cv_lib_$ac_lib_var=no"
1982 LIBS="$ac_save_LIBS"
1985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1989 cat >> confdefs.h <<EOF
1990 #define $ac_tr_lib 1
1993 LIBS="-lnsl_s $LIBS"
1996 echo "$ac_t""no" 1>&6
1999 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2000 echo "configure:2001: checking for main in -lnsl" >&5
2001 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 ac_save_LIBS="$LIBS"
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2015 if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2017 eval "ac_cv_lib_$ac_lib_var=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2022 eval "ac_cv_lib_$ac_lib_var=no"
2025 LIBS="$ac_save_LIBS"
2028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2029 echo "$ac_t""yes" 1>&6
2030 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2031 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2032 cat >> confdefs.h <<EOF
2033 #define $ac_tr_lib 1
2039 echo "$ac_t""no" 1>&6
2042 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2043 echo "configure:2044: checking for socket in -linet" >&5
2044 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 ac_save_LIBS="$LIBS"
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2053 /* Override any gcc2 internal prototype to avoid an error. */
2054 /* We use char because int might match the return type of a gcc2
2055 builtin and then its argument prototype would still apply. */
2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2064 eval "ac_cv_lib_$ac_lib_var=yes"
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 eval "ac_cv_lib_$ac_lib_var=no"
2072 LIBS="$ac_save_LIBS"
2075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2078 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2079 cat >> confdefs.h <<EOF
2080 #define $ac_tr_lib 1
2086 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2090 echo "configure:2091: checking for main in -lgen" >&5
2091 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 ac_save_LIBS="$LIBS"
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2107 eval "ac_cv_lib_$ac_lib_var=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_lib_$ac_lib_var=no"
2115 LIBS="$ac_save_LIBS"
2118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2119 echo "$ac_t""yes" 1>&6
2120 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2122 cat >> confdefs.h <<EOF
2123 #define $ac_tr_lib 1
2129 echo "$ac_t""no" 1>&6
2137 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2138 echo "configure:2139: checking for sigset in -lV3" >&5
2139 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 ac_save_LIBS="$LIBS"
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2159 eval "ac_cv_lib_$ac_lib_var=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_lib_$ac_lib_var=no"
2167 LIBS="$ac_save_LIBS"
2170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_lib 1
2181 echo "$ac_t""no" 1>&6
2187 if test $ol_enable_ldapd != no ; then
2188 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2189 echo "configure:2190: checking for main in -lxtpp" >&5
2190 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 ac_save_LIBS="$LIBS"
2195 LIBS="-lxtpp -lresolv -lxtdsap -lxtisode -losi $LIBS"
2196 cat > conftest.$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2206 eval "ac_cv_lib_$ac_lib_var=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 eval "ac_cv_lib_$ac_lib_var=no"
2214 LIBS="$ac_save_LIBS"
2217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2221 cat >> confdefs.h <<\EOF
2225 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lresolv -lxtdsap -lxtisode -losi"
2228 echo "$ac_t""no" 1>&6
2232 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2233 echo "configure:2234: checking for main in -ldsap" >&5
2234 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 ac_save_LIBS="$LIBS"
2239 LIBS="-ldsap -lisode $LIBS"
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2248 if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2250 eval "ac_cv_lib_$ac_lib_var=yes"
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 eval "ac_cv_lib_$ac_lib_var=no"
2258 LIBS="$ac_save_LIBS"
2261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2265 cat >> confdefs.h <<\EOF
2269 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2272 echo "$ac_t""no" 1>&6
2276 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2277 echo "configure:2278: checking for main in -lisode" >&5
2278 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 ac_save_LIBS="$LIBS"
2283 LIBS="-lisode $LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2292 if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2294 eval "ac_cv_lib_$ac_lib_var=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 eval "ac_cv_lib_$ac_lib_var=no"
2302 LIBS="$ac_save_LIBS"
2305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2306 echo "$ac_t""yes" 1>&6
2309 cat >> confdefs.h <<\EOF
2310 #define HAVE_ISODE 1
2313 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2316 echo "$ac_t""no" 1>&6
2322 if test $ol_link_isode != no; then
2323 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2324 echo "configure:2325: checking for main in -lpp" >&5
2325 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 ac_save_LIBS="$LIBS"
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2339 if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2341 eval "ac_cv_lib_$ac_lib_var=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 eval "ac_cv_lib_$ac_lib_var=no"
2349 LIBS="$ac_save_LIBS"
2352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2353 echo "$ac_t""yes" 1>&6
2355 cat >> confdefs.h <<\EOF
2359 LDAPD_LIBS="-lpp $LDAPD_LIBS"
2362 echo "$ac_t""no" 1>&6
2367 # Extract the first word of "pepsy", so it can be a program name with args.
2368 set dummy pepsy; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2376 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
2379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2380 for ac_dir in $PATH; do
2381 test -z "$ac_dir" && ac_dir=.
2382 if test -f $ac_dir/$ac_word; then
2383 ac_cv_path_PEPSY="$ac_dir/$ac_word"
2391 PEPSY="$ac_cv_path_PEPSY"
2392 if test -n "$PEPSY"; then
2393 echo "$ac_t""$PEPSY" 1>&6
2395 echo "$ac_t""no" 1>&6
2400 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2401 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_hdr" >&5
2406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2415 { (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2416 ac_err=`grep -v '^ *+' conftest.out`
2417 if test -z "$ac_err"; then
2419 eval "ac_cv_header_$ac_safe=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_header_$ac_safe=no"
2429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2432 cat >> confdefs.h <<EOF
2433 #define $ac_tr_hdr 1
2437 echo "$ac_t""no" 1>&6
2442 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2443 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2444 echo "configure:2445: checking for main in -lkrb4" >&5
2445 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 ac_save_LIBS="$LIBS"
2450 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2476 echo "$ac_t""no" 1>&6
2481 if test $have_k5 = yes ; then
2482 ol_with_kerberos=found
2483 ol_link_kerberos=yes
2485 cat >> confdefs.h <<\EOF
2486 #define HAVE_KERBEROS 1
2490 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2494 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2495 for ac_hdr in krb.h des.h
2497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_hdr" >&5
2500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2509 { (eval echo configure:2510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2510 ac_err=`grep -v '^ *+' conftest.out`
2511 if test -z "$ac_err"; then
2513 eval "ac_cv_header_$ac_safe=yes"
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2519 eval "ac_cv_header_$ac_safe=no"
2523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2526 cat >> confdefs.h <<EOF
2527 #define $ac_tr_hdr 1
2531 echo "$ac_t""no" 1>&6
2536 if test $ac_cv_header_krb_h = yes ; then
2537 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2538 echo "configure:2539: checking for main in -lkrb" >&5
2539 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 ac_save_LIBS="$LIBS"
2544 LIBS="-lkrb -ldes $LIBS"
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2555 eval "ac_cv_lib_$ac_lib_var=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_lib_$ac_lib_var=no"
2563 LIBS="$ac_save_LIBS"
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2570 echo "$ac_t""no" 1>&6
2575 if test $have_k4 = yes ; then
2576 ol_with_kerberos=found
2577 ol_link_kerberos=yes
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_KERBEROS 1
2584 KRB_LIBS="-lkrb -ldes"
2591 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2592 for ac_hdr in pthread.h sched.h
2594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2596 echo "configure:2597: checking for $ac_hdr" >&5
2597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2606 { (eval echo configure:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2607 ac_err=`grep -v '^ *+' conftest.out`
2608 if test -z "$ac_err"; then
2610 eval "ac_cv_header_$ac_safe=yes"
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2616 eval "ac_cv_header_$ac_safe=no"
2620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_hdr 1
2628 echo "$ac_t""no" 1>&6
2633 if test $ac_cv_header_pthread_h = yes ; then
2634 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2635 echo "configure:2636: checking POSIX thread version" >&5
2636 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2644 # include <pthread.h>
2645 /* this check could be improved */
2646 # ifdef PTHREAD_ONCE_INIT
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652 egrep "final" >/dev/null 2>&1; then
2654 ol_pthread_final=yes
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2666 # include <pthread.h>
2667 /* this check could be improved */
2668 # ifdef pthread_once_init
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674 egrep "draft4" >/dev/null 2>&1; then
2676 ol_pthread_draft4=yes
2679 ol_pthread_draft4=no
2684 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2685 ol_cv_pthread_version=final
2686 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2687 ol_cv_pthread_version=draft4
2689 ol_cv_pthread_version=unknown
2694 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2697 if test $ol_cv_pthread_version = final ; then
2698 cat >> confdefs.h <<\EOF
2699 #define HAVE_PTHREADS_FINAL 1
2702 elif test $ol_cv_pthread_version = draft4 ; then
2703 cat >> confdefs.h <<\EOF
2704 #define HAVE_PTHREADS_D4 1
2708 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2711 # consider threads found
2712 ol_with_threads=found
2715 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2716 echo "configure:2717: checking for LinuxThreads" >&5
2717 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2721 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2722 if test "$res" -gt 0 ; then
2723 ol_cv_linux_threads=yes
2725 ol_cv_linux_threads=no
2730 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2733 if test $ol_cv_linux_threads = yes ; then
2734 cat >> confdefs.h <<\EOF
2735 #define HAVE_LINUX_THREADS 1
2741 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2742 echo "configure:2743: checking for pthread_create" >&5
2743 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 /* System header to define __stub macros and hopefully few prototypes,
2750 which can conflict with char pthread_create(); below. */
2752 /* Override any gcc2 internal prototype to avoid an error. */
2753 /* We use char because int might match the return type of a gcc2
2754 builtin and then its argument prototype would still apply. */
2755 char pthread_create();
2759 /* The GNU C library defines this for functions which it implements
2760 to always fail with ENOSYS. Some functions are actually named
2761 something starting with __ and the normal name is an alias. */
2762 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2770 if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2772 eval "ac_cv_func_pthread_create=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 eval "ac_cv_func_pthread_create=no"
2782 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2786 echo "$ac_t""no" 1>&6
2790 if test $ol_link_threads = no ; then
2791 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2792 echo "configure:2793: checking for pthread_create with -pthread" >&5
2793 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2798 LIBS="-pthread $LIBS"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <pthread.h>
2805 pthread_create((pthread_t*) 0,
2806 (pthread_attr_t*) 0, 0, 0);
2810 if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2812 ol_cv_pthread_flag=yes
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 ol_cv_pthread_flag=no
2824 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2826 if test $ol_cv_pthread_flag = yes ; then
2827 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2828 ol_link_threads=posix
2832 if test $ol_link_threads = no ; then
2834 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2835 echo "configure:2836: checking for pthread_create in -lpthread" >&5
2836 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2840 ac_save_LIBS="$LIBS"
2841 LIBS="-lpthread $LIBS"
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 /* Override any gcc2 internal prototype to avoid an error. */
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2848 char pthread_create();
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2856 eval "ac_cv_lib_$ac_lib_var=yes"
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 eval "ac_cv_lib_$ac_lib_var=no"
2864 LIBS="$ac_save_LIBS"
2867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2868 echo "$ac_t""yes" 1>&6
2870 ol_link_threads=posix
2871 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
2873 echo "$ac_t""no" 1>&6
2879 if test $ol_link_threads = no ; then
2881 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2882 echo "configure:2883: checking for pthread_create in -lc_r" >&5
2883 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 ac_save_LIBS="$LIBS"
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 /* Override any gcc2 internal prototype to avoid an error. */
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2895 char pthread_create();
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2903 eval "ac_cv_lib_$ac_lib_var=yes"
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 eval "ac_cv_lib_$ac_lib_var=no"
2911 LIBS="$ac_save_LIBS"
2914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2917 ol_link_threads=posix
2918 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
2920 echo "$ac_t""no" 1>&6
2926 if test $ol_link_threads = no ; then
2928 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2929 echo "configure:2930: checking for pthread_create in -lpthread" >&5
2930 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 ac_save_LIBS="$LIBS"
2935 LIBS="-lpthread -lmach -lexc -lc $LIBS"
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2942 char pthread_create();
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2950 eval "ac_cv_lib_$ac_lib_var=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 eval "ac_cv_lib_$ac_lib_var=no"
2958 LIBS="$ac_save_LIBS"
2961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2962 echo "$ac_t""yes" 1>&6
2964 cat >> confdefs.h <<\EOF
2968 ol_link_threads=posix
2969 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc"
2970 if test $ol_with_preemptive = auto ; then
2971 ol_with_preemptive=yes
2975 echo "$ac_t""no" 1>&6
2981 if test $ol_link_threads != no ; then
2982 cat >> confdefs.h <<\EOF
2983 #define HAVE_PTHREADS 1
2987 save_CPPFLAGS="$CPPFLAGS"
2989 LIBS="$LTHREAD_LIBS $LIBS"
2991 for ac_func in sched_yield pthread_yield
2993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_func" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char $ac_func(); below. */
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3024 eval "ac_cv_func_$ac_func=yes"
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3029 eval "ac_cv_func_$ac_func=no"
3034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3037 cat >> confdefs.h <<EOF
3038 #define $ac_tr_func 1
3042 echo "$ac_t""no" 1>&6
3047 if test $ac_cv_func_sched_yield = no -a \
3048 $ac_cv_func_pthread_yield = no ; then
3049 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3050 echo "configure:3051: checking for sched_yield in -lrt" >&5
3051 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 ac_save_LIBS="$LIBS"
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3069 if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3071 eval "ac_cv_lib_$ac_lib_var=yes"
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3076 eval "ac_cv_lib_$ac_lib_var=no"
3079 LIBS="$ac_save_LIBS"
3082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3083 echo "$ac_t""yes" 1>&6
3084 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_SCHED_YIELD 1
3089 ac_cv_func_sched_yield=yes
3091 echo "$ac_t""no" 1>&6
3092 ac_cv_func_sched_yield=no
3096 if test $ac_cv_func_sched_yield = no -a \
3097 $ac_cv_func_pthread_yield = no ; then
3098 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3099 echo "configure:3100: checking for sched_yield in -lposix4" >&5
3100 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 ac_save_LIBS="$LIBS"
3105 LIBS="-lposix4 $LIBS"
3106 cat > conftest.$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 /* Override any gcc2 internal prototype to avoid an error. */
3110 /* We use char because int might match the return type of a gcc2
3111 builtin and then its argument prototype would still apply. */
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3120 eval "ac_cv_lib_$ac_lib_var=yes"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3125 eval "ac_cv_lib_$ac_lib_var=no"
3128 LIBS="$ac_save_LIBS"
3131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3134 cat >> confdefs.h <<\EOF
3135 #define HAVE_SCHED_YIELD 1
3138 ac_cv_func_sched_yield=yes
3140 echo "$ac_t""no" 1>&6
3141 ac_cv_func_sched_yield=no
3145 if test $ac_cv_func_sched_yield = no -a \
3146 $ac_cv_func_pthread_yield = no ; then
3147 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3148 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3151 for ac_func in pthread_kill
3153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_func" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char $ac_func(); below. */
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3184 eval "ac_cv_func_$ac_func=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_func_$ac_func=no"
3194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3197 cat >> confdefs.h <<EOF
3198 #define $ac_tr_func 1
3202 echo "$ac_t""no" 1>&6
3208 pthread_setconcurrency \
3209 thr_setconcurrency \
3212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_func" >&5
3214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 /* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char $ac_func(); below. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3243 eval "ac_cv_func_$ac_func=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_func_$ac_func=no"
3253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3256 cat >> confdefs.h <<EOF
3257 #define $ac_tr_func 1
3261 echo "$ac_t""no" 1>&6
3266 if test $ol_with_preemptive = auto ; then
3267 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
3268 echo "configure:3269: checking for preemptive Pthread implementation" >&5
3269 if test "$cross_compiling" = yes; then
3271 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3277 #include <sys/types.h>
3278 #include <sys/time.h>
3280 #include <pthread.h>
3292 select(0, NULL, NULL, NULL, &tv);
3296 select(0, NULL, NULL, NULL, &tv);
3298 exit(1); /* if we exit here, the select blocked the whole process */
3302 int argc; char **argv;
3306 #ifdef HAVE_PTHREAD_SETCONCURRENCY
3307 (void) pthread_setconcurrency(2);
3308 #elif HAVE_THR_SETCONCURRENCY
3309 /* Set Solaris LWP concurrency to 2 */
3310 thr_setconcurrency(2);
3313 pthread_create(&t, NULL, (void *) task, NULL);
3315 #if HAVE_SCHED_YIELD
3316 sched_yield(); /* make sure task runs first */
3318 #if defined(HAVE_PTHREAD_YIELD)
3319 pthread_yield(); /* make sure task runs first */
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3328 ol_pthread_preemptive=yes
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 ol_pthread_preemptive=no
3338 echo "$ac_t""$ol_pthread_preemptive" 1>&6
3340 if test $ol_pthread_preemptive = yes ; then
3341 cat >> confdefs.h <<\EOF
3342 #define HAVE_PREEMPTIVE_PTHREADS 1
3345 ol_with_preemptive=yes
3350 CPPFLAGS="$save_CPPFLAGS"
3353 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3357 if test $ol_with_threads = posix ; then
3358 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3362 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3363 for ac_hdr in mach/cthreads.h
3365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_hdr" >&5
3368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3377 { (eval echo configure:3378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3378 ac_err=`grep -v '^ *+' conftest.out`
3379 if test -z "$ac_err"; then
3381 eval "ac_cv_header_$ac_safe=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_header_$ac_safe=no"
3391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_hdr 1
3399 echo "$ac_t""no" 1>&6
3403 if test $ac_cv_header_mach_cthreads_h = yes ; then
3404 ol_with_threads=found
3406 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3407 echo "configure:3408: checking for cthread_fork" >&5
3408 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+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 cthread_fork(); 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. */
3420 char cthread_fork();
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_cthread_fork) || defined (__stub___cthread_fork)
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3437 eval "ac_cv_func_cthread_fork=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_func_cthread_fork=no"
3447 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3448 echo "$ac_t""yes" 1>&6
3451 echo "$ac_t""no" 1>&6
3455 if test $ol_link_threads = no ; then
3456 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3457 echo "configure:3458: checking for cthread_fork with -all_load" >&5
3458 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3463 LIBS="-all_load $LIBS"
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3467 #include <mach/cthreads.h>
3470 cthread_fork((void *)0, (void *)0);
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3476 ol_cv_cthread_all_load=yes
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 ol_cv_cthread_all_load=no
3488 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3490 if test $ol_cv_cthread_all_load = yes ; then
3491 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3492 ol_link_threads=mach
3496 if test $ol_link_threads != no ; then
3497 : check for cthread specific functionality here
3499 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3503 if test $ol_with_threads = mach ; then
3504 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3508 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3509 for ac_hdr in thread.h synch.h
3511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3513 echo "configure:3514: checking for $ac_hdr" >&5
3514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out`
3525 if test -z "$ac_err"; then
3527 eval "ac_cv_header_$ac_safe=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_header_$ac_safe=no"
3537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3540 cat >> confdefs.h <<EOF
3541 #define $ac_tr_hdr 1
3545 echo "$ac_t""no" 1>&6
3549 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3550 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3551 echo "configure:3552: checking for thr_create in -lthread" >&5
3552 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 ac_save_LIBS="$LIBS"
3557 LIBS="-lthread $LIBS"
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3572 eval "ac_cv_lib_$ac_lib_var=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3577 eval "ac_cv_lib_$ac_lib_var=no"
3580 LIBS="$ac_save_LIBS"
3583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3592 if test $have_lwp = yes ; then
3593 cat >> confdefs.h <<\EOF
3597 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3599 if test $ol_with_preemptive = auto ; then
3600 ol_with_preemptive=yes
3605 for ac_hdr in lwp/lwp.h
3607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3609 echo "configure:3610: checking for $ac_hdr" >&5
3610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3619 { (eval echo configure:3620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3620 ac_err=`grep -v '^ *+' conftest.out`
3621 if test -z "$ac_err"; then
3623 eval "ac_cv_header_$ac_safe=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_header_$ac_safe=no"
3633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3636 cat >> confdefs.h <<EOF
3637 #define $ac_tr_hdr 1
3641 echo "$ac_t""no" 1>&6
3645 if test $ac_cv_header_lwp_lwp_h = yes ; then
3646 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3647 echo "configure:3648: checking for lwp_create in -llwp" >&5
3648 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS="$LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3683 echo "$ac_t""no" 1>&6
3688 if test $have_lwp = yes ; then
3689 cat >> confdefs.h <<\EOF
3693 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3695 if test $ol_with_preemptive = auto ; then
3696 ol_with_preemptive=no
3702 if test $ol_with_preemptive = yes ; then
3703 cat >> confdefs.h <<\EOF
3704 #define PREEMPTIVE_THREADS 1
3709 if test $ol_with_threads = manual ; then
3712 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3714 for ac_hdr in pthread.h sched.h
3716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3718 echo "configure:3719: checking for $ac_hdr" >&5
3719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3728 { (eval echo configure:3729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3729 ac_err=`grep -v '^ *+' conftest.out`
3730 if test -z "$ac_err"; then
3732 eval "ac_cv_header_$ac_safe=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3738 eval "ac_cv_header_$ac_safe=no"
3742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3745 cat >> confdefs.h <<EOF
3746 #define $ac_tr_hdr 1
3750 echo "$ac_t""no" 1>&6
3754 for ac_func in sched_yield pthread_yield
3756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_func" >&5
3758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 /* System header to define __stub macros and hopefully few prototypes,
3765 which can conflict with char $ac_func(); below. */
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3774 /* The GNU C library defines this for functions which it implements
3775 to always fail with ENOSYS. Some functions are actually named
3776 something starting with __ and the normal name is an alias. */
3777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3787 eval "ac_cv_func_$ac_func=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 eval "ac_cv_func_$ac_func=no"
3797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3800 cat >> confdefs.h <<EOF
3801 #define $ac_tr_func 1
3805 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3811 echo "configure:3812: checking for LinuxThreads" >&5
3812 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3816 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3817 if test "$res" -gt 0 ; then
3818 ol_cv_linux_threads=yes
3820 ol_cv_linux_threads=no
3825 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3828 for ac_hdr in mach/cthreads.h
3830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3832 echo "configure:3833: checking for $ac_hdr" >&5
3833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3842 { (eval echo configure:3843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3843 ac_err=`grep -v '^ *+' conftest.out`
3844 if test -z "$ac_err"; then
3846 eval "ac_cv_header_$ac_safe=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 eval "ac_cv_header_$ac_safe=no"
3856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3859 cat >> confdefs.h <<EOF
3860 #define $ac_tr_hdr 1
3864 echo "$ac_t""no" 1>&6
3868 for ac_hdr in lwp/lwp.h
3870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3872 echo "configure:3873: checking for $ac_hdr" >&5
3873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3882 { (eval echo configure:3883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3883 ac_err=`grep -v '^ *+' conftest.out`
3884 if test -z "$ac_err"; then
3886 eval "ac_cv_header_$ac_safe=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_header_$ac_safe=no"
3896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3899 cat >> confdefs.h <<EOF
3900 #define $ac_tr_hdr 1
3904 echo "$ac_t""no" 1>&6
3908 for ac_hdr in thread.h synch.h
3910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_hdr" >&5
3913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3922 { (eval echo configure:3923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3923 ac_err=`grep -v '^ *+' conftest.out`
3924 if test -z "$ac_err"; then
3926 eval "ac_cv_header_$ac_safe=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_header_$ac_safe=no"
3936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3937 echo "$ac_t""yes" 1>&6
3938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3939 cat >> confdefs.h <<EOF
3940 #define $ac_tr_hdr 1
3944 echo "$ac_t""no" 1>&6
3950 if test $ol_with_threads = yes ; then
3951 cat >> confdefs.h <<\EOF
3952 #define _REENTRANT 1
3955 cat >> confdefs.h <<\EOF
3956 #define _THREAD_SAFE 1
3962 if test $ol_link_threads = no ; then
3963 if test $ol_with_threads = yes ; then
3964 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
3967 if test $ol_with_threads = auto ; then
3968 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
3972 cat >> confdefs.h <<\EOF
3973 #define NO_THREADS 1
3976 cat >> confdefs.h <<\EOF
3977 #define PREEMPTIVE_THREADS 1
3984 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
3985 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
3986 echo "configure:3987: checking for DB2 library" >&5
3987 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3991 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
3992 echo "configure:3993: checking for db_open in -ldb" >&5
3993 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS="$LIBS"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4013 eval "ac_cv_lib_$ac_lib_var=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_lib_$ac_lib_var=no"
4021 LIBS="$ac_save_LIBS"
4024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4028 echo "$ac_t""no" 1>&6
4036 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4042 echo "configure:4043: checking for $ac_hdr" >&5
4043 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4052 { (eval echo configure:4053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4053 ac_err=`grep -v '^ *+' conftest.out`
4054 if test -z "$ac_err"; then
4056 eval "ac_cv_header_$ac_safe=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 eval "ac_cv_header_$ac_safe=no"
4066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4067 echo "$ac_t""yes" 1>&6
4068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4069 cat >> confdefs.h <<EOF
4070 #define $ac_tr_hdr 1
4074 echo "$ac_t""no" 1>&6
4078 if test $ac_cv_header_db_h = yes ; then
4079 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4080 echo "configure:4081: checking if db.h is DB2" >&5
4081 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4090 /* this check could be improved */
4091 # ifdef DB_VERSION_MAJOR
4092 # if DB_VERSION_MAJOR == 2
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 egrep "__db_version_2" >/dev/null 2>&1; then
4101 ol_cv_header_db2=yes
4110 echo "$ac_t""$ol_cv_header_db2" 1>&6
4117 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4118 echo "configure:4119: checking for Berkeley DB2" >&5
4119 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4123 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4124 ol_cv_berkeley_db2=no
4126 ol_cv_berkeley_db2=yes
4131 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4132 if test $ol_cv_berkeley_db2 = yes ; then
4133 cat >> confdefs.h <<\EOF
4134 #define HAVE_BERKELEY_DB2 1
4140 if test $ol_cv_berkeley_db2 = yes ; then
4142 ol_with_ldbm_api=db2
4144 if test $ol_with_ldbm_type = hash ; then
4145 cat >> confdefs.h <<\EOF
4146 #define LDBM_USE_DBHASH 1
4150 cat >> confdefs.h <<\EOF
4151 #define LDBM_USE_DBBTREE 1
4156 if test $ol_cv_lib_db2 != yes ; then
4157 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
4162 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
4163 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
4164 echo "configure:4165: checking for Berkeley DB library" >&5
4165 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4169 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
4170 echo "configure:4171: checking for dbopen" >&5
4171 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* System header to define __stub macros and hopefully few prototypes,
4178 which can conflict with char dbopen(); below. */
4180 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4187 /* The GNU C library defines this for functions which it implements
4188 to always fail with ENOSYS. Some functions are actually named
4189 something starting with __ and the normal name is an alias. */
4190 #if defined (__stub_dbopen) || defined (__stub___dbopen)
4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4200 eval "ac_cv_func_dbopen=yes"
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 eval "ac_cv_func_dbopen=no"
4210 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4214 echo "$ac_t""no" 1>&6
4216 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
4217 echo "configure:4218: checking for dbopen in -ldb" >&5
4218 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
4219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 ac_save_LIBS="$LIBS"
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4236 if { (eval echo configure:4237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4238 eval "ac_cv_lib_$ac_lib_var=yes"
4240 echo "configure: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4243 eval "ac_cv_lib_$ac_lib_var=no"
4246 LIBS="$ac_save_LIBS"
4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4250 echo "$ac_t""yes" 1>&6
4253 echo "$ac_t""no" 1>&6
4264 echo "$ac_t""$ol_cv_lib_db" 1>&6
4267 for ac_hdr in db_185.h
4269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h <<EOF
4299 #define $ac_tr_hdr 1
4303 echo "$ac_t""no" 1>&6
4307 if test $ol_cv_header_db2 = yes ; then
4309 ol_cv_header_db=$ac_cv_header_db_185_h
4311 ol_cv_header_db=$ac_cv_header_db_h
4316 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4317 echo "configure:4318: checking for Berkeley DB" >&5
4318 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4322 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4323 ol_cv_berkeley_db=no
4325 ol_cv_berkeley_db=yes
4330 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4331 if test $ol_cv_berkeley_db = yes ; then
4332 cat >> confdefs.h <<\EOF
4333 #define HAVE_BERKELEY_DB 1
4339 if test $ol_cv_berkeley_db = yes ; then
4343 if test $ol_with_ldbm_type = hash ; then
4344 cat >> confdefs.h <<\EOF
4345 #define LDBM_USE_DBHASH 1
4349 cat >> confdefs.h <<\EOF
4350 #define LDBM_USE_DBBTREE 1
4355 if test $ol_cv_lib_db != yes ; then
4356 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4361 if test $ol_with_ldbm_api = manual ; then
4364 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4366 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4370 echo "configure:4371: checking for $ac_hdr" >&5
4371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4380 { (eval echo configure:4381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4381 ac_err=`grep -v '^ *+' conftest.out`
4382 if test -z "$ac_err"; then
4384 eval "ac_cv_header_$ac_safe=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 eval "ac_cv_header_$ac_safe=no"
4394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4395 echo "$ac_t""yes" 1>&6
4396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4397 cat >> confdefs.h <<EOF
4398 #define $ac_tr_hdr 1
4402 echo "$ac_t""no" 1>&6
4408 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4409 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4410 ol_with_ldbm_api=none
4413 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4414 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4415 echo "configure:4416: checking for GDBM library" >&5
4416 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4420 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4421 echo "configure:4422: checking for gdbm_open" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char gdbm_open(); below. */
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4451 eval "ac_cv_func_gdbm_open=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 eval "ac_cv_func_gdbm_open=no"
4461 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4465 echo "$ac_t""no" 1>&6
4467 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4468 echo "configure:4469: checking for gdbm_open in -lgdbm" >&5
4469 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
4470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 ac_save_LIBS="$LIBS"
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4478 /* Override any gcc2 internal prototype to avoid an error. */
4479 /* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4489 eval "ac_cv_lib_$ac_lib_var=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_lib_$ac_lib_var=no"
4497 LIBS="$ac_save_LIBS"
4500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4502 ol_cv_lib_gdbm=-lgdbm
4504 echo "$ac_t""no" 1>&6
4515 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4518 for ac_hdr in gdbm.h
4520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4522 echo "configure:4523: checking for $ac_hdr" >&5
4523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 cat > conftest.$ac_ext <<EOF
4527 #line 4528 "configure"
4528 #include "confdefs.h"
4531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4532 { (eval echo configure:4533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4533 ac_err=`grep -v '^ *+' conftest.out`
4534 if test -z "$ac_err"; then
4536 eval "ac_cv_header_$ac_safe=yes"
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 eval "ac_cv_header_$ac_safe=no"
4546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4549 cat >> confdefs.h <<EOF
4550 #define $ac_tr_hdr 1
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for db""... $ac_c" 1>&6
4559 echo "configure:4560: checking for db" >&5
4560 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4564 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4572 echo "$ac_t""$ol_cv_gdbm" 1>&6
4573 if test $ol_cv_gdbm = yes ; then
4574 cat >> confdefs.h <<\EOF
4581 if test $ol_cv_gdbm = yes ; then
4583 ol_with_ldbm_api=gdbm
4585 if test $ol_cv_lib_gdbm != yes ; then
4586 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4591 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4592 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4593 echo "configure:4594: checking for NDBM library" >&5
4594 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4598 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4599 echo "configure:4600: checking for dbm_open" >&5
4600 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 /* System header to define __stub macros and hopefully few prototypes,
4607 which can conflict with char dbm_open(); below. */
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4616 /* The GNU C library defines this for functions which it implements
4617 to always fail with ENOSYS. Some functions are actually named
4618 something starting with __ and the normal name is an alias. */
4619 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4629 eval "ac_cv_func_dbm_open=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_func_dbm_open=no"
4639 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4643 echo "$ac_t""no" 1>&6
4645 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4646 echo "configure:4647: checking for dbm_open in -lndbm" >&5
4647 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 ac_save_LIBS="$LIBS"
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4667 eval "ac_cv_lib_$ac_lib_var=yes"
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4672 eval "ac_cv_lib_$ac_lib_var=no"
4675 LIBS="$ac_save_LIBS"
4678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4679 echo "$ac_t""yes" 1>&6
4680 ol_cv_lib_ndbm=-lndbm
4682 echo "$ac_t""no" 1>&6
4684 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4685 echo "configure:4686: checking for dbm_open in -ldbm" >&5
4686 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4688 echo $ac_n "(cached) $ac_c" 1>&6
4690 ac_save_LIBS="$LIBS"
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* Override any gcc2 internal prototype to avoid an error. */
4696 /* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
4704 if { (eval echo configure:4705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4706 eval "ac_cv_lib_$ac_lib_var=yes"
4708 echo "configure: failed program was:" >&5
4709 cat conftest.$ac_ext >&5
4711 eval "ac_cv_lib_$ac_lib_var=no"
4714 LIBS="$ac_save_LIBS"
4717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 ol_cv_lib_ndbm=-ldbm
4721 echo "$ac_t""no" 1>&6
4734 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4737 for ac_hdr in ndbm.h
4739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4741 echo "configure:4742: checking for $ac_hdr" >&5
4742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4743 echo $ac_n "(cached) $ac_c" 1>&6
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4751 { (eval echo configure:4752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4752 ac_err=`grep -v '^ *+' conftest.out`
4753 if test -z "$ac_err"; then
4755 eval "ac_cv_header_$ac_safe=yes"
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 eval "ac_cv_header_$ac_safe=no"
4765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4766 echo "$ac_t""yes" 1>&6
4767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_hdr 1
4773 echo "$ac_t""no" 1>&6
4777 echo $ac_n "checking for db""... $ac_c" 1>&6
4778 echo "configure:4779: checking for db" >&5
4779 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4783 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
4791 echo "$ac_t""$ol_cv_ndbm" 1>&6
4792 if test $ol_cv_ndbm = yes ; then
4793 cat >> confdefs.h <<\EOF
4800 if test $ol_cv_ndbm = yes ; then
4802 ol_with_ldbm_api=ndbm
4804 if test $ol_with_ldbm_api = ndbm ; then
4805 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
4808 if test $ol_cv_lib_ndbm != yes ; then
4809 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
4814 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
4815 echo "configure: warning: could not find suitable LDBM backend" 1>&2
4816 if test $ol_enable_ldbm = yes ; then
4817 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
4820 echo "configure: warning: disabling LDBM" 1>&2
4824 if test $ol_enable_wrappers = yes ; then
4825 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
4826 echo "configure:4827: checking for hosts_access in -lwrap" >&5
4827 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
4828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4831 ac_save_LIBS="$LIBS"
4833 cat > conftest.$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4839 char hosts_access();
4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4847 eval "ac_cv_lib_$ac_lib_var=yes"
4849 echo "configure: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4852 eval "ac_cv_lib_$ac_lib_var=no"
4855 LIBS="$ac_save_LIBS"
4858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4859 echo "$ac_t""yes" 1>&6
4862 echo "$ac_t""no" 1>&6
4867 if test $have_wrappers = yes ; then
4868 cat >> confdefs.h <<\EOF
4872 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
4874 echo "configure: warning: could not find -lwrap" 1>&2
4875 if test $ol_enable_wrappers = yes ; then
4876 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
4879 echo "configure: warning: disabling wrappers support" 1>&2
4880 ol_enable_wrappers=no
4885 # ud needs termcap (should insert check here)
4887 for ac_hdr in termcap.h ncurses.h
4889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4891 echo "configure:4892: checking for $ac_hdr" >&5
4892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4901 { (eval echo configure:4902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4902 ac_err=`grep -v '^ *+' conftest.out`
4903 if test -z "$ac_err"; then
4905 eval "ac_cv_header_$ac_safe=yes"
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 eval "ac_cv_header_$ac_safe=no"
4915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4916 echo "$ac_t""yes" 1>&6
4917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4918 cat >> confdefs.h <<EOF
4919 #define $ac_tr_hdr 1
4923 echo "$ac_t""no" 1>&6
4928 if test $ol_link_termcap = no ; then
4929 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
4930 echo "configure:4931: checking for tputs in -ltermcap" >&5
4931 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 ac_save_LIBS="$LIBS"
4936 LIBS="-ltermcap $LIBS"
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 /* We use char because int might match the return type of a gcc2
4942 builtin and then its argument prototype would still apply. */
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4951 eval "ac_cv_lib_$ac_lib_var=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 eval "ac_cv_lib_$ac_lib_var=no"
4959 LIBS="$ac_save_LIBS"
4962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4966 echo "$ac_t""no" 1>&6
4970 if test $have_termcap = yes ; then
4971 cat >> confdefs.h <<\EOF
4972 #define HAVE_TERMCAP 1
4976 TERMCAP_LIBS=-ltermcap
4980 if test $ol_link_termcap = no ; then
4981 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
4982 echo "configure:4983: checking for initscr in -lncurses" >&5
4983 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
4984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 ac_save_LIBS="$LIBS"
4988 LIBS="-lncurses $LIBS"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5003 eval "ac_cv_lib_$ac_lib_var=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5008 eval "ac_cv_lib_$ac_lib_var=no"
5011 LIBS="$ac_save_LIBS"
5014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5018 echo "$ac_t""no" 1>&6
5022 if test $have_ncurses = yes ; then
5023 cat >> confdefs.h <<\EOF
5024 #define HAVE_NCURSES 1
5028 TERMCAP_LIBS=-lncurses
5032 if test $ol_link_termcap = no ; then
5033 cat >> confdefs.h <<\EOF
5034 #define NO_TERMCAP 1
5040 # FreeBSD (and others) have crypt(3) in -lcrypt
5041 if test $ol_enable_crypt != no ; then
5042 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5043 echo "configure:5044: checking for crypt" >&5
5044 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* System header to define __stub macros and hopefully few prototypes,
5051 which can conflict with char crypt(); below. */
5053 /* Override any gcc2 internal prototype to avoid an error. */
5054 /* We use char because int might match the return type of a gcc2
5055 builtin and then its argument prototype would still apply. */
5060 /* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063 #if defined (__stub_crypt) || defined (__stub___crypt)
5071 if { (eval echo configure:5072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5073 eval "ac_cv_func_crypt=yes"
5075 echo "configure: failed program was:" >&5
5076 cat conftest.$ac_ext >&5
5078 eval "ac_cv_func_crypt=no"
5083 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5087 echo "$ac_t""no" 1>&6
5089 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5090 echo "configure:5091: checking for crypt in -lcrypt" >&5
5091 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 ac_save_LIBS="$LIBS"
5096 LIBS="-lcrypt $LIBS"
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5109 if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5111 eval "ac_cv_lib_$ac_lib_var=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_lib_$ac_lib_var=no"
5119 LIBS="$ac_save_LIBS"
5122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5123 echo "$ac_t""yes" 1>&6
5124 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5127 echo "$ac_t""no" 1>&6
5134 if test $have_crypt = yes ; then
5135 cat >> confdefs.h <<\EOF
5136 #define HAVE_CRYPT 1
5140 echo "configure: warning: could not find crypt" 1>&2
5141 if test $ol_enable_crypt = yes ; then
5142 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5145 echo "configure: warning: disabling crypt support" 1>&2
5150 # FreeBSD (and others) have setproctitle(3) in -lutil
5151 if test $ol_enable_proctitle != no ; then
5152 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
5153 echo "configure:5154: checking for setproctitle" >&5
5154 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5157 cat > conftest.$ac_ext <<EOF
5158 #line 5159 "configure"
5159 #include "confdefs.h"
5160 /* System header to define __stub macros and hopefully few prototypes,
5161 which can conflict with char setproctitle(); below. */
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5166 char setproctitle();
5170 /* The GNU C library defines this for functions which it implements
5171 to always fail with ENOSYS. Some functions are actually named
5172 something starting with __ and the normal name is an alias. */
5173 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5183 eval "ac_cv_func_setproctitle=yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 eval "ac_cv_func_setproctitle=no"
5193 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
5194 echo "$ac_t""yes" 1>&6
5195 have_setproctitle=yes
5197 echo "$ac_t""no" 1>&6
5199 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
5200 echo "configure:5201: checking for setproctitle in -lutil" >&5
5201 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
5202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5205 ac_save_LIBS="$LIBS"
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char setproctitle();
5219 if { (eval echo configure:5220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5221 eval "ac_cv_lib_$ac_lib_var=yes"
5223 echo "configure: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5226 eval "ac_cv_lib_$ac_lib_var=no"
5229 LIBS="$ac_save_LIBS"
5232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5233 echo "$ac_t""yes" 1>&6
5234 have_setproctitle=yes
5235 LUTIL_LIBS="$LUTIL_LIBS -lutil"
5237 echo "$ac_t""no" 1>&6
5238 have_setproctitle=no
5239 LIBOBJS="$LIBOBJS setproctitle.o"
5245 if test $have_setproctitle = yes ; then
5246 cat >> confdefs.h <<\EOF
5247 #define HAVE_SETPROCTITLE 1
5253 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5254 echo "configure:5255: checking for ANSI C header files" >&5
5255 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5258 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure"
5260 #include "confdefs.h"
5266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5267 { (eval echo configure:5268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5268 ac_err=`grep -v '^ *+' conftest.out`
5269 if test -z "$ac_err"; then
5271 ac_cv_header_stdc=yes
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 ac_cv_header_stdc=no
5281 if test $ac_cv_header_stdc = yes; then
5282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 egrep "memchr" >/dev/null 2>&1; then
5293 ac_cv_header_stdc=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 egrep "free" >/dev/null 2>&1; then
5311 ac_cv_header_stdc=no
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5326 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5327 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5328 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5329 int main () { int i; for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 ac_cv_header_stdc=no
5349 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5350 if test $ac_cv_header_stdc = yes; then
5351 cat >> confdefs.h <<\EOF
5352 #define STDC_HEADERS 1
5358 if test $ac_cv_header_stdc != yes; then
5359 echo "configure: warning: could not locate Standard C headers" 1>&2
5363 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5366 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_hdr that defines DIR" >&5
5368 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 #include <sys/types.h>
5380 if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 eval "ac_cv_header_dirent_$ac_safe=yes"
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 eval "ac_cv_header_dirent_$ac_safe=no"
5391 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5394 cat >> confdefs.h <<EOF
5395 #define $ac_tr_hdr 1
5397 ac_header_dirent=$ac_hdr; break
5399 echo "$ac_t""no" 1>&6
5402 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5403 if test $ac_header_dirent = dirent.h; then
5404 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5405 echo "configure:5406: checking for opendir in -ldir" >&5
5406 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 ac_save_LIBS="$LIBS"
5412 cat > conftest.$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5416 /* We use char because int might match the return type of a gcc2
5417 builtin and then its argument prototype would still apply. */
5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5426 eval "ac_cv_lib_$ac_lib_var=yes"
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5431 eval "ac_cv_lib_$ac_lib_var=no"
5434 LIBS="$ac_save_LIBS"
5437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5438 echo "$ac_t""yes" 1>&6
5441 echo "$ac_t""no" 1>&6
5445 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5446 echo "configure:5447: checking for opendir in -lx" >&5
5447 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 ac_save_LIBS="$LIBS"
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5465 if { (eval echo configure:5466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5467 eval "ac_cv_lib_$ac_lib_var=yes"
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5472 eval "ac_cv_lib_$ac_lib_var=no"
5475 LIBS="$ac_save_LIBS"
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5479 echo "$ac_t""yes" 1>&6
5482 echo "$ac_t""no" 1>&6
5487 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5488 echo "configure:5489: checking for sys/wait.h that is POSIX.1 compatible" >&5
5489 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <sys/types.h>
5496 #include <sys/wait.h>
5498 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5501 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5506 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5509 if { (eval echo configure:5510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5511 ac_cv_header_sys_wait_h=yes
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 ac_cv_header_sys_wait_h=no
5521 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5522 if test $ac_cv_header_sys_wait_h = yes; then
5523 cat >> confdefs.h <<\EOF
5524 #define HAVE_SYS_WAIT_H 1
5555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_hdr" >&5
5558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5567 { (eval echo configure:5568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5568 ac_err=`grep -v '^ *+' conftest.out`
5569 if test -z "$ac_err"; then
5571 eval "ac_cv_header_$ac_safe=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_header_$ac_safe=no"
5581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5584 cat >> confdefs.h <<EOF
5585 #define $ac_tr_hdr 1
5589 echo "$ac_t""no" 1>&6
5594 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for uid_t in sys/types.h" >&5
5596 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 #include <sys/types.h>
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605 egrep "uid_t" >/dev/null 2>&1; then
5607 ac_cv_type_uid_t=yes
5616 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5617 if test $ac_cv_type_uid_t = no; then
5618 cat >> confdefs.h <<\EOF
5622 cat >> confdefs.h <<\EOF
5628 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5629 echo "configure:5630: checking type of array argument to getgroups" >&5
5630 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 if test "$cross_compiling" = yes; then
5634 ac_cv_type_getgroups=cross
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5640 /* Thanks to Mike Rendell for this test. */
5641 #include <sys/types.h>
5644 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5649 union { gid_t gval; long lval; } val;
5652 for (i = 0; i < NGID; i++)
5653 gidset[i] = val.gval;
5654 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5656 /* Exit non-zero if getgroups seems to require an array of ints. This
5657 happens when gid_t is short but getgroups modifies an array of ints. */
5658 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5664 ac_cv_type_getgroups=gid_t
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 ac_cv_type_getgroups=int
5674 if test $ac_cv_type_getgroups = cross; then
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5683 ac_cv_type_getgroups=gid_t
5686 ac_cv_type_getgroups=int
5693 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5694 cat >> confdefs.h <<EOF
5695 #define GETGROUPS_T $ac_cv_type_getgroups
5699 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5700 echo "configure:5701: checking for mode_t" >&5
5701 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 #include <sys/types.h>
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5716 ac_cv_type_mode_t=yes
5719 ac_cv_type_mode_t=no
5724 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5725 if test $ac_cv_type_mode_t = no; then
5726 cat >> confdefs.h <<\EOF
5732 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5733 echo "configure:5734: checking for off_t" >&5
5734 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 #include <sys/types.h>
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5749 ac_cv_type_off_t=yes
5757 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5758 if test $ac_cv_type_off_t = no; then
5759 cat >> confdefs.h <<\EOF
5765 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5766 echo "configure:5767: checking for pid_t" >&5
5767 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5773 #include <sys/types.h>
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5782 ac_cv_type_pid_t=yes
5790 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5791 if test $ac_cv_type_pid_t = no; then
5792 cat >> confdefs.h <<\EOF
5798 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5799 echo "configure:5800: checking return type of signal handlers" >&5
5800 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 #include <sys/types.h>
5812 extern "C" void (*signal (int, void (*)(int)))(int);
5814 void (*signal ()) ();
5821 if { (eval echo configure:5822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5823 ac_cv_type_signal=void
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5828 ac_cv_type_signal=int
5833 echo "$ac_t""$ac_cv_type_signal" 1>&6
5834 cat >> confdefs.h <<EOF
5835 #define RETSIGTYPE $ac_cv_type_signal
5839 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5840 echo "configure:5841: checking for size_t" >&5
5841 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 cat > conftest.$ac_ext <<EOF
5845 #line 5846 "configure"
5846 #include "confdefs.h"
5847 #include <sys/types.h>
5853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5854 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5856 ac_cv_type_size_t=yes
5859 ac_cv_type_size_t=no
5864 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5865 if test $ac_cv_type_size_t = no; then
5866 cat >> confdefs.h <<\EOF
5867 #define size_t unsigned
5872 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5873 echo "configure:5874: checking for uid_t in sys/types.h" >&5
5874 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 #include <sys/types.h>
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 egrep "uid_t" >/dev/null 2>&1; then
5885 ac_cv_type_uid_t=yes
5894 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5895 if test $ac_cv_type_uid_t = no; then
5896 cat >> confdefs.h <<\EOF
5900 cat >> confdefs.h <<\EOF
5906 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
5907 echo "configure:5908: checking for st_blksize in struct stat" >&5
5908 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5911 cat > conftest.$ac_ext <<EOF
5912 #line 5913 "configure"
5913 #include "confdefs.h"
5914 #include <sys/types.h>
5915 #include <sys/stat.h>
5917 struct stat s; s.st_blksize;
5920 if { (eval echo configure:5921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5922 ac_cv_struct_st_blksize=yes
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 ac_cv_struct_st_blksize=no
5932 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
5933 if test $ac_cv_struct_st_blksize = yes; then
5934 cat >> confdefs.h <<\EOF
5935 #define HAVE_ST_BLKSIZE 1
5940 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5941 echo "configure:5942: checking whether time.h and sys/time.h may both be included" >&5
5942 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 #include <sys/types.h>
5949 #include <sys/time.h>
5955 if { (eval echo configure:5956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5957 ac_cv_header_time=yes
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5962 ac_cv_header_time=no
5967 echo "$ac_t""$ac_cv_header_time" 1>&6
5968 if test $ac_cv_header_time = yes; then
5969 cat >> confdefs.h <<\EOF
5970 #define TIME_WITH_SYS_TIME 1
5975 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5976 echo "configure:5977: checking whether struct tm is in sys/time.h or time.h" >&5
5977 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 #include <sys/types.h>
5986 struct tm *tp; tp->tm_sec;
5989 if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 ac_cv_struct_tm=time.h
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 ac_cv_struct_tm=sys/time.h
6001 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6002 if test $ac_cv_struct_tm = sys/time.h; then
6003 cat >> confdefs.h <<\EOF
6004 #define TM_IN_SYS_TIME 1
6011 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
6012 echo "configure:6013: checking if toupper() requires islower()" >&5
6013 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6017 if test "$cross_compiling" = yes; then
6018 ol_cv_c_upper_lower=safe
6020 cat > conftest.$ac_ext <<EOF
6021 #line 6022 "configure"
6022 #include "confdefs.h"
6027 if ('C' == toupper('C'))
6033 if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6035 ol_cv_c_upper_lower=no
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6040 ol_cv_c_upper_lower=yes
6047 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
6048 if test $ol_cv_c_upper_lower != no ; then
6049 cat >> confdefs.h <<\EOF
6050 #define C_UPPER_LOWER 1
6055 echo $ac_n "checking for working const""... $ac_c" 1>&6
6056 echo "configure:6057: checking for working const" >&5
6057 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6066 /* Ultrix mips cc rejects this. */
6067 typedef int charset[2]; const charset x;
6068 /* SunOS 4.1.1 cc rejects this. */
6069 char const *const *ccp;
6071 /* NEC SVR4.0.2 mips cc rejects this. */
6072 struct point {int x, y;};
6073 static struct point const zero = {0,0};
6074 /* AIX XL C 1.02.0.0 rejects this.
6075 It does not let you subtract one const X* pointer from another in an arm
6076 of an if-expression whose if-part is not a constant expression */
6077 const char *g = "string";
6078 ccp = &g + (g ? g-g : 0);
6079 /* HPUX 7.0 cc rejects these. */
6082 ccp = (char const *const *) p;
6083 { /* SCO 3.2v4 cc rejects this. */
6085 char const *s = 0 ? (char *) 0 : (char const *) 0;
6089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6091 const int *foo = &x[0];
6094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6095 typedef const int *iptr;
6099 { /* AIX XL C 1.02.0.0 rejects this saying
6100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6101 struct s { int j; const int *ap[3]; };
6102 struct s *b; b->j = 5;
6104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6110 if { (eval echo configure:6111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6122 echo "$ac_t""$ac_cv_c_const" 1>&6
6123 if test $ac_cv_c_const = no; then
6124 cat >> confdefs.h <<\EOF
6132 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6133 echo "configure:6134: checking for 8-bit clean memcmp" >&5
6134 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 if test "$cross_compiling" = yes; then
6138 ac_cv_func_memcmp_clean=no
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6146 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6147 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6153 ac_cv_func_memcmp_clean=yes
6155 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6158 ac_cv_func_memcmp_clean=no
6165 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6166 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
6168 echo $ac_n "checking for strftime""... $ac_c" 1>&6
6169 echo "configure:6170: checking for strftime" >&5
6170 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6176 /* System header to define __stub macros and hopefully few prototypes,
6177 which can conflict with char strftime(); below. */
6179 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6186 /* The GNU C library defines this for functions which it implements
6187 to always fail with ENOSYS. Some functions are actually named
6188 something starting with __ and the normal name is an alias. */
6189 #if defined (__stub_strftime) || defined (__stub___strftime)
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6199 eval "ac_cv_func_strftime=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_func_strftime=no"
6209 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
6210 echo "$ac_t""yes" 1>&6
6211 cat >> confdefs.h <<\EOF
6212 #define HAVE_STRFTIME 1
6216 echo "$ac_t""no" 1>&6
6217 # strftime is in -lintl on SCO UNIX.
6218 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6219 echo "configure:6220: checking for strftime in -lintl" >&5
6220 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 ac_save_LIBS="$LIBS"
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6240 eval "ac_cv_lib_$ac_lib_var=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_lib_$ac_lib_var=no"
6248 LIBS="$ac_save_LIBS"
6251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6252 echo "$ac_t""yes" 1>&6
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_STRFTIME 1
6259 echo "$ac_t""no" 1>&6
6264 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6265 echo "configure:6266: checking for vprintf" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char vprintf(); below. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6295 eval "ac_cv_func_vprintf=yes"
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 eval "ac_cv_func_vprintf=no"
6305 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6306 echo "$ac_t""yes" 1>&6
6307 cat >> confdefs.h <<\EOF
6308 #define HAVE_VPRINTF 1
6312 echo "$ac_t""no" 1>&6
6315 if test "$ac_cv_func_vprintf" != yes; then
6316 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6317 echo "configure:6318: checking for _doprnt" >&5
6318 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure"
6323 #include "confdefs.h"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char _doprnt(); below. */
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6347 eval "ac_cv_func__doprnt=yes"
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_func__doprnt=no"
6357 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 cat >> confdefs.h <<\EOF
6360 #define HAVE_DOPRNT 1
6364 echo "$ac_t""no" 1>&6
6370 if test $ac_cv_func_vprintf = yes ; then
6371 for ac_func in vsnprintf
6373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6374 echo "configure:6375: checking for $ac_func" >&5
6375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 /* System header to define __stub macros and hopefully few prototypes,
6382 which can conflict with char $ac_func(); below. */
6384 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6391 /* The GNU C library defines this for functions which it implements
6392 to always fail with ENOSYS. Some functions are actually named
6393 something starting with __ and the normal name is an alias. */
6394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6404 eval "ac_cv_func_$ac_func=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_func_$ac_func=no"
6414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6417 cat >> confdefs.h <<EOF
6418 #define $ac_tr_func 1
6422 echo "$ac_t""no" 1>&6
6428 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
6429 echo "configure:6430: checking for wait3 that fills in rusage" >&5
6430 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
6431 echo $ac_n "(cached) $ac_c" 1>&6
6433 if test "$cross_compiling" = yes; then
6434 ac_cv_func_wait3_rusage=no
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 #include <sys/types.h>
6440 #include <sys/time.h>
6441 #include <sys/resource.h>
6443 /* HP-UX has wait3 but does not fill in rusage at all. */
6447 /* Use a field that we can force nonzero --
6448 voluntary context switches.
6449 For systems like NeXT and OSF/1 that don't set it,
6450 also use the system CPU time. And page faults (I/O) for Linux. */
6452 r.ru_stime.tv_sec = 0;
6453 r.ru_stime.tv_usec = 0;
6454 r.ru_majflt = r.ru_minflt = 0;
6456 case 0: /* Child. */
6457 sleep(1); /* Give up the CPU. */
6459 case -1: _exit(0); /* What can we do? */
6460 default: /* Parent. */
6462 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
6463 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6464 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6470 ac_cv_func_wait3_rusage=yes
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 ac_cv_func_wait3_rusage=no
6482 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6483 if test $ac_cv_func_wait3_rusage = yes; then
6484 cat >> confdefs.h <<\EOF
6485 #define HAVE_WAIT3 1
6522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6523 echo "configure:6524: checking for $ac_func" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func(); below. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6553 eval "ac_cv_func_$ac_func=yes"
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 eval "ac_cv_func_$ac_func=no"
6563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6566 cat >> confdefs.h <<EOF
6567 #define $ac_tr_func 1
6571 echo "$ac_t""no" 1>&6
6576 for ac_func in getopt strdup tempnam
6578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6579 echo "configure:6580: checking for $ac_func" >&5
6580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char $ac_func(); below. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6609 eval "ac_cv_func_$ac_func=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 eval "ac_cv_func_$ac_func=no"
6619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6620 echo "$ac_t""yes" 1>&6
6621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6622 cat >> confdefs.h <<EOF
6623 #define $ac_tr_func 1
6627 echo "$ac_t""no" 1>&6
6628 LIBOBJS="$LIBOBJS ${ac_func}.o"
6634 # Check Configuration
6636 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6637 echo "configure:6638: checking declaration of sys_errlist" >&5
6638 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6647 #include <sys/types.h>
6650 char *c = (char *) *sys_errlist
6653 if { (eval echo configure:6654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6655 ol_cv_dcl_sys_errlist=yes
6657 echo "configure: failed program was:" >&5
6658 cat conftest.$ac_ext >&5
6660 ol_cv_dcl_sys_errlist=no
6665 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6667 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6668 if test $ol_cv_dcl_sys_errlist = no ; then
6669 cat >> confdefs.h <<\EOF
6670 #define DECL_SYS_ERRLIST 1
6673 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6674 echo "configure:6675: checking existence of sys_errlist" >&5
6675 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6679 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6684 char *c = (char *) *sys_errlist
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6689 ol_cv_have_sys_errlist=yes
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 ol_cv_have_sys_errlist=no
6699 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6704 if test $ol_enable_debug != no ; then
6705 cat >> confdefs.h <<\EOF
6706 #define LDAP_DEBUG 1
6710 if test $ol_enable_libui = yes ; then
6711 cat >> confdefs.h <<\EOF
6712 #define LDAP_LIBUI 1
6716 if test $ol_enable_cache = no ; then
6717 cat >> confdefs.h <<\EOF
6718 #define LDAP_NOCACHE 1
6722 if test $ol_enable_dns != no ; then
6723 cat >> confdefs.h <<\EOF
6728 if test $ol_enable_proctitle != no ; then
6729 cat >> confdefs.h <<\EOF
6730 #define LDAP_PROCTITLE 1
6734 if test $ol_enable_referrals != no ; then
6735 cat >> confdefs.h <<\EOF
6736 #define LDAP_REFERRALS 1
6740 if test $ol_enable_cldap != no ; then
6741 cat >> confdefs.h <<\EOF
6742 #define LDAP_CONNECTIONLESS 1
6747 if test $ol_enable_aclgroups != no ; then
6748 cat >> confdefs.h <<\EOF
6749 #define SLAPD_ACLGROUPS 1
6753 if test $ol_enable_crypt != no ; then
6754 cat >> confdefs.h <<\EOF
6755 #define SLAPD_CRYPT 1
6759 if test $ol_enable_md5 != no ; then
6760 cat >> confdefs.h <<\EOF
6765 if test $ol_enable_sha1 != no ; then
6766 cat >> confdefs.h <<\EOF
6767 #define SLAPD_SHA1 1
6771 if test $ol_enable_phonetic != no ; then
6772 cat >> confdefs.h <<\EOF
6773 #define SLAPD_PHONETIC 1
6777 if test $ol_enable_rlookups != no ; then
6778 cat >> confdefs.h <<\EOF
6779 #define SLAPD_RLOOKUPS 1
6784 if test $ol_link_ldbm != no ; then
6785 cat >> confdefs.h <<\EOF
6786 #define SLAPD_LDBM 1
6793 if test $ol_enable_passwd != no ; then
6794 cat >> confdefs.h <<\EOF
6795 #define SLAPD_PASSWD 1
6802 if test $ol_enable_shell != no ; then
6803 cat >> confdefs.h <<\EOF
6804 #define SLAPD_SHELL 1
6811 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
6812 $BUILD_SLAPD = yes ; then
6816 if test $ol_link_isode != no ; then
6843 cat > confcache <<\EOF
6844 # This file is a shell script that caches the results of configure
6845 # tests run on this system so they can be shared between configure
6846 # scripts and configure runs. It is not useful on other systems.
6847 # If it contains results you don't want to keep, you may remove or edit it.
6849 # By default, configure uses ./config.cache as the cache file,
6850 # creating it if it does not exist already. You can give configure
6851 # the --cache-file=FILE option to use a different cache file; that is
6852 # what configure does when it calls configure scripts in
6853 # subdirectories, so they share the cache.
6854 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6855 # config.status only pays attention to the cache file if you give it the
6856 # --recheck option to rerun configure.
6859 # The following way of writing the cache mishandles newlines in values,
6860 # but we know of no workaround that is simple, portable, and efficient.
6861 # So, don't put newlines in cache variables' values.
6862 # Ultrix sh set writes to stderr and can't be redirected directly,
6863 # and sets the high bit in the cache file unless we assign to the vars.
6865 case `(ac_space=' '; set) 2>&1` in
6867 # `set' does not quote correctly, so add quotes (double-quote substitution
6868 # turns \\\\ into \\, and sed turns \\ into \).
6870 -e "s/'/'\\\\''/g" \
6871 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6874 # `set' quotes correctly as required by POSIX, so do not add quotes.
6875 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6878 if cmp -s $cache_file confcache; then
6881 if test -w $cache_file; then
6882 echo "updating cache $cache_file"
6883 cat confcache > $cache_file
6885 echo "not updating unwritable cache $cache_file"
6890 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6893 # Let make expand exec_prefix.
6894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6896 # Any assignment to VPATH causes Sun make to only execute
6897 # the first set of double-colon rules, so remove it if not needed.
6898 # If there is a colon in the path, we need to keep it.
6899 if test "x$srcdir" = x.; then
6900 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6903 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6905 DEFS=-DHAVE_CONFIG_H
6907 # Without the "./", some shells look in PATH for config.status.
6908 : ${CONFIG_STATUS=./config.status}
6910 echo creating $CONFIG_STATUS
6911 rm -f $CONFIG_STATUS
6912 cat > $CONFIG_STATUS <<EOF
6914 # Generated automatically by configure.
6915 # Run this file to recreate the current configuration.
6916 # This directory was configured as follows,
6917 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6919 # $0 $ac_configure_args
6921 # Compiler output produced by configure, useful for debugging
6922 # configure, is in ./config.log if it exists.
6924 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6927 case "\$ac_option" in
6928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6929 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6930 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6931 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6932 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6934 -help | --help | --hel | --he | --h)
6935 echo "\$ac_cs_usage"; exit 0 ;;
6936 *) echo "\$ac_cs_usage"; exit 1 ;;
6940 ac_given_srcdir=$srcdir
6941 ac_given_INSTALL="$INSTALL"
6943 trap 'rm -fr `echo "\
6944 Makefile:build/top.mk:Makefile.in:build/dir.mk \
6945 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
6946 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
6947 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
6948 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
6949 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
6950 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
6951 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
6952 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
6953 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
6954 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
6955 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
6956 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
6957 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
6958 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
6959 include/Makefile:build/top.mk:include/Makefile.in \
6960 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
6961 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
6962 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
6963 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
6964 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
6965 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
6966 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
6967 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
6968 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
6969 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
6970 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
6971 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
6972 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
6973 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
6974 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
6975 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
6976 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
6977 tests/Makefile:build/top.mk:tests/Makefile.in \
6978 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6980 cat >> $CONFIG_STATUS <<EOF
6982 # Protect against being on the right side of a sed subst in config.status.
6983 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6984 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6987 s%@CFLAGS@%$CFLAGS%g
6988 s%@CPPFLAGS@%$CPPFLAGS%g
6989 s%@CXXFLAGS@%$CXXFLAGS%g
6991 s%@LDFLAGS@%$LDFLAGS%g
6993 s%@exec_prefix@%$exec_prefix%g
6994 s%@prefix@%$prefix%g
6995 s%@program_transform_name@%$program_transform_name%g
6996 s%@bindir@%$bindir%g
6997 s%@sbindir@%$sbindir%g
6998 s%@libexecdir@%$libexecdir%g
6999 s%@datadir@%$datadir%g
7000 s%@sysconfdir@%$sysconfdir%g
7001 s%@sharedstatedir@%$sharedstatedir%g
7002 s%@localstatedir@%$localstatedir%g
7003 s%@libdir@%$libdir%g
7004 s%@includedir@%$includedir%g
7005 s%@oldincludedir@%$oldincludedir%g
7006 s%@infodir@%$infodir%g
7007 s%@mandir@%$mandir%g
7009 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7010 s%@INSTALL_DATA@%$INSTALL_DATA%g
7011 s%@RANLIB@%$RANLIB%g
7012 s%@SET_MAKE@%$SET_MAKE%g
7013 s%@SENDMAIL@%$SENDMAIL%g
7014 s%@EDITOR@%$EDITOR%g
7015 s%@FINGER@%$FINGER%g
7019 s%@LIBOBJS@%$LIBOBJS%g
7020 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
7021 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
7022 s%@BUILD_LDBM@%$BUILD_LDBM%g
7023 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
7024 s%@BUILD_SHELL@%$BUILD_SHELL%g
7025 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
7026 s%@LDAP_LIBS@%$LDAP_LIBS%g
7027 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
7028 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
7029 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
7030 s%@LDBM_LIBS@%$LDBM_LIBS%g
7031 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
7032 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
7033 s%@KRB_LIBS@%$KRB_LIBS%g
7034 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
7039 cat >> $CONFIG_STATUS <<\EOF
7041 # Split the substitutions into bite-sized pieces for seds with
7042 # small command number limits, like on Digital OSF/1 and HP-UX.
7043 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7044 ac_file=1 # Number of current file.
7045 ac_beg=1 # First line for current file.
7046 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7049 while $ac_more_lines; do
7050 if test $ac_beg -gt 1; then
7051 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7053 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7055 if test ! -s conftest.s$ac_file; then
7057 rm -f conftest.s$ac_file
7059 if test -z "$ac_sed_cmds"; then
7060 ac_sed_cmds="sed -f conftest.s$ac_file"
7062 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7064 ac_file=`expr $ac_file + 1`
7066 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7069 if test -z "$ac_sed_cmds"; then
7074 cat >> $CONFIG_STATUS <<EOF
7076 CONFIG_FILES=\${CONFIG_FILES-"\
7077 Makefile:build/top.mk:Makefile.in:build/dir.mk \
7078 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
7079 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
7080 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
7081 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
7082 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
7083 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
7084 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
7085 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
7086 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
7087 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
7088 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
7089 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
7090 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
7091 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
7092 include/Makefile:build/top.mk:include/Makefile.in \
7093 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
7094 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
7095 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
7096 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
7097 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
7098 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
7099 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
7100 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
7101 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
7102 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
7103 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
7104 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
7105 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
7106 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
7107 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
7108 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
7109 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
7110 tests/Makefile:build/top.mk:tests/Makefile.in \
7113 cat >> $CONFIG_STATUS <<\EOF
7114 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7119 *) ac_file_in="${ac_file}.in" ;;
7122 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7124 # Remove last slash and all that follows it. Not all systems have dirname.
7125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7127 # The file is in a subdirectory.
7128 test ! -d "$ac_dir" && mkdir "$ac_dir"
7129 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7130 # A "../" for each directory in $ac_dir_suffix.
7131 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7133 ac_dir_suffix= ac_dots=
7136 case "$ac_given_srcdir" in
7138 if test -z "$ac_dots"; then top_srcdir=.
7139 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7140 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7142 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7143 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7146 case "$ac_given_INSTALL" in
7147 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7148 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7151 echo creating "$ac_file"
7153 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7155 *Makefile*) ac_comsub="1i\\
7156 # $configure_input" ;;
7160 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7162 s%@configure_input@%$configure_input%g
7163 s%@srcdir@%$srcdir%g
7164 s%@top_srcdir@%$top_srcdir%g
7165 s%@INSTALL@%$INSTALL%g
7166 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7173 # ac_d sets the value in "#define NAME VALUE" lines.
7174 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7175 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7178 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7179 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7180 ac_uB='\([ ]\)%\1#\2define\3'
7183 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7184 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7185 ac_eB='$%\1#\2define\3'
7189 if test "${CONFIG_HEADERS+set}" != set; then
7191 cat >> $CONFIG_STATUS <<EOF
7192 CONFIG_HEADERS="include/portable.h"
7194 cat >> $CONFIG_STATUS <<\EOF
7196 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7199 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7200 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7201 *) ac_file_in="${ac_file}.in" ;;
7204 echo creating $ac_file
7206 rm -f conftest.frag conftest.in conftest.out
7207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7208 cat $ac_file_inputs > conftest.in
7212 # Transform confdefs.h into a sed script conftest.vals that substitutes
7213 # the proper values into config.h.in to produce config.h. And first:
7214 # Protect against being on the right side of a sed subst in config.status.
7215 # Protect against being in an unquoted here document in config.status.
7217 cat > conftest.hdr <<\EOF
7220 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7224 sed -n -f conftest.hdr confdefs.h > conftest.vals
7227 # This sed command replaces #undef with comments. This is necessary, for
7228 # example, in the case of _POSIX_SOURCE, which is predefined and required
7229 # on some systems where configure will not decide to define it.
7230 cat >> conftest.vals <<\EOF
7231 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7234 # Break up conftest.vals because some shells have a limit on
7235 # the size of here documents, and old seds have small limits too.
7240 ac_lines=`grep -c . conftest.vals`
7241 # grep -c gives empty output for an empty file on some AIX systems.
7242 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7243 # Write a limited-size here document to conftest.frag.
7244 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7245 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7247 sed -f conftest.frag conftest.in > conftest.out
7249 mv conftest.out conftest.in
7251 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7253 mv conftest.tail conftest.vals
7257 cat >> $CONFIG_STATUS <<\EOF
7258 rm -f conftest.frag conftest.h
7259 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7260 cat conftest.in >> conftest.h
7262 if cmp -s $ac_file conftest.h 2>/dev/null; then
7263 echo "$ac_file is unchanged"
7266 # Remove last slash and all that follows it. Not all systems have dirname.
7267 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7269 # The file is in a subdirectory.
7270 test ! -d "$ac_dir" && mkdir "$ac_dir"
7273 mv conftest.h $ac_file
7278 cat >> $CONFIG_STATUS <<EOF
7281 cat >> $CONFIG_STATUS <<\EOF
7284 echo Please \"make depend\" to build dependencies
7288 chmod +x $CONFIG_STATUS
7289 rm -fr confdefs* $ac_clean_files
7290 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1