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 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-perl enable perl backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static build static libraries [default=yes]
79 --enable-static=PKGS only build shared libraries if the current package
80 appears as an element in the PKGS list"
82 --enable-shared build shared libraries [default=yes]
83 --enable-shared=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.12"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=include/ldap.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
581 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
582 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
583 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
590 ac_n= ac_c='\c' ac_t=
594 for ac_dir in build $srcdir/build; do
595 if test -f $ac_dir/install-sh; then
597 ac_install_sh="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh; then
601 ac_install_sh="$ac_aux_dir/install.sh -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
608 ac_config_guess=$ac_aux_dir/config.guess
609 ac_config_sub=$ac_aux_dir/config.sub
610 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 # Find a good install program. We prefer a C program (faster),
612 # so one script is as good as another. But avoid the broken or
613 # incompatible versions:
614 # SysV /etc/install, /usr/sbin/install
615 # SunOS /usr/etc/install
618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
620 # ./install, which can be erroneously created by make from ./install.sh.
621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
622 echo "configure:623: checking for a BSD compatible install" >&5
623 if test -z "$INSTALL"; then
624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
625 echo $ac_n "(cached) $ac_c" 1>&6
627 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
628 for ac_dir in $PATH; do
629 # Account for people who put trailing slashes in PATH elements.
631 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
633 # OSF1 and SCO ODT 3.0 have their own names for install.
634 for ac_prog in ginstall installbsd scoinst install; do
635 if test -f $ac_dir/$ac_prog; then
636 if test $ac_prog = install &&
637 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
638 # AIX install. It has an incompatible calling convention.
639 # OSF/1 installbsd also uses dspmsg, but is usable.
642 ac_cv_path_install="$ac_dir/$ac_prog -c"
653 if test "${ac_cv_path_install+set}" = set; then
654 INSTALL="$ac_cv_path_install"
656 # As a last resort, use the slow shell script. We don't cache a
657 # path for INSTALL within a source directory, because that will
658 # break other packages using the cache if that directory is
659 # removed, or if the path is relative.
660 INSTALL="$ac_install_sh"
663 echo "$ac_t""$INSTALL" 1>&6
665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
666 # It thinks the first close brace ends the variable substitution.
667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
674 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
675 echo "configure:676: checking whether build environment is sane" >&5
678 echo timestamp > conftestfile
679 # Do `set' in a subshell so we don't clobber the current shell's
680 # arguments. Must try -L first in case configure is actually a
681 # symlink; some systems play weird games with the mod time of symlinks
682 # (eg FreeBSD returns the mod time of the symlink's containing
685 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
686 if test "$*" = "X"; then
688 set X `ls -t $srcdir/configure conftestfile`
690 if test "$*" != "X $srcdir/configure conftestfile" \
691 && test "$*" != "X conftestfile $srcdir/configure"; then
693 # If neither matched, then we have a broken ls. This can happen
694 # if, for instance, CONFIG_SHELL is bash and it inherits a
695 # broken ls alias from the environment. This has actually
696 # happened. Such a system could not be considered "sane".
697 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
698 alias in your environment" 1>&2; exit 1; }
701 test "$2" = conftestfile
707 { echo "configure: error: newly created file is older than distributed files!
708 Check your system clock" 1>&2; exit 1; }
711 echo "$ac_t""yes" 1>&6
712 if test "$program_transform_name" = s,x,x,; then
713 program_transform_name=
715 # Double any \ or $. echo might interpret backslashes.
716 cat <<\EOF_SED > conftestsed
717 s,\\,\\\\,g; s,\$,$$,g
719 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
722 test "$program_prefix" != NONE &&
723 program_transform_name="s,^,${program_prefix},; $program_transform_name"
724 # Use a double $ so make ignores it.
725 test "$program_suffix" != NONE &&
726 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
728 # sed with no file args requires a program.
729 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
731 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
732 echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
733 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
734 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 cat > conftestmake <<\EOF
739 @echo 'ac_maketemp="${MAKE}"'
741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
742 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
743 if test -n "$ac_maketemp"; then
744 eval ac_cv_prog_make_${ac_make}_set=yes
746 eval ac_cv_prog_make_${ac_make}_set=no
750 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
751 echo "$ac_t""yes" 1>&6
754 echo "$ac_t""no" 1>&6
755 SET_MAKE="MAKE=${MAKE-make}"
763 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
764 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 echo "$ac_t""found" 1>&6
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 echo "$ac_t""found" 1>&6
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 echo "$ac_t""found" 1>&6
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
839 echo "configure:840: checking configure arguments" >&5
844 ldap_subdir="openldap"
846 # Check whether --with-subdir or --without-subdir was given.
847 if test "${with_subdir+set}" = set; then
848 withval="$with_subdir"
850 if test "$withval" = "no"; then
852 elif test "$withval" != "yes"; then
853 ldap_subdir="$withval"
859 # OpenLDAP --enable-debug
860 # Check whether --enable-debug or --disable-debug was given.
861 if test "${enable_debug+set}" = set; then
862 enableval="$enable_debug"
865 for ol_val in auto yes no ; do
866 if test "$enableval" = "$ol_val" ; then
870 if test "$ol_arg" = "invalid" ; then
871 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
873 ol_enable_debug="$ol_arg"
876 ol_enable_debug="yes"
880 # OpenLDAP --enable-proctitle
881 # Check whether --enable-proctitle or --disable-proctitle was given.
882 if test "${enable_proctitle+set}" = set; then
883 enableval="$enable_proctitle"
886 for ol_val in auto yes no ; do
887 if test "$enableval" = "$ol_val" ; then
891 if test "$ol_arg" = "invalid" ; then
892 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
894 ol_enable_proctitle="$ol_arg"
897 ol_enable_proctitle="yes"
899 # end --enable-proctitle
900 # OpenLDAP --enable-cache
901 # Check whether --enable-cache or --disable-cache was given.
902 if test "${enable_cache+set}" = set; then
903 enableval="$enable_cache"
906 for ol_val in auto yes no ; do
907 if test "$enableval" = "$ol_val" ; then
911 if test "$ol_arg" = "invalid" ; then
912 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
914 ol_enable_cache="$ol_arg"
917 ol_enable_cache="yes"
920 # OpenLDAP --enable-dns
921 # Check whether --enable-dns or --disable-dns was given.
922 if test "${enable_dns+set}" = set; then
923 enableval="$enable_dns"
926 for ol_val in auto yes no ; do
927 if test "$enableval" = "$ol_val" ; then
931 if test "$ol_arg" = "invalid" ; then
932 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
934 ol_enable_dns="$ol_arg"
940 # OpenLDAP --enable-referrals
941 # Check whether --enable-referrals or --disable-referrals was given.
942 if test "${enable_referrals+set}" = set; then
943 enableval="$enable_referrals"
946 for ol_val in auto yes no ; do
947 if test "$enableval" = "$ol_val" ; then
951 if test "$ol_arg" = "invalid" ; then
952 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
954 ol_enable_referrals="$ol_arg"
957 ol_enable_referrals="yes"
959 # end --enable-referrals
960 # OpenLDAP --enable-cldap
961 # Check whether --enable-cldap or --disable-cldap was given.
962 if test "${enable_cldap+set}" = set; then
963 enableval="$enable_cldap"
966 for ol_val in auto yes no ; do
967 if test "$enableval" = "$ol_val" ; then
971 if test "$ol_arg" = "invalid" ; then
972 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
974 ol_enable_cldap="$ol_arg"
980 # OpenLDAP --enable-x_compile
981 # Check whether --enable-x_compile or --disable-x_compile was given.
982 if test "${enable_x_compile+set}" = set; then
983 enableval="$enable_x_compile"
986 for ol_val in yes no ; do
987 if test "$enableval" = "$ol_val" ; then
991 if test "$ol_arg" = "invalid" ; then
992 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
994 ol_enable_x_compile="$ol_arg"
997 ol_enable_x_compile="no"
999 # end --enable-x_compile
1002 # OpenLDAP --enable-dmalloc
1003 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1004 if test "${enable_dmalloc+set}" = set; then
1005 enableval="$enable_dmalloc"
1008 for ol_val in auto yes no ; do
1009 if test "$enableval" = "$ol_val" ; then
1013 if test "$ol_arg" = "invalid" ; then
1014 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1016 ol_enable_dmalloc="$ol_arg"
1019 ol_enable_dmalloc="no"
1021 # end --enable-dmalloc
1023 # OpenLDAP --with-kerberos
1024 # Check whether --with-kerberos or --without-kerberos was given.
1025 if test "${with_kerberos+set}" = set; then
1026 withval="$with_kerberos"
1029 for ol_val in auto k5 k4 afs yes no ; do
1030 if test "$withval" = "$ol_val" ; then
1034 if test "$ol_arg" = "invalid" ; then
1035 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1037 ol_with_kerberos="$ol_arg"
1040 ol_with_kerberos="auto"
1042 # end --with-kerberos
1044 # OpenLDAP --with-threads
1045 # Check whether --with-threads or --without-threads was given.
1046 if test "${with_threads+set}" = set; then
1047 withval="$with_threads"
1050 for ol_val in auto posix mach lwp yes no manual ; do
1051 if test "$withval" = "$ol_val" ; then
1055 if test "$ol_arg" = "invalid" ; then
1056 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1058 ol_with_threads="$ol_arg"
1061 ol_with_threads="auto"
1063 # end --with-threads
1065 # OpenLDAP --with-yielding_select
1066 # Check whether --with-yielding_select or --without-yielding_select was given.
1067 if test "${with_yielding_select+set}" = set; then
1068 withval="$with_yielding_select"
1071 for ol_val in auto yes no manual ; do
1072 if test "$withval" = "$ol_val" ; then
1076 if test "$ol_arg" = "invalid" ; then
1077 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1079 ol_with_yielding_select="$ol_arg"
1082 ol_with_yielding_select="auto"
1084 # end --with-yielding_select
1088 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1089 if test "${with_xxldapdoptions+set}" = set; then
1090 withval="$with_xxldapdoptions"
1094 # OpenLDAP --enable-ldapd
1095 # Check whether --enable-ldapd or --disable-ldapd was given.
1096 if test "${enable_ldapd+set}" = set; then
1097 enableval="$enable_ldapd"
1100 for ol_val in auto yes no ; do
1101 if test "$enableval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1108 ol_enable_ldapd="$ol_arg"
1111 ol_enable_ldapd="no"
1113 # end --enable-ldapd
1115 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1116 if test "${with_xxslapdoptions+set}" = set; then
1117 withval="$with_xxslapdoptions"
1121 # OpenLDAP --enable-slapd
1122 # Check whether --enable-slapd or --disable-slapd was given.
1123 if test "${enable_slapd+set}" = set; then
1124 enableval="$enable_slapd"
1127 for ol_val in auto yes no ; do
1128 if test "$enableval" = "$ol_val" ; then
1132 if test "$ol_arg" = "invalid" ; then
1133 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1135 ol_enable_slapd="$ol_arg"
1138 ol_enable_slapd="yes"
1140 # end --enable-slapd
1141 # OpenLDAP --enable-aclgroups
1142 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1143 if test "${enable_aclgroups+set}" = set; then
1144 enableval="$enable_aclgroups"
1147 for ol_val in auto yes no ; do
1148 if test "$enableval" = "$ol_val" ; then
1152 if test "$ol_arg" = "invalid" ; then
1153 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1155 ol_enable_aclgroups="$ol_arg"
1158 ol_enable_aclgroups="auto"
1160 # end --enable-aclgroups
1161 # OpenLDAP --enable-cleartext
1162 # Check whether --enable-cleartext or --disable-cleartext was given.
1163 if test "${enable_cleartext+set}" = set; then
1164 enableval="$enable_cleartext"
1167 for ol_val in auto yes no ; do
1168 if test "$enableval" = "$ol_val" ; then
1172 if test "$ol_arg" = "invalid" ; then
1173 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1175 ol_enable_cleartext="$ol_arg"
1178 ol_enable_cleartext="yes"
1180 # end --enable-cleartext
1181 # OpenLDAP --enable-crypt
1182 # Check whether --enable-crypt or --disable-crypt was given.
1183 if test "${enable_crypt+set}" = set; then
1184 enableval="$enable_crypt"
1187 for ol_val in auto yes no ; do
1188 if test "$enableval" = "$ol_val" ; then
1192 if test "$ol_arg" = "invalid" ; then
1193 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1195 ol_enable_crypt="$ol_arg"
1198 ol_enable_crypt="auto"
1200 # end --enable-crypt
1201 # OpenLDAP --enable-wrappers
1202 # Check whether --enable-wrappers or --disable-wrappers was given.
1203 if test "${enable_wrappers+set}" = set; then
1204 enableval="$enable_wrappers"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1215 ol_enable_wrappers="$ol_arg"
1218 ol_enable_wrappers="no"
1220 # end --enable-wrappers
1221 # OpenLDAP --enable-phonetic
1222 # Check whether --enable-phonetic or --disable-phonetic was given.
1223 if test "${enable_phonetic+set}" = set; then
1224 enableval="$enable_phonetic"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1235 ol_enable_phonetic="$ol_arg"
1238 ol_enable_phonetic="no"
1240 # end --enable-phonetic
1241 # OpenLDAP --enable-rlookups
1242 # Check whether --enable-rlookups or --disable-rlookups was given.
1243 if test "${enable_rlookups+set}" = set; then
1244 enableval="$enable_rlookups"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1255 ol_enable_rlookups="$ol_arg"
1258 ol_enable_rlookups="auto"
1260 # end --enable-rlookups
1262 # OpenLDAP --enable-ldbm
1263 # Check whether --enable-ldbm or --disable-ldbm was given.
1264 if test "${enable_ldbm+set}" = set; then
1265 enableval="$enable_ldbm"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1276 ol_enable_ldbm="$ol_arg"
1279 ol_enable_ldbm="yes"
1282 # OpenLDAP --with-ldbm_api
1283 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1284 if test "${with_ldbm_api+set}" = set; then
1285 withval="$with_ldbm_api"
1288 for ol_val in auto db2 db gdbm ndbm manual ; do
1289 if test "$withval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1296 ol_with_ldbm_api="$ol_arg"
1299 ol_with_ldbm_api="auto"
1301 # end --with-ldbm_api
1303 # OpenLDAP --with-ldbm_type
1304 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1305 if test "${with_ldbm_type+set}" = set; then
1306 withval="$with_ldbm_type"
1309 for ol_val in auto btree hash ; do
1310 if test "$withval" = "$ol_val" ; then
1314 if test "$ol_arg" = "invalid" ; then
1315 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1317 ol_with_ldbm_type="$ol_arg"
1320 ol_with_ldbm_type="auto"
1322 # end --with-ldbm_type
1325 # OpenLDAP --enable-passwd
1326 # Check whether --enable-passwd or --disable-passwd was given.
1327 if test "${enable_passwd+set}" = set; then
1328 enableval="$enable_passwd"
1331 for ol_val in auto yes no ; do
1332 if test "$enableval" = "$ol_val" ; then
1336 if test "$ol_arg" = "invalid" ; then
1337 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1339 ol_enable_passwd="$ol_arg"
1342 ol_enable_passwd="no"
1344 # end --enable-passwd
1345 # OpenLDAP --enable-perl
1346 # Check whether --enable-perl or --disable-perl was given.
1347 if test "${enable_perl+set}" = set; then
1348 enableval="$enable_perl"
1351 for ol_val in auto yes no ; do
1352 if test "$enableval" = "$ol_val" ; then
1356 if test "$ol_arg" = "invalid" ; then
1357 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1359 ol_enable_perl="$ol_arg"
1365 # OpenLDAP --enable-shell
1366 # Check whether --enable-shell or --disable-shell was given.
1367 if test "${enable_shell+set}" = set; then
1368 enableval="$enable_shell"
1371 for ol_val in auto yes no ; do
1372 if test "$enableval" = "$ol_val" ; then
1376 if test "$ol_arg" = "invalid" ; then
1377 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1379 ol_enable_shell="$ol_arg"
1382 ol_enable_shell="no"
1384 # end --enable-shell
1386 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1387 if test "${with_xxslurpdoptions+set}" = set; then
1388 withval="$with_xxslurpdoptions"
1392 # OpenLDAP --enable-slurpd
1393 # Check whether --enable-slurpd or --disable-slurpd was given.
1394 if test "${enable_slurpd+set}" = set; then
1395 enableval="$enable_slurpd"
1398 for ol_val in auto yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1406 ol_enable_slurpd="$ol_arg"
1409 ol_enable_slurpd="auto"
1411 # end --enable-slurpd
1413 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1414 if test "${with_xxliboptions+set}" = set; then
1415 withval="$with_xxliboptions"
1419 # Check whether --enable-static or --disable-static was given.
1420 if test "${enable_static+set}" = set; then
1421 enableval="$enable_static"
1422 p=${PACKAGE-default}
1423 case "$enableval" in
1424 yes) enable_static=yes ;;
1425 no) enable_static=no ;;
1428 # Look at the argument we got. We use all the common list separators.
1429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1430 for pkg in $enableval; do
1431 if test "X$pkg" = "X$p"; then
1442 # Check whether --enable-shared or --disable-shared was given.
1443 if test "${enable_shared+set}" = set; then
1444 enableval="$enable_shared"
1445 p=${PACKAGE-default}
1446 case "$enableval" in
1447 yes) enable_shared=yes ;;
1448 no) enable_shared=no ;;
1451 # Look at the argument we got. We use all the common list separators.
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1453 for pkg in $enableval; do
1454 if test "X$pkg" = "X$p"; then
1467 if test $ol_enable_referrals = no ; then
1468 if test $ol_enable_dns = yes ; then
1469 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1474 if test $ol_enable_slapd = no ; then
1475 if test $ol_enable_ldbm = yes ; then
1476 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1478 if test $ol_enable_passwd = yes ; then
1479 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1481 if test $ol_enable_perl = yes ; then
1482 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1484 if test $ol_enable_shell = yes ; then
1485 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1487 if test $ol_enable_aclgroups = yes ; then
1488 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1490 if test $ol_enable_wrappers = yes ; then
1491 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1493 if test $ol_enable_phonetic = yes ; then
1494 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1496 if test $ol_enable_rlookups = yes ; then
1497 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1499 if test $ol_with_ldbm_api != auto ; then
1500 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1502 if test $ol_with_ldbm_type != auto ; then
1503 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1505 if test $ol_enable_slurpd = yes ; then
1506 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1509 # force settings to no
1514 ol_enable_aclgroups=no
1515 ol_enable_wrappers=no
1516 ol_enable_phonetic=no
1517 ol_enable_rlookups=no
1519 ol_with_ldbm_type=no
1522 elif test $ol_enable_ldbm = no ; then
1524 if test $ol_with_ldbm_api != auto ; then
1525 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1528 if test $ol_with_ldbm_type != auto ; then
1529 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1532 if test $ol_enable_passwd = no -a \
1533 $ol_enable_perl = no -a
1534 $ol_enable_shell = no ; then
1535 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1539 ol_with_ldbm_type=no
1543 if test $ol_with_ldbm_api = gdbm -a \
1544 $ol_with_ldbm_type = btree ; then
1545 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1547 if test $ol_with_ldbm_api = ndbm -a \
1548 $ol_with_ldbm_type = btree ; then
1549 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1553 if test $ol_enable_slurpd = yes ; then
1554 if test $ol_with_threads = no ; then
1555 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1559 echo "$ac_t""done" 1>&6
1562 # Make sure we can run config.sub.
1563 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1564 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1567 echo $ac_n "checking host system type""... $ac_c" 1>&6
1568 echo "configure:1569: checking host system type" >&5
1571 case "$host_alias" in
1575 if host_alias=`$ac_config_guess`; then :
1576 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1578 *) host_alias=$nonopt ;;
1582 host=`$ac_config_sub $host_alias`
1583 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$ac_t""$host" 1>&6
1610 SLAPD_PERL_CPPFLAGS=
1616 # Find a good install program. We prefer a C program (faster),
1617 # so one script is as good as another. But avoid the broken or
1618 # incompatible versions:
1619 # SysV /etc/install, /usr/sbin/install
1620 # SunOS /usr/etc/install
1621 # IRIX /sbin/install
1623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1627 echo "configure:1628: checking for a BSD compatible install" >&5
1628 if test -z "$INSTALL"; then
1629 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1633 for ac_dir in $PATH; do
1634 # Account for people who put trailing slashes in PATH elements.
1636 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1638 # OSF1 and SCO ODT 3.0 have their own names for install.
1639 for ac_prog in ginstall installbsd scoinst install; do
1640 if test -f $ac_dir/$ac_prog; then
1641 if test $ac_prog = install &&
1642 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1643 # AIX install. It has an incompatible calling convention.
1644 # OSF/1 installbsd also uses dspmsg, but is usable.
1647 ac_cv_path_install="$ac_dir/$ac_prog -c"
1658 if test "${ac_cv_path_install+set}" = set; then
1659 INSTALL="$ac_cv_path_install"
1661 # As a last resort, use the slow shell script. We don't cache a
1662 # path for INSTALL within a source directory, because that will
1663 # break other packages using the cache if that directory is
1664 # removed, or if the path is relative.
1665 INSTALL="$ac_install_sh"
1668 echo "$ac_t""$INSTALL" 1>&6
1670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1671 # It thinks the first close brace ends the variable substitution.
1672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1676 # Extract the first word of "ranlib", so it can be a program name with args.
1677 set dummy ranlib; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test -n "$RANLIB"; then
1684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1687 for ac_dir in $PATH; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_RANLIB="ranlib"
1695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1698 RANLIB="$ac_cv_prog_RANLIB"
1699 if test -n "$RANLIB"; then
1700 echo "$ac_t""$RANLIB" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 # Extract the first word of "gcc", so it can be a program name with args.
1706 set dummy gcc; ac_word=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1716 for ac_dir in $PATH; do
1717 test -z "$ac_dir" && ac_dir=.
1718 if test -f $ac_dir/$ac_word; then
1727 if test -n "$CC"; then
1728 echo "$ac_t""$CC" 1>&6
1730 echo "$ac_t""no" 1>&6
1733 if test -z "$CC"; then
1734 # Extract the first word of "cc", so it can be a program name with args.
1735 set dummy cc; ac_word=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 if test -n "$CC"; then
1742 ac_cv_prog_CC="$CC" # Let the user override the test.
1744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1746 for ac_dir in $PATH; do
1747 test -z "$ac_dir" && ac_dir=.
1748 if test -f $ac_dir/$ac_word; then
1749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1750 ac_prog_rejected=yes
1758 if test $ac_prog_rejected = yes; then
1759 # We found a bogon in the path, so make sure we never use it.
1760 set dummy $ac_cv_prog_CC
1762 if test $# -gt 0; then
1763 # We chose a different compiler from the bogus one.
1764 # However, it has the same basename, so the bogon will be chosen
1765 # first if we set CC to just the basename; use the full file name.
1767 set dummy "$ac_dir/$ac_word" "$@"
1775 if test -n "$CC"; then
1776 echo "$ac_t""$CC" 1>&6
1778 echo "$ac_t""no" 1>&6
1781 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1785 echo "configure:1786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1788 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1791 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1792 cross_compiling=$ac_cv_prog_cc_cross
1794 cat > conftest.$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1799 if { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1800 ac_cv_prog_cc_works=yes
1801 # If we can't run a trivial program, we are probably using a cross compiler.
1802 if (./conftest; exit) 2>/dev/null; then
1803 ac_cv_prog_cc_cross=no
1805 ac_cv_prog_cc_cross=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 ac_cv_prog_cc_works=no
1814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1815 if test $ac_cv_prog_cc_works = no; then
1816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1821 cross_compiling=$ac_cv_prog_cc_cross
1823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1824 echo "configure:1825: checking whether we are using GNU C" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.c <<EOF
1833 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1842 if test $ac_cv_prog_gcc = yes; then
1844 ac_test_CFLAGS="${CFLAGS+set}"
1845 ac_save_CFLAGS="$CFLAGS"
1847 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1848 echo "configure:1849: checking whether ${CC-cc} accepts -g" >&5
1849 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 echo 'void f(){}' > conftest.c
1853 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1862 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1863 if test "$ac_test_CFLAGS" = set; then
1864 CFLAGS="$ac_save_CFLAGS"
1865 elif test $ac_cv_prog_cc_g = yes; then
1872 test "${CFLAGS+set}" = set || CFLAGS="-g"
1875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1876 if test "${with_gnu_ld+set}" = set; then
1877 withval="$with_gnu_ld"
1878 test "$withval" = no || with_gnu_ld=yes
1885 if test "$ac_cv_prog_gcc" = yes; then
1886 # Check if gcc -print-prog-name=ld gives a path.
1887 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1888 echo "configure:1889: checking for ld used by GCC" >&5
1889 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1891 # Accept absolute paths.
1893 test -z "$LD" && LD="$ac_prog"
1896 # If it fails, then pretend we aren't using GCC.
1900 # If it is relative, then search for the first ld in PATH.
1904 elif test "$with_gnu_ld" = yes; then
1905 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1906 echo "configure:1907: checking for GNU ld" >&5
1908 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1909 echo "configure:1910: checking for non-GNU ld" >&5
1911 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test -z "$LD"; then
1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1916 for ac_dir in $PATH; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f "$ac_dir/$ac_prog"; then
1919 ac_cv_path_LD="$ac_dir/$ac_prog"
1920 # Check to see if the program is GNU ld. I'd rather use --version,
1921 # but apparently some GNU ld's only accept -v.
1922 # Break only if it was the GNU/non-GNU ld that we prefer.
1923 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1924 test "$with_gnu_ld" != no && break
1926 test "$with_gnu_ld" != yes && break
1932 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1937 if test -n "$LD"; then
1938 echo "$ac_t""$LD" 1>&6
1940 echo "$ac_t""no" 1>&6
1942 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1944 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking if the linker ($LD) is GNU ld" >&5
1946 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1950 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1951 ac_cv_prog_gnu_ld=yes
1953 ac_cv_prog_gnu_ld=no
1957 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1960 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1961 echo "configure:1962: checking for BSD-compatible nm" >&5
1962 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1967 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1971 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/nm; then
1974 # Check to see if the nm accepts a BSD-compat flag.
1975 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1976 # nm: unknown option "B" ignored
1977 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1978 ac_cv_path_NM="$ac_dir/nm -B"
1979 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1980 ac_cv_path_NM="$ac_dir/nm -p"
1982 ac_cv_path_NM="$ac_dir/nm"
1988 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1994 echo "$ac_t""$NM" 1>&6
1997 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1998 echo "configure:1999: checking whether ln -s works" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2003 if ln -s X conftestdata 2>/dev/null
2006 ac_cv_prog_LN_S="ln -s"
2011 LN_S="$ac_cv_prog_LN_S"
2012 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2013 echo "$ac_t""yes" 1>&6
2015 echo "$ac_t""no" 1>&6
2018 # Always use our own libtool.
2019 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2021 # Check for any special flags to pass to ltconfig.
2023 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2024 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2025 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2026 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2027 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2029 # Some flags need to be propagated to the compiler or linker for good
2033 # Find out which ABI we are using.
2034 echo '#line 2035 "configure"' > conftest.$ac_ext
2035 if { (eval echo configure:2036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2036 case "`/usr/bin/file conftest.o`" in
2052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2053 CFLAGS="$CFLAGS -belf"
2057 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2058 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2059 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2060 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2061 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2062 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2065 # Extract the first word of "sendmail", so it can be a program name with args.
2066 set dummy sendmail; ac_word=$2
2067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_word" >&5
2069 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2074 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2078 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2079 test -z "$ac_dir" && ac_dir=.
2080 if test -f $ac_dir/$ac_word; then
2081 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2086 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2090 SENDMAIL="$ac_cv_path_SENDMAIL"
2091 if test -n "$SENDMAIL"; then
2092 echo "$ac_t""$SENDMAIL" 1>&6
2094 echo "$ac_t""no" 1>&6
2097 # Extract the first word of "vi", so it can be a program name with args.
2098 set dummy vi; ac_word=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2106 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2110 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2118 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2122 EDITOR="$ac_cv_path_EDITOR"
2123 if test -n "$EDITOR"; then
2124 echo "$ac_t""$EDITOR" 1>&6
2126 echo "$ac_t""no" 1>&6
2129 # Extract the first word of "finger", so it can be a program name with args.
2130 set dummy finger; ac_word=$2
2131 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_word" >&5
2133 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2138 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2142 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/$ac_word; then
2145 ac_cv_path_FINGER="$ac_dir/$ac_word"
2150 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2154 FINGER="$ac_cv_path_FINGER"
2155 if test -n "$FINGER"; then
2156 echo "$ac_t""$FINGER" 1>&6
2158 echo "$ac_t""no" 1>&6
2162 if test $ol_enable_perl = yes ; then
2163 # Extract the first word of "perl", so it can be a program name with args.
2164 set dummy perl; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2176 for ac_dir in $PATH; do
2177 test -z "$ac_dir" && ac_dir=.
2178 if test -f $ac_dir/$ac_word; then
2179 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2184 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2188 PERLBIN="$ac_cv_path_PERLBIN"
2189 if test -n "$PERLBIN"; then
2190 echo "$ac_t""$PERLBIN" 1>&6
2192 echo "$ac_t""no" 1>&6
2196 if test "no$PERLBIN" = "no" ; then
2200 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2201 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2205 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2206 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2208 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2209 echo "configure: warning: programs compiled here do run here..." 1>&2
2210 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2212 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2213 echo "configure: warning: programs compiled here do not run here..." 1>&2
2214 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2217 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2218 echo "configure:2219: checking how to run the C preprocessor" >&5
2219 # On Suns, sometimes $CPP names a directory.
2220 if test -n "$CPP" && test -d "$CPP"; then
2223 if test -z "$CPP"; then
2224 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 # This must be in double quotes, not single quotes, because CPP may get
2228 # substituted into the Makefile and "${CC-cc}" will confuse make.
2230 # On the NeXT, cc -E runs the code through the compiler's parser,
2231 # not just through cpp.
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err=`grep -v '^ *+' conftest.out`
2241 if test -z "$ac_err"; then
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 CPP="${CC-cc} -E -traditional-cpp"
2249 cat > conftest.$ac_ext <<EOF
2250 #line 2251 "configure"
2251 #include "confdefs.h"
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out`
2258 if test -z "$ac_err"; then
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2270 ac_cv_prog_CPP="$CPP"
2272 CPP="$ac_cv_prog_CPP"
2274 ac_cv_prog_CPP="$CPP"
2276 echo "$ac_t""$CPP" 1>&6
2279 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2280 echo "configure:2281: checking for AIX" >&5
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2290 egrep "yes" >/dev/null 2>&1; then
2292 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2293 #define _ALL_SOURCE 1
2298 echo "$ac_t""no" 1>&6
2303 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2304 echo "configure:2305: checking for POSIXized ISC" >&5
2305 if test -d /etc/conf/kconfig.d &&
2306 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2308 echo "$ac_t""yes" 1>&6
2309 ISC=yes # If later tests want to check for ISC.
2310 cat >> confdefs.h <<\EOF
2311 #define _POSIX_SOURCE 1
2314 if test "$GCC" = yes; then
2320 echo "$ac_t""no" 1>&6
2324 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2325 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2326 echo "configure:2327: checking for minix/config.h" >&5
2327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <minix/config.h>
2335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2336 { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2337 ac_err=`grep -v '^ *+' conftest.out`
2338 if test -z "$ac_err"; then
2340 eval "ac_cv_header_$ac_safe=yes"
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2346 eval "ac_cv_header_$ac_safe=no"
2350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2354 echo "$ac_t""no" 1>&6
2358 if test "$MINIX" = yes; then
2359 cat >> confdefs.h <<\EOF
2360 #define _POSIX_SOURCE 1
2363 cat >> confdefs.h <<\EOF
2364 #define _POSIX_1_SOURCE 2
2367 cat >> confdefs.h <<\EOF
2377 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2378 echo "configure:2379: checking for ${CC-cc} option to accept ANSI C" >&5
2379 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 am_cv_prog_cc_stdc=no
2384 # Don't try gcc -ansi; that turns off useful extensions and
2385 # breaks some systems' header files.
2386 # AIX -qlanglvl=ansi
2387 # Ultrix and OSF/1 -std1
2388 # HP-UX -Aa -D_HPUX_SOURCE
2389 # SVR4 -Xc -D__EXTENSIONS__
2390 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2392 CC="$ac_save_CC $ac_arg"
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2398 #include <sys/types.h>
2399 #include <sys/stat.h>
2400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2401 struct buf { int x; };
2402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2403 static char *e (p, i)
2409 static char *f (char * (*g) (char **, int), char **p, ...)
2414 s = g (p, va_arg (v,int));
2418 int test (int i, double x);
2419 struct s1 {int (*f) (int a);};
2420 struct s2 {int (*f) (double a);};
2421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 am_cv_prog_cc_stdc="$ac_arg"; break
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2444 if test -z "$am_cv_prog_cc_stdc"; then
2445 echo "$ac_t""none needed" 1>&6
2447 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2449 case "x$am_cv_prog_cc_stdc" in
2451 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2454 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2455 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2461 echo $ac_n "checking for socket""... $ac_c" 1>&6
2462 echo "configure:2463: checking for socket" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* System header to define __stub macros and hopefully few prototypes,
2470 which can conflict with char socket(); below. */
2472 /* Override any gcc2 internal prototype to avoid an error. */
2473 /* We use char because int might match the return type of a gcc2
2474 builtin and then its argument prototype would still apply. */
2479 /* The GNU C library defines this for functions which it implements
2480 to always fail with ENOSYS. Some functions are actually named
2481 something starting with __ and the normal name is an alias. */
2482 #if defined (__stub_socket) || defined (__stub___socket)
2490 if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2492 eval "ac_cv_func_socket=yes"
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 eval "ac_cv_func_socket=no"
2502 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2506 echo "$ac_t""no" 1>&6
2508 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2509 echo "configure:2510: checking for main in -lsocket" >&5
2510 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 ac_save_LIBS="$LIBS"
2515 LIBS="-lsocket $LIBS"
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2526 eval "ac_cv_lib_$ac_lib_var=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_lib_$ac_lib_var=no"
2534 LIBS="$ac_save_LIBS"
2537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2539 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2541 cat >> confdefs.h <<EOF
2542 #define $ac_tr_lib 1
2545 LIBS="-lsocket $LIBS"
2548 echo "$ac_t""no" 1>&6
2551 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2552 echo "configure:2553: checking for main in -lnet" >&5
2553 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 ac_save_LIBS="$LIBS"
2559 cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2569 eval "ac_cv_lib_$ac_lib_var=yes"
2571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2574 eval "ac_cv_lib_$ac_lib_var=no"
2577 LIBS="$ac_save_LIBS"
2580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2583 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2584 cat >> confdefs.h <<EOF
2585 #define $ac_tr_lib 1
2591 echo "$ac_t""no" 1>&6
2594 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2595 echo "configure:2596: checking for main in -lnsl_s" >&5
2596 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 ac_save_LIBS="$LIBS"
2601 LIBS="-lnsl_s $LIBS"
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2612 eval "ac_cv_lib_$ac_lib_var=yes"
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2617 eval "ac_cv_lib_$ac_lib_var=no"
2620 LIBS="$ac_save_LIBS"
2623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2624 echo "$ac_t""yes" 1>&6
2625 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2626 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2627 cat >> confdefs.h <<EOF
2628 #define $ac_tr_lib 1
2631 LIBS="-lnsl_s $LIBS"
2634 echo "$ac_t""no" 1>&6
2637 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2638 echo "configure:2639: checking for main in -lnsl" >&5
2639 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_save_LIBS="$LIBS"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2655 eval "ac_cv_lib_$ac_lib_var=yes"
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2660 eval "ac_cv_lib_$ac_lib_var=no"
2663 LIBS="$ac_save_LIBS"
2666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2667 echo "$ac_t""yes" 1>&6
2668 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_lib 1
2677 echo "$ac_t""no" 1>&6
2680 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2681 echo "configure:2682: checking for socket in -linet" >&5
2682 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 ac_save_LIBS="$LIBS"
2688 cat > conftest.$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 /* We use char because int might match the return type of a gcc2
2693 builtin and then its argument prototype would still apply. */
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2702 eval "ac_cv_lib_$ac_lib_var=yes"
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2707 eval "ac_cv_lib_$ac_lib_var=no"
2710 LIBS="$ac_save_LIBS"
2713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2716 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2717 cat >> confdefs.h <<EOF
2718 #define $ac_tr_lib 1
2724 echo "$ac_t""no" 1>&6
2727 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2728 echo "configure:2729: checking for main in -lgen" >&5
2729 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 ac_save_LIBS="$LIBS"
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2745 eval "ac_cv_lib_$ac_lib_var=yes"
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2750 eval "ac_cv_lib_$ac_lib_var=no"
2753 LIBS="$ac_save_LIBS"
2756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2757 echo "$ac_t""yes" 1>&6
2758 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2760 cat >> confdefs.h <<EOF
2761 #define $ac_tr_lib 1
2767 echo "$ac_t""no" 1>&6
2774 for ac_func in res_search
2776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_func" >&5
2778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $ac_func(); below. */
2787 /* Override any gcc2 internal prototype to avoid an error. */
2788 /* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2794 /* The GNU C library defines this for functions which it implements
2795 to always fail with ENOSYS. Some functions are actually named
2796 something starting with __ and the normal name is an alias. */
2797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2805 if { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2807 eval "ac_cv_func_$ac_func=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2812 eval "ac_cv_func_$ac_func=no"
2817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2818 echo "$ac_t""yes" 1>&6
2819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2820 cat >> confdefs.h <<EOF
2821 #define $ac_tr_func 1
2825 echo "$ac_t""no" 1>&6
2829 if test $ac_cv_func_res_search = "no" ; then
2830 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2831 echo "configure:2832: checking for res_search in -lbind" >&5
2832 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_save_LIBS="$LIBS"
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2852 eval "ac_cv_lib_$ac_lib_var=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_lib_$ac_lib_var=no"
2860 LIBS="$ac_save_LIBS"
2863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2864 echo "$ac_t""yes" 1>&6
2865 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2867 cat >> confdefs.h <<EOF
2868 #define $ac_tr_lib 1
2874 echo "$ac_t""no" 1>&6
2877 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_RES_SEARCH 1
2883 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2884 echo "configure:2885: checking for res_search in -lresolv" >&5
2885 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 ac_save_LIBS="$LIBS"
2890 LIBS="-lresolv $LIBS"
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2905 eval "ac_cv_lib_$ac_lib_var=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 eval "ac_cv_lib_$ac_lib_var=no"
2913 LIBS="$ac_save_LIBS"
2916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2917 echo "$ac_t""yes" 1>&6
2918 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2919 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2920 cat >> confdefs.h <<EOF
2921 #define $ac_tr_lib 1
2924 LIBS="-lresolv $LIBS"
2927 echo "$ac_t""no" 1>&6
2930 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2931 cat >> confdefs.h <<\EOF
2932 #define HAVE_RES_SEARCH 1
2939 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2940 echo "configure:2941: checking for sigset in -lV3" >&5
2941 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 ac_save_LIBS="$LIBS"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 /* Override any gcc2 internal prototype to avoid an error. */
2951 /* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2961 eval "ac_cv_lib_$ac_lib_var=yes"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 eval "ac_cv_lib_$ac_lib_var=no"
2969 LIBS="$ac_save_LIBS"
2972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2976 cat >> confdefs.h <<EOF
2977 #define $ac_tr_lib 1
2983 echo "$ac_t""no" 1>&6
2989 if test $ol_enable_ldapd != no ; then
2990 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2991 echo "configure:2992: checking for main in -lxtpp" >&5
2992 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 ac_save_LIBS="$LIBS"
2997 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3008 eval "ac_cv_lib_$ac_lib_var=yes"
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 eval "ac_cv_lib_$ac_lib_var=no"
3016 LIBS="$ac_save_LIBS"
3019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3020 echo "$ac_t""yes" 1>&6
3023 cat >> confdefs.h <<\EOF
3027 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3030 echo "$ac_t""no" 1>&6
3034 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3035 echo "configure:3036: checking for main in -ldsap" >&5
3036 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 ac_save_LIBS="$LIBS"
3041 LIBS="-ldsap -lisode $LIBS"
3042 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3052 eval "ac_cv_lib_$ac_lib_var=yes"
3054 echo "configure: failed program was:" >&5
3055 cat conftest.$ac_ext >&5
3057 eval "ac_cv_lib_$ac_lib_var=no"
3060 LIBS="$ac_save_LIBS"
3063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3067 cat >> confdefs.h <<\EOF
3071 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3074 echo "$ac_t""no" 1>&6
3078 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3079 echo "configure:3080: checking for main in -lisode" >&5
3080 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_save_LIBS="$LIBS"
3085 LIBS="-lisode $LIBS"
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3096 eval "ac_cv_lib_$ac_lib_var=yes"
3098 echo "configure: failed program was:" >&5
3099 cat conftest.$ac_ext >&5
3101 eval "ac_cv_lib_$ac_lib_var=no"
3104 LIBS="$ac_save_LIBS"
3107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3111 cat >> confdefs.h <<\EOF
3112 #define HAVE_ISODE 1
3115 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3118 echo "$ac_t""no" 1>&6
3124 if test $ol_link_isode != no; then
3125 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3126 echo "configure:3127: checking for main in -lpp" >&5
3127 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 ac_save_LIBS="$LIBS"
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3141 if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3143 eval "ac_cv_lib_$ac_lib_var=yes"
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 eval "ac_cv_lib_$ac_lib_var=no"
3151 LIBS="$ac_save_LIBS"
3154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3155 echo "$ac_t""yes" 1>&6
3157 cat >> confdefs.h <<\EOF
3161 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3164 echo "$ac_t""no" 1>&6
3169 # Extract the first word of "pepsy", so it can be a program name with args.
3170 set dummy pepsy; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3173 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3182 for ac_dir in $PATH; do
3183 test -z "$ac_dir" && ac_dir=.
3184 if test -f $ac_dir/$ac_word; then
3185 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3193 PEPSY="$ac_cv_path_PEPSY"
3194 if test -n "$PEPSY"; then
3195 echo "$ac_t""$PEPSY" 1>&6
3197 echo "$ac_t""no" 1>&6
3204 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3205 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3209 echo "configure:3210: checking for $ac_hdr" >&5
3210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3219 { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3220 ac_err=`grep -v '^ *+' conftest.out`
3221 if test -z "$ac_err"; then
3223 eval "ac_cv_header_$ac_safe=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_header_$ac_safe=no"
3233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3236 cat >> confdefs.h <<EOF
3237 #define $ac_tr_hdr 1
3241 echo "$ac_t""no" 1>&6
3246 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3247 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3248 echo "configure:3249: checking for main in -lkrb4" >&5
3249 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 ac_save_LIBS="$LIBS"
3254 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3265 eval "ac_cv_lib_$ac_lib_var=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3270 eval "ac_cv_lib_$ac_lib_var=no"
3273 LIBS="$ac_save_LIBS"
3276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3280 echo "$ac_t""no" 1>&6
3285 if test $have_k5 = yes ; then
3286 ol_with_kerberos=found
3287 ol_link_kerberos=yes
3289 cat >> confdefs.h <<\EOF
3290 #define HAVE_KERBEROS 1
3293 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3298 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3299 for ac_hdr in krb.h des.h
3301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_hdr" >&5
3304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3313 { (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3314 ac_err=`grep -v '^ *+' conftest.out`
3315 if test -z "$ac_err"; then
3317 eval "ac_cv_header_$ac_safe=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_header_$ac_safe=no"
3327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3328 echo "$ac_t""yes" 1>&6
3329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3330 cat >> confdefs.h <<EOF
3331 #define $ac_tr_hdr 1
3335 echo "$ac_t""no" 1>&6
3340 if test $ac_cv_header_krb_h = yes ; then
3341 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3342 echo "configure:3343: checking for main in -lkrb" >&5
3343 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 ac_save_LIBS="$LIBS"
3348 LIBS="-lkrb -ldes $LIBS"
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3359 eval "ac_cv_lib_$ac_lib_var=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_lib_$ac_lib_var=no"
3367 LIBS="$ac_save_LIBS"
3370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3374 echo "$ac_t""no" 1>&6
3379 if test $have_k4 = yes ; then
3380 ol_with_kerberos=found
3381 ol_link_kerberos=yes
3383 cat >> confdefs.h <<\EOF
3384 #define HAVE_KERBEROS 1
3387 KRB_LIBS="-lkrb -ldes"
3394 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3395 -o $ol_with_threads = posix ; then
3397 for ac_hdr in pthread.h sched.h
3399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_hdr" >&5
3402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3411 { (eval echo configure:3412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3412 ac_err=`grep -v '^ *+' conftest.out`
3413 if test -z "$ac_err"; then
3415 eval "ac_cv_header_$ac_safe=yes"
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 eval "ac_cv_header_$ac_safe=no"
3425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_hdr 1
3433 echo "$ac_t""no" 1>&6
3438 if test $ac_cv_header_pthread_h = yes ; then
3439 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3440 echo "configure:3441: checking POSIX thread version" >&5
3441 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3449 # include <pthread.h>
3450 /* this check could be improved */
3451 # ifdef PTHREAD_ONCE_INIT
3452 pthread_version_final
3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457 egrep "pthread_version_final" >/dev/null 2>&1; then
3459 ol_pthread_final=yes
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3471 # include <pthread.h>
3472 /* this check could be improved */
3473 # ifdef pthread_once_init
3474 pthread_version_draft4
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3481 ol_pthread_draft4=yes
3484 ol_pthread_draft4=no
3489 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3490 ol_cv_pthread_version=final
3491 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3492 ol_cv_pthread_version=draft4
3494 ol_cv_pthread_version=unknown
3499 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3502 if test $ol_cv_pthread_version = final ; then
3503 cat >> confdefs.h <<\EOF
3504 #define HAVE_PTHREADS_FINAL 1
3507 elif test $ol_cv_pthread_version = draft4 ; then
3508 cat >> confdefs.h <<\EOF
3509 #define HAVE_PTHREADS_D4 1
3513 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3516 # consider threads found
3517 ol_with_threads=found
3520 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3521 echo "configure:3522: checking for LinuxThreads" >&5
3522 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3526 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3527 if test "$res" -gt 0 ; then
3528 ol_cv_linux_threads=yes
3530 ol_cv_linux_threads=no
3535 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3538 if test $ol_cv_linux_threads = yes ; then
3539 cat >> confdefs.h <<\EOF
3540 #define HAVE_LINUX_THREADS 1
3546 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3547 echo "configure:3548: checking for pthread_create" >&5
3548 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 cat > conftest.$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 /* System header to define __stub macros and hopefully few prototypes,
3555 which can conflict with char pthread_create(); below. */
3557 /* Override any gcc2 internal prototype to avoid an error. */
3558 /* We use char because int might match the return type of a gcc2
3559 builtin and then its argument prototype would still apply. */
3560 char pthread_create();
3564 /* The GNU C library defines this for functions which it implements
3565 to always fail with ENOSYS. Some functions are actually named
3566 something starting with __ and the normal name is an alias. */
3567 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3575 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3577 eval "ac_cv_func_pthread_create=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3582 eval "ac_cv_func_pthread_create=no"
3587 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3591 echo "$ac_t""no" 1>&6
3595 if test $ol_link_threads = no ; then
3596 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3597 echo "configure:3598: checking for pthread_create with -pthread" >&5
3598 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3603 LIBS="-pthread $LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3616 ol_cv_pthread_flag=yes
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 ol_cv_pthread_flag=no
3628 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3630 if test $ol_cv_pthread_flag = yes ; then
3631 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3632 ol_link_threads=posix
3636 if test $ol_link_threads = no ; then
3637 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3638 echo "configure:3639: checking for pthread_create with -pthreads" >&5
3639 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3644 LIBS="-pthreads $LIBS"
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3655 if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3657 ol_cv_pthreads_flag=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 ol_cv_pthreads_flag=no
3669 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3671 if test $ol_cv_pthreads_flag = yes ; then
3672 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3673 ol_link_threads=posix
3677 if test $ol_link_threads = no ; then
3678 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3679 echo "configure:3680: checking for pthread_create with -thread" >&5
3680 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3685 LIBS="-thread $LIBS"
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3696 if { (eval echo configure:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3698 ol_cv_thread_flag=yes
3700 echo "configure: failed program was:" >&5
3701 cat conftest.$ac_ext >&5
3703 ol_cv_thread_flag=no
3710 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3712 if test $ol_cv_thread_flag = yes ; then
3713 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3714 ol_link_threads=posix
3718 if test $ol_link_threads = no ; then
3720 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3721 echo "configure:3722: checking for pthread_mutex_lock in -lpthread" >&5
3722 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 ac_save_LIBS="$LIBS"
3727 LIBS="-lpthread -lexc $LIBS"
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* Override any gcc2 internal prototype to avoid an error. */
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3734 char pthread_mutex_lock();
3737 pthread_mutex_lock()
3740 if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3742 eval "ac_cv_lib_$ac_lib_var=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 eval "ac_cv_lib_$ac_lib_var=no"
3750 LIBS="$ac_save_LIBS"
3753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3756 ol_link_threads=posix
3757 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3758 if test $ol_with_yielding_select = auto ; then
3759 ol_with_yielding_select=yes
3763 echo "$ac_t""no" 1>&6
3769 if test $ol_link_threads = no ; then
3771 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
3772 echo "configure:3773: checking for pthread_mutex_unlock in -lpthreads" >&5
3773 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 ac_save_LIBS="$LIBS"
3778 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char pthread_mutex_unlock();
3788 pthread_mutex_unlock()
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 eval "ac_cv_lib_$ac_lib_var=no"
3801 LIBS="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3807 ol_link_threads=posix
3808 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3809 if test $ol_with_yielding_select = auto ; then
3810 ol_with_yielding_select=yes
3814 echo "$ac_t""no" 1>&6
3820 if test $ol_link_threads = no ; then
3822 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3823 echo "configure:3824: checking for pthread_create in -lpthread" >&5
3824 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 ac_save_LIBS="$LIBS"
3829 LIBS="-lpthread $LIBS"
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* Override any gcc2 internal prototype to avoid an error. */
3834 /* We use char because int might match the return type of a gcc2
3835 builtin and then its argument prototype would still apply. */
3836 char pthread_create();
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3858 ol_link_threads=posix
3859 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3861 echo "$ac_t""no" 1>&6
3867 if test $ol_link_threads = no ; then
3869 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3870 echo "configure:3871: checking for pthread_create in -lc_r" >&5
3871 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 ac_save_LIBS="$LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char pthread_create();
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3896 eval "ac_cv_lib_$ac_lib_var=no"
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3905 ol_link_threads=posix
3906 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3908 echo "$ac_t""no" 1>&6
3914 if test $ol_link_threads = no ; then
3916 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3917 echo "configure:3918: checking for pthread_create in -lpthreads" >&5
3918 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 ac_save_LIBS="$LIBS"
3923 LIBS="-lpthreads $LIBS"
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 /* Override any gcc2 internal prototype to avoid an error. */
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
3930 char pthread_create();
3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3938 eval "ac_cv_lib_$ac_lib_var=yes"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3943 eval "ac_cv_lib_$ac_lib_var=no"
3946 LIBS="$ac_save_LIBS"
3949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3952 ol_link_threads=posix
3953 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3955 echo "$ac_t""no" 1>&6
3961 if test $ol_link_threads = no ; then
3963 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3964 echo "configure:3965: checking for pthread_join in -lpthreads" >&5
3965 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 ac_save_LIBS="$LIBS"
3970 LIBS="-lpthreads $LIBS"
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3977 char pthread_join();
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3985 eval "ac_cv_lib_$ac_lib_var=yes"
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 eval "ac_cv_lib_$ac_lib_var=no"
3993 LIBS="$ac_save_LIBS"
3996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3997 echo "$ac_t""yes" 1>&6
3999 ol_link_threads=posix
4000 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4003 echo "$ac_t""no" 1>&6
4010 if test $ol_link_threads = no; then
4012 LIBS="$LIBS -lpthread"
4013 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4014 echo "configure:4015: checking for pthread_create() in HP-UX -lpthread" >&5
4015 ol_try_pthread_hpux_11=no
4016 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4024 #include <pthread.h>
4026 #ifndef ELFABI_HPUX_REL11
4031 pthread_create(NULL, NULL, NULL, NULL);
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4036 ol_try_pthread_hpux_11=yes
4037 ol_cv_pthread_hpux_11=yes
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 ol_cv_pthread_hpux_11=no
4047 echo "$ac_t""yes" 1>&6
4050 if test $ol_cv_pthread_hpux_11=yes ; then
4051 ol_link_threads=posix
4052 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4053 if test $ol_try_pthread_hpux_11=yes ; then
4054 ac_cv_func_pthread_attr_init=yes
4059 if test $ol_link_threads != no ; then
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_PTHREADS 1
4065 save_CPPFLAGS="$CPPFLAGS"
4067 LIBS="$LTHREAD_LIBS $LIBS"
4069 for ac_func in sched_yield pthread_yield
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4125 if test $ac_cv_func_sched_yield = no -a \
4126 $ac_cv_func_pthread_yield = no ; then
4127 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4128 echo "configure:4129: checking for sched_yield in -lrt" >&5
4129 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 ac_save_LIBS="$LIBS"
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4149 eval "ac_cv_lib_$ac_lib_var=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 eval "ac_cv_lib_$ac_lib_var=no"
4157 LIBS="$ac_save_LIBS"
4160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4163 cat >> confdefs.h <<\EOF
4164 #define HAVE_SCHED_YIELD 1
4167 ac_cv_func_sched_yield=yes
4169 echo "$ac_t""no" 1>&6
4170 ac_cv_func_sched_yield=no
4174 if test $ac_cv_func_sched_yield = no -a \
4175 $ac_cv_func_pthread_yield = no ; then
4176 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4177 echo "configure:4178: checking for sched_yield in -lposix4" >&5
4178 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_save_LIBS="$LIBS"
4183 LIBS="-lposix4 $LIBS"
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4203 eval "ac_cv_lib_$ac_lib_var=no"
4206 LIBS="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_SCHED_YIELD 1
4216 ac_cv_func_sched_yield=yes
4218 echo "$ac_t""no" 1>&6
4219 ac_cv_func_sched_yield=no
4223 if test $ac_cv_func_sched_yield = no -a \
4224 $ac_cv_func_pthread_yield = no ; then
4225 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4228 for ac_func in pthread_kill pthread_detach
4230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4231 echo "configure:4232: checking for $ac_func" >&5
4232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 /* System header to define __stub macros and hopefully few prototypes,
4239 which can conflict with char $ac_func(); below. */
4241 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4248 /* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4261 eval "ac_cv_func_$ac_func=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_func_$ac_func=no"
4271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4274 cat >> confdefs.h <<EOF
4275 #define $ac_tr_func 1
4279 echo "$ac_t""no" 1>&6
4285 pthread_attr_create pthread_attr_init \
4286 pthread_attr_destroy pthread_attr_delete \
4287 pthread_attr_setdetachstate pthread_attr_setdetach_np \
4290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_func" >&5
4292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char $ac_func(); below. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4308 /* The GNU C library defines this for functions which it implements
4309 to always fail with ENOSYS. Some functions are actually named
4310 something starting with __ and the normal name is an alias. */
4311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4321 eval "ac_cv_func_$ac_func=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_func_$ac_func=no"
4331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4334 cat >> confdefs.h <<EOF
4335 #define $ac_tr_func 1
4339 echo "$ac_t""no" 1>&6
4345 pthread_setconcurrency \
4346 thr_setconcurrency \
4349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4380 eval "ac_cv_func_$ac_func=yes"
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4385 eval "ac_cv_func_$ac_func=no"
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h <<EOF
4394 #define $ac_tr_func 1
4398 echo "$ac_t""no" 1>&6
4403 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4404 echo "configure:4405: checking if pthread_create() works" >&5
4405 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4409 if test "$cross_compiling" = yes; then
4410 ol_cv_pthread_create_works=yes
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4416 #include <pthread.h>
4418 #define NULL (void*)0
4421 static void *task(p)
4424 return (void *) (p == NULL);
4427 int main(argc, argv)
4432 exit(pthread_create(&t, NULL, task, NULL));
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4438 ol_cv_pthread_create_works=yes
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 ol_cv_pthread_create_works=no
4450 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4452 if test $ol_cv_pthread_create_works = no ; then
4453 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4456 if test $ol_with_yielding_select = auto ; then
4457 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4458 echo "configure:4459: checking if select yields when using pthreads" >&5
4459 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4463 if test "$cross_compiling" = yes; then
4465 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4471 #include <sys/types.h>
4472 #include <sys/time.h>
4474 #include <pthread.h>
4476 #define NULL (void*) 0
4479 static int fildes[2];
4481 static void *task(p)
4493 FD_SET(fildes[0], &rfds);
4495 /* we're not interested in any fds */
4496 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4503 exit(0); /* if we exit here, the select blocked the whole process */
4506 int main(argc, argv)
4512 /* create a pipe to select */
4513 if(pipe(&fildes[0])) {
4518 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4519 (void) pthread_setconcurrency(2);
4521 #ifdef HAVE_THR_SETCONCURRENCY
4522 /* Set Solaris LWP concurrency to 2 */
4523 thr_setconcurrency(2);
4527 pthread_create(&t, NULL, task, NULL);
4529 #if HAVE_SCHED_YIELD
4530 sched_yield(); /* make sure task runs first */
4532 #ifdef HAVE_PTHREAD_YIELD
4533 pthread_yield(); /* make sure task runs first */
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4542 ol_cv_pthread_select_yields=no
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4547 ol_cv_pthread_select_yields=yes
4554 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4556 if test $ol_cv_pthread_select_yields = yes ; then
4557 ol_with_yielding_select=yes
4561 CPPFLAGS="$save_CPPFLAGS"
4564 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4568 if test $ol_with_threads = posix ; then
4569 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4573 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4574 -o $ol_with_threads = mach ; then
4576 for ac_hdr in mach/cthreads.h
4578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4580 echo "configure:4581: checking for $ac_hdr" >&5
4581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 cat > conftest.$ac_ext <<EOF
4585 #line 4586 "configure"
4586 #include "confdefs.h"
4589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4590 { (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4591 ac_err=`grep -v '^ *+' conftest.out`
4592 if test -z "$ac_err"; then
4594 eval "ac_cv_header_$ac_safe=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_header_$ac_safe=no"
4604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_hdr 1
4612 echo "$ac_t""no" 1>&6
4616 if test $ac_cv_header_mach_cthreads_h = yes ; then
4617 ol_with_threads=found
4619 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4620 echo "configure:4621: checking for cthread_fork" >&5
4621 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 /* System header to define __stub macros and hopefully few prototypes,
4628 which can conflict with char cthread_fork(); below. */
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char cthread_fork();
4637 /* The GNU C library defines this for functions which it implements
4638 to always fail with ENOSYS. Some functions are actually named
4639 something starting with __ and the normal name is an alias. */
4640 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4648 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4650 eval "ac_cv_func_cthread_fork=yes"
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 eval "ac_cv_func_cthread_fork=no"
4660 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4664 echo "$ac_t""no" 1>&6
4668 if test $ol_link_threads = no ; then
4669 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4670 echo "configure:4671: checking for cthread_fork with -all_load" >&5
4671 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4676 LIBS="-all_load $LIBS"
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <mach/cthreads.h>
4683 cthread_fork((void *)0, (void *)0);
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4689 ol_cv_cthread_all_load=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 ol_cv_cthread_all_load=no
4701 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4703 if test $ol_cv_cthread_all_load = yes ; then
4704 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4705 ol_link_threads=mach
4709 if test $ol_link_threads != no ; then
4710 : check for cthread specific functionality here
4711 cat >> confdefs.h <<\EOF
4712 #define HAVE_MACH_CTHREADS 1
4716 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4720 if test $ol_with_threads = mach ; then
4721 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4725 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4726 -o $ol_with_threads = lwp ; then
4728 for ac_hdr in thread.h synch.h
4730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4732 echo "configure:4733: checking for $ac_hdr" >&5
4733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4742 { (eval echo configure:4743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4743 ac_err=`grep -v '^ *+' conftest.out`
4744 if test -z "$ac_err"; then
4746 eval "ac_cv_header_$ac_safe=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_header_$ac_safe=no"
4756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4759 cat >> confdefs.h <<EOF
4760 #define $ac_tr_hdr 1
4764 echo "$ac_t""no" 1>&6
4768 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4769 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4770 echo "configure:4771: checking for thr_create in -lthread" >&5
4771 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-lthread $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4806 echo "$ac_t""no" 1>&6
4811 if test $have_thr = yes ; then
4812 cat >> confdefs.h <<\EOF
4816 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4819 if test $ol_with_yielding_select = auto ; then
4820 ol_with_yielding_select=yes
4823 echo $ac_n "checking for misplaced posix thread in headers""... $ac_c" 1>&6
4824 echo "configure:4825: checking for misplaced posix thread in headers" >&5
4825 if eval "test \"`echo '$''{'ol_cv_header_misplaced_pthreads'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4833 #include <sys/types.h>
4834 typedef double pthread_t;
4838 pthread_t thread = 0.0;
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ol_cv_header_misplaced_pthreads=no
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4849 ol_cv_header_misplaced_pthreads=yes
4855 echo "$ac_t""$ol_cv_header_misplaced_pthreads" 1>&6
4857 if test "$ol_cv_header_misplaced_pthreads" = yes ; then
4858 { echo "configure: error: pthread types are misplaced, use --with-threads=posix" 1>&2; exit 1; };
4863 for ac_hdr in lwp/lwp.h
4865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867 echo "configure:4868: checking for $ac_hdr" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out`
4879 if test -z "$ac_err"; then
4881 eval "ac_cv_header_$ac_safe=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 eval "ac_cv_header_$ac_safe=no"
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4894 cat >> confdefs.h <<EOF
4895 #define $ac_tr_hdr 1
4899 echo "$ac_t""no" 1>&6
4903 if test $ac_cv_header_lwp_lwp_h = yes ; then
4904 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4905 echo "configure:4906: checking for lwp_create in -llwp" >&5
4906 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 ac_save_LIBS="$LIBS"
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4926 eval "ac_cv_lib_$ac_lib_var=yes"
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 eval "ac_cv_lib_$ac_lib_var=no"
4934 LIBS="$ac_save_LIBS"
4937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4941 echo "$ac_t""no" 1>&6
4946 if test $have_lwp = yes ; then
4947 cat >> confdefs.h <<\EOF
4951 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4954 if test $ol_with_yielding_select = auto ; then
4955 ol_with_yielding_select=no
4961 if test $ol_with_yielding_select = yes ; then
4962 cat >> confdefs.h <<\EOF
4963 #define HAVE_YIELDING_SELECT 1
4968 if test $ol_with_threads = manual ; then
4971 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4973 for ac_hdr in pthread.h sched.h
4975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_hdr" >&5
4978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4987 { (eval echo configure:4988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4988 ac_err=`grep -v '^ *+' conftest.out`
4989 if test -z "$ac_err"; then
4991 eval "ac_cv_header_$ac_safe=yes"
4994 echo "configure: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4997 eval "ac_cv_header_$ac_safe=no"
5001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5004 cat >> confdefs.h <<EOF
5005 #define $ac_tr_hdr 1
5009 echo "$ac_t""no" 1>&6
5013 for ac_func in sched_yield pthread_yield
5015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5016 echo "configure:5017: checking for $ac_func" >&5
5017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5018 echo $ac_n "(cached) $ac_c" 1>&6
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5023 /* System header to define __stub macros and hopefully few prototypes,
5024 which can conflict with char $ac_func(); below. */
5026 /* Override any gcc2 internal prototype to avoid an error. */
5027 /* We use char because int might match the return type of a gcc2
5028 builtin and then its argument prototype would still apply. */
5033 /* The GNU C library defines this for functions which it implements
5034 to always fail with ENOSYS. Some functions are actually named
5035 something starting with __ and the normal name is an alias. */
5036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5046 eval "ac_cv_func_$ac_func=yes"
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5051 eval "ac_cv_func_$ac_func=no"
5056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5057 echo "$ac_t""yes" 1>&6
5058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5059 cat >> confdefs.h <<EOF
5060 #define $ac_tr_func 1
5064 echo "$ac_t""no" 1>&6
5069 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5070 echo "configure:5071: checking for LinuxThreads" >&5
5071 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5075 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5076 if test "$res" -gt 0 ; then
5077 ol_cv_linux_threads=yes
5079 ol_cv_linux_threads=no
5084 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5087 for ac_hdr in mach/cthreads.h
5089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5091 echo "configure:5092: checking for $ac_hdr" >&5
5092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5101 { (eval echo configure:5102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5102 ac_err=`grep -v '^ *+' conftest.out`
5103 if test -z "$ac_err"; then
5105 eval "ac_cv_header_$ac_safe=yes"
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 eval "ac_cv_header_$ac_safe=no"
5115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5118 cat >> confdefs.h <<EOF
5119 #define $ac_tr_hdr 1
5123 echo "$ac_t""no" 1>&6
5127 for ac_hdr in lwp/lwp.h
5129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5131 echo "configure:5132: checking for $ac_hdr" >&5
5132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5141 { (eval echo configure:5142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5142 ac_err=`grep -v '^ *+' conftest.out`
5143 if test -z "$ac_err"; then
5145 eval "ac_cv_header_$ac_safe=yes"
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 eval "ac_cv_header_$ac_safe=no"
5155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5156 echo "$ac_t""yes" 1>&6
5157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5158 cat >> confdefs.h <<EOF
5159 #define $ac_tr_hdr 1
5163 echo "$ac_t""no" 1>&6
5167 for ac_hdr in thread.h synch.h
5169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5171 echo "configure:5172: checking for $ac_hdr" >&5
5172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5173 echo $ac_n "(cached) $ac_c" 1>&6
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5181 { (eval echo configure:5182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5182 ac_err=`grep -v '^ *+' conftest.out`
5183 if test -z "$ac_err"; then
5185 eval "ac_cv_header_$ac_safe=yes"
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 eval "ac_cv_header_$ac_safe=no"
5195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5196 echo "$ac_t""yes" 1>&6
5197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5198 cat >> confdefs.h <<EOF
5199 #define $ac_tr_hdr 1
5203 echo "$ac_t""no" 1>&6
5209 if test $ol_link_threads != no ; then
5210 cat >> confdefs.h <<\EOF
5214 cat >> confdefs.h <<\EOF
5215 #define _REENTRANT 1
5218 cat >> confdefs.h <<\EOF
5219 #define THREAD_SAFE 1
5222 cat >> confdefs.h <<\EOF
5223 #define _THREAD_SAFE 1
5226 cat >> confdefs.h <<\EOF
5227 #define THREADSAFE 1
5230 cat >> confdefs.h <<\EOF
5231 #define _THREADSAFE 1
5235 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5236 echo "configure:5237: checking for thread specific errno" >&5
5237 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5255 ol_cv_errno_thread_specific=yes
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5260 ol_cv_errno_thread_specific=no
5266 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5268 if test $ol_cv_errno_thread_specific != yes ; then
5269 LIBS="$LTHREAD_LIBS $LIBS"
5276 if test $ol_link_threads = no ; then
5277 if test $ol_with_threads = yes ; then
5278 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5281 if test $ol_with_threads = auto ; then
5282 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5286 echo $ac_n "checking for misplaced posix thread in headers""... $ac_c" 1>&6
5287 echo "configure:5288: checking for misplaced posix thread in headers" >&5
5288 if eval "test \"`echo '$''{'ol_cv_header_misplaced_pthreads'+set}'`\" = set"; then
5289 echo $ac_n "(cached) $ac_c" 1>&6
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5296 #include <sys/types.h>
5297 typedef double pthread_t;
5301 pthread_t thread = 0.0;
5305 if { (eval echo configure:5306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5307 ol_cv_header_misplaced_pthreads=no
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5312 ol_cv_header_misplaced_pthreads=yes
5318 echo "$ac_t""$ol_cv_header_misplaced_pthreads" 1>&6
5320 if test "$ol_cv_header_misplaced_pthreads" = yes ; then
5321 { echo "configure: error: pthread types are misplaced, use --with-threads=posix" 1>&2; exit 1; };
5324 cat >> confdefs.h <<\EOF
5325 #define NO_THREADS 1
5332 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5333 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5334 echo "configure:5335: checking for DB2 library" >&5
5335 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5339 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5340 echo "configure:5341: checking for db_open in -ldb" >&5
5341 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 ac_save_LIBS="$LIBS"
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5361 eval "ac_cv_lib_$ac_lib_var=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5366 eval "ac_cv_lib_$ac_lib_var=no"
5369 LIBS="$ac_save_LIBS"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5384 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5390 echo "configure:5391: checking for $ac_hdr" >&5
5391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 cat > conftest.$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5400 { (eval echo configure:5401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5401 ac_err=`grep -v '^ *+' conftest.out`
5402 if test -z "$ac_err"; then
5404 eval "ac_cv_header_$ac_safe=yes"
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 eval "ac_cv_header_$ac_safe=no"
5414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5415 echo "$ac_t""yes" 1>&6
5416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5417 cat >> confdefs.h <<EOF
5418 #define $ac_tr_hdr 1
5422 echo "$ac_t""no" 1>&6
5426 if test $ac_cv_header_db_h = yes ; then
5427 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5428 echo "configure:5429: checking if db.h is DB2" >&5
5429 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5438 /* this check could be improved */
5439 # ifdef DB_VERSION_MAJOR
5440 # if DB_VERSION_MAJOR == 2
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 egrep "__db_version_2" >/dev/null 2>&1; then
5449 ol_cv_header_db2=yes
5458 echo "$ac_t""$ol_cv_header_db2" 1>&6
5465 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5466 echo "configure:5467: checking for Berkeley DB2" >&5
5467 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5471 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5472 ol_cv_berkeley_db2=no
5474 ol_cv_berkeley_db2=yes
5479 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5480 if test $ol_cv_berkeley_db2 = yes ; then
5481 cat >> confdefs.h <<\EOF
5482 #define HAVE_BERKELEY_DB2 1
5488 if test $ol_cv_berkeley_db2 = yes ; then
5490 ol_with_ldbm_api=db2
5492 if test $ol_with_ldbm_type = hash ; then
5493 cat >> confdefs.h <<\EOF
5494 #define LDBM_USE_DBHASH 1
5498 cat >> confdefs.h <<\EOF
5499 #define LDBM_USE_DBBTREE 1
5504 if test $ol_cv_lib_db2 != yes ; then
5505 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5510 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5511 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5512 echo "configure:5513: checking for Berkeley DB library" >&5
5513 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5514 echo $ac_n "(cached) $ac_c" 1>&6
5517 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5518 echo "configure:5519: checking for dbopen" >&5
5519 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 /* System header to define __stub macros and hopefully few prototypes,
5526 which can conflict with char dbopen(); below. */
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5535 /* The GNU C library defines this for functions which it implements
5536 to always fail with ENOSYS. Some functions are actually named
5537 something starting with __ and the normal name is an alias. */
5538 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5548 eval "ac_cv_func_dbopen=yes"
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 eval "ac_cv_func_dbopen=no"
5558 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5559 echo "$ac_t""yes" 1>&6
5562 echo "$ac_t""no" 1>&6
5564 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5565 echo "configure:5566: checking for dbopen in -ldb" >&5
5566 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 ac_save_LIBS="$LIBS"
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5575 /* Override any gcc2 internal prototype to avoid an error. */
5576 /* We use char because int might match the return type of a gcc2
5577 builtin and then its argument prototype would still apply. */
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5586 eval "ac_cv_lib_$ac_lib_var=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_lib_$ac_lib_var=no"
5594 LIBS="$ac_save_LIBS"
5597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5601 echo "$ac_t""no" 1>&6
5612 echo "$ac_t""$ol_cv_lib_db" 1>&6
5615 for ac_hdr in db_185.h
5617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5619 echo "configure:5620: checking for $ac_hdr" >&5
5620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5629 { (eval echo configure:5630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5630 ac_err=`grep -v '^ *+' conftest.out`
5631 if test -z "$ac_err"; then
5633 eval "ac_cv_header_$ac_safe=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 eval "ac_cv_header_$ac_safe=no"
5643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5644 echo "$ac_t""yes" 1>&6
5645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5646 cat >> confdefs.h <<EOF
5647 #define $ac_tr_hdr 1
5651 echo "$ac_t""no" 1>&6
5655 if test $ol_cv_header_db2 = yes ; then
5657 ol_cv_header_db=$ac_cv_header_db_185_h
5659 ol_cv_header_db=$ac_cv_header_db_h
5664 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5665 echo "configure:5666: checking for Berkeley DB" >&5
5666 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5670 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5671 ol_cv_berkeley_db=no
5673 ol_cv_berkeley_db=yes
5678 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5679 if test $ol_cv_berkeley_db = yes ; then
5680 cat >> confdefs.h <<\EOF
5681 #define HAVE_BERKELEY_DB 1
5687 if test $ol_cv_berkeley_db = yes ; then
5691 if test $ol_with_ldbm_type = hash ; then
5692 cat >> confdefs.h <<\EOF
5693 #define LDBM_USE_DBHASH 1
5697 cat >> confdefs.h <<\EOF
5698 #define LDBM_USE_DBBTREE 1
5703 if test $ol_cv_lib_db != yes ; then
5704 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5709 if test $ol_with_ldbm_api = manual ; then
5712 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5714 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_hdr" >&5
5719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5728 { (eval echo configure:5729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5729 ac_err=`grep -v '^ *+' conftest.out`
5730 if test -z "$ac_err"; then
5732 eval "ac_cv_header_$ac_safe=yes"
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 eval "ac_cv_header_$ac_safe=no"
5742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5745 cat >> confdefs.h <<EOF
5746 #define $ac_tr_hdr 1
5750 echo "$ac_t""no" 1>&6
5756 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5757 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5758 ol_with_ldbm_api=none
5761 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5762 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5763 echo "configure:5764: checking for GDBM library" >&5
5764 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5768 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5769 echo "configure:5770: checking for gdbm_open" >&5
5770 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char gdbm_open(); below. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5799 eval "ac_cv_func_gdbm_open=yes"
5801 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5
5804 eval "ac_cv_func_gdbm_open=no"
5809 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5813 echo "$ac_t""no" 1>&6
5815 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5816 echo "configure:5817: checking for gdbm_open in -lgdbm" >&5
5817 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5819 echo $ac_n "(cached) $ac_c" 1>&6
5821 ac_save_LIBS="$LIBS"
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5837 eval "ac_cv_lib_$ac_lib_var=yes"
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 eval "ac_cv_lib_$ac_lib_var=no"
5845 LIBS="$ac_save_LIBS"
5848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ol_cv_lib_gdbm=-lgdbm
5852 echo "$ac_t""no" 1>&6
5863 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5866 for ac_hdr in gdbm.h
5868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5870 echo "configure:5871: checking for $ac_hdr" >&5
5871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5880 { (eval echo configure:5881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5881 ac_err=`grep -v '^ *+' conftest.out`
5882 if test -z "$ac_err"; then
5884 eval "ac_cv_header_$ac_safe=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 eval "ac_cv_header_$ac_safe=no"
5894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5895 echo "$ac_t""yes" 1>&6
5896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5897 cat >> confdefs.h <<EOF
5898 #define $ac_tr_hdr 1
5902 echo "$ac_t""no" 1>&6
5906 echo $ac_n "checking for db""... $ac_c" 1>&6
5907 echo "configure:5908: checking for db" >&5
5908 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5912 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5920 echo "$ac_t""$ol_cv_gdbm" 1>&6
5921 if test $ol_cv_gdbm = yes ; then
5922 cat >> confdefs.h <<\EOF
5929 if test $ol_cv_gdbm = yes ; then
5931 ol_with_ldbm_api=gdbm
5933 if test $ol_cv_lib_gdbm != yes ; then
5934 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5939 if test $ol_with_ldbm_api = auto ; then
5940 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5941 elif test $ol_with_ldbm_api = ndbm ; then
5942 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5943 echo "configure:5944: checking for NDBM library" >&5
5944 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5948 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5949 echo "configure:5950: checking for dbm_open" >&5
5950 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5956 /* System header to define __stub macros and hopefully few prototypes,
5957 which can conflict with char dbm_open(); below. */
5959 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5966 /* The GNU C library defines this for functions which it implements
5967 to always fail with ENOSYS. Some functions are actually named
5968 something starting with __ and the normal name is an alias. */
5969 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5979 eval "ac_cv_func_dbm_open=yes"
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 eval "ac_cv_func_dbm_open=no"
5989 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5990 echo "$ac_t""yes" 1>&6
5993 echo "$ac_t""no" 1>&6
5995 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5996 echo "configure:5997: checking for dbm_open in -lndbm" >&5
5997 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 ac_save_LIBS="$LIBS"
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6017 eval "ac_cv_lib_$ac_lib_var=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_lib_$ac_lib_var=no"
6025 LIBS="$ac_save_LIBS"
6028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6030 ol_cv_lib_ndbm=-lndbm
6032 echo "$ac_t""no" 1>&6
6034 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6035 echo "configure:6036: checking for dbm_open in -ldbm" >&5
6036 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 ac_save_LIBS="$LIBS"
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6044 "configure"
6044 #include "confdefs.h"
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6056 eval "ac_cv_lib_$ac_lib_var=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6061 eval "ac_cv_lib_$ac_lib_var=no"
6064 LIBS="$ac_save_LIBS"
6067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6068 echo "$ac_t""yes" 1>&6
6069 ol_cv_lib_ndbm=-ldbm
6071 echo "$ac_t""no" 1>&6
6084 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6087 for ac_hdr in ndbm.h
6089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6091 echo "configure:6092: checking for $ac_hdr" >&5
6092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6101 { (eval echo configure:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6102 ac_err=`grep -v '^ *+' conftest.out`
6103 if test -z "$ac_err"; then
6105 eval "ac_cv_header_$ac_safe=yes"
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 eval "ac_cv_header_$ac_safe=no"
6115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6116 echo "$ac_t""yes" 1>&6
6117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6118 cat >> confdefs.h <<EOF
6119 #define $ac_tr_hdr 1
6123 echo "$ac_t""no" 1>&6
6127 echo $ac_n "checking for db""... $ac_c" 1>&6
6128 echo "configure:6129: checking for db" >&5
6129 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6133 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6141 echo "$ac_t""$ol_cv_ndbm" 1>&6
6142 if test $ol_cv_ndbm = yes ; then
6143 cat >> confdefs.h <<\EOF
6150 if test $ol_cv_ndbm = yes ; then
6152 ol_with_ldbm_api=ndbm
6154 if test $ol_cv_lib_ndbm != yes ; then
6155 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6160 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6161 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6162 if test $ol_enable_ldbm = yes ; then
6163 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6166 echo "configure: warning: disabling LDBM" 1>&2
6170 if test $ol_enable_wrappers != no ; then
6171 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6172 echo "configure:6173: checking for main in -lwrap" >&5
6173 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 ac_save_LIBS="$LIBS"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6189 eval "ac_cv_lib_$ac_lib_var=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_lib_$ac_lib_var=no"
6197 LIBS="$ac_save_LIBS"
6200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6204 echo "$ac_t""no" 1>&6
6209 if test $have_wrappers = yes ; then
6210 cat >> confdefs.h <<\EOF
6214 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6216 echo "configure: warning: could not find -lwrap" 1>&2
6217 if test $ol_enable_wrappers = yes ; then
6218 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6221 echo "configure: warning: disabling wrappers support" 1>&2
6222 ol_enable_wrappers=no
6227 if test $ol_enable_syslog != no ; then
6228 echo $ac_n "checking for openlog""... $ac_c" 1>&6
6229 echo "configure:6230: checking for openlog" >&5
6230 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 /* System header to define __stub macros and hopefully few prototypes,
6237 which can conflict with char openlog(); below. */
6239 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6246 /* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249 #if defined (__stub_openlog) || defined (__stub___openlog)
6257 if { (eval echo configure:6258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6259 eval "ac_cv_func_openlog=yes"
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6264 eval "ac_cv_func_openlog=no"
6269 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
6270 echo "$ac_t""yes" 1>&6
6273 echo "$ac_t""no" 1>&6
6276 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
6277 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
6279 ol_enable_syslog=$ac_cv_func_openlog
6282 if test $ol_enable_dmalloc != no ; then
6283 for ac_hdr in dmalloc.h
6285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6287 echo "configure:6288: checking for $ac_hdr" >&5
6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6298 ac_err=`grep -v '^ *+' conftest.out`
6299 if test -z "$ac_err"; then
6301 eval "ac_cv_header_$ac_safe=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6307 eval "ac_cv_header_$ac_safe=no"
6311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_hdr 1
6319 echo "$ac_t""no" 1>&6
6323 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6324 echo "configure:6325: checking for dmalloc_shutdown in -ldmalloc" >&5
6325 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6327 echo $ac_n "(cached) $ac_c" 1>&6
6329 ac_save_LIBS="$LIBS"
6330 LIBS="-ldmalloc $LIBS"
6331 cat > conftest.$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char dmalloc_shutdown();
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6345 eval "ac_cv_lib_$ac_lib_var=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_lib_$ac_lib_var=no"
6353 LIBS="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_lib 1
6364 LIBS="-ldmalloc $LIBS"
6367 echo "$ac_t""no" 1>&6
6372 # ud needs termcap (should insert check here)
6374 for ac_hdr in termcap.h ncurses.h
6376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6378 echo "configure:6379: checking for $ac_hdr" >&5
6379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6388 { (eval echo configure:6389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6389 ac_err=`grep -v '^ *+' conftest.out`
6390 if test -z "$ac_err"; then
6392 eval "ac_cv_header_$ac_safe=yes"
6395 echo "configure: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 eval "ac_cv_header_$ac_safe=no"
6402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6405 cat >> confdefs.h <<EOF
6406 #define $ac_tr_hdr 1
6410 echo "$ac_t""no" 1>&6
6415 if test $ol_link_termcap = no ; then
6416 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6417 echo "configure:6418: checking for tputs in -ltermcap" >&5
6418 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6422 ac_save_LIBS="$LIBS"
6423 LIBS="-ltermcap $LIBS"
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6438 eval "ac_cv_lib_$ac_lib_var=yes"
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 eval "ac_cv_lib_$ac_lib_var=no"
6446 LIBS="$ac_save_LIBS"
6449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6450 echo "$ac_t""yes" 1>&6
6453 echo "$ac_t""no" 1>&6
6457 if test $have_termcap = yes ; then
6458 cat >> confdefs.h <<\EOF
6459 #define HAVE_TERMCAP 1
6463 TERMCAP_LIBS=-ltermcap
6467 if test $ol_link_termcap = no ; then
6468 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6469 echo "configure:6470: checking for initscr in -lncurses" >&5
6470 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 ac_save_LIBS="$LIBS"
6475 LIBS="-lncurses $LIBS"
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6488 if { (eval echo configure:6489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6490 eval "ac_cv_lib_$ac_lib_var=yes"
6492 echo "configure: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6495 eval "ac_cv_lib_$ac_lib_var=no"
6498 LIBS="$ac_save_LIBS"
6501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6502 echo "$ac_t""yes" 1>&6
6505 echo "$ac_t""no" 1>&6
6509 if test $have_ncurses = yes ; then
6510 cat >> confdefs.h <<\EOF
6511 #define HAVE_NCURSES 1
6515 TERMCAP_LIBS=-lncurses
6519 if test $ol_link_termcap = no ; then
6520 cat >> confdefs.h <<\EOF
6521 #define NO_TERMCAP 1
6527 # FreeBSD (and others) have crypt(3) in -lcrypt
6528 if test $ol_enable_crypt != no ; then
6529 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6530 echo "configure:6531: checking for crypt" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char crypt(); below. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_crypt) || defined (__stub___crypt)
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6560 eval "ac_cv_func_crypt=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 eval "ac_cv_func_crypt=no"
6570 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6574 echo "$ac_t""no" 1>&6
6576 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6577 echo "configure:6578: checking for crypt in -lcrypt" >&5
6578 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 ac_save_LIBS="$LIBS"
6583 LIBS="-lcrypt $LIBS"
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6598 eval "ac_cv_lib_$ac_lib_var=yes"
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 eval "ac_cv_lib_$ac_lib_var=no"
6606 LIBS="$ac_save_LIBS"
6609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6610 echo "$ac_t""yes" 1>&6
6611 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6614 echo "$ac_t""no" 1>&6
6621 if test $have_crypt = yes ; then
6622 cat >> confdefs.h <<\EOF
6623 #define HAVE_CRYPT 1
6627 echo "configure: warning: could not find crypt" 1>&2
6628 if test $ol_enable_crypt = yes ; then
6629 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6632 echo "configure: warning: disabling crypt support" 1>&2
6637 # FreeBSD (and others) have setproctitle(3) in -lutil
6638 if test $ol_enable_proctitle != no ; then
6639 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6640 echo "configure:6641: checking for setproctitle" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char setproctitle(); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char setproctitle();
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6670 eval "ac_cv_func_setproctitle=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 eval "ac_cv_func_setproctitle=no"
6680 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 have_setproctitle=yes
6684 echo "$ac_t""no" 1>&6
6686 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6687 echo "configure:6688: checking for setproctitle in -lutil" >&5
6688 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 ac_save_LIBS="$LIBS"
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6700 char setproctitle();
6706 if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6708 eval "ac_cv_lib_$ac_lib_var=yes"
6710 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6713 eval "ac_cv_lib_$ac_lib_var=no"
6716 LIBS="$ac_save_LIBS"
6719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 have_setproctitle=yes
6722 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6724 echo "$ac_t""no" 1>&6
6725 have_setproctitle=no
6726 LIBOBJS="$LIBOBJS setproctitle.o"
6732 if test $have_setproctitle = yes ; then
6733 cat >> confdefs.h <<\EOF
6734 #define HAVE_SETPROCTITLE 1
6740 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6741 echo "configure:6742: checking for ANSI C header files" >&5
6742 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6745 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure"
6747 #include "confdefs.h"
6753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6754 { (eval echo configure:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6755 ac_err=`grep -v '^ *+' conftest.out`
6756 if test -z "$ac_err"; then
6758 ac_cv_header_stdc=yes
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 ac_cv_header_stdc=no
6768 if test $ac_cv_header_stdc = yes; then
6769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6776 egrep "memchr" >/dev/null 2>&1; then
6780 ac_cv_header_stdc=no
6786 if test $ac_cv_header_stdc = yes; then
6787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6794 egrep "free" >/dev/null 2>&1; then
6798 ac_cv_header_stdc=no
6804 if test $ac_cv_header_stdc = yes; then
6805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6806 if test "$cross_compiling" = yes; then
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6813 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6814 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6816 int main () { int i; for (i = 0; i < 256; i++)
6817 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6825 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 ac_cv_header_stdc=no
6836 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6837 if test $ac_cv_header_stdc = yes; then
6838 cat >> confdefs.h <<\EOF
6839 #define STDC_HEADERS 1
6845 if test $ac_cv_header_stdc != yes; then
6846 echo "configure: warning: could not Standard C compliant headers" 1>&2
6850 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6853 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6854 echo "configure:6855: checking for $ac_hdr that defines DIR" >&5
6855 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <sys/types.h>
6867 if { (eval echo configure:6868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6869 eval "ac_cv_header_dirent_$ac_safe=yes"
6871 echo "configure: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 eval "ac_cv_header_dirent_$ac_safe=no"
6878 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6879 echo "$ac_t""yes" 1>&6
6880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6881 cat >> confdefs.h <<EOF
6882 #define $ac_tr_hdr 1
6884 ac_header_dirent=$ac_hdr; break
6886 echo "$ac_t""no" 1>&6
6889 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6890 if test $ac_header_dirent = dirent.h; then
6891 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6892 echo "configure:6893: checking for opendir in -ldir" >&5
6893 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6895 echo $ac_n "(cached) $ac_c" 1>&6
6897 ac_save_LIBS="$LIBS"
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 /* Override any gcc2 internal prototype to avoid an error. */
6903 /* We use char because int might match the return type of a gcc2
6904 builtin and then its argument prototype would still apply. */
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6913 eval "ac_cv_lib_$ac_lib_var=yes"
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 eval "ac_cv_lib_$ac_lib_var=no"
6921 LIBS="$ac_save_LIBS"
6924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6928 echo "$ac_t""no" 1>&6
6932 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6933 echo "configure:6934: checking for opendir in -lx" >&5
6934 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 ac_save_LIBS="$LIBS"
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6954 eval "ac_cv_lib_$ac_lib_var=yes"
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 eval "ac_cv_lib_$ac_lib_var=no"
6962 LIBS="$ac_save_LIBS"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6969 echo "$ac_t""no" 1>&6
6974 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6975 echo "configure:6976: checking for sys/wait.h that is POSIX.1 compatible" >&5
6976 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6982 #include <sys/types.h>
6983 #include <sys/wait.h>
6985 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6988 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6993 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6996 if { (eval echo configure:6997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6998 ac_cv_header_sys_wait_h=yes
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 ac_cv_header_sys_wait_h=no
7008 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7009 if test $ac_cv_header_sys_wait_h = yes; then
7010 cat >> confdefs.h <<\EOF
7011 #define HAVE_SYS_WAIT_H 1
7016 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7017 echo "configure:7018: checking POSIX termios" >&5
7018 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6
7021 cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 #include <sys/types.h>
7026 #include <termios.h>
7028 /* SunOS 4.0.3 has termios.h but not the library calls. */
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7034 am_cv_sys_posix_termios=yes
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 am_cv_sys_posix_termios=no
7044 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7047 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7048 echo "configure:7049: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7049 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7054 gwinsz_in_termios_h=no
7055 if test $am_cv_sys_posix_termios = yes; then
7056 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure"
7058 #include "confdefs.h"
7059 #include <sys/types.h>
7060 # include <termios.h>
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 egrep "yes" >/dev/null 2>&1; then
7069 gwinsz_in_termios_h=yes
7075 if test $gwinsz_in_termios_h = no; then
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 #include <sys/types.h>
7080 # include <sys/ioctl.h>
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 egrep "yes" >/dev/null 2>&1; then
7089 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7097 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7098 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7099 cat >> confdefs.h <<\EOF
7100 #define GWINSZ_IN_SYS_IOCTL 1
7105 if test $am_cv_sys_posix_termios = yes ; then
7106 cat >> confdefs.h <<\EOF
7107 #define HAVE_POSIX_TERMIOS 1
7145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7147 echo "configure:7148: checking for $ac_hdr" >&5
7148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7157 { (eval echo configure:7158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7158 ac_err=`grep -v '^ *+' conftest.out`
7159 if test -z "$ac_err"; then
7161 eval "ac_cv_header_$ac_safe=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_header_$ac_safe=no"
7171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7174 cat >> confdefs.h <<EOF
7175 #define $ac_tr_hdr 1
7179 echo "$ac_t""no" 1>&6
7184 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7185 echo "configure:7186: checking for uid_t in sys/types.h" >&5
7186 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 #include <sys/types.h>
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 egrep "uid_t" >/dev/null 2>&1; then
7197 ac_cv_type_uid_t=yes
7206 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7207 if test $ac_cv_type_uid_t = no; then
7208 cat >> confdefs.h <<\EOF
7212 cat >> confdefs.h <<\EOF
7218 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7219 echo "configure:7220: checking type of array argument to getgroups" >&5
7220 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7221 echo $ac_n "(cached) $ac_c" 1>&6
7223 if test "$cross_compiling" = yes; then
7224 ac_cv_type_getgroups=cross
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7230 /* Thanks to Mike Rendell for this test. */
7231 #include <sys/types.h>
7234 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7239 union { gid_t gval; long lval; } val;
7242 for (i = 0; i < NGID; i++)
7243 gidset[i] = val.gval;
7244 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7246 /* Exit non-zero if getgroups seems to require an array of ints. This
7247 happens when gid_t is short but getgroups modifies an array of ints. */
7248 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7254 ac_cv_type_getgroups=gid_t
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7259 ac_cv_type_getgroups=int
7264 if test $ac_cv_type_getgroups = cross; then
7265 cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7271 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7273 ac_cv_type_getgroups=gid_t
7276 ac_cv_type_getgroups=int
7283 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7284 cat >> confdefs.h <<EOF
7285 #define GETGROUPS_T $ac_cv_type_getgroups
7288 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7289 echo "configure:7290: checking for mode_t" >&5
7290 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 #include <sys/types.h>
7302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7303 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7305 ac_cv_type_mode_t=yes
7308 ac_cv_type_mode_t=no
7313 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7314 if test $ac_cv_type_mode_t = no; then
7315 cat >> confdefs.h <<\EOF
7321 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7322 echo "configure:7323: checking for off_t" >&5
7323 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 #include <sys/types.h>
7335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7336 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7338 ac_cv_type_off_t=yes
7346 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7347 if test $ac_cv_type_off_t = no; then
7348 cat >> confdefs.h <<\EOF
7354 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7355 echo "configure:7356: checking for pid_t" >&5
7356 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 #include <sys/types.h>
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7371 ac_cv_type_pid_t=yes
7379 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7380 if test $ac_cv_type_pid_t = no; then
7381 cat >> confdefs.h <<\EOF
7387 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7388 echo "configure:7389: checking for ptrdiff_t" >&5
7389 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7400 if { (eval echo configure:7401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7402 am_cv_type_ptrdiff_t=yes
7404 echo "configure: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7407 am_cv_type_ptrdiff_t=no
7412 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7413 if test $am_cv_type_ptrdiff_t = yes; then
7414 cat >> confdefs.h <<\EOF
7415 #define HAVE_PTRDIFF_T 1
7420 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7421 echo "configure:7422: checking return type of signal handlers" >&5
7422 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7428 #include <sys/types.h>
7434 extern "C" void (*signal (int, void (*)(int)))(int);
7436 void (*signal ()) ();
7443 if { (eval echo configure:7444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7445 ac_cv_type_signal=void
7447 echo "configure: failed program was:" >&5
7448 cat conftest.$ac_ext >&5
7450 ac_cv_type_signal=int
7455 echo "$ac_t""$ac_cv_type_signal" 1>&6
7456 cat >> confdefs.h <<EOF
7457 #define RETSIGTYPE $ac_cv_type_signal
7461 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
7462 echo "configure:7463: checking for sig_atomic_t" >&5
7463 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7471 sig_atomic_t atomic;
7474 if { (eval echo configure:7475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7476 ol_cv_type_sig_atomic_t=yes
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 ol_cv_type_sig_atomic_t=no
7486 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
7487 if test $ol_cv_type_sig_atomic_t = no; then
7488 cat >> confdefs.h <<\EOF
7489 #define sig_atomic_t int
7494 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7495 echo "configure:7496: checking for size_t" >&5
7496 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 #include <sys/types.h>
7508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7511 ac_cv_type_size_t=yes
7514 ac_cv_type_size_t=no
7519 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7520 if test $ac_cv_type_size_t = no; then
7521 cat >> confdefs.h <<\EOF
7522 #define size_t unsigned
7527 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7528 echo "configure:7529: checking for st_blksize in struct stat" >&5
7529 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 #include <sys/types.h>
7536 #include <sys/stat.h>
7538 struct stat s; s.st_blksize;
7541 if { (eval echo configure:7542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7543 ac_cv_struct_st_blksize=yes
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 ac_cv_struct_st_blksize=no
7553 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7554 if test $ac_cv_struct_st_blksize = yes; then
7555 cat >> confdefs.h <<\EOF
7556 #define HAVE_ST_BLKSIZE 1
7561 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7562 echo "configure:7563: checking whether time.h and sys/time.h may both be included" >&5
7563 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7566 cat > conftest.$ac_ext <<EOF
7567 #line 7568 "configure"
7568 #include "confdefs.h"
7569 #include <sys/types.h>
7570 #include <sys/time.h>
7576 if { (eval echo configure:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 ac_cv_header_time=yes
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 ac_cv_header_time=no
7588 echo "$ac_t""$ac_cv_header_time" 1>&6
7589 if test $ac_cv_header_time = yes; then
7590 cat >> confdefs.h <<\EOF
7591 #define TIME_WITH_SYS_TIME 1
7596 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7597 echo "configure:7598: checking whether struct tm is in sys/time.h or time.h" >&5
7598 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 #include <sys/types.h>
7607 struct tm *tp; tp->tm_sec;
7610 if { (eval echo configure:7611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7612 ac_cv_struct_tm=time.h
7614 echo "configure: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7617 ac_cv_struct_tm=sys/time.h
7622 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7623 if test $ac_cv_struct_tm = sys/time.h; then
7624 cat >> confdefs.h <<\EOF
7625 #define TM_IN_SYS_TIME 1
7632 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7633 echo "configure:7634: checking if toupper() requires islower()" >&5
7634 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7638 if test "$cross_compiling" = yes; then
7639 ol_cv_c_upper_lower=safe
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7648 if ('C' == toupper('C'))
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7656 ol_cv_c_upper_lower=no
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 ol_cv_c_upper_lower=yes
7668 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7669 if test $ol_cv_c_upper_lower != no ; then
7670 cat >> confdefs.h <<\EOF
7671 #define C_UPPER_LOWER 1
7676 echo $ac_n "checking for working const""... $ac_c" 1>&6
7677 echo "configure:7678: checking for working const" >&5
7678 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7687 /* Ultrix mips cc rejects this. */
7688 typedef int charset[2]; const charset x;
7689 /* SunOS 4.1.1 cc rejects this. */
7690 char const *const *ccp;
7692 /* NEC SVR4.0.2 mips cc rejects this. */
7693 struct point {int x, y;};
7694 static struct point const zero = {0,0};
7695 /* AIX XL C 1.02.0.0 rejects this.
7696 It does not let you subtract one const X* pointer from another in an arm
7697 of an if-expression whose if-part is not a constant expression */
7698 const char *g = "string";
7699 ccp = &g + (g ? g-g : 0);
7700 /* HPUX 7.0 cc rejects these. */
7703 ccp = (char const *const *) p;
7704 { /* SCO 3.2v4 cc rejects this. */
7706 char const *s = 0 ? (char *) 0 : (char const *) 0;
7710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7712 const int *foo = &x[0];
7715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7716 typedef const int *iptr;
7720 { /* AIX XL C 1.02.0.0 rejects this saying
7721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7722 struct s { int j; const int *ap[3]; };
7723 struct s *b; b->j = 5;
7725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7731 if { (eval echo configure:7732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7735 echo "configure: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7743 echo "$ac_t""$ac_cv_c_const" 1>&6
7744 if test $ac_cv_c_const = no; then
7745 cat >> confdefs.h <<\EOF
7751 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
7752 echo "configure:7753: checking if compiler understands volatile" >&5
7753 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7756 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure"
7758 #include "confdefs.h"
7761 volatile int a; int * volatile b = x ? &y : &z;
7762 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
7766 if { (eval echo configure:7767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7768 ol_cv_c_volatile=yes
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7778 echo "$ac_t""$ol_cv_c_volatile" 1>&6
7779 if test $ol_cv_c_volatile = yes; then
7782 cat >> confdefs.h <<\EOF
7789 if test $cross_compiling = yes ; then
7790 cat >> confdefs.h <<\EOF
7791 #define CROSS_COMPILING 1
7795 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7796 echo "configure:7797: checking whether byte ordering is bigendian" >&5
7797 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 ac_cv_c_bigendian=unknown
7801 # See if sys/param.h defines the BYTE_ORDER macro.
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 #include <sys/types.h>
7806 #include <sys/param.h>
7809 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7814 if { (eval echo configure:7815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7816 # It does; now see whether it defined to BIG_ENDIAN or not.
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 #include <sys/types.h>
7821 #include <sys/param.h>
7824 #if BYTE_ORDER != BIG_ENDIAN
7829 if { (eval echo configure:7830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7831 ac_cv_c_bigendian=yes
7833 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5
7836 ac_cv_c_bigendian=no
7840 echo "configure: failed program was:" >&5
7841 cat conftest.$ac_ext >&5
7844 if test $ac_cv_c_bigendian = unknown; then
7845 if test "$cross_compiling" = yes; then
7846 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7848 cat > conftest.$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7852 /* Are we little or big endian? From Harbison&Steele. */
7856 char c[sizeof (long)];
7859 exit (u.c[sizeof (long) - 1] == 1);
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7864 ac_cv_c_bigendian=no
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 ac_cv_c_bigendian=yes
7877 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7878 if test $ac_cv_c_bigendian = yes; then
7879 cat >> confdefs.h <<\EOF
7880 #define WORDS_BIGENDIAN 1
7885 echo $ac_n "checking size of short""... $ac_c" 1>&6
7886 echo "configure:7887: checking size of short" >&5
7887 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7890 if test "$cross_compiling" = yes; then
7891 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7899 FILE *f=fopen("conftestval", "w");
7901 fprintf(f, "%d\n", sizeof(short));
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7907 ac_cv_sizeof_short=`cat conftestval`
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 ac_cv_sizeof_short=0
7918 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7919 cat >> confdefs.h <<EOF
7920 #define SIZEOF_SHORT $ac_cv_sizeof_short
7924 echo $ac_n "checking size of int""... $ac_c" 1>&6
7925 echo "configure:7926: checking size of int" >&5
7926 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 if test "$cross_compiling" = yes; then
7930 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7938 FILE *f=fopen("conftestval", "w");
7940 fprintf(f, "%d\n", sizeof(int));
7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7946 ac_cv_sizeof_int=`cat conftestval`
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7957 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7958 cat >> confdefs.h <<EOF
7959 #define SIZEOF_INT $ac_cv_sizeof_int
7963 echo $ac_n "checking size of long""... $ac_c" 1>&6
7964 echo "configure:7965: checking size of long" >&5
7965 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 if test "$cross_compiling" = yes; then
7969 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7977 FILE *f=fopen("conftestval", "w");
7979 fprintf(f, "%d\n", sizeof(long));
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7985 ac_cv_sizeof_long=`cat conftestval`
7987 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7996 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7997 cat >> confdefs.h <<EOF
7998 #define SIZEOF_LONG $ac_cv_sizeof_long
8004 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8005 echo "configure:8006: checking for 8-bit clean memcmp" >&5
8006 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8009 if test "$cross_compiling" = yes; then
8010 ac_cv_func_memcmp_clean=no
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8018 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8019 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8023 if { (eval echo configure:8024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8025 ac_cv_func_memcmp_clean=yes
8027 echo "configure: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8030 ac_cv_func_memcmp_clean=no
8037 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8038 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
8040 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8041 echo "configure:8042: checking for strftime" >&5
8042 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 /* System header to define __stub macros and hopefully few prototypes,
8049 which can conflict with char strftime(); below. */
8051 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8058 /* The GNU C library defines this for functions which it implements
8059 to always fail with ENOSYS. Some functions are actually named
8060 something starting with __ and the normal name is an alias. */
8061 #if defined (__stub_strftime) || defined (__stub___strftime)
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8071 eval "ac_cv_func_strftime=yes"
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 eval "ac_cv_func_strftime=no"
8081 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE_STRFTIME 1
8088 echo "$ac_t""no" 1>&6
8089 # strftime is in -lintl on SCO UNIX.
8090 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8091 echo "configure:8092: checking for strftime in -lintl" >&5
8092 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 ac_save_LIBS="$LIBS"
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8112 eval "ac_cv_lib_$ac_lib_var=yes"
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 eval "ac_cv_lib_$ac_lib_var=no"
8120 LIBS="$ac_save_LIBS"
8123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8124 echo "$ac_t""yes" 1>&6
8125 cat >> confdefs.h <<\EOF
8126 #define HAVE_STRFTIME 1
8131 echo "$ac_t""no" 1>&6
8136 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8137 echo "configure:8138: checking for vprintf" >&5
8138 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8141 cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8144 /* System header to define __stub macros and hopefully few prototypes,
8145 which can conflict with char vprintf(); below. */
8147 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8154 /* The GNU C library defines this for functions which it implements
8155 to always fail with ENOSYS. Some functions are actually named
8156 something starting with __ and the normal name is an alias. */
8157 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8167 eval "ac_cv_func_vprintf=yes"
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 eval "ac_cv_func_vprintf=no"
8177 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8179 cat >> confdefs.h <<\EOF
8180 #define HAVE_VPRINTF 1
8184 echo "$ac_t""no" 1>&6
8187 if test "$ac_cv_func_vprintf" != yes; then
8188 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8189 echo "configure:8190: checking for _doprnt" >&5
8190 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char _doprnt(); below. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8219 eval "ac_cv_func__doprnt=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 eval "ac_cv_func__doprnt=no"
8229 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8231 cat >> confdefs.h <<\EOF
8232 #define HAVE_DOPRNT 1
8236 echo "$ac_t""no" 1>&6
8242 if test $ac_cv_func_vprintf = yes ; then
8243 for ac_func in vsnprintf vsprintf
8245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8246 echo "configure:8247: checking for $ac_func" >&5
8247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8253 /* System header to define __stub macros and hopefully few prototypes,
8254 which can conflict with char $ac_func(); below. */
8256 /* Override any gcc2 internal prototype to avoid an error. */
8257 /* We use char because int might match the return type of a gcc2
8258 builtin and then its argument prototype would still apply. */
8263 /* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8274 if { (eval echo configure:8275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8276 eval "ac_cv_func_$ac_func=yes"
8278 echo "configure: failed program was:" >&5
8279 cat conftest.$ac_ext >&5
8281 eval "ac_cv_func_$ac_func=no"
8286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8287 echo "$ac_t""yes" 1>&6
8288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8289 cat >> confdefs.h <<EOF
8290 #define $ac_tr_func 1
8294 echo "$ac_t""no" 1>&6
8300 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
8301 echo "configure:8302: checking for wait3 that fills in rusage" >&5
8302 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8305 if test "$cross_compiling" = yes; then
8306 ac_cv_func_wait3_rusage=no
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 #include <sys/types.h>
8312 #include <sys/time.h>
8313 #include <sys/resource.h>
8315 /* HP-UX has wait3 but does not fill in rusage at all. */
8319 /* Use a field that we can force nonzero --
8320 voluntary context switches.
8321 For systems like NeXT and OSF/1 that don't set it,
8322 also use the system CPU time. And page faults (I/O) for Linux. */
8324 r.ru_stime.tv_sec = 0;
8325 r.ru_stime.tv_usec = 0;
8326 r.ru_majflt = r.ru_minflt = 0;
8328 case 0: /* Child. */
8329 sleep(1); /* Give up the CPU. */
8331 case -1: _exit(0); /* What can we do? */
8332 default: /* Parent. */
8334 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
8335 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
8336 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
8340 if { (eval echo configure:8341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8342 ac_cv_func_wait3_rusage=yes
8344 echo "configure: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8347 ac_cv_func_wait3_rusage=no
8354 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
8355 if test $ac_cv_func_wait3_rusage = yes; then
8356 cat >> confdefs.h <<\EOF
8357 #define HAVE_WAIT3 1
8394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8395 echo "configure:8396: checking for $ac_func" >&5
8396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8397 echo $ac_n "(cached) $ac_c" 1>&6
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* System header to define __stub macros and hopefully few prototypes,
8403 which can conflict with char $ac_func(); below. */
8405 /* Override any gcc2 internal prototype to avoid an error. */
8406 /* We use char because int might match the return type of a gcc2
8407 builtin and then its argument prototype would still apply. */
8412 /* The GNU C library defines this for functions which it implements
8413 to always fail with ENOSYS. Some functions are actually named
8414 something starting with __ and the normal name is an alias. */
8415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8425 eval "ac_cv_func_$ac_func=yes"
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 eval "ac_cv_func_$ac_func=no"
8435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8436 echo "$ac_t""yes" 1>&6
8437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8438 cat >> confdefs.h <<EOF
8439 #define $ac_tr_func 1
8443 echo "$ac_t""no" 1>&6
8448 # these functions are required to build a thread_safe -lldap
8456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8457 echo "configure:8458: checking for $ac_func" >&5
8458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char $ac_func(); below. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8487 eval "ac_cv_func_$ac_func=yes"
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 eval "ac_cv_func_$ac_func=no"
8497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8498 echo "$ac_t""yes" 1>&6
8499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8500 cat >> confdefs.h <<EOF
8501 #define $ac_tr_func 1
8505 echo "$ac_t""no" 1>&6
8510 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
8511 echo "configure:8512: checking number of arguments of ctime_r" >&5
8512 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8520 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
8523 if { (eval echo configure:8524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8525 ol_cv_func_ctime_r_nargs=3
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 ol_cv_func_ctime_r_nargs=0
8533 if test $ol_cv_func_ctime_r_nargs = 0 ; then
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8539 time_t ti; char *buffer;
8540 ctime_r(&ti,buffer);
8543 if { (eval echo configure:8544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8545 ol_cv_func_ctime_r_nargs=2
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 ol_cv_func_ctime_r_nargs=0
8557 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
8558 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
8559 cat >> confdefs.h <<EOF
8560 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
8566 if test $ac_cv_func_strtok_r = yes \
8567 -a $ac_cv_func_ctime_r = yes \
8568 -a $ol_cv_func_ctime_r_nargs -ge 2 -a $ol_cv_func_ctime_r_nargs -le 3 \
8569 -a $ac_cv_func_gethostbyaddr_r = yes \
8570 -a $ac_cv_func_gethostbyname_r = yes \
8573 cat >> confdefs.h <<\EOF
8574 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
8579 if test $ol_link_threads != no ; then
8580 cat >> confdefs.h <<\EOF
8581 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8586 for ac_func in getopt strdup tempnam
8588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8589 echo "configure:8590: checking for $ac_func" >&5
8590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8591 echo $ac_n "(cached) $ac_c" 1>&6
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8596 /* System header to define __stub macros and hopefully few prototypes,
8597 which can conflict with char $ac_func(); below. */
8599 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8606 /* The GNU C library defines this for functions which it implements
8607 to always fail with ENOSYS. Some functions are actually named
8608 something starting with __ and the normal name is an alias. */
8609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8619 eval "ac_cv_func_$ac_func=yes"
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8624 eval "ac_cv_func_$ac_func=no"
8629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8630 echo "$ac_t""yes" 1>&6
8631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8632 cat >> confdefs.h <<EOF
8633 #define $ac_tr_func 1
8637 echo "$ac_t""no" 1>&6
8638 LIBOBJS="$LIBOBJS ${ac_func}.o"
8644 # Check Configuration
8646 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8647 echo "configure:8648: checking declaration of sys_errlist" >&5
8648 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8657 #include <sys/types.h>
8660 char *c = (char *) *sys_errlist
8663 if { (eval echo configure:8664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8665 ol_cv_dcl_sys_errlist=yes
8667 echo "configure: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8670 ol_cv_dcl_sys_errlist=no
8675 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8677 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8678 if test $ol_cv_dcl_sys_errlist = no ; then
8679 cat >> confdefs.h <<\EOF
8680 #define DECL_SYS_ERRLIST 1
8683 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8684 echo "configure:8685: checking existence of sys_errlist" >&5
8685 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8694 char *c = (char *) *sys_errlist
8697 if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8699 ol_cv_have_sys_errlist=yes
8701 echo "configure: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8704 ol_cv_have_sys_errlist=no
8709 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8714 if test "$ol_enable_debug" != no ; then
8715 cat >> confdefs.h <<\EOF
8716 #define LDAP_DEBUG 1
8720 if test "$ol_enable_syslog" = yes ; then
8721 cat >> confdefs.h <<\EOF
8722 #define LDAP_SYSLOG 1
8726 if test "$ol_enable_libui" = yes ; then
8727 cat >> confdefs.h <<\EOF
8728 #define LDAP_LIBUI 1
8732 if test "$ol_enable_cache" = no ; then
8733 cat >> confdefs.h <<\EOF
8734 #define LDAP_NOCACHE 1
8738 if test "$ol_enable_dns" != no ; then
8739 cat >> confdefs.h <<\EOF
8740 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS 1
8744 if test "$ol_enable_proctitle" != no ; then
8745 cat >> confdefs.h <<\EOF
8746 #define LDAP_PROCTITLE 1
8750 if test "$ol_enable_referrals" != no ; then
8751 cat >> confdefs.h <<\EOF
8752 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 1
8756 if test "$ol_enable_cldap" != no ; then
8757 cat >> confdefs.h <<\EOF
8758 #define LDAP_CONNECTIONLESS 1
8763 if test "$ol_enable_aclgroups" != no ; then
8764 cat >> confdefs.h <<\EOF
8765 #define SLAPD_ACLGROUPS 1
8769 if test "$ol_enable_crypt" != no ; then
8770 cat >> confdefs.h <<\EOF
8771 #define SLAPD_CRYPT 1
8775 if test "$ol_enable_cleartext" != no ; then
8776 cat >> confdefs.h <<\EOF
8777 #define SLAPD_CLEARTEXT 1
8781 if test "$ol_enable_phonetic" != no ; then
8782 cat >> confdefs.h <<\EOF
8783 #define SLAPD_PHONETIC 1
8787 if test "$ol_enable_rlookups" != no ; then
8788 cat >> confdefs.h <<\EOF
8789 #define SLAPD_RLOOKUPS 1
8794 if test "$ol_link_ldbm" != no ; then
8795 cat >> confdefs.h <<\EOF
8796 #define SLAPD_LDBM 1
8803 if test "$ol_enable_passwd" != no ; then
8804 cat >> confdefs.h <<\EOF
8805 #define SLAPD_PASSWD 1
8812 if test "$ol_enable_perl" != no ; then
8813 cat >> confdefs.h <<\EOF
8814 #define SLAPD_PERL 1
8821 if test "$ol_enable_shell" != no ; then
8822 cat >> confdefs.h <<\EOF
8823 #define SLAPD_SHELL 1
8830 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8831 $BUILD_SLAPD = yes ; then
8835 if test "$ol_link_isode" != no ; then
8864 cat > confcache <<\EOF
8865 # This file is a shell script that caches the results of configure
8866 # tests run on this system so they can be shared between configure
8867 # scripts and configure runs. It is not useful on other systems.
8868 # If it contains results you don't want to keep, you may remove or edit it.
8870 # By default, configure uses ./config.cache as the cache file,
8871 # creating it if it does not exist already. You can give configure
8872 # the --cache-file=FILE option to use a different cache file; that is
8873 # what configure does when it calls configure scripts in
8874 # subdirectories, so they share the cache.
8875 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8876 # config.status only pays attention to the cache file if you give it the
8877 # --recheck option to rerun configure.
8880 # The following way of writing the cache mishandles newlines in values,
8881 # but we know of no workaround that is simple, portable, and efficient.
8882 # So, don't put newlines in cache variables' values.
8883 # Ultrix sh set writes to stderr and can't be redirected directly,
8884 # and sets the high bit in the cache file unless we assign to the vars.
8886 case `(ac_space=' '; set) 2>&1` in
8888 # `set' does not quote correctly, so add quotes (double-quote substitution
8889 # turns \\\\ into \\, and sed turns \\ into \).
8891 -e "s/'/'\\\\''/g" \
8892 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8895 # `set' quotes correctly as required by POSIX, so do not add quotes.
8896 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8899 if cmp -s $cache_file confcache; then
8902 if test -w $cache_file; then
8903 echo "updating cache $cache_file"
8904 cat confcache > $cache_file
8906 echo "not updating unwritable cache $cache_file"
8911 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8913 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8914 # Let make expand exec_prefix.
8915 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8917 # Any assignment to VPATH causes Sun make to only execute
8918 # the first set of double-colon rules, so remove it if not needed.
8919 # If there is a colon in the path, we need to keep it.
8920 if test "x$srcdir" = x.; then
8921 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8924 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8926 DEFS=-DHAVE_CONFIG_H
8928 # Without the "./", some shells look in PATH for config.status.
8929 : ${CONFIG_STATUS=./config.status}
8931 echo creating $CONFIG_STATUS
8932 rm -f $CONFIG_STATUS
8933 cat > $CONFIG_STATUS <<EOF
8935 # Generated automatically by configure.
8936 # Run this file to recreate the current configuration.
8937 # This directory was configured as follows,
8938 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8940 # $0 $ac_configure_args
8942 # Compiler output produced by configure, useful for debugging
8943 # configure, is in ./config.log if it exists.
8945 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8948 case "\$ac_option" in
8949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8950 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8951 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8952 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8953 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8955 -help | --help | --hel | --he | --h)
8956 echo "\$ac_cs_usage"; exit 0 ;;
8957 *) echo "\$ac_cs_usage"; exit 1 ;;
8961 ac_given_srcdir=$srcdir
8962 ac_given_INSTALL="$INSTALL"
8964 trap 'rm -fr `echo "\
8965 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8966 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8967 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8968 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8969 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8970 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8971 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8972 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8973 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8974 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8975 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8976 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8977 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8978 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8979 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8980 include/Makefile:build/top.mk:include/Makefile.in \
8981 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8982 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8983 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8984 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8985 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
8986 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8987 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8988 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8989 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8990 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8991 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8992 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8993 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8994 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8995 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
8996 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8997 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8998 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8999 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9000 tests/Makefile:build/top.mk:tests/Makefile.in \
9001 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9003 cat >> $CONFIG_STATUS <<EOF
9005 # Protect against being on the right side of a sed subst in config.status.
9006 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9007 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9010 s%@CFLAGS@%$CFLAGS%g
9011 s%@CPPFLAGS@%$CPPFLAGS%g
9012 s%@CXXFLAGS@%$CXXFLAGS%g
9014 s%@LDFLAGS@%$LDFLAGS%g
9016 s%@exec_prefix@%$exec_prefix%g
9017 s%@prefix@%$prefix%g
9018 s%@program_transform_name@%$program_transform_name%g
9019 s%@bindir@%$bindir%g
9020 s%@sbindir@%$sbindir%g
9021 s%@libexecdir@%$libexecdir%g
9022 s%@datadir@%$datadir%g
9023 s%@sysconfdir@%$sysconfdir%g
9024 s%@sharedstatedir@%$sharedstatedir%g
9025 s%@localstatedir@%$localstatedir%g
9026 s%@libdir@%$libdir%g
9027 s%@includedir@%$includedir%g
9028 s%@oldincludedir@%$oldincludedir%g
9029 s%@infodir@%$infodir%g
9030 s%@mandir@%$mandir%g
9031 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9032 s%@INSTALL_DATA@%$INSTALL_DATA%g
9033 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9034 s%@PACKAGE@%$PACKAGE%g
9035 s%@VERSION@%$VERSION%g
9036 s%@ACLOCAL@%$ACLOCAL%g
9037 s%@AUTOCONF@%$AUTOCONF%g
9038 s%@AUTOMAKE@%$AUTOMAKE%g
9039 s%@AUTOHEADER@%$AUTOHEADER%g
9040 s%@MAKEINFO@%$MAKEINFO%g
9041 s%@SET_MAKE@%$SET_MAKE%g
9042 s%@top_builddir@%$top_builddir%g
9043 s%@ldap_subdir@%$ldap_subdir%g
9045 s%@host_alias@%$host_alias%g
9046 s%@host_cpu@%$host_cpu%g
9047 s%@host_vendor@%$host_vendor%g
9048 s%@host_os@%$host_os%g
9049 s%@RANLIB@%$RANLIB%g
9054 s%@LIBTOOL@%$LIBTOOL%g
9055 s%@SENDMAIL@%$SENDMAIL%g
9056 s%@EDITOR@%$EDITOR%g
9057 s%@FINGER@%$FINGER%g
9058 s%@PERLBIN@%$PERLBIN%g
9061 s%@LIBOBJS@%$LIBOBJS%g
9062 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9063 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9064 s%@BUILD_LDBM@%$BUILD_LDBM%g
9065 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9066 s%@BUILD_PERL@%$BUILD_PERL%g
9067 s%@BUILD_SHELL@%$BUILD_SHELL%g
9068 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9069 s%@LDAP_LIBS@%$LDAP_LIBS%g
9070 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9071 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9072 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9073 s%@LDBM_LIBS@%$LDBM_LIBS%g
9074 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9075 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9076 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
9077 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
9078 s%@KRB_LIBS@%$KRB_LIBS%g
9079 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9084 cat >> $CONFIG_STATUS <<\EOF
9086 # Split the substitutions into bite-sized pieces for seds with
9087 # small command number limits, like on Digital OSF/1 and HP-UX.
9088 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9089 ac_file=1 # Number of current file.
9090 ac_beg=1 # First line for current file.
9091 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9094 while $ac_more_lines; do
9095 if test $ac_beg -gt 1; then
9096 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9098 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9100 if test ! -s conftest.s$ac_file; then
9102 rm -f conftest.s$ac_file
9104 if test -z "$ac_sed_cmds"; then
9105 ac_sed_cmds="sed -f conftest.s$ac_file"
9107 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9109 ac_file=`expr $ac_file + 1`
9111 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9114 if test -z "$ac_sed_cmds"; then
9119 cat >> $CONFIG_STATUS <<EOF
9121 CONFIG_FILES=\${CONFIG_FILES-"\
9122 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9123 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9124 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9125 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9126 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9127 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9128 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9129 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9130 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9131 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9132 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9133 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9134 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9135 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9136 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9137 include/Makefile:build/top.mk:include/Makefile.in \
9138 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9139 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9140 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9141 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9142 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
9143 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9144 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9145 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9146 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9147 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9148 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9149 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9150 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9151 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9152 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
9153 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9154 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9155 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9156 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9157 tests/Makefile:build/top.mk:tests/Makefile.in \
9160 cat >> $CONFIG_STATUS <<\EOF
9161 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9164 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9165 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9166 *) ac_file_in="${ac_file}.in" ;;
9169 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9171 # Remove last slash and all that follows it. Not all systems have dirname.
9172 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9173 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9174 # The file is in a subdirectory.
9175 test ! -d "$ac_dir" && mkdir "$ac_dir"
9176 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9177 # A "../" for each directory in $ac_dir_suffix.
9178 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9180 ac_dir_suffix= ac_dots=
9183 case "$ac_given_srcdir" in
9185 if test -z "$ac_dots"; then top_srcdir=.
9186 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9187 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9189 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9190 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9193 case "$ac_given_INSTALL" in
9194 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9195 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9198 echo creating "$ac_file"
9200 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9202 *Makefile*) ac_comsub="1i\\
9203 # $configure_input" ;;
9207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9209 s%@configure_input@%$configure_input%g
9210 s%@srcdir@%$srcdir%g
9211 s%@top_srcdir@%$top_srcdir%g
9212 s%@INSTALL@%$INSTALL%g
9213 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9220 # ac_d sets the value in "#define NAME VALUE" lines.
9221 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9222 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9225 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9226 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9227 ac_uB='\([ ]\)%\1#\2define\3'
9230 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9231 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9232 ac_eB='$%\1#\2define\3'
9236 if test "${CONFIG_HEADERS+set}" != set; then
9238 cat >> $CONFIG_STATUS <<EOF
9239 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
9241 cat >> $CONFIG_STATUS <<\EOF
9243 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9246 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9247 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9248 *) ac_file_in="${ac_file}.in" ;;
9251 echo creating $ac_file
9253 rm -f conftest.frag conftest.in conftest.out
9254 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9255 cat $ac_file_inputs > conftest.in
9259 # Transform confdefs.h into a sed script conftest.vals that substitutes
9260 # the proper values into config.h.in to produce config.h. And first:
9261 # Protect against being on the right side of a sed subst in config.status.
9262 # Protect against being in an unquoted here document in config.status.
9264 cat > conftest.hdr <<\EOF
9267 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9271 sed -n -f conftest.hdr confdefs.h > conftest.vals
9274 # This sed command replaces #undef with comments. This is necessary, for
9275 # example, in the case of _POSIX_SOURCE, which is predefined and required
9276 # on some systems where configure will not decide to define it.
9277 cat >> conftest.vals <<\EOF
9278 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9281 # Break up conftest.vals because some shells have a limit on
9282 # the size of here documents, and old seds have small limits too.
9287 ac_lines=`grep -c . conftest.vals`
9288 # grep -c gives empty output for an empty file on some AIX systems.
9289 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9290 # Write a limited-size here document to conftest.frag.
9291 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9292 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9294 sed -f conftest.frag conftest.in > conftest.out
9296 mv conftest.out conftest.in
9298 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9300 mv conftest.tail conftest.vals
9304 cat >> $CONFIG_STATUS <<\EOF
9305 rm -f conftest.frag conftest.h
9306 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9307 cat conftest.in >> conftest.h
9309 if cmp -s $ac_file conftest.h 2>/dev/null; then
9310 echo "$ac_file is unchanged"
9313 # Remove last slash and all that follows it. Not all systems have dirname.
9314 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9315 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9316 # The file is in a subdirectory.
9317 test ! -d "$ac_dir" && mkdir "$ac_dir"
9320 mv conftest.h $ac_file
9325 cat >> $CONFIG_STATUS <<EOF
9328 cat >> $CONFIG_STATUS <<\EOF
9331 echo Please \"make depend\" to build dependencies
9335 chmod +x $CONFIG_STATUS
9336 rm -fr confdefs* $ac_clean_files
9337 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1