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-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable dns support (no)"
28 --enable-referrals enable referrals (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos use Kerberos (auto)"
38 --with-threads use threads (auto)"
40 --with-yielding-select with implicitly yielding select (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd 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=no]
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"
879 # OpenLDAP --enable-proctitle
880 # Check whether --enable-proctitle or --disable-proctitle was given.
881 if test "${enable_proctitle+set}" = set; then
882 enableval="$enable_proctitle"
885 for ol_val in auto yes no ; do
886 if test "$enableval" = "$ol_val" ; then
890 if test "$ol_arg" = "invalid" ; then
891 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
893 ol_enable_proctitle="$ol_arg"
896 ol_enable_proctitle="yes"
898 # end --enable-proctitle
899 # OpenLDAP --enable-libui
900 # Check whether --enable-libui or --disable-libui was given.
901 if test "${enable_libui+set}" = set; then
902 enableval="$enable_libui"
905 for ol_val in auto yes no ; do
906 if test "$enableval" = "$ol_val" ; then
910 if test "$ol_arg" = "invalid" ; then
911 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
913 ol_enable_libui="$ol_arg"
916 ol_enable_libui="yes"
919 # OpenLDAP --enable-cache
920 # Check whether --enable-cache or --disable-cache was given.
921 if test "${enable_cache+set}" = set; then
922 enableval="$enable_cache"
925 for ol_val in auto yes no ; do
926 if test "$enableval" = "$ol_val" ; then
930 if test "$ol_arg" = "invalid" ; then
931 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
933 ol_enable_cache="$ol_arg"
936 ol_enable_cache="yes"
939 # OpenLDAP --enable-dns
940 # Check whether --enable-dns or --disable-dns was given.
941 if test "${enable_dns+set}" = set; then
942 enableval="$enable_dns"
945 for ol_val in auto yes no ; do
946 if test "$enableval" = "$ol_val" ; then
950 if test "$ol_arg" = "invalid" ; then
951 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
953 ol_enable_dns="$ol_arg"
959 # OpenLDAP --enable-referrals
960 # Check whether --enable-referrals or --disable-referrals was given.
961 if test "${enable_referrals+set}" = set; then
962 enableval="$enable_referrals"
965 for ol_val in auto yes no ; do
966 if test "$enableval" = "$ol_val" ; then
970 if test "$ol_arg" = "invalid" ; then
971 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
973 ol_enable_referrals="$ol_arg"
976 ol_enable_referrals="yes"
978 # end --enable-referrals
979 # OpenLDAP --enable-cldap
980 # Check whether --enable-cldap or --disable-cldap was given.
981 if test "${enable_cldap+set}" = set; then
982 enableval="$enable_cldap"
985 for ol_val in auto yes no ; do
986 if test "$enableval" = "$ol_val" ; then
990 if test "$ol_arg" = "invalid" ; then
991 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
993 ol_enable_cldap="$ol_arg"
999 # OpenLDAP --enable-x_compile
1000 # Check whether --enable-x_compile or --disable-x_compile was given.
1001 if test "${enable_x_compile+set}" = set; then
1002 enableval="$enable_x_compile"
1005 for ol_val in yes no ; do
1006 if test "$enableval" = "$ol_val" ; then
1010 if test "$ol_arg" = "invalid" ; then
1011 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1013 ol_enable_x_compile="$ol_arg"
1016 ol_enable_x_compile="no"
1018 # end --enable-x_compile
1020 # OpenLDAP --enable-dmalloc
1021 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1022 if test "${enable_dmalloc+set}" = set; then
1023 enableval="$enable_dmalloc"
1026 for ol_val in auto yes no ; do
1027 if test "$enableval" = "$ol_val" ; then
1031 if test "$ol_arg" = "invalid" ; then
1032 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1034 ol_enable_dmalloc="$ol_arg"
1037 ol_enable_dmalloc="no"
1039 # end --enable-dmalloc
1041 # OpenLDAP --with-kerberos
1042 # Check whether --with-kerberos or --without-kerberos was given.
1043 if test "${with_kerberos+set}" = set; then
1044 withval="$with_kerberos"
1047 for ol_val in auto k5 k4 afs yes no ; do
1048 if test "$withval" = "$ol_val" ; then
1052 if test "$ol_arg" = "invalid" ; then
1053 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1055 ol_with_kerberos="$ol_arg"
1058 ol_with_kerberos="auto"
1060 # end --with-kerberos
1062 # OpenLDAP --with-threads
1063 # Check whether --with-threads or --without-threads was given.
1064 if test "${with_threads+set}" = set; then
1065 withval="$with_threads"
1068 for ol_val in auto posix mach lwp yes no manual ; do
1069 if test "$withval" = "$ol_val" ; then
1073 if test "$ol_arg" = "invalid" ; then
1074 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1076 ol_with_threads="$ol_arg"
1079 ol_with_threads="auto"
1081 # end --with-threads
1083 # OpenLDAP --with-yielding_select
1084 # Check whether --with-yielding_select or --without-yielding_select was given.
1085 if test "${with_yielding_select+set}" = set; then
1086 withval="$with_yielding_select"
1089 for ol_val in auto yes no manual ; do
1090 if test "$withval" = "$ol_val" ; then
1094 if test "$ol_arg" = "invalid" ; then
1095 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1097 ol_with_yielding_select="$ol_arg"
1100 ol_with_yielding_select="auto"
1102 # end --with-yielding_select
1106 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1107 if test "${with_xxldapdoptions+set}" = set; then
1108 withval="$with_xxldapdoptions"
1112 # OpenLDAP --enable-ldapd
1113 # Check whether --enable-ldapd or --disable-ldapd was given.
1114 if test "${enable_ldapd+set}" = set; then
1115 enableval="$enable_ldapd"
1118 for ol_val in auto yes no ; do
1119 if test "$enableval" = "$ol_val" ; then
1123 if test "$ol_arg" = "invalid" ; then
1124 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1126 ol_enable_ldapd="$ol_arg"
1129 ol_enable_ldapd="no"
1131 # end --enable-ldapd
1133 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1134 if test "${with_xxslapdoptions+set}" = set; then
1135 withval="$with_xxslapdoptions"
1139 # OpenLDAP --enable-slapd
1140 # Check whether --enable-slapd or --disable-slapd was given.
1141 if test "${enable_slapd+set}" = set; then
1142 enableval="$enable_slapd"
1145 for ol_val in auto yes no ; do
1146 if test "$enableval" = "$ol_val" ; then
1150 if test "$ol_arg" = "invalid" ; then
1151 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1153 ol_enable_slapd="$ol_arg"
1156 ol_enable_slapd="yes"
1158 # end --enable-slapd
1159 # OpenLDAP --enable-aclgroups
1160 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1161 if test "${enable_aclgroups+set}" = set; then
1162 enableval="$enable_aclgroups"
1165 for ol_val in auto yes no ; do
1166 if test "$enableval" = "$ol_val" ; then
1170 if test "$ol_arg" = "invalid" ; then
1171 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1173 ol_enable_aclgroups="$ol_arg"
1176 ol_enable_aclgroups="auto"
1178 # end --enable-aclgroups
1179 # OpenLDAP --enable-cleartext
1180 # Check whether --enable-cleartext or --disable-cleartext was given.
1181 if test "${enable_cleartext+set}" = set; then
1182 enableval="$enable_cleartext"
1185 for ol_val in auto yes no ; do
1186 if test "$enableval" = "$ol_val" ; then
1190 if test "$ol_arg" = "invalid" ; then
1191 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1193 ol_enable_cleartext="$ol_arg"
1196 ol_enable_cleartext="yes"
1198 # end --enable-cleartext
1199 # OpenLDAP --enable-crypt
1200 # Check whether --enable-crypt or --disable-crypt was given.
1201 if test "${enable_crypt+set}" = set; then
1202 enableval="$enable_crypt"
1205 for ol_val in auto yes no ; do
1206 if test "$enableval" = "$ol_val" ; then
1210 if test "$ol_arg" = "invalid" ; then
1211 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1213 ol_enable_crypt="$ol_arg"
1216 ol_enable_crypt="auto"
1218 # end --enable-crypt
1219 # OpenLDAP --enable-wrappers
1220 # Check whether --enable-wrappers or --disable-wrappers was given.
1221 if test "${enable_wrappers+set}" = set; then
1222 enableval="$enable_wrappers"
1225 for ol_val in auto yes no ; do
1226 if test "$enableval" = "$ol_val" ; then
1230 if test "$ol_arg" = "invalid" ; then
1231 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1233 ol_enable_wrappers="$ol_arg"
1236 ol_enable_wrappers="no"
1238 # end --enable-wrappers
1239 # OpenLDAP --enable-phonetic
1240 # Check whether --enable-phonetic or --disable-phonetic was given.
1241 if test "${enable_phonetic+set}" = set; then
1242 enableval="$enable_phonetic"
1245 for ol_val in auto yes no ; do
1246 if test "$enableval" = "$ol_val" ; then
1250 if test "$ol_arg" = "invalid" ; then
1251 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1253 ol_enable_phonetic="$ol_arg"
1256 ol_enable_phonetic="no"
1258 # end --enable-phonetic
1259 # OpenLDAP --enable-rlookups
1260 # Check whether --enable-rlookups or --disable-rlookups was given.
1261 if test "${enable_rlookups+set}" = set; then
1262 enableval="$enable_rlookups"
1265 for ol_val in auto yes no ; do
1266 if test "$enableval" = "$ol_val" ; then
1270 if test "$ol_arg" = "invalid" ; then
1271 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1273 ol_enable_rlookups="$ol_arg"
1276 ol_enable_rlookups="auto"
1278 # end --enable-rlookups
1280 # OpenLDAP --enable-ldbm
1281 # Check whether --enable-ldbm or --disable-ldbm was given.
1282 if test "${enable_ldbm+set}" = set; then
1283 enableval="$enable_ldbm"
1286 for ol_val in auto yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1294 ol_enable_ldbm="$ol_arg"
1297 ol_enable_ldbm="yes"
1300 # OpenLDAP --with-ldbm_api
1301 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1302 if test "${with_ldbm_api+set}" = set; then
1303 withval="$with_ldbm_api"
1306 for ol_val in auto db2 db gdbm ndbm manual ; do
1307 if test "$withval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1314 ol_with_ldbm_api="$ol_arg"
1317 ol_with_ldbm_api="auto"
1319 # end --with-ldbm_api
1321 # OpenLDAP --with-ldbm_type
1322 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1323 if test "${with_ldbm_type+set}" = set; then
1324 withval="$with_ldbm_type"
1327 for ol_val in auto btree hash ; do
1328 if test "$withval" = "$ol_val" ; then
1332 if test "$ol_arg" = "invalid" ; then
1333 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1335 ol_with_ldbm_type="$ol_arg"
1338 ol_with_ldbm_type="auto"
1340 # end --with-ldbm_type
1343 # OpenLDAP --enable-passwd
1344 # Check whether --enable-passwd or --disable-passwd was given.
1345 if test "${enable_passwd+set}" = set; then
1346 enableval="$enable_passwd"
1349 for ol_val in auto yes no ; do
1350 if test "$enableval" = "$ol_val" ; then
1354 if test "$ol_arg" = "invalid" ; then
1355 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1357 ol_enable_passwd="$ol_arg"
1360 ol_enable_passwd="no"
1362 # end --enable-passwd
1363 # OpenLDAP --enable-shell
1364 # Check whether --enable-shell or --disable-shell was given.
1365 if test "${enable_shell+set}" = set; then
1366 enableval="$enable_shell"
1369 for ol_val in auto yes no ; do
1370 if test "$enableval" = "$ol_val" ; then
1374 if test "$ol_arg" = "invalid" ; then
1375 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1377 ol_enable_shell="$ol_arg"
1380 ol_enable_shell="no"
1382 # end --enable-shell
1384 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1385 if test "${with_xxslurpdoptions+set}" = set; then
1386 withval="$with_xxslurpdoptions"
1390 # OpenLDAP --enable-slurpd
1391 # Check whether --enable-slurpd or --disable-slurpd was given.
1392 if test "${enable_slurpd+set}" = set; then
1393 enableval="$enable_slurpd"
1396 for ol_val in auto yes no ; do
1397 if test "$enableval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1404 ol_enable_slurpd="$ol_arg"
1407 ol_enable_slurpd="auto"
1409 # end --enable-slurpd
1411 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1412 if test "${with_xxliboptions+set}" = set; then
1413 withval="$with_xxliboptions"
1417 # Check whether --enable-static or --disable-static was given.
1418 if test "${enable_static+set}" = set; then
1419 enableval="$enable_static"
1420 p=${PACKAGE-default}
1421 case "$enableval" in
1422 yes) enable_static=yes ;;
1423 no) enable_static=no ;;
1426 # Look at the argument we got. We use all the common list separators.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1428 for pkg in $enableval; do
1429 if test "X$pkg" = "X$p"; then
1440 # Check whether --enable-shared or --disable-shared was given.
1441 if test "${enable_shared+set}" = set; then
1442 enableval="$enable_shared"
1443 p=${PACKAGE-default}
1444 case "$enableval" in
1445 yes) enable_shared=yes ;;
1446 no) enable_shared=no ;;
1449 # Look at the argument we got. We use all the common list separators.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1451 for pkg in $enableval; do
1452 if test "X$pkg" = "X$p"; then
1465 if test $ol_enable_dns = yes ; then
1466 if test $ol_enable_referrals = no ; then
1467 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1469 if test $ol_enable_referrals = auto ; then
1470 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1471 ol_enable_referrals=yes
1475 if test $ol_enable_slapd = no ; then
1476 if test $ol_enable_ldbm = yes ; then
1477 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1479 if test $ol_enable_passwd = yes ; then
1480 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1482 if test $ol_enable_shell = yes ; then
1483 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1485 if test $ol_enable_aclgroups = yes ; then
1486 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1488 if test $ol_enable_wrappers = yes ; then
1489 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1491 if test $ol_enable_phonetic = yes ; then
1492 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1494 if test $ol_enable_rlookups = yes ; then
1495 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1497 if test $ol_with_ldbm_api != auto ; then
1498 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1500 if test $ol_with_ldbm_type != auto ; then
1501 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1503 if test $ol_enable_slurpd = yes ; then
1504 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1507 # force settings to no
1511 ol_enable_aclgroups=no
1512 ol_enable_wrappers=no
1513 ol_enable_phonetic=no
1514 ol_enable_rlookups=no
1516 ol_with_ldbm_type=no
1519 elif test $ol_enable_ldbm = no ; then
1521 if test $ol_with_ldbm_api != auto ; then
1522 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1525 if test $ol_with_ldbm_type != auto ; then
1526 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1529 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1530 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1534 ol_with_ldbm_type=no
1538 if test $ol_with_ldbm_api = gdbm -a \
1539 $ol_with_ldbm_type = btree ; then
1540 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1542 if test $ol_with_ldbm_api = ndbm -a \
1543 $ol_with_ldbm_type = btree ; then
1544 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1548 if test $ol_enable_slurpd = yes ; then
1549 if test $ol_with_threads = no ; then
1550 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1554 echo "$ac_t""done" 1>&6
1557 # Make sure we can run config.sub.
1558 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1559 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1562 echo $ac_n "checking host system type""... $ac_c" 1>&6
1563 echo "configure:1564: checking host system type" >&5
1566 case "$host_alias" in
1570 if host_alias=`$ac_config_guess`; then :
1571 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1573 *) host_alias=$nonopt ;;
1577 host=`$ac_config_sub $host_alias`
1578 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$ac_t""$host" 1>&6
1607 # Find a good install program. We prefer a C program (faster),
1608 # so one script is as good as another. But avoid the broken or
1609 # incompatible versions:
1610 # SysV /etc/install, /usr/sbin/install
1611 # SunOS /usr/etc/install
1612 # IRIX /sbin/install
1614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1616 # ./install, which can be erroneously created by make from ./install.sh.
1617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1618 echo "configure:1619: checking for a BSD compatible install" >&5
1619 if test -z "$INSTALL"; then
1620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1624 for ac_dir in $PATH; do
1625 # Account for people who put trailing slashes in PATH elements.
1627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1629 # OSF1 and SCO ODT 3.0 have their own names for install.
1630 for ac_prog in ginstall installbsd scoinst install; do
1631 if test -f $ac_dir/$ac_prog; then
1632 if test $ac_prog = install &&
1633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1634 # AIX install. It has an incompatible calling convention.
1635 # OSF/1 installbsd also uses dspmsg, but is usable.
1638 ac_cv_path_install="$ac_dir/$ac_prog -c"
1649 if test "${ac_cv_path_install+set}" = set; then
1650 INSTALL="$ac_cv_path_install"
1652 # As a last resort, use the slow shell script. We don't cache a
1653 # path for INSTALL within a source directory, because that will
1654 # break other packages using the cache if that directory is
1655 # removed, or if the path is relative.
1656 INSTALL="$ac_install_sh"
1659 echo "$ac_t""$INSTALL" 1>&6
1661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662 # It thinks the first close brace ends the variable substitution.
1663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667 # Extract the first word of "ranlib", so it can be a program name with args.
1668 set dummy ranlib; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1678 for ac_dir in $PATH; do
1679 test -z "$ac_dir" && ac_dir=.
1680 if test -f $ac_dir/$ac_word; then
1681 ac_cv_prog_RANLIB="ranlib"
1686 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1689 RANLIB="$ac_cv_prog_RANLIB"
1690 if test -n "$RANLIB"; then
1691 echo "$ac_t""$RANLIB" 1>&6
1693 echo "$ac_t""no" 1>&6
1696 # Extract the first word of "gcc", so it can be a program name with args.
1697 set dummy gcc; ac_word=$2
1698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1699 echo "configure:1700: checking for $ac_word" >&5
1700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1707 for ac_dir in $PATH; do
1708 test -z "$ac_dir" && ac_dir=.
1709 if test -f $ac_dir/$ac_word; then
1718 if test -n "$CC"; then
1719 echo "$ac_t""$CC" 1>&6
1721 echo "$ac_t""no" 1>&6
1724 if test -z "$CC"; then
1725 # Extract the first word of "cc", so it can be a program name with args.
1726 set dummy cc; ac_word=$2
1727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_word" >&5
1729 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 if test -n "$CC"; then
1733 ac_cv_prog_CC="$CC" # Let the user override the test.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1737 for ac_dir in $PATH; do
1738 test -z "$ac_dir" && ac_dir=.
1739 if test -f $ac_dir/$ac_word; then
1740 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1741 ac_prog_rejected=yes
1749 if test $ac_prog_rejected = yes; then
1750 # We found a bogon in the path, so make sure we never use it.
1751 set dummy $ac_cv_prog_CC
1753 if test $# -gt 0; then
1754 # We chose a different compiler from the bogus one.
1755 # However, it has the same basename, so the bogon will be chosen
1756 # first if we set CC to just the basename; use the full file name.
1758 set dummy "$ac_dir/$ac_word" "$@"
1766 if test -n "$CC"; then
1767 echo "$ac_t""$CC" 1>&6
1769 echo "$ac_t""no" 1>&6
1772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cc_cross
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1790 if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1791 ac_cv_prog_cc_works=yes
1792 # If we can't run a trivial program, we are probably using a cross compiler.
1793 if (./conftest; exit) 2>/dev/null; then
1794 ac_cv_prog_cc_cross=no
1796 ac_cv_prog_cc_cross=yes
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1801 ac_cv_prog_cc_works=no
1805 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1806 if test $ac_cv_prog_cc_works = no; then
1807 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1811 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1812 cross_compiling=$ac_cv_prog_cc_cross
1814 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1815 echo "configure:1816: checking whether we are using GNU C" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.c <<EOF
1824 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1831 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1833 if test $ac_cv_prog_gcc = yes; then
1835 ac_test_CFLAGS="${CFLAGS+set}"
1836 ac_save_CFLAGS="$CFLAGS"
1838 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether ${CC-cc} accepts -g" >&5
1840 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 echo 'void f(){}' > conftest.c
1844 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1853 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1854 if test "$ac_test_CFLAGS" = set; then
1855 CFLAGS="$ac_save_CFLAGS"
1856 elif test $ac_cv_prog_cc_g = yes; then
1863 test "${CFLAGS+set}" = set || CFLAGS="-g"
1866 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1867 if test "${with_gnu_ld+set}" = set; then
1868 withval="$with_gnu_ld"
1869 test "$withval" = no || with_gnu_ld=yes
1876 if test "$ac_cv_prog_gcc" = yes; then
1877 # Check if gcc -print-prog-name=ld gives a path.
1878 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1879 echo "configure:1880: checking for ld used by GCC" >&5
1880 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1882 # Accept absolute paths.
1884 test -z "$LD" && LD="$ac_prog"
1887 # If it fails, then pretend we aren't using GCC.
1891 # If it is relative, then search for the first ld in PATH.
1895 elif test "$with_gnu_ld" = yes; then
1896 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1897 echo "configure:1898: checking for GNU ld" >&5
1899 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1900 echo "configure:1901: checking for non-GNU ld" >&5
1902 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test -z "$LD"; then
1906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1907 for ac_dir in $PATH; do
1908 test -z "$ac_dir" && ac_dir=.
1909 if test -f "$ac_dir/$ac_prog"; then
1910 ac_cv_path_LD="$ac_dir/$ac_prog"
1911 # Check to see if the program is GNU ld. I'd rather use --version,
1912 # but apparently some GNU ld's only accept -v.
1913 # Break only if it was the GNU/non-GNU ld that we prefer.
1914 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1915 test "$with_gnu_ld" != no && break
1917 test "$with_gnu_ld" != yes && break
1923 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1928 if test -n "$LD"; then
1929 echo "$ac_t""$LD" 1>&6
1931 echo "$ac_t""no" 1>&6
1933 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1935 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1936 echo "configure:1937: checking if the linker ($LD) is GNU ld" >&5
1937 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1941 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1942 ac_cv_prog_gnu_ld=yes
1944 ac_cv_prog_gnu_ld=no
1948 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1951 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1952 echo "configure:1953: checking for BSD-compatible nm" >&5
1953 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1958 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1962 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1963 test -z "$ac_dir" && ac_dir=.
1964 if test -f $ac_dir/nm; then
1965 # Check to see if the nm accepts a BSD-compat flag.
1966 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1967 # nm: unknown option "B" ignored
1968 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1969 ac_cv_path_NM="$ac_dir/nm -B"
1970 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1971 ac_cv_path_NM="$ac_dir/nm -p"
1973 ac_cv_path_NM="$ac_dir/nm"
1979 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1985 echo "$ac_t""$NM" 1>&6
1988 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1989 echo "configure:1990: checking whether ln -s works" >&5
1990 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1994 if ln -s X conftestdata 2>/dev/null
1997 ac_cv_prog_LN_S="ln -s"
2002 LN_S="$ac_cv_prog_LN_S"
2003 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2004 echo "$ac_t""yes" 1>&6
2006 echo "$ac_t""no" 1>&6
2009 # Always use our own libtool.
2010 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2012 # Check for any special flags to pass to ltconfig.
2014 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2015 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2016 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2017 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2018 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2020 # Some flags need to be propagated to the compiler or linker for good
2024 # Find out which ABI we are using.
2025 echo '#line 2026 "configure"' > conftest.$ac_ext
2026 if { (eval echo configure:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2027 case "`/usr/bin/file conftest.o`" in
2043 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2044 CFLAGS="$CFLAGS -belf"
2048 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2049 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2050 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2051 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2052 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2053 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2056 # Extract the first word of "sendmail", so it can be a program name with args.
2057 set dummy sendmail; ac_word=$2
2058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059 echo "configure:2060: checking for $ac_word" >&5
2060 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2065 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2069 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2070 test -z "$ac_dir" && ac_dir=.
2071 if test -f $ac_dir/$ac_word; then
2072 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2077 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2081 SENDMAIL="$ac_cv_path_SENDMAIL"
2082 if test -n "$SENDMAIL"; then
2083 echo "$ac_t""$SENDMAIL" 1>&6
2085 echo "$ac_t""no" 1>&6
2088 # Extract the first word of "vi", so it can be a program name with args.
2089 set dummy vi; ac_word=$2
2090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_word" >&5
2092 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2097 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2101 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2102 test -z "$ac_dir" && ac_dir=.
2103 if test -f $ac_dir/$ac_word; then
2104 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2109 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2113 EDITOR="$ac_cv_path_EDITOR"
2114 if test -n "$EDITOR"; then
2115 echo "$ac_t""$EDITOR" 1>&6
2117 echo "$ac_t""no" 1>&6
2120 # Extract the first word of "finger", so it can be a program name with args.
2121 set dummy finger; ac_word=$2
2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_word" >&5
2124 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2129 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2133 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2134 test -z "$ac_dir" && ac_dir=.
2135 if test -f $ac_dir/$ac_word; then
2136 ac_cv_path_FINGER="$ac_dir/$ac_word"
2141 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2145 FINGER="$ac_cv_path_FINGER"
2146 if test -n "$FINGER"; then
2147 echo "$ac_t""$FINGER" 1>&6
2149 echo "$ac_t""no" 1>&6
2154 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2155 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2157 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2158 echo "configure: warning: programs compiled here do run here..." 1>&2
2159 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2161 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2162 echo "configure: warning: programs compiled here do not run here..." 1>&2
2163 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2166 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2167 echo "configure:2168: checking how to run the C preprocessor" >&5
2168 # On Suns, sometimes $CPP names a directory.
2169 if test -n "$CPP" && test -d "$CPP"; then
2172 if test -z "$CPP"; then
2173 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 # This must be in double quotes, not single quotes, because CPP may get
2177 # substituted into the Makefile and "${CC-cc}" will confuse make.
2179 # On the NeXT, cc -E runs the code through the compiler's parser,
2180 # not just through cpp.
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2188 { (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2189 ac_err=`grep -v '^ *+' conftest.out`
2190 if test -z "$ac_err"; then
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2197 CPP="${CC-cc} -E -traditional-cpp"
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out`
2207 if test -z "$ac_err"; then
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2219 ac_cv_prog_CPP="$CPP"
2221 CPP="$ac_cv_prog_CPP"
2223 ac_cv_prog_CPP="$CPP"
2225 echo "$ac_t""$CPP" 1>&6
2228 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2229 echo "configure:2230: checking for AIX" >&5
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2239 egrep "yes" >/dev/null 2>&1; then
2241 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2242 #define _ALL_SOURCE 1
2247 echo "$ac_t""no" 1>&6
2252 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2253 echo "configure:2254: checking for POSIXized ISC" >&5
2254 if test -d /etc/conf/kconfig.d &&
2255 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2257 echo "$ac_t""yes" 1>&6
2258 ISC=yes # If later tests want to check for ISC.
2259 cat >> confdefs.h <<\EOF
2260 #define _POSIX_SOURCE 1
2263 if test "$GCC" = yes; then
2269 echo "$ac_t""no" 1>&6
2273 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2275 echo "configure:2276: checking for minix/config.h" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 #include <minix/config.h>
2284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err=`grep -v '^ *+' conftest.out`
2287 if test -z "$ac_err"; then
2289 eval "ac_cv_header_$ac_safe=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 eval "ac_cv_header_$ac_safe=no"
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2303 echo "$ac_t""no" 1>&6
2307 if test "$MINIX" = yes; then
2308 cat >> confdefs.h <<\EOF
2309 #define _POSIX_SOURCE 1
2312 cat >> confdefs.h <<\EOF
2313 #define _POSIX_1_SOURCE 2
2316 cat >> confdefs.h <<\EOF
2326 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2327 echo "configure:2328: checking for ${CC-cc} option to accept ANSI C" >&5
2328 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 am_cv_prog_cc_stdc=no
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX -qlanglvl=ansi
2336 # Ultrix and OSF/1 -std1
2337 # HP-UX -Aa -D_HPUX_SOURCE
2338 # SVR4 -Xc -D__EXTENSIONS__
2339 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 CC="$ac_save_CC $ac_arg"
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2347 #include <sys/types.h>
2348 #include <sys/stat.h>
2349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2350 struct buf { int x; };
2351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2352 static char *e (p, i)
2358 static char *f (char * (*g) (char **, int), char **p, ...)
2363 s = g (p, va_arg (v,int));
2367 int test (int i, double x);
2368 struct s1 {int (*f) (int a);};
2369 struct s2 {int (*f) (double a);};
2370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2380 if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 am_cv_prog_cc_stdc="$ac_arg"; break
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2393 if test -z "$am_cv_prog_cc_stdc"; then
2394 echo "$ac_t""none needed" 1>&6
2396 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2398 case "x$am_cv_prog_cc_stdc" in
2400 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2403 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2404 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2410 echo $ac_n "checking for socket""... $ac_c" 1>&6
2411 echo "configure:2412: checking for socket" >&5
2412 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 cat > conftest.$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2418 /* System header to define __stub macros and hopefully few prototypes,
2419 which can conflict with char socket(); below. */
2421 /* Override any gcc2 internal prototype to avoid an error. */
2422 /* We use char because int might match the return type of a gcc2
2423 builtin and then its argument prototype would still apply. */
2428 /* The GNU C library defines this for functions which it implements
2429 to always fail with ENOSYS. Some functions are actually named
2430 something starting with __ and the normal name is an alias. */
2431 #if defined (__stub_socket) || defined (__stub___socket)
2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2441 eval "ac_cv_func_socket=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_func_socket=no"
2451 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2455 echo "$ac_t""no" 1>&6
2457 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2458 echo "configure:2459: checking for main in -lsocket" >&5
2459 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_save_LIBS="$LIBS"
2464 LIBS="-lsocket $LIBS"
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2475 eval "ac_cv_lib_$ac_lib_var=yes"
2477 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 eval "ac_cv_lib_$ac_lib_var=no"
2483 LIBS="$ac_save_LIBS"
2486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2490 cat >> confdefs.h <<EOF
2491 #define $ac_tr_lib 1
2494 LIBS="-lsocket $LIBS"
2497 echo "$ac_t""no" 1>&6
2500 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2501 echo "configure:2502: checking for main in -lnet" >&5
2502 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 ac_save_LIBS="$LIBS"
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2518 eval "ac_cv_lib_$ac_lib_var=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 eval "ac_cv_lib_$ac_lib_var=no"
2526 LIBS="$ac_save_LIBS"
2529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_lib 1
2540 echo "$ac_t""no" 1>&6
2543 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2544 echo "configure:2545: checking for main in -lnsl_s" >&5
2545 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 ac_save_LIBS="$LIBS"
2550 LIBS="-lnsl_s $LIBS"
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2559 if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2561 eval "ac_cv_lib_$ac_lib_var=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_lib_$ac_lib_var=no"
2569 LIBS="$ac_save_LIBS"
2572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2575 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2576 cat >> confdefs.h <<EOF
2577 #define $ac_tr_lib 1
2580 LIBS="-lnsl_s $LIBS"
2583 echo "$ac_t""no" 1>&6
2586 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2587 echo "configure:2588: checking for main in -lnsl" >&5
2588 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 ac_save_LIBS="$LIBS"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2602 if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2604 eval "ac_cv_lib_$ac_lib_var=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2609 eval "ac_cv_lib_$ac_lib_var=no"
2612 LIBS="$ac_save_LIBS"
2615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2616 echo "$ac_t""yes" 1>&6
2617 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2619 cat >> confdefs.h <<EOF
2620 #define $ac_tr_lib 1
2626 echo "$ac_t""no" 1>&6
2629 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2630 echo "configure:2631: checking for socket in -linet" >&5
2631 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 ac_save_LIBS="$LIBS"
2637 cat > conftest.$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 /* Override any gcc2 internal prototype to avoid an error. */
2641 /* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2649 if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2651 eval "ac_cv_lib_$ac_lib_var=yes"
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 eval "ac_cv_lib_$ac_lib_var=no"
2659 LIBS="$ac_save_LIBS"
2662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2665 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2666 cat >> confdefs.h <<EOF
2667 #define $ac_tr_lib 1
2673 echo "$ac_t""no" 1>&6
2676 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2677 echo "configure:2678: checking for main in -lgen" >&5
2678 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 ac_save_LIBS="$LIBS"
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2692 if { (eval echo configure:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2694 eval "ac_cv_lib_$ac_lib_var=yes"
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2699 eval "ac_cv_lib_$ac_lib_var=no"
2702 LIBS="$ac_save_LIBS"
2705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2708 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2709 cat >> confdefs.h <<EOF
2710 #define $ac_tr_lib 1
2716 echo "$ac_t""no" 1>&6
2723 for ac_func in res_search
2725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_func" >&5
2727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 /* System header to define __stub macros and hopefully few prototypes,
2734 which can conflict with char $ac_func(); below. */
2736 /* Override any gcc2 internal prototype to avoid an error. */
2737 /* We use char because int might match the return type of a gcc2
2738 builtin and then its argument prototype would still apply. */
2743 /* The GNU C library defines this for functions which it implements
2744 to always fail with ENOSYS. Some functions are actually named
2745 something starting with __ and the normal name is an alias. */
2746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2756 eval "ac_cv_func_$ac_func=yes"
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2761 eval "ac_cv_func_$ac_func=no"
2766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2769 cat >> confdefs.h <<EOF
2770 #define $ac_tr_func 1
2774 echo "$ac_t""no" 1>&6
2778 if test $ac_cv_func_res_search = "no" ; then
2779 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2780 echo "configure:2781: checking for res_search in -lbind" >&5
2781 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_save_LIBS="$LIBS"
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 /* Override any gcc2 internal prototype to avoid an error. */
2791 /* We use char because int might match the return type of a gcc2
2792 builtin and then its argument prototype would still apply. */
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2801 eval "ac_cv_lib_$ac_lib_var=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 eval "ac_cv_lib_$ac_lib_var=no"
2809 LIBS="$ac_save_LIBS"
2812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2813 echo "$ac_t""yes" 1>&6
2814 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_lib 1
2823 echo "$ac_t""no" 1>&6
2826 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2827 cat >> confdefs.h <<\EOF
2828 #define HAVE_RES_SEARCH 1
2832 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2833 echo "configure:2834: checking for res_search in -lresolv" >&5
2834 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 ac_save_LIBS="$LIBS"
2839 LIBS="-lresolv $LIBS"
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2854 eval "ac_cv_lib_$ac_lib_var=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_lib_$ac_lib_var=no"
2862 LIBS="$ac_save_LIBS"
2865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2866 echo "$ac_t""yes" 1>&6
2867 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2869 cat >> confdefs.h <<EOF
2870 #define $ac_tr_lib 1
2873 LIBS="-lresolv $LIBS"
2876 echo "$ac_t""no" 1>&6
2879 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2880 cat >> confdefs.h <<\EOF
2881 #define HAVE_RES_SEARCH 1
2888 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2889 echo "configure:2890: checking for sigset in -lV3" >&5
2890 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 ac_save_LIBS="$LIBS"
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* Override any gcc2 internal prototype to avoid an error. */
2900 /* We use char because int might match the return type of a gcc2
2901 builtin and then its argument prototype would still apply. */
2908 if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2910 eval "ac_cv_lib_$ac_lib_var=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 eval "ac_cv_lib_$ac_lib_var=no"
2918 LIBS="$ac_save_LIBS"
2921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2923 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_lib 1
2932 echo "$ac_t""no" 1>&6
2938 if test $ol_enable_ldapd != no ; then
2939 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2940 echo "configure:2941: checking for main in -lxtpp" >&5
2941 ac_lib_var=`echo xtpp'_'main | 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"
2946 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2957 eval "ac_cv_lib_$ac_lib_var=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_lib_$ac_lib_var=no"
2965 LIBS="$ac_save_LIBS"
2968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2972 cat >> confdefs.h <<\EOF
2976 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2979 echo "$ac_t""no" 1>&6
2983 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2984 echo "configure:2985: checking for main in -ldsap" >&5
2985 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 ac_save_LIBS="$LIBS"
2990 LIBS="-ldsap -lisode $LIBS"
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3016 cat >> confdefs.h <<\EOF
3020 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3023 echo "$ac_t""no" 1>&6
3027 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3028 echo "configure:3029: checking for main in -lisode" >&5
3029 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 ac_save_LIBS="$LIBS"
3034 LIBS="-lisode $LIBS"
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3043 if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3045 eval "ac_cv_lib_$ac_lib_var=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_lib_$ac_lib_var=no"
3053 LIBS="$ac_save_LIBS"
3056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3060 cat >> confdefs.h <<\EOF
3061 #define HAVE_ISODE 1
3064 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3067 echo "$ac_t""no" 1>&6
3073 if test $ol_link_isode != no; then
3074 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3075 echo "configure:3076: checking for main in -lpp" >&5
3076 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 ac_save_LIBS="$LIBS"
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3092 eval "ac_cv_lib_$ac_lib_var=yes"
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3097 eval "ac_cv_lib_$ac_lib_var=no"
3100 LIBS="$ac_save_LIBS"
3103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3106 cat >> confdefs.h <<\EOF
3110 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3113 echo "$ac_t""no" 1>&6
3118 # Extract the first word of "pepsy", so it can be a program name with args.
3119 set dummy pepsy; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3127 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3131 for ac_dir in $PATH; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3142 PEPSY="$ac_cv_path_PEPSY"
3143 if test -n "$PEPSY"; then
3144 echo "$ac_t""$PEPSY" 1>&6
3146 echo "$ac_t""no" 1>&6
3153 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3154 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_hdr" >&5
3159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3168 { (eval echo configure:3169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3169 ac_err=`grep -v '^ *+' conftest.out`
3170 if test -z "$ac_err"; then
3172 eval "ac_cv_header_$ac_safe=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 eval "ac_cv_header_$ac_safe=no"
3182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3185 cat >> confdefs.h <<EOF
3186 #define $ac_tr_hdr 1
3190 echo "$ac_t""no" 1>&6
3195 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3196 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3197 echo "configure:3198: checking for main in -lkrb4" >&5
3198 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 ac_save_LIBS="$LIBS"
3203 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3214 eval "ac_cv_lib_$ac_lib_var=yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 eval "ac_cv_lib_$ac_lib_var=no"
3222 LIBS="$ac_save_LIBS"
3225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3229 echo "$ac_t""no" 1>&6
3234 if test $have_k5 = yes ; then
3235 ol_with_kerberos=found
3236 ol_link_kerberos=yes
3238 cat >> confdefs.h <<\EOF
3239 #define HAVE_KERBEROS 1
3242 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3247 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3248 for ac_hdr in krb.h des.h
3250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_hdr" >&5
3253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3262 { (eval echo configure:3263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3263 ac_err=`grep -v '^ *+' conftest.out`
3264 if test -z "$ac_err"; then
3266 eval "ac_cv_header_$ac_safe=yes"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3272 eval "ac_cv_header_$ac_safe=no"
3276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3279 cat >> confdefs.h <<EOF
3280 #define $ac_tr_hdr 1
3284 echo "$ac_t""no" 1>&6
3289 if test $ac_cv_header_krb_h = yes ; then
3290 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3291 echo "configure:3292: checking for main in -lkrb" >&5
3292 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 ac_save_LIBS="$LIBS"
3297 LIBS="-lkrb -ldes $LIBS"
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3306 if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3308 eval "ac_cv_lib_$ac_lib_var=yes"
3310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3313 eval "ac_cv_lib_$ac_lib_var=no"
3316 LIBS="$ac_save_LIBS"
3319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3323 echo "$ac_t""no" 1>&6
3328 if test $have_k4 = yes ; then
3329 ol_with_kerberos=found
3330 ol_link_kerberos=yes
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_KERBEROS 1
3336 KRB_LIBS="-lkrb -ldes"
3343 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3344 -o $ol_with_threads = posix ; then
3346 for ac_hdr in pthread.h sched.h
3348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_hdr" >&5
3351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3360 { (eval echo configure:3361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3361 ac_err=`grep -v '^ *+' conftest.out`
3362 if test -z "$ac_err"; then
3364 eval "ac_cv_header_$ac_safe=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_header_$ac_safe=no"
3374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3375 echo "$ac_t""yes" 1>&6
3376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3377 cat >> confdefs.h <<EOF
3378 #define $ac_tr_hdr 1
3382 echo "$ac_t""no" 1>&6
3387 if test $ac_cv_header_pthread_h = yes ; then
3388 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3389 echo "configure:3390: checking POSIX thread version" >&5
3390 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3398 # include <pthread.h>
3399 /* this check could be improved */
3400 # ifdef PTHREAD_ONCE_INIT
3401 pthread_version_final
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 egrep "pthread_version_final" >/dev/null 2>&1; then
3408 ol_pthread_final=yes
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3420 # include <pthread.h>
3421 /* this check could be improved */
3422 # ifdef pthread_once_init
3423 pthread_version_draft4
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3430 ol_pthread_draft4=yes
3433 ol_pthread_draft4=no
3438 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3439 ol_cv_pthread_version=final
3440 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3441 ol_cv_pthread_version=draft4
3443 ol_cv_pthread_version=unknown
3448 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3451 if test $ol_cv_pthread_version = final ; then
3452 cat >> confdefs.h <<\EOF
3453 #define HAVE_PTHREADS_FINAL 1
3456 elif test $ol_cv_pthread_version = draft4 ; then
3457 cat >> confdefs.h <<\EOF
3458 #define HAVE_PTHREADS_D4 1
3462 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3465 # consider threads found
3466 ol_with_threads=found
3469 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3470 echo "configure:3471: checking for LinuxThreads" >&5
3471 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3475 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3476 if test "$res" -gt 0 ; then
3477 ol_cv_linux_threads=yes
3479 ol_cv_linux_threads=no
3484 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3487 if test $ol_cv_linux_threads = yes ; then
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_LINUX_THREADS 1
3495 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3496 echo "configure:3497: checking for pthread_create" >&5
3497 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 /* System header to define __stub macros and hopefully few prototypes,
3504 which can conflict with char pthread_create(); below. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3509 char pthread_create();
3513 /* The GNU C library defines this for functions which it implements
3514 to always fail with ENOSYS. Some functions are actually named
3515 something starting with __ and the normal name is an alias. */
3516 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3526 eval "ac_cv_func_pthread_create=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 eval "ac_cv_func_pthread_create=no"
3536 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3540 echo "$ac_t""no" 1>&6
3544 if test $ol_link_threads = no ; then
3545 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3546 echo "configure:3547: checking for pthread_create with -kthread" >&5
3547 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3552 LIBS="-kthread $LIBS"
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3563 if { (eval echo configure:3564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3565 ol_cv_kthread_flag=yes
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3570 ol_cv_kthread_flag=no
3577 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3579 if test $ol_cv_kthread_flag = yes ; then
3580 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
3581 ol_link_threads=posix
3585 if test $ol_link_threads = no ; then
3586 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3587 echo "configure:3588: checking for pthread_create with -pthread" >&5
3588 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3593 LIBS="-pthread $LIBS"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3596 "configure"
3596 #include "confdefs.h"
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3606 ol_cv_pthread_flag=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 ol_cv_pthread_flag=no
3618 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3620 if test $ol_cv_pthread_flag = yes ; then
3621 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3622 ol_link_threads=posix
3626 if test $ol_link_threads = no ; then
3627 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3628 echo "configure:3629: checking for pthread_create with -pthreads" >&5
3629 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3634 LIBS="-pthreads $LIBS"
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3647 ol_cv_pthreads_flag=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 ol_cv_pthreads_flag=no
3659 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3661 if test $ol_cv_pthreads_flag = yes ; then
3662 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3663 ol_link_threads=posix
3667 if test $ol_link_threads = no ; then
3668 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3669 echo "configure:3670: checking for pthread_create with -thread" >&5
3670 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3675 LIBS="-thread $LIBS"
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3688 ol_cv_thread_flag=yes
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 ol_cv_thread_flag=no
3700 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3702 if test $ol_cv_thread_flag = yes ; then
3703 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3704 ol_link_threads=posix
3708 if test $ol_link_threads = no ; then
3710 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3711 echo "configure:3712: checking for pthread_mutex_lock in -lpthread" >&5
3712 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 ac_save_LIBS="$LIBS"
3717 LIBS="-lpthread -lexc $LIBS"
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3724 char pthread_mutex_lock();
3727 pthread_mutex_lock()
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3732 eval "ac_cv_lib_$ac_lib_var=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 eval "ac_cv_lib_$ac_lib_var=no"
3740 LIBS="$ac_save_LIBS"
3743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3746 ol_link_threads=posix
3747 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3748 if test $ol_with_yielding_select = auto ; then
3749 ol_with_yielding_select=yes
3753 echo "$ac_t""no" 1>&6
3760 if test $ol_link_threads = no ; then
3762 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
3763 echo "configure:3764: checking for pthread_mutex_unlock in -lpthreads" >&5
3764 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3768 ac_save_LIBS="$LIBS"
3769 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3776 char pthread_mutex_unlock();
3779 pthread_mutex_unlock()
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3784 eval "ac_cv_lib_$ac_lib_var=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 eval "ac_cv_lib_$ac_lib_var=no"
3792 LIBS="$ac_save_LIBS"
3795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3798 ol_link_threads=posix
3799 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3800 if test $ol_with_yielding_select = auto ; then
3801 ol_with_yielding_select=yes
3805 echo "$ac_t""no" 1>&6
3812 if test $ol_link_threads = no ; then
3814 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3815 echo "configure:3816: checking for pthread_create in -lpthread" >&5
3816 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS="$LIBS"
3821 LIBS="-lpthread $LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char pthread_create();
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3850 ol_link_threads=posix
3851 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3853 echo "$ac_t""no" 1>&6
3860 if test $ol_link_threads = no ; then
3862 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3863 echo "configure:3864: checking for pthread_create in -lc_r" >&5
3864 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char pthread_create();
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3898 ol_link_threads=posix
3899 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3901 echo "$ac_t""no" 1>&6
3908 if test $ol_link_threads = no ; then
3910 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3911 echo "configure:3912: checking for pthread_create in -lpthreads" >&5
3912 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 ac_save_LIBS="$LIBS"
3917 LIBS="-lpthreads $LIBS"
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3924 char pthread_create();
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3932 eval "ac_cv_lib_$ac_lib_var=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 eval "ac_cv_lib_$ac_lib_var=no"
3940 LIBS="$ac_save_LIBS"
3943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3946 ol_link_threads=posix
3947 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3949 echo "$ac_t""no" 1>&6
3956 if test $ol_link_threads = no ; then
3958 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3959 echo "configure:3960: checking for pthread_join in -lpthreads" >&5
3960 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 ac_save_LIBS="$LIBS"
3965 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972 char pthread_join();
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3980 eval "ac_cv_lib_$ac_lib_var=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 eval "ac_cv_lib_$ac_lib_var=no"
3988 LIBS="$ac_save_LIBS"
3991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3994 ol_link_threads=posix
3995 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3998 echo "$ac_t""no" 1>&6
4005 if test $ol_link_threads = no; then
4007 LIBS="$LIBS -lpthread"
4008 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4009 echo "configure:4010: checking for pthread_create() in HP-UX -lpthread" >&5
4010 ol_try_pthread_hpux_11=no
4011 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4012 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4019 #include <pthread.h>
4021 #ifndef ELFABI_HPUX_REL11
4026 pthread_create(NULL, NULL, NULL, NULL);
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4031 ol_try_pthread_hpux_11=yes
4032 ol_cv_pthread_hpux_11=yes
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 ol_cv_pthread_hpux_11=no
4042 echo "$ac_t""yes" 1>&6
4045 if test $ol_cv_pthread_hpux_11=yes ; then
4046 ol_link_threads=posix
4047 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4048 if test $ol_try_pthread_hpux_11=yes ; then
4049 ac_cv_func_pthread_attr_init=yes
4054 if test $ol_link_threads != no ; then
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_PTHREADS 1
4060 save_CPPFLAGS="$CPPFLAGS"
4062 LIBS="$LTHREAD_LIBS $LIBS"
4064 for ac_func in sched_yield pthread_yield
4066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4067 echo "configure:4068: checking for $ac_func" >&5
4068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 /* System header to define __stub macros and hopefully few prototypes,
4075 which can conflict with char $ac_func(); below. */
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4084 /* The GNU C library defines this for functions which it implements
4085 to always fail with ENOSYS. Some functions are actually named
4086 something starting with __ and the normal name is an alias. */
4087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4097 eval "ac_cv_func_$ac_func=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4102 eval "ac_cv_func_$ac_func=no"
4107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4110 cat >> confdefs.h <<EOF
4111 #define $ac_tr_func 1
4115 echo "$ac_t""no" 1>&6
4120 if test $ac_cv_func_sched_yield = no -a \
4121 $ac_cv_func_pthread_yield = no ; then
4122 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4123 echo "configure:4124: checking for sched_yield in -lrt" >&5
4124 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 ac_save_LIBS="$LIBS"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4144 eval "ac_cv_lib_$ac_lib_var=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 eval "ac_cv_lib_$ac_lib_var=no"
4152 LIBS="$ac_save_LIBS"
4155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_SCHED_YIELD 1
4162 ac_cv_func_sched_yield=yes
4164 echo "$ac_t""no" 1>&6
4165 ac_cv_func_sched_yield=no
4169 if test $ac_cv_func_sched_yield = no -a \
4170 $ac_cv_func_pthread_yield = no ; then
4171 for ac_func in thr_yield
4173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4174 echo "configure:4175: checking for $ac_func" >&5
4175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 /* System header to define __stub macros and hopefully few prototypes,
4182 which can conflict with char $ac_func(); below. */
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4191 /* The GNU C library defines this for functions which it implements
4192 to always fail with ENOSYS. Some functions are actually named
4193 something starting with __ and the normal name is an alias. */
4194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4204 eval "ac_cv_func_$ac_func=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 eval "ac_cv_func_$ac_func=no"
4214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_func 1
4222 echo "$ac_t""no" 1>&6
4227 if test $ac_cv_func_sched_yield = no -a \
4228 $ac_cv_func_pthread_yield = no -a \
4229 "$ac_cv_func_thr_yield" = no ; then
4230 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4233 for ac_func in pthread_kill pthread_detach
4235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4236 echo "configure:4237: checking for $ac_func" >&5
4237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* System header to define __stub macros and hopefully few prototypes,
4244 which can conflict with char $ac_func(); below. */
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4253 /* The GNU C library defines this for functions which it implements
4254 to always fail with ENOSYS. Some functions are actually named
4255 something starting with __ and the normal name is an alias. */
4256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4264 if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4266 eval "ac_cv_func_$ac_func=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 eval "ac_cv_func_$ac_func=no"
4276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4279 cat >> confdefs.h <<EOF
4280 #define $ac_tr_func 1
4284 echo "$ac_t""no" 1>&6
4289 if test $ac_cv_func_pthread_detach = no ; then
4290 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
4294 pthread_setconcurrency \
4295 pthread_getconcurrency \
4296 thr_setconcurrency \
4297 thr_getconcurrency \
4300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4301 echo "configure:4302: checking for $ac_func" >&5
4302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 /* System header to define __stub macros and hopefully few prototypes,
4309 which can conflict with char $ac_func(); below. */
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4318 /* The GNU C library defines this for functions which it implements
4319 to always fail with ENOSYS. Some functions are actually named
4320 something starting with __ and the normal name is an alias. */
4321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4331 eval "ac_cv_func_$ac_func=yes"
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4336 eval "ac_cv_func_$ac_func=no"
4341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_func 1
4349 echo "$ac_t""no" 1>&6
4354 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4355 echo "configure:4356: checking if pthread_create() works" >&5
4356 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4360 if test "$cross_compiling" = yes; then
4361 ol_cv_pthread_create_works=yes
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4367 #include <pthread.h>
4369 #define NULL (void*)0
4372 static void *task(p)
4375 return (void *) (p == NULL);
4378 int main(argc, argv)
4383 exit(pthread_create(&t, NULL, task, NULL));
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4389 ol_cv_pthread_create_works=yes
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 ol_cv_pthread_create_works=no
4401 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4403 if test $ol_cv_pthread_create_works = no ; then
4404 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4407 if test $ol_with_yielding_select = auto ; then
4408 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4409 echo "configure:4410: checking if select yields when using pthreads" >&5
4410 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4414 if test "$cross_compiling" = yes; then
4416 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4422 #include <sys/types.h>
4423 #include <sys/time.h>
4425 #include <pthread.h>
4427 #define NULL (void*) 0
4430 static int fildes[2];
4432 static void *task(p)
4444 FD_SET(fildes[0], &rfds);
4446 /* we're not interested in any fds */
4447 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4454 exit(0); /* if we exit here, the select blocked the whole process */
4457 int main(argc, argv)
4463 /* create a pipe to select */
4464 if(pipe(&fildes[0])) {
4469 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4470 (void) pthread_setconcurrency(2);
4472 #ifdef HAVE_THR_SETCONCURRENCY
4473 /* Set Solaris LWP concurrency to 2 */
4474 thr_setconcurrency(2);
4478 pthread_create(&t, NULL, task, NULL);
4480 #if HAVE_SCHED_YIELD
4481 sched_yield(); /* make sure task runs first */
4483 #ifdef HAVE_PTHREAD_YIELD
4484 pthread_yield(); /* make sure task runs first */
4491 if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4493 ol_cv_pthread_select_yields=no
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4498 ol_cv_pthread_select_yields=yes
4505 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4507 if test $ol_cv_pthread_select_yields = yes ; then
4508 ol_with_yielding_select=yes
4512 CPPFLAGS="$save_CPPFLAGS"
4515 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4519 if test $ol_with_threads = posix ; then
4520 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4524 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4525 -o $ol_with_threads = mach ; then
4527 for ac_hdr in mach/cthreads.h
4529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_hdr" >&5
4532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4541 { (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4542 ac_err=`grep -v '^ *+' conftest.out`
4543 if test -z "$ac_err"; then
4545 eval "ac_cv_header_$ac_safe=yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 eval "ac_cv_header_$ac_safe=no"
4555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4556 echo "$ac_t""yes" 1>&6
4557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4558 cat >> confdefs.h <<EOF
4559 #define $ac_tr_hdr 1
4563 echo "$ac_t""no" 1>&6
4567 if test $ac_cv_header_mach_cthreads_h = yes ; then
4568 ol_with_threads=found
4570 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4571 echo "configure:4572: checking for cthread_fork" >&5
4572 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 /* System header to define __stub macros and hopefully few prototypes,
4579 which can conflict with char cthread_fork(); below. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4584 char cthread_fork();
4588 /* The GNU C library defines this for functions which it implements
4589 to always fail with ENOSYS. Some functions are actually named
4590 something starting with __ and the normal name is an alias. */
4591 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4601 eval "ac_cv_func_cthread_fork=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 eval "ac_cv_func_cthread_fork=no"
4611 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4615 echo "$ac_t""no" 1>&6
4619 if test $ol_link_threads = no ; then
4620 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4621 echo "configure:4622: checking for cthread_fork with -all_load" >&5
4622 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4627 LIBS="-all_load $LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 #include <mach/cthreads.h>
4634 cthread_fork((void *)0, (void *)0);
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4640 ol_cv_cthread_all_load=yes
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 ol_cv_cthread_all_load=no
4652 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4654 if test $ol_cv_cthread_all_load = yes ; then
4655 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4656 ol_link_threads=mach
4660 if test $ol_link_threads != no ; then
4661 : check for cthread specific functionality here
4662 cat >> confdefs.h <<\EOF
4663 #define HAVE_MACH_CTHREADS 1
4667 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4671 if test $ol_with_threads = mach ; then
4672 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4676 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4677 -o $ol_with_threads = lwp ; then
4679 for ac_hdr in thread.h synch.h
4681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_hdr" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4693 { (eval echo configure:4694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4694 ac_err=`grep -v '^ *+' conftest.out`
4695 if test -z "$ac_err"; then
4697 eval "ac_cv_header_$ac_safe=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_header_$ac_safe=no"
4707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_hdr 1
4715 echo "$ac_t""no" 1>&6
4719 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4720 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4721 echo "configure:4722: checking for thr_create in -lthread" >&5
4722 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 ac_save_LIBS="$LIBS"
4727 LIBS="-lthread $LIBS"
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4742 eval "ac_cv_lib_$ac_lib_var=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 eval "ac_cv_lib_$ac_lib_var=no"
4750 LIBS="$ac_save_LIBS"
4753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4757 echo "$ac_t""no" 1>&6
4762 if test $have_thr = yes ; then
4763 cat >> confdefs.h <<\EOF
4767 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4770 if test $ol_with_yielding_select = auto ; then
4771 ol_with_yielding_select=yes
4775 thr_setconcurrency \
4776 thr_getconcurrency \
4779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_func" >&5
4781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* System header to define __stub macros and hopefully few prototypes,
4788 which can conflict with char $ac_func(); below. */
4790 /* Override any gcc2 internal prototype to avoid an error. */
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4797 /* The GNU C library defines this for functions which it implements
4798 to always fail with ENOSYS. Some functions are actually named
4799 something starting with __ and the normal name is an alias. */
4800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4810 eval "ac_cv_func_$ac_func=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4815 eval "ac_cv_func_$ac_func=no"
4820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4823 cat >> confdefs.h <<EOF
4824 #define $ac_tr_func 1
4828 echo "$ac_t""no" 1>&6
4835 for ac_hdr in lwp/lwp.h
4837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4839 echo "configure:4840: checking for $ac_hdr" >&5
4840 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4849 { (eval echo configure:4850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4850 ac_err=`grep -v '^ *+' conftest.out`
4851 if test -z "$ac_err"; then
4853 eval "ac_cv_header_$ac_safe=yes"
4856 echo "configure: failed program was:" >&5
4857 cat conftest.$ac_ext >&5
4859 eval "ac_cv_header_$ac_safe=no"
4863 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4865 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4866 cat >> confdefs.h <<EOF
4867 #define $ac_tr_hdr 1
4871 echo "$ac_t""no" 1>&6
4875 if test $ac_cv_header_lwp_lwp_h = yes ; then
4876 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4877 echo "configure:4878: checking for lwp_create in -llwp" >&5
4878 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4880 echo $ac_n "(cached) $ac_c" 1>&6
4882 ac_save_LIBS="$LIBS"
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4887 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4898 eval "ac_cv_lib_$ac_lib_var=yes"
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4903 eval "ac_cv_lib_$ac_lib_var=no"
4906 LIBS="$ac_save_LIBS"
4909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4913 echo "$ac_t""no" 1>&6
4918 if test $have_lwp = yes ; then
4919 cat >> confdefs.h <<\EOF
4923 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4926 if test $ol_with_yielding_select = auto ; then
4927 ol_with_yielding_select=no
4933 if test $ol_with_yielding_select = yes ; then
4934 cat >> confdefs.h <<\EOF
4935 #define HAVE_YIELDING_SELECT 1
4940 if test $ol_with_threads = manual ; then
4943 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4945 for ac_hdr in pthread.h sched.h
4947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_hdr" >&5
4950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4959 { (eval echo configure:4960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4960 ac_err=`grep -v '^ *+' conftest.out`
4961 if test -z "$ac_err"; then
4963 eval "ac_cv_header_$ac_safe=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_header_$ac_safe=no"
4973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_hdr 1
4981 echo "$ac_t""no" 1>&6
4985 for ac_func in sched_yield pthread_yield
4987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4988 echo "configure:4989: checking for $ac_func" >&5
4989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 /* System header to define __stub macros and hopefully few prototypes,
4996 which can conflict with char $ac_func(); below. */
4998 /* Override any gcc2 internal prototype to avoid an error. */
4999 /* We use char because int might match the return type of a gcc2
5000 builtin and then its argument prototype would still apply. */
5005 /* The GNU C library defines this for functions which it implements
5006 to always fail with ENOSYS. Some functions are actually named
5007 something starting with __ and the normal name is an alias. */
5008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5018 eval "ac_cv_func_$ac_func=yes"
5020 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5
5023 eval "ac_cv_func_$ac_func=no"
5028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5029 echo "$ac_t""yes" 1>&6
5030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5031 cat >> confdefs.h <<EOF
5032 #define $ac_tr_func 1
5036 echo "$ac_t""no" 1>&6
5041 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5042 echo "configure:5043: checking for LinuxThreads" >&5
5043 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5047 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5048 if test "$res" -gt 0 ; then
5049 ol_cv_linux_threads=yes
5051 ol_cv_linux_threads=no
5056 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5059 for ac_hdr in mach/cthreads.h
5061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_hdr" >&5
5064 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5073 { (eval echo configure:5074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5074 ac_err=`grep -v '^ *+' conftest.out`
5075 if test -z "$ac_err"; then
5077 eval "ac_cv_header_$ac_safe=yes"
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 eval "ac_cv_header_$ac_safe=no"
5087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5090 cat >> confdefs.h <<EOF
5091 #define $ac_tr_hdr 1
5095 echo "$ac_t""no" 1>&6
5099 for ac_hdr in lwp/lwp.h
5101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5103 echo "configure:5104: checking for $ac_hdr" >&5
5104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5107 cat > conftest.$ac_ext <<EOF
5108 #line 5109 "configure"
5109 #include "confdefs.h"
5112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5113 { (eval echo configure:5114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5114 ac_err=`grep -v '^ *+' conftest.out`
5115 if test -z "$ac_err"; then
5117 eval "ac_cv_header_$ac_safe=yes"
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 eval "ac_cv_header_$ac_safe=no"
5127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5130 cat >> confdefs.h <<EOF
5131 #define $ac_tr_hdr 1
5135 echo "$ac_t""no" 1>&6
5139 for ac_hdr in thread.h synch.h
5141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5143 echo "configure:5144: checking for $ac_hdr" >&5
5144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5153 { (eval echo configure:5154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5154 ac_err=`grep -v '^ *+' conftest.out`
5155 if test -z "$ac_err"; then
5157 eval "ac_cv_header_$ac_safe=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 eval "ac_cv_header_$ac_safe=no"
5167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5168 echo "$ac_t""yes" 1>&6
5169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5170 cat >> confdefs.h <<EOF
5171 #define $ac_tr_hdr 1
5175 echo "$ac_t""no" 1>&6
5181 if test $ol_link_threads != no ; then
5182 cat >> confdefs.h <<\EOF
5186 cat >> confdefs.h <<\EOF
5187 #define _REENTRANT 1
5190 cat >> confdefs.h <<\EOF
5191 #define THREAD_SAFE 1
5194 cat >> confdefs.h <<\EOF
5195 #define _THREAD_SAFE 1
5198 cat >> confdefs.h <<\EOF
5199 #define THREADSAFE 1
5202 cat >> confdefs.h <<\EOF
5203 #define _THREADSAFE 1
5207 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5208 echo "configure:5209: checking for thread specific errno" >&5
5209 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5227 ol_cv_errno_thread_specific=yes
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 ol_cv_errno_thread_specific=no
5238 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5240 if test $ol_cv_errno_thread_specific != yes ; then
5241 LIBS="$LTHREAD_LIBS $LIBS"
5247 if test $ol_link_threads = no ; then
5248 if test $ol_with_threads = yes ; then
5249 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5252 if test $ol_with_threads = auto ; then
5253 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5257 cat >> confdefs.h <<\EOF
5258 #define NO_THREADS 1
5265 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5266 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5267 echo "configure:5268: checking for DB2 library" >&5
5268 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5272 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5273 echo "configure:5274: checking for db_open in -ldb" >&5
5274 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 ac_save_LIBS="$LIBS"
5280 cat > conftest.$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5283 /* Override any gcc2 internal prototype to avoid an error. */
5284 /* We use char because int might match the return type of a gcc2
5285 builtin and then its argument prototype would still apply. */
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5294 eval "ac_cv_lib_$ac_lib_var=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 eval "ac_cv_lib_$ac_lib_var=no"
5302 LIBS="$ac_save_LIBS"
5305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5309 echo "$ac_t""no" 1>&6
5317 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5323 echo "configure:5324: checking for $ac_hdr" >&5
5324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5325 echo $ac_n "(cached) $ac_c" 1>&6
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure"
5329 #include "confdefs.h"
5332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5333 { (eval echo configure:5334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5334 ac_err=`grep -v '^ *+' conftest.out`
5335 if test -z "$ac_err"; then
5337 eval "ac_cv_header_$ac_safe=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_header_$ac_safe=no"
5347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_hdr 1
5355 echo "$ac_t""no" 1>&6
5359 if test $ac_cv_header_db_h = yes ; then
5360 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5361 echo "configure:5362: checking if db.h is DB2" >&5
5362 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5371 /* this check could be improved */
5372 # ifdef DB_VERSION_MAJOR
5373 # if DB_VERSION_MAJOR == 2
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 egrep "__db_version_2" >/dev/null 2>&1; then
5382 ol_cv_header_db2=yes
5391 echo "$ac_t""$ol_cv_header_db2" 1>&6
5398 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5399 echo "configure:5400: checking for Berkeley DB2" >&5
5400 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5404 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
5405 ol_cv_berkeley_db2=no
5407 ol_cv_berkeley_db2=yes
5412 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5413 if test $ol_cv_berkeley_db2 = yes ; then
5414 cat >> confdefs.h <<\EOF
5415 #define HAVE_BERKELEY_DB2 1
5421 if test $ol_cv_berkeley_db2 = yes ; then
5423 ol_with_ldbm_api=db2
5425 if test $ol_with_ldbm_type = hash ; then
5426 cat >> confdefs.h <<\EOF
5427 #define LDBM_USE_DBHASH 1
5431 cat >> confdefs.h <<\EOF
5432 #define LDBM_USE_DBBTREE 1
5437 if test $ol_cv_lib_db2 != yes ; then
5438 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5443 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5444 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5445 echo "configure:5446: checking for Berkeley DB library" >&5
5446 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5450 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5451 echo "configure:5452: checking for dbopen" >&5
5452 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char dbopen(); below. */
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5481 eval "ac_cv_func_dbopen=yes"
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 eval "ac_cv_func_dbopen=no"
5491 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5492 echo "$ac_t""yes" 1>&6
5495 echo "$ac_t""no" 1>&6
5497 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5498 echo "configure:5499: checking for dbopen in -ldb" >&5
5499 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5501 echo $ac_n "(cached) $ac_c" 1>&6
5503 ac_save_LIBS="$LIBS"
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5519 eval "ac_cv_lib_$ac_lib_var=yes"
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 eval "ac_cv_lib_$ac_lib_var=no"
5527 LIBS="$ac_save_LIBS"
5530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5531 echo "$ac_t""yes" 1>&6
5534 echo "$ac_t""no" 1>&6
5545 echo "$ac_t""$ol_cv_lib_db" 1>&6
5548 for ac_hdr in db_185.h
5550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5552 echo "configure:5553: checking for $ac_hdr" >&5
5553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5562 { (eval echo configure:5563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5563 ac_err=`grep -v '^ *+' conftest.out`
5564 if test -z "$ac_err"; then
5566 eval "ac_cv_header_$ac_safe=yes"
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5572 eval "ac_cv_header_$ac_safe=no"
5576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5579 cat >> confdefs.h <<EOF
5580 #define $ac_tr_hdr 1
5584 echo "$ac_t""no" 1>&6
5588 if test "$ol_cv_header_db2" = yes ; then
5590 ol_cv_header_db=$ac_cv_header_db_185_h
5592 ol_cv_header_db=$ac_cv_header_db_h
5597 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5598 echo "configure:5599: checking for Berkeley DB" >&5
5599 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5603 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
5604 ol_cv_berkeley_db=no
5606 ol_cv_berkeley_db=yes
5611 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5612 if test $ol_cv_berkeley_db = yes ; then
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_BERKELEY_DB 1
5620 if test $ol_cv_berkeley_db = yes ; then
5624 if test $ol_with_ldbm_type = hash ; then
5625 cat >> confdefs.h <<\EOF
5626 #define LDBM_USE_DBHASH 1
5630 cat >> confdefs.h <<\EOF
5631 #define LDBM_USE_DBBTREE 1
5636 if test $ol_cv_lib_db != yes ; then
5637 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5642 if test $ol_with_ldbm_api = manual ; then
5645 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5647 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5651 echo "configure:5652: checking for $ac_hdr" >&5
5652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5661 { (eval echo configure:5662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5662 ac_err=`grep -v '^ *+' conftest.out`
5663 if test -z "$ac_err"; then
5665 eval "ac_cv_header_$ac_safe=yes"
5668 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 eval "ac_cv_header_$ac_safe=no"
5675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_hdr 1
5683 echo "$ac_t""no" 1>&6
5689 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5690 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5691 ol_with_ldbm_api=none
5694 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5695 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5696 echo "configure:5697: checking for GDBM library" >&5
5697 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5701 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5702 echo "configure:5703: checking for gdbm_open" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char gdbm_open(); below. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5732 eval "ac_cv_func_gdbm_open=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 eval "ac_cv_func_gdbm_open=no"
5742 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5746 echo "$ac_t""no" 1>&6
5748 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5749 echo "configure:5750: checking for gdbm_open in -lgdbm" >&5
5750 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 ac_save_LIBS="$LIBS"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5770 eval "ac_cv_lib_$ac_lib_var=yes"
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 eval "ac_cv_lib_$ac_lib_var=no"
5778 LIBS="$ac_save_LIBS"
5781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5783 ol_cv_lib_gdbm=-lgdbm
5785 echo "$ac_t""no" 1>&6
5796 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5799 for ac_hdr in gdbm.h
5801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5803 echo "configure:5804: checking for $ac_hdr" >&5
5804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5813 { (eval echo configure:5814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5814 ac_err=`grep -v '^ *+' conftest.out`
5815 if test -z "$ac_err"; then
5817 eval "ac_cv_header_$ac_safe=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_header_$ac_safe=no"
5827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5828 echo "$ac_t""yes" 1>&6
5829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5830 cat >> confdefs.h <<EOF
5831 #define $ac_tr_hdr 1
5835 echo "$ac_t""no" 1>&6
5839 echo $ac_n "checking for db""... $ac_c" 1>&6
5840 echo "configure:5841: checking for db" >&5
5841 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5845 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5853 echo "$ac_t""$ol_cv_gdbm" 1>&6
5854 if test $ol_cv_gdbm = yes ; then
5855 cat >> confdefs.h <<\EOF
5862 if test $ol_cv_gdbm = yes ; then
5864 ol_with_ldbm_api=gdbm
5866 if test $ol_cv_lib_gdbm != yes ; then
5867 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5872 if test $ol_with_ldbm_api = auto ; then
5873 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5874 elif test $ol_with_ldbm_api = ndbm ; then
5875 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5876 echo "configure:5877: checking for NDBM library" >&5
5877 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5881 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5882 echo "configure:5883: checking for dbm_open" >&5
5883 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6
5886 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure"
5888 #include "confdefs.h"
5889 /* System header to define __stub macros and hopefully few prototypes,
5890 which can conflict with char dbm_open(); below. */
5892 /* Override any gcc2 internal prototype to avoid an error. */
5893 /* We use char because int might match the return type of a gcc2
5894 builtin and then its argument prototype would still apply. */
5899 /* The GNU C library defines this for functions which it implements
5900 to always fail with ENOSYS. Some functions are actually named
5901 something starting with __ and the normal name is an alias. */
5902 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5912 eval "ac_cv_func_dbm_open=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_func_dbm_open=no"
5922 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5926 echo "$ac_t""no" 1>&6
5928 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5929 echo "configure:5930: checking for dbm_open in -lndbm" >&5
5930 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5932 echo $ac_n "(cached) $ac_c" 1>&6
5934 ac_save_LIBS="$LIBS"
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5950 eval "ac_cv_lib_$ac_lib_var=yes"
5952 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_lib_$ac_lib_var=no"
5958 LIBS="$ac_save_LIBS"
5961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ol_cv_lib_ndbm=-lndbm
5965 echo "$ac_t""no" 1>&6
5967 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5968 echo "configure:5969: checking for dbm_open in -ldbm" >&5
5969 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5973 ac_save_LIBS="$LIBS"
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5989 eval "ac_cv_lib_$ac_lib_var=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval "ac_cv_lib_$ac_lib_var=no"
5997 LIBS="$ac_save_LIBS"
6000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6001 echo "$ac_t""yes" 1>&6
6002 ol_cv_lib_ndbm=-ldbm
6004 echo "$ac_t""no" 1>&6
6017 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6020 for ac_hdr in ndbm.h
6022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6024 echo "configure:6025: checking for $ac_hdr" >&5
6025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure"
6030 #include "confdefs.h"
6033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6034 { (eval echo configure:6035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6035 ac_err=`grep -v '^ *+' conftest.out`
6036 if test -z "$ac_err"; then
6038 eval "ac_cv_header_$ac_safe=yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_header_$ac_safe=no"
6048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6049 echo "$ac_t""yes" 1>&6
6050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6051 cat >> confdefs.h <<EOF
6052 #define $ac_tr_hdr 1
6056 echo "$ac_t""no" 1>&6
6060 echo $ac_n "checking for db""... $ac_c" 1>&6
6061 echo "configure:6062: checking for db" >&5
6062 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6066 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6074 echo "$ac_t""$ol_cv_ndbm" 1>&6
6075 if test $ol_cv_ndbm = yes ; then
6076 cat >> confdefs.h <<\EOF
6083 if test $ol_cv_ndbm = yes ; then
6085 ol_with_ldbm_api=ndbm
6087 if test $ol_cv_lib_ndbm != yes ; then
6088 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6093 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6094 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6095 if test $ol_enable_ldbm = yes ; then
6096 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6099 echo "configure: warning: disabling LDBM" 1>&2
6103 if test $ol_enable_wrappers != no ; then
6104 for ac_hdr in tcpd.h
6106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6108 echo "configure:6109: checking for $ac_hdr" >&5
6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out`
6120 if test -z "$ac_err"; then
6122 eval "ac_cv_header_$ac_safe=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_header_$ac_safe=no"
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6135 cat >> confdefs.h <<EOF
6136 #define $ac_tr_hdr 1
6140 echo "$ac_t""no" 1>&6
6145 if test $ac_cv_header_tcpd_h != yes ; then
6148 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6149 echo "configure:6150: checking for main in -lwrap" >&5
6150 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6152 echo $ac_n "(cached) $ac_c" 1>&6
6154 ac_save_LIBS="$LIBS"
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6166 eval "ac_cv_lib_$ac_lib_var=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 eval "ac_cv_lib_$ac_lib_var=no"
6174 LIBS="$ac_save_LIBS"
6177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6178 echo "$ac_t""yes" 1>&6
6181 echo "$ac_t""no" 1>&6
6187 if test $have_wrappers = yes ; then
6188 cat >> confdefs.h <<\EOF
6192 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6194 echo "configure: warning: could not find -lwrap" 1>&2
6195 if test $ol_enable_wrappers = yes ; then
6196 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6199 echo "configure: warning: disabling wrappers support" 1>&2
6200 ol_enable_wrappers=no
6204 if test $ol_enable_dmalloc != no ; then
6205 for ac_hdr in dmalloc.h
6207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6209 echo "configure:6210: checking for $ac_hdr" >&5
6210 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6211 echo $ac_n "(cached) $ac_c" 1>&6
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6219 { (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6220 ac_err=`grep -v '^ *+' conftest.out`
6221 if test -z "$ac_err"; then
6223 eval "ac_cv_header_$ac_safe=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_header_$ac_safe=no"
6233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6234 echo "$ac_t""yes" 1>&6
6235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6236 cat >> confdefs.h <<EOF
6237 #define $ac_tr_hdr 1
6241 echo "$ac_t""no" 1>&6
6245 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6246 echo "configure:6247: checking for dmalloc_shutdown in -ldmalloc" >&5
6247 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 ac_save_LIBS="$LIBS"
6252 LIBS="-ldmalloc $LIBS"
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6259 char dmalloc_shutdown();
6265 if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6267 eval "ac_cv_lib_$ac_lib_var=yes"
6269 echo "configure: failed program was:" >&5
6270 cat conftest.$ac_ext >&5
6272 eval "ac_cv_lib_$ac_lib_var=no"
6275 LIBS="$ac_save_LIBS"
6278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6279 echo "$ac_t""yes" 1>&6
6280 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6282 cat >> confdefs.h <<EOF
6283 #define $ac_tr_lib 1
6286 LIBS="-ldmalloc $LIBS"
6289 echo "$ac_t""no" 1>&6
6294 # ud needs termcap (should insert check here)
6296 for ac_hdr in termcap.h ncurses.h
6298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6300 echo "configure:6301: checking for $ac_hdr" >&5
6301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6310 { (eval echo configure:6311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6311 ac_err=`grep -v '^ *+' conftest.out`
6312 if test -z "$ac_err"; then
6314 eval "ac_cv_header_$ac_safe=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_header_$ac_safe=no"
6324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6325 echo "$ac_t""yes" 1>&6
6326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6327 cat >> confdefs.h <<EOF
6328 #define $ac_tr_hdr 1
6332 echo "$ac_t""no" 1>&6
6337 if test $ol_link_termcap = no ; then
6338 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6339 echo "configure:6340: checking for tputs in -ltermcap" >&5
6340 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6344 ac_save_LIBS="$LIBS"
6345 LIBS="-ltermcap $LIBS"
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6349 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6360 eval "ac_cv_lib_$ac_lib_var=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_lib_$ac_lib_var=no"
6368 LIBS="$ac_save_LIBS"
6371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6372 echo "$ac_t""yes" 1>&6
6375 echo "$ac_t""no" 1>&6
6379 if test $have_termcap = yes ; then
6380 cat >> confdefs.h <<\EOF
6381 #define HAVE_TERMCAP 1
6385 TERMCAP_LIBS=-ltermcap
6389 if test $ol_link_termcap = no ; then
6390 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6391 echo "configure:6392: checking for initscr in -lncurses" >&5
6392 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6396 ac_save_LIBS="$LIBS"
6397 LIBS="-lncurses $LIBS"
6398 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6412 eval "ac_cv_lib_$ac_lib_var=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 eval "ac_cv_lib_$ac_lib_var=no"
6420 LIBS="$ac_save_LIBS"
6423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6431 if test $have_ncurses = yes ; then
6432 cat >> confdefs.h <<\EOF
6433 #define HAVE_NCURSES 1
6437 TERMCAP_LIBS=-lncurses
6441 if test $ol_link_termcap = no ; then
6442 cat >> confdefs.h <<\EOF
6443 #define NO_TERMCAP 1
6449 # FreeBSD (and others) have crypt(3) in -lcrypt
6450 if test $ol_enable_crypt != no ; then
6451 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6452 echo "configure:6453: checking for crypt" >&5
6453 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6458 "configure"
6458 #include "confdefs.h"
6459 /* System header to define __stub macros and hopefully few prototypes,
6460 which can conflict with char crypt(); below. */
6462 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6469 /* The GNU C library defines this for functions which it implements
6470 to always fail with ENOSYS. Some functions are actually named
6471 something starting with __ and the normal name is an alias. */
6472 #if defined (__stub_crypt) || defined (__stub___crypt)
6480 if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6482 eval "ac_cv_func_crypt=yes"
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6487 eval "ac_cv_func_crypt=no"
6492 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6493 echo "$ac_t""yes" 1>&6
6496 echo "$ac_t""no" 1>&6
6498 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6499 echo "configure:6500: checking for crypt in -lcrypt" >&5
6500 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 ac_save_LIBS="$LIBS"
6505 LIBS="-lcrypt $LIBS"
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6509 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6520 eval "ac_cv_lib_$ac_lib_var=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_lib_$ac_lib_var=no"
6528 LIBS="$ac_save_LIBS"
6531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6536 echo "$ac_t""no" 1>&6
6543 if test $have_crypt = yes ; then
6544 cat >> confdefs.h <<\EOF
6545 #define HAVE_CRYPT 1
6549 echo "configure: warning: could not find crypt" 1>&2
6550 if test $ol_enable_crypt = yes ; then
6551 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6554 echo "configure: warning: disabling crypt support" 1>&2
6559 # FreeBSD (and others) have setproctitle(3) in -lutil
6560 if test $ol_enable_proctitle != no ; then
6561 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6562 echo "configure:6563: checking for setproctitle" >&5
6563 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* System header to define __stub macros and hopefully few prototypes,
6570 which can conflict with char setproctitle(); below. */
6572 /* Override any gcc2 internal prototype to avoid an error. */
6573 /* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575 char setproctitle();
6579 /* The GNU C library defines this for functions which it implements
6580 to always fail with ENOSYS. Some functions are actually named
6581 something starting with __ and the normal name is an alias. */
6582 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6592 eval "ac_cv_func_setproctitle=yes"
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6597 eval "ac_cv_func_setproctitle=no"
6602 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6603 echo "$ac_t""yes" 1>&6
6604 have_setproctitle=yes
6606 echo "$ac_t""no" 1>&6
6608 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6609 echo "configure:6610: checking for setproctitle in -lutil" >&5
6610 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 ac_save_LIBS="$LIBS"
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622 char setproctitle();
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6630 eval "ac_cv_lib_$ac_lib_var=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_lib_$ac_lib_var=no"
6638 LIBS="$ac_save_LIBS"
6641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6642 echo "$ac_t""yes" 1>&6
6643 have_setproctitle=yes
6644 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6646 echo "$ac_t""no" 1>&6
6647 have_setproctitle=no
6648 LIBOBJS="$LIBOBJS setproctitle.o"
6654 if test $have_setproctitle = yes ; then
6655 cat >> confdefs.h <<\EOF
6656 #define HAVE_SETPROCTITLE 1
6662 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6663 echo "configure:6664: checking for ANSI C header files" >&5
6664 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6676 { (eval echo configure:6677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6677 ac_err=`grep -v '^ *+' conftest.out`
6678 if test -z "$ac_err"; then
6680 ac_cv_header_stdc=yes
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 ac_cv_header_stdc=no
6690 if test $ac_cv_header_stdc = yes; then
6691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6692 cat > conftest.$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6698 egrep "memchr" >/dev/null 2>&1; then
6702 ac_cv_header_stdc=no
6708 if test $ac_cv_header_stdc = yes; then
6709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6716 egrep "free" >/dev/null 2>&1; then
6720 ac_cv_header_stdc=no
6726 if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6735 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6736 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6738 int main () { int i; for (i = 0; i < 256; i++)
6739 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 ac_cv_header_stdc=no
6758 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6759 if test $ac_cv_header_stdc = yes; then
6760 cat >> confdefs.h <<\EOF
6761 #define STDC_HEADERS 1
6767 if test $ac_cv_header_stdc != yes; then
6768 echo "configure: warning: could not Standard C compliant headers" 1>&2
6772 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6775 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6776 echo "configure:6777: checking for $ac_hdr that defines DIR" >&5
6777 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6783 #include <sys/types.h>
6789 if { (eval echo configure:6790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6791 eval "ac_cv_header_dirent_$ac_safe=yes"
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6796 eval "ac_cv_header_dirent_$ac_safe=no"
6800 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6801 echo "$ac_t""yes" 1>&6
6802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6803 cat >> confdefs.h <<EOF
6804 #define $ac_tr_hdr 1
6806 ac_header_dirent=$ac_hdr; break
6808 echo "$ac_t""no" 1>&6
6811 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6812 if test $ac_header_dirent = dirent.h; then
6813 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6814 echo "configure:6815: checking for opendir in -ldir" >&5
6815 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 ac_save_LIBS="$LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6835 eval "ac_cv_lib_$ac_lib_var=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 eval "ac_cv_lib_$ac_lib_var=no"
6843 LIBS="$ac_save_LIBS"
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6850 echo "$ac_t""no" 1>&6
6854 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6855 echo "configure:6856: checking for opendir in -lx" >&5
6856 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 ac_save_LIBS="$LIBS"
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6876 eval "ac_cv_lib_$ac_lib_var=yes"
6878 echo "configure: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 eval "ac_cv_lib_$ac_lib_var=no"
6884 LIBS="$ac_save_LIBS"
6887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6888 echo "$ac_t""yes" 1>&6
6891 echo "$ac_t""no" 1>&6
6896 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6897 echo "configure:6898: checking for sys/wait.h that is POSIX.1 compatible" >&5
6898 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6904 #include <sys/types.h>
6905 #include <sys/wait.h>
6907 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6910 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6915 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6918 if { (eval echo configure:6919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6920 ac_cv_header_sys_wait_h=yes
6922 echo "configure: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6925 ac_cv_header_sys_wait_h=no
6930 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6931 if test $ac_cv_header_sys_wait_h = yes; then
6932 cat >> confdefs.h <<\EOF
6933 #define HAVE_SYS_WAIT_H 1
6938 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6939 echo "configure:6940: checking POSIX termios" >&5
6940 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6946 #include <sys/types.h>
6948 #include <termios.h>
6950 /* SunOS 4.0.3 has termios.h but not the library calls. */
6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6956 am_cv_sys_posix_termios=yes
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6961 am_cv_sys_posix_termios=no
6966 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6969 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6970 echo "configure:6971: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6971 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6974 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6976 gwinsz_in_termios_h=no
6977 if test $am_cv_sys_posix_termios = yes; then
6978 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure"
6980 #include "confdefs.h"
6981 #include <sys/types.h>
6982 # include <termios.h>
6988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989 egrep "yes" >/dev/null 2>&1; then
6991 gwinsz_in_termios_h=yes
6997 if test $gwinsz_in_termios_h = no; then
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 #include <sys/types.h>
7002 # include <sys/ioctl.h>
7008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009 egrep "yes" >/dev/null 2>&1; then
7011 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7019 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7020 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7021 cat >> confdefs.h <<\EOF
7022 #define GWINSZ_IN_SYS_IOCTL 1
7027 if test $am_cv_sys_posix_termios = yes ; then
7028 cat >> confdefs.h <<\EOF
7029 #define HAVE_POSIX_TERMIOS 1
7067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7069 echo "configure:7070: checking for $ac_hdr" >&5
7070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7079 { (eval echo configure:7080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7080 ac_err=`grep -v '^ *+' conftest.out`
7081 if test -z "$ac_err"; then
7083 eval "ac_cv_header_$ac_safe=yes"
7086 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7089 eval "ac_cv_header_$ac_safe=no"
7093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7096 cat >> confdefs.h <<EOF
7097 #define $ac_tr_hdr 1
7101 echo "$ac_t""no" 1>&6
7106 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7107 echo "configure:7108: checking for uid_t in sys/types.h" >&5
7108 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7109 echo $ac_n "(cached) $ac_c" 1>&6
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 #include <sys/types.h>
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 egrep "uid_t" >/dev/null 2>&1; then
7119 ac_cv_type_uid_t=yes
7128 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7129 if test $ac_cv_type_uid_t = no; then
7130 cat >> confdefs.h <<\EOF
7134 cat >> confdefs.h <<\EOF
7140 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7141 echo "configure:7142: checking type of array argument to getgroups" >&5
7142 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7145 if test "$cross_compiling" = yes; then
7146 ac_cv_type_getgroups=cross
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7152 /* Thanks to Mike Rendell for this test. */
7153 #include <sys/types.h>
7156 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7161 union { gid_t gval; long lval; } val;
7164 for (i = 0; i < NGID; i++)
7165 gidset[i] = val.gval;
7166 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7168 /* Exit non-zero if getgroups seems to require an array of ints. This
7169 happens when gid_t is short but getgroups modifies an array of ints. */
7170 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7176 ac_cv_type_getgroups=gid_t
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 ac_cv_type_getgroups=int
7186 if test $ac_cv_type_getgroups = cross; then
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7195 ac_cv_type_getgroups=gid_t
7198 ac_cv_type_getgroups=int
7205 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7206 cat >> confdefs.h <<EOF
7207 #define GETGROUPS_T $ac_cv_type_getgroups
7210 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7211 echo "configure:7212: checking for mode_t" >&5
7212 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 #include <sys/types.h>
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7227 ac_cv_type_mode_t=yes
7230 ac_cv_type_mode_t=no
7235 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7236 if test $ac_cv_type_mode_t = no; then
7237 cat >> confdefs.h <<\EOF
7243 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7244 echo "configure:7245: checking for off_t" >&5
7245 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 #include <sys/types.h>
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7260 ac_cv_type_off_t=yes
7268 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7269 if test $ac_cv_type_off_t = no; then
7270 cat >> confdefs.h <<\EOF
7276 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7277 echo "configure:7278: checking for pid_t" >&5
7278 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7279 echo $ac_n "(cached) $ac_c" 1>&6
7281 cat > conftest.$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 #include <sys/types.h>
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7293 ac_cv_type_pid_t=yes
7301 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7302 if test $ac_cv_type_pid_t = no; then
7303 cat >> confdefs.h <<\EOF
7309 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7310 echo "configure:7311: checking for ptrdiff_t" >&5
7311 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7314 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure"
7316 #include "confdefs.h"
7322 if { (eval echo configure:7323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7324 am_cv_type_ptrdiff_t=yes
7326 echo "configure: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7329 am_cv_type_ptrdiff_t=no
7334 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7335 if test $am_cv_type_ptrdiff_t = yes; then
7336 cat >> confdefs.h <<\EOF
7337 #define HAVE_PTRDIFF_T 1
7342 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7343 echo "configure:7344: checking return type of signal handlers" >&5
7344 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7347 cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 #include <sys/types.h>
7356 extern "C" void (*signal (int, void (*)(int)))(int);
7358 void (*signal ()) ();
7365 if { (eval echo configure:7366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367 ac_cv_type_signal=void
7369 echo "configure: failed program was:" >&5
7370 cat conftest.$ac_ext >&5
7372 ac_cv_type_signal=int
7377 echo "$ac_t""$ac_cv_type_signal" 1>&6
7378 cat >> confdefs.h <<EOF
7379 #define RETSIGTYPE $ac_cv_type_signal
7383 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7384 echo "configure:7385: checking for size_t" >&5
7385 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 #include <sys/types.h>
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7400 ac_cv_type_size_t=yes
7403 ac_cv_type_size_t=no
7408 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7409 if test $ac_cv_type_size_t = no; then
7410 cat >> confdefs.h <<\EOF
7411 #define size_t unsigned
7416 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7417 echo "configure:7418: checking for st_blksize in struct stat" >&5
7418 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7421 cat > conftest.$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7424 #include <sys/types.h>
7425 #include <sys/stat.h>
7427 struct stat s; s.st_blksize;
7430 if { (eval echo configure:7431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7432 ac_cv_struct_st_blksize=yes
7434 echo "configure: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7437 ac_cv_struct_st_blksize=no
7442 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7443 if test $ac_cv_struct_st_blksize = yes; then
7444 cat >> confdefs.h <<\EOF
7445 #define HAVE_ST_BLKSIZE 1
7450 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7451 echo "configure:7452: checking whether time.h and sys/time.h may both be included" >&5
7452 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 cat > conftest.$ac_ext <<EOF
7456 #line 7457 "configure"
7457 #include "confdefs.h"
7458 #include <sys/types.h>
7459 #include <sys/time.h>
7465 if { (eval echo configure:7466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7467 ac_cv_header_time=yes
7469 echo "configure: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7472 ac_cv_header_time=no
7477 echo "$ac_t""$ac_cv_header_time" 1>&6
7478 if test $ac_cv_header_time = yes; then
7479 cat >> confdefs.h <<\EOF
7480 #define TIME_WITH_SYS_TIME 1
7485 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7486 echo "configure:7487: checking whether struct tm is in sys/time.h or time.h" >&5
7487 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7488 echo $ac_n "(cached) $ac_c" 1>&6
7490 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure"
7492 #include "confdefs.h"
7493 #include <sys/types.h>
7496 struct tm *tp; tp->tm_sec;
7499 if { (eval echo configure:7500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7501 ac_cv_struct_tm=time.h
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 ac_cv_struct_tm=sys/time.h
7511 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7512 if test $ac_cv_struct_tm = sys/time.h; then
7513 cat >> confdefs.h <<\EOF
7514 #define TM_IN_SYS_TIME 1
7521 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7522 echo "configure:7523: checking if toupper() requires islower()" >&5
7523 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7527 if test "$cross_compiling" = yes; then
7528 ol_cv_c_upper_lower=safe
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7537 if ('C' == toupper('C'))
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7545 ol_cv_c_upper_lower=no
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7550 ol_cv_c_upper_lower=yes
7557 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7558 if test $ol_cv_c_upper_lower != no ; then
7559 cat >> confdefs.h <<\EOF
7560 #define C_UPPER_LOWER 1
7565 echo $ac_n "checking for working const""... $ac_c" 1>&6
7566 echo "configure:7567: checking for working const" >&5
7567 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 cat > conftest.$ac_ext <<EOF
7571 #line 7572 "configure"
7572 #include "confdefs.h"
7576 /* Ultrix mips cc rejects this. */
7577 typedef int charset[2]; const charset x;
7578 /* SunOS 4.1.1 cc rejects this. */
7579 char const *const *ccp;
7581 /* NEC SVR4.0.2 mips cc rejects this. */
7582 struct point {int x, y;};
7583 static struct point const zero = {0,0};
7584 /* AIX XL C 1.02.0.0 rejects this.
7585 It does not let you subtract one const X* pointer from another in an arm
7586 of an if-expression whose if-part is not a constant expression */
7587 const char *g = "string";
7588 ccp = &g + (g ? g-g : 0);
7589 /* HPUX 7.0 cc rejects these. */
7592 ccp = (char const *const *) p;
7593 { /* SCO 3.2v4 cc rejects this. */
7595 char const *s = 0 ? (char *) 0 : (char const *) 0;
7599 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7601 const int *foo = &x[0];
7604 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7605 typedef const int *iptr;
7609 { /* AIX XL C 1.02.0.0 rejects this saying
7610 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7611 struct s { int j; const int *ap[3]; };
7612 struct s *b; b->j = 5;
7614 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7620 if { (eval echo configure:7621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7632 echo "$ac_t""$ac_cv_c_const" 1>&6
7633 if test $ac_cv_c_const = no; then
7634 cat >> confdefs.h <<\EOF
7641 if test $cross_compiling = yes ; then
7642 cat >> confdefs.h <<\EOF
7643 #define CROSS_COMPILING 1
7647 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7648 echo "configure:7649: checking whether byte ordering is bigendian" >&5
7649 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 ac_cv_c_bigendian=unknown
7653 # See if sys/param.h defines the BYTE_ORDER macro.
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 #include <sys/types.h>
7658 #include <sys/param.h>
7661 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7666 if { (eval echo configure:7667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7668 # It does; now see whether it defined to BIG_ENDIAN or not.
7669 cat > conftest.$ac_ext <<EOF
7670 #line 7671 "configure"
7671 #include "confdefs.h"
7672 #include <sys/types.h>
7673 #include <sys/param.h>
7676 #if BYTE_ORDER != BIG_ENDIAN
7681 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7683 ac_cv_c_bigendian=yes
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7688 ac_cv_c_bigendian=no
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7696 if test $ac_cv_c_bigendian = unknown; then
7697 if test "$cross_compiling" = yes; then
7698 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7704 /* Are we little or big endian? From Harbison&Steele. */
7708 char c[sizeof (long)];
7711 exit (u.c[sizeof (long) - 1] == 1);
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7716 ac_cv_c_bigendian=no
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7721 ac_cv_c_bigendian=yes
7729 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7730 if test $ac_cv_c_bigendian = yes; then
7731 cat >> confdefs.h <<\EOF
7732 #define WORDS_BIGENDIAN 1
7737 echo $ac_n "checking size of short""... $ac_c" 1>&6
7738 echo "configure:7739: checking size of short" >&5
7739 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 if test "$cross_compiling" = yes; then
7743 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7751 FILE *f=fopen("conftestval", "w");
7753 fprintf(f, "%d\n", sizeof(short));
7757 if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7759 ac_cv_sizeof_short=`cat conftestval`
7761 echo "configure: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7764 ac_cv_sizeof_short=0
7770 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7771 cat >> confdefs.h <<EOF
7772 #define SIZEOF_SHORT $ac_cv_sizeof_short
7776 echo $ac_n "checking size of int""... $ac_c" 1>&6
7777 echo "configure:7778: checking size of int" >&5
7778 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7781 if test "$cross_compiling" = yes; then
7782 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7790 FILE *f=fopen("conftestval", "w");
7792 fprintf(f, "%d\n", sizeof(int));
7796 if { (eval echo configure:7797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7798 ac_cv_sizeof_int=`cat conftestval`
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7809 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7810 cat >> confdefs.h <<EOF
7811 #define SIZEOF_INT $ac_cv_sizeof_int
7815 echo $ac_n "checking size of long""... $ac_c" 1>&6
7816 echo "configure:7817: checking size of long" >&5
7817 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7820 if test "$cross_compiling" = yes; then
7821 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7823 cat > conftest.$ac_ext <<EOF
7824 #line 7825 "configure"
7825 #include "confdefs.h"
7829 FILE *f=fopen("conftestval", "w");
7831 fprintf(f, "%d\n", sizeof(long));
7835 if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7837 ac_cv_sizeof_long=`cat conftestval`
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7848 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7849 cat >> confdefs.h <<EOF
7850 #define SIZEOF_LONG $ac_cv_sizeof_long
7856 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7857 echo "configure:7858: checking for 8-bit clean memcmp" >&5
7858 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7861 if test "$cross_compiling" = yes; then
7862 ac_cv_func_memcmp_clean=no
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7870 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7871 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7875 if { (eval echo configure:7876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7877 ac_cv_func_memcmp_clean=yes
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7882 ac_cv_func_memcmp_clean=no
7889 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7890 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7892 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7893 echo "configure:7894: checking for strftime" >&5
7894 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char strftime(); below. */
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_strftime) || defined (__stub___strftime)
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7923 eval "ac_cv_func_strftime=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_func_strftime=no"
7933 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 cat >> confdefs.h <<\EOF
7936 #define HAVE_STRFTIME 1
7940 echo "$ac_t""no" 1>&6
7941 # strftime is in -lintl on SCO UNIX.
7942 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7943 echo "configure:7944: checking for strftime in -lintl" >&5
7944 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 ac_save_LIBS="$LIBS"
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 /* Override any gcc2 internal prototype to avoid an error. */
7954 /* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7964 eval "ac_cv_lib_$ac_lib_var=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_lib_$ac_lib_var=no"
7972 LIBS="$ac_save_LIBS"
7975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7977 cat >> confdefs.h <<\EOF
7978 #define HAVE_STRFTIME 1
7983 echo "$ac_t""no" 1>&6
7988 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7989 echo "configure:7990: checking for vprintf" >&5
7990 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
7993 cat > conftest.$ac_ext <<EOF
7994 #line 7995 "configure"
7995 #include "confdefs.h"
7996 /* System header to define __stub macros and hopefully few prototypes,
7997 which can conflict with char vprintf(); below. */
7999 /* Override any gcc2 internal prototype to avoid an error. */
8000 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */
8006 /* The GNU C library defines this for functions which it implements
8007 to always fail with ENOSYS. Some functions are actually named
8008 something starting with __ and the normal name is an alias. */
8009 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8017 if { (eval echo configure:8018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8019 eval "ac_cv_func_vprintf=yes"
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 eval "ac_cv_func_vprintf=no"
8029 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 cat >> confdefs.h <<\EOF
8032 #define HAVE_VPRINTF 1
8036 echo "$ac_t""no" 1>&6
8039 if test "$ac_cv_func_vprintf" != yes; then
8040 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8041 echo "configure:8042: checking for _doprnt" >&5
8042 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+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 _doprnt(); 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__doprnt) || defined (__stub____doprnt)
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8071 eval "ac_cv_func__doprnt=yes"
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 eval "ac_cv_func__doprnt=no"
8081 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE_DOPRNT 1
8088 echo "$ac_t""no" 1>&6
8094 if test $ac_cv_func_vprintf = yes ; then
8095 for ac_func in vsnprintf vsprintf
8097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8098 echo "configure:8099: checking for $ac_func" >&5
8099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8100 echo $ac_n "(cached) $ac_c" 1>&6
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* System header to define __stub macros and hopefully few prototypes,
8106 which can conflict with char $ac_func(); below. */
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8128 eval "ac_cv_func_$ac_func=yes"
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 eval "ac_cv_func_$ac_func=no"
8138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8141 cat >> confdefs.h <<EOF
8142 #define $ac_tr_func 1
8146 echo "$ac_t""no" 1>&6
8182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8183 echo "configure:8184: checking for $ac_func" >&5
8184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8185 echo $ac_n "(cached) $ac_c" 1>&6
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 /* System header to define __stub macros and hopefully few prototypes,
8191 which can conflict with char $ac_func(); below. */
8193 /* Override any gcc2 internal prototype to avoid an error. */
8194 /* We use char because int might match the return type of a gcc2
8195 builtin and then its argument prototype would still apply. */
8200 /* The GNU C library defines this for functions which it implements
8201 to always fail with ENOSYS. Some functions are actually named
8202 something starting with __ and the normal name is an alias. */
8203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8211 if { (eval echo configure:8212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8213 eval "ac_cv_func_$ac_func=yes"
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8218 eval "ac_cv_func_$ac_func=no"
8223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8224 echo "$ac_t""yes" 1>&6
8225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8226 cat >> confdefs.h <<EOF
8227 #define $ac_tr_func 1
8231 echo "$ac_t""no" 1>&6
8236 for ac_func in getopt strdup tempnam
8238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8239 echo "configure:8240: checking for $ac_func" >&5
8240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8243 cat > conftest.$ac_ext <<EOF
8244 #line 8245 "configure"
8245 #include "confdefs.h"
8246 /* System header to define __stub macros and hopefully few prototypes,
8247 which can conflict with char $ac_func(); below. */
8249 /* Override any gcc2 internal prototype to avoid an error. */
8250 /* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8256 /* The GNU C library defines this for functions which it implements
8257 to always fail with ENOSYS. Some functions are actually named
8258 something starting with __ and the normal name is an alias. */
8259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8269 eval "ac_cv_func_$ac_func=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_func_$ac_func=no"
8279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8280 echo "$ac_t""yes" 1>&6
8281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8282 cat >> confdefs.h <<EOF
8283 #define $ac_tr_func 1
8287 echo "$ac_t""no" 1>&6
8288 LIBOBJS="$LIBOBJS ${ac_func}.o"
8294 # Check Configuration
8296 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8297 echo "configure:8298: checking declaration of sys_errlist" >&5
8298 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8302 cat > conftest.$ac_ext <<EOF
8303 #line 8304 "configure"
8304 #include "confdefs.h"
8307 #include <sys/types.h>
8310 char *c = (char *) *sys_errlist
8313 if { (eval echo configure:8314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8315 ol_cv_dcl_sys_errlist=yes
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 ol_cv_dcl_sys_errlist=no
8325 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8327 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8328 if test $ol_cv_dcl_sys_errlist = no ; then
8329 cat >> confdefs.h <<\EOF
8330 #define DECL_SYS_ERRLIST 1
8333 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8334 echo "configure:8335: checking existence of sys_errlist" >&5
8335 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8344 char *c = (char *) *sys_errlist
8347 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8349 ol_cv_have_sys_errlist=yes
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 ol_cv_have_sys_errlist=no
8359 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8364 if test "$ol_enable_debug" != no ; then
8365 cat >> confdefs.h <<\EOF
8366 #define LDAP_DEBUG 1
8370 if test "$ol_enable_libui" = yes ; then
8371 cat >> confdefs.h <<\EOF
8372 #define LDAP_LIBUI 1
8376 if test "$ol_enable_cache" = no ; then
8377 cat >> confdefs.h <<\EOF
8378 #define LDAP_NOCACHE 1
8382 if test "$ol_enable_dns" != no ; then
8383 cat >> confdefs.h <<\EOF
8388 if test "$ol_enable_proctitle" != no ; then
8389 cat >> confdefs.h <<\EOF
8390 #define LDAP_PROCTITLE 1
8394 if test "$ol_enable_referrals" != no ; then
8395 cat >> confdefs.h <<\EOF
8396 #define LDAP_REFERRALS 1
8400 if test "$ol_enable_cldap" != no ; then
8401 cat >> confdefs.h <<\EOF
8402 #define LDAP_CONNECTIONLESS 1
8407 if test "$ol_enable_aclgroups" != no ; then
8408 cat >> confdefs.h <<\EOF
8409 #define SLAPD_ACLGROUPS 1
8413 if test "$ol_enable_crypt" != no ; then
8414 cat >> confdefs.h <<\EOF
8415 #define SLAPD_CRYPT 1
8419 if test "$ol_enable_cleartext" != no ; then
8420 cat >> confdefs.h <<\EOF
8421 #define SLAPD_CLEARTEXT 1
8425 if test "$ol_enable_phonetic" != no ; then
8426 cat >> confdefs.h <<\EOF
8427 #define SLAPD_PHONETIC 1
8431 if test "$ol_enable_rlookups" != no ; then
8432 cat >> confdefs.h <<\EOF
8433 #define SLAPD_RLOOKUPS 1
8438 if test "$ol_link_ldbm" != no ; then
8439 cat >> confdefs.h <<\EOF
8440 #define SLAPD_LDBM 1
8447 if test "$ol_enable_passwd" != no ; then
8448 cat >> confdefs.h <<\EOF
8449 #define SLAPD_PASSWD 1
8456 if test "$ol_enable_shell" != no ; then
8457 cat >> confdefs.h <<\EOF
8458 #define SLAPD_SHELL 1
8465 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8466 $BUILD_SLAPD = yes ; then
8470 if test "$ol_link_isode" != no ; then
8495 cat > confcache <<\EOF
8496 # This file is a shell script that caches the results of configure
8497 # tests run on this system so they can be shared between configure
8498 # scripts and configure runs. It is not useful on other systems.
8499 # If it contains results you don't want to keep, you may remove or edit it.
8501 # By default, configure uses ./config.cache as the cache file,
8502 # creating it if it does not exist already. You can give configure
8503 # the --cache-file=FILE option to use a different cache file; that is
8504 # what configure does when it calls configure scripts in
8505 # subdirectories, so they share the cache.
8506 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8507 # config.status only pays attention to the cache file if you give it the
8508 # --recheck option to rerun configure.
8511 # The following way of writing the cache mishandles newlines in values,
8512 # but we know of no workaround that is simple, portable, and efficient.
8513 # So, don't put newlines in cache variables' values.
8514 # Ultrix sh set writes to stderr and can't be redirected directly,
8515 # and sets the high bit in the cache file unless we assign to the vars.
8517 case `(ac_space=' '; set) 2>&1` in
8519 # `set' does not quote correctly, so add quotes (double-quote substitution
8520 # turns \\\\ into \\, and sed turns \\ into \).
8522 -e "s/'/'\\\\''/g" \
8523 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8526 # `set' quotes correctly as required by POSIX, so do not add quotes.
8527 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8530 if cmp -s $cache_file confcache; then
8533 if test -w $cache_file; then
8534 echo "updating cache $cache_file"
8535 cat confcache > $cache_file
8537 echo "not updating unwritable cache $cache_file"
8542 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8545 # Let make expand exec_prefix.
8546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8548 # Any assignment to VPATH causes Sun make to only execute
8549 # the first set of double-colon rules, so remove it if not needed.
8550 # If there is a colon in the path, we need to keep it.
8551 if test "x$srcdir" = x.; then
8552 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8555 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8557 DEFS=-DHAVE_CONFIG_H
8559 # Without the "./", some shells look in PATH for config.status.
8560 : ${CONFIG_STATUS=./config.status}
8562 echo creating $CONFIG_STATUS
8563 rm -f $CONFIG_STATUS
8564 cat > $CONFIG_STATUS <<EOF
8566 # Generated automatically by configure.
8567 # Run this file to recreate the current configuration.
8568 # This directory was configured as follows,
8569 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8571 # $0 $ac_configure_args
8573 # Compiler output produced by configure, useful for debugging
8574 # configure, is in ./config.log if it exists.
8576 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8579 case "\$ac_option" in
8580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8581 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8582 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8583 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8584 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8586 -help | --help | --hel | --he | --h)
8587 echo "\$ac_cs_usage"; exit 0 ;;
8588 *) echo "\$ac_cs_usage"; exit 1 ;;
8592 ac_given_srcdir=$srcdir
8593 ac_given_INSTALL="$INSTALL"
8595 trap 'rm -fr `echo "\
8596 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8597 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8598 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8599 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8600 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8601 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8602 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8603 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8604 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8605 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8606 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8607 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8608 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8609 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8610 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8611 include/Makefile:build/top.mk:include/Makefile.in \
8612 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8613 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8614 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8615 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8616 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8617 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8618 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8619 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8620 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8621 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8622 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8623 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8624 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8625 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8626 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8627 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8628 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8629 tests/Makefile:build/top.mk:tests/Makefile.in \
8630 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8632 cat >> $CONFIG_STATUS <<EOF
8634 # Protect against being on the right side of a sed subst in config.status.
8635 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8636 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8639 s%@CFLAGS@%$CFLAGS%g
8640 s%@CPPFLAGS@%$CPPFLAGS%g
8641 s%@CXXFLAGS@%$CXXFLAGS%g
8643 s%@LDFLAGS@%$LDFLAGS%g
8645 s%@exec_prefix@%$exec_prefix%g
8646 s%@prefix@%$prefix%g
8647 s%@program_transform_name@%$program_transform_name%g
8648 s%@bindir@%$bindir%g
8649 s%@sbindir@%$sbindir%g
8650 s%@libexecdir@%$libexecdir%g
8651 s%@datadir@%$datadir%g
8652 s%@sysconfdir@%$sysconfdir%g
8653 s%@sharedstatedir@%$sharedstatedir%g
8654 s%@localstatedir@%$localstatedir%g
8655 s%@libdir@%$libdir%g
8656 s%@includedir@%$includedir%g
8657 s%@oldincludedir@%$oldincludedir%g
8658 s%@infodir@%$infodir%g
8659 s%@mandir@%$mandir%g
8660 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8661 s%@INSTALL_DATA@%$INSTALL_DATA%g
8662 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8663 s%@PACKAGE@%$PACKAGE%g
8664 s%@VERSION@%$VERSION%g
8665 s%@ACLOCAL@%$ACLOCAL%g
8666 s%@AUTOCONF@%$AUTOCONF%g
8667 s%@AUTOMAKE@%$AUTOMAKE%g
8668 s%@AUTOHEADER@%$AUTOHEADER%g
8669 s%@MAKEINFO@%$MAKEINFO%g
8670 s%@SET_MAKE@%$SET_MAKE%g
8671 s%@top_builddir@%$top_builddir%g
8672 s%@ldap_subdir@%$ldap_subdir%g
8674 s%@host_alias@%$host_alias%g
8675 s%@host_cpu@%$host_cpu%g
8676 s%@host_vendor@%$host_vendor%g
8677 s%@host_os@%$host_os%g
8678 s%@RANLIB@%$RANLIB%g
8683 s%@LIBTOOL@%$LIBTOOL%g
8684 s%@SENDMAIL@%$SENDMAIL%g
8685 s%@EDITOR@%$EDITOR%g
8686 s%@FINGER@%$FINGER%g
8689 s%@LIBOBJS@%$LIBOBJS%g
8690 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8691 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8692 s%@BUILD_LDBM@%$BUILD_LDBM%g
8693 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8694 s%@BUILD_SHELL@%$BUILD_SHELL%g
8695 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8696 s%@LDAP_LIBS@%$LDAP_LIBS%g
8697 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8698 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8699 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8700 s%@LDBM_LIBS@%$LDBM_LIBS%g
8701 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8702 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8703 s%@KRB_LIBS@%$KRB_LIBS%g
8704 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8709 cat >> $CONFIG_STATUS <<\EOF
8711 # Split the substitutions into bite-sized pieces for seds with
8712 # small command number limits, like on Digital OSF/1 and HP-UX.
8713 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8714 ac_file=1 # Number of current file.
8715 ac_beg=1 # First line for current file.
8716 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8719 while $ac_more_lines; do
8720 if test $ac_beg -gt 1; then
8721 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8723 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8725 if test ! -s conftest.s$ac_file; then
8727 rm -f conftest.s$ac_file
8729 if test -z "$ac_sed_cmds"; then
8730 ac_sed_cmds="sed -f conftest.s$ac_file"
8732 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8734 ac_file=`expr $ac_file + 1`
8736 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8739 if test -z "$ac_sed_cmds"; then
8744 cat >> $CONFIG_STATUS <<EOF
8746 CONFIG_FILES=\${CONFIG_FILES-"\
8747 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8748 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8749 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8750 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8751 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8752 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8753 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8754 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8755 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8756 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8757 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8758 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8759 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8760 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8761 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8762 include/Makefile:build/top.mk:include/Makefile.in \
8763 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8764 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8765 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8766 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8767 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8768 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8769 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8770 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8771 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8772 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8773 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8774 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8775 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8776 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8777 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8778 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8779 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8780 tests/Makefile:build/top.mk:tests/Makefile.in \
8783 cat >> $CONFIG_STATUS <<\EOF
8784 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8787 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8788 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8789 *) ac_file_in="${ac_file}.in" ;;
8792 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8794 # Remove last slash and all that follows it. Not all systems have dirname.
8795 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8797 # The file is in a subdirectory.
8798 test ! -d "$ac_dir" && mkdir "$ac_dir"
8799 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8800 # A "../" for each directory in $ac_dir_suffix.
8801 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8803 ac_dir_suffix= ac_dots=
8806 case "$ac_given_srcdir" in
8808 if test -z "$ac_dots"; then top_srcdir=.
8809 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8810 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8812 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8813 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8816 case "$ac_given_INSTALL" in
8817 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8818 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8821 echo creating "$ac_file"
8823 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8825 *Makefile*) ac_comsub="1i\\
8826 # $configure_input" ;;
8830 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8832 s%@configure_input@%$configure_input%g
8833 s%@srcdir@%$srcdir%g
8834 s%@top_srcdir@%$top_srcdir%g
8835 s%@INSTALL@%$INSTALL%g
8836 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8840 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8841 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8843 # ac_d sets the value in "#define NAME VALUE" lines.
8844 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8845 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8848 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8849 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8850 ac_uB='\([ ]\)%\1#\2define\3'
8853 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8854 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8855 ac_eB='$%\1#\2define\3'
8859 if test "${CONFIG_HEADERS+set}" != set; then
8861 cat >> $CONFIG_STATUS <<EOF
8862 CONFIG_HEADERS="include/portable.h"
8864 cat >> $CONFIG_STATUS <<\EOF
8866 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8869 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8870 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8871 *) ac_file_in="${ac_file}.in" ;;
8874 echo creating $ac_file
8876 rm -f conftest.frag conftest.in conftest.out
8877 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8878 cat $ac_file_inputs > conftest.in
8882 # Transform confdefs.h into a sed script conftest.vals that substitutes
8883 # the proper values into config.h.in to produce config.h. And first:
8884 # Protect against being on the right side of a sed subst in config.status.
8885 # Protect against being in an unquoted here document in config.status.
8887 cat > conftest.hdr <<\EOF
8890 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8894 sed -n -f conftest.hdr confdefs.h > conftest.vals
8897 # This sed command replaces #undef with comments. This is necessary, for
8898 # example, in the case of _POSIX_SOURCE, which is predefined and required
8899 # on some systems where configure will not decide to define it.
8900 cat >> conftest.vals <<\EOF
8901 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8904 # Break up conftest.vals because some shells have a limit on
8905 # the size of here documents, and old seds have small limits too.
8910 ac_lines=`grep -c . conftest.vals`
8911 # grep -c gives empty output for an empty file on some AIX systems.
8912 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8913 # Write a limited-size here document to conftest.frag.
8914 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8915 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8917 sed -f conftest.frag conftest.in > conftest.out
8919 mv conftest.out conftest.in
8921 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8923 mv conftest.tail conftest.vals
8927 cat >> $CONFIG_STATUS <<\EOF
8928 rm -f conftest.frag conftest.h
8929 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8930 cat conftest.in >> conftest.h
8932 if cmp -s $ac_file conftest.h 2>/dev/null; then
8933 echo "$ac_file is unchanged"
8936 # Remove last slash and all that follows it. Not all systems have dirname.
8937 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8938 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8939 # The file is in a subdirectory.
8940 test ! -d "$ac_dir" && mkdir "$ac_dir"
8943 mv conftest.h $ac_file
8948 cat >> $CONFIG_STATUS <<EOF
8951 cat >> $CONFIG_STATUS <<\EOF
8954 echo Please \"make depend\" to build dependencies
8958 chmod +x $CONFIG_STATUS
8959 rm -fr confdefs* $ac_clean_files
8960 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1