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_referrals = no ; then
1466 if test $ol_enable_dns = yes ; then
1467 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1472 if test $ol_enable_slapd = no ; then
1473 if test $ol_enable_ldbm = yes ; then
1474 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1476 if test $ol_enable_passwd = yes ; then
1477 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1479 if test $ol_enable_shell = yes ; then
1480 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1482 if test $ol_enable_aclgroups = yes ; then
1483 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1485 if test $ol_enable_wrappers = yes ; then
1486 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1488 if test $ol_enable_phonetic = yes ; then
1489 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1491 if test $ol_enable_rlookups = yes ; then
1492 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1494 if test $ol_with_ldbm_api != auto ; then
1495 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1497 if test $ol_with_ldbm_type != auto ; then
1498 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1500 if test $ol_enable_slurpd = yes ; then
1501 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1504 # force settings to no
1508 ol_enable_aclgroups=no
1509 ol_enable_wrappers=no
1510 ol_enable_phonetic=no
1511 ol_enable_rlookups=no
1513 ol_with_ldbm_type=no
1516 elif test $ol_enable_ldbm = no ; then
1518 if test $ol_with_ldbm_api != auto ; then
1519 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1522 if test $ol_with_ldbm_type != auto ; then
1523 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1526 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1527 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1531 ol_with_ldbm_type=no
1535 if test $ol_with_ldbm_api = gdbm -a \
1536 $ol_with_ldbm_type = btree ; then
1537 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1539 if test $ol_with_ldbm_api = ndbm -a \
1540 $ol_with_ldbm_type = btree ; then
1541 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1545 if test $ol_enable_slurpd = yes ; then
1546 if test $ol_with_threads = no ; then
1547 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1551 echo "$ac_t""done" 1>&6
1554 # Make sure we can run config.sub.
1555 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1556 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1559 echo $ac_n "checking host system type""... $ac_c" 1>&6
1560 echo "configure:1561: checking host system type" >&5
1563 case "$host_alias" in
1567 if host_alias=`$ac_config_guess`; then :
1568 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1570 *) host_alias=$nonopt ;;
1574 host=`$ac_config_sub $host_alias`
1575 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578 echo "$ac_t""$host" 1>&6
1604 # Find a good install program. We prefer a C program (faster),
1605 # so one script is as good as another. But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # ./install, which can be erroneously created by make from ./install.sh.
1614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1615 echo "configure:1616: checking for a BSD compatible install" >&5
1616 if test -z "$INSTALL"; then
1617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1621 for ac_dir in $PATH; do
1622 # Account for people who put trailing slashes in PATH elements.
1624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1626 # OSF1 and SCO ODT 3.0 have their own names for install.
1627 for ac_prog in ginstall installbsd scoinst install; do
1628 if test -f $ac_dir/$ac_prog; then
1629 if test $ac_prog = install &&
1630 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1631 # AIX install. It has an incompatible calling convention.
1632 # OSF/1 installbsd also uses dspmsg, but is usable.
1635 ac_cv_path_install="$ac_dir/$ac_prog -c"
1646 if test "${ac_cv_path_install+set}" = set; then
1647 INSTALL="$ac_cv_path_install"
1649 # As a last resort, use the slow shell script. We don't cache a
1650 # path for INSTALL within a source directory, because that will
1651 # break other packages using the cache if that directory is
1652 # removed, or if the path is relative.
1653 INSTALL="$ac_install_sh"
1656 echo "$ac_t""$INSTALL" 1>&6
1658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1659 # It thinks the first close brace ends the variable substitution.
1660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1664 # Extract the first word of "ranlib", so it can be a program name with args.
1665 set dummy ranlib; ac_word=$2
1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_word" >&5
1668 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 if test -n "$RANLIB"; then
1672 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1675 for ac_dir in $PATH; do
1676 test -z "$ac_dir" && ac_dir=.
1677 if test -f $ac_dir/$ac_word; then
1678 ac_cv_prog_RANLIB="ranlib"
1683 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1686 RANLIB="$ac_cv_prog_RANLIB"
1687 if test -n "$RANLIB"; then
1688 echo "$ac_t""$RANLIB" 1>&6
1690 echo "$ac_t""no" 1>&6
1693 # Extract the first word of "gcc", so it can be a program name with args.
1694 set dummy gcc; ac_word=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 if test -n "$CC"; then
1701 ac_cv_prog_CC="$CC" # Let the user override the test.
1703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1704 for ac_dir in $PATH; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1715 if test -n "$CC"; then
1716 echo "$ac_t""$CC" 1>&6
1718 echo "$ac_t""no" 1>&6
1721 if test -z "$CC"; then
1722 # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1734 for ac_dir in $PATH; do
1735 test -z "$ac_dir" && ac_dir=.
1736 if test -f $ac_dir/$ac_word; then
1737 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1738 ac_prog_rejected=yes
1746 if test $ac_prog_rejected = yes; then
1747 # We found a bogon in the path, so make sure we never use it.
1748 set dummy $ac_cv_prog_CC
1750 if test $# -gt 0; then
1751 # We chose a different compiler from the bogus one.
1752 # However, it has the same basename, so the bogon will be chosen
1753 # first if we set CC to just the basename; use the full file name.
1755 set dummy "$ac_dir/$ac_word" "$@"
1763 if test -n "$CC"; then
1764 echo "$ac_t""$CC" 1>&6
1766 echo "$ac_t""no" 1>&6
1769 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1776 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1777 ac_cpp='$CPP $CPPFLAGS'
1778 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1779 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1780 cross_compiling=$ac_cv_prog_cc_cross
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1787 if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1788 ac_cv_prog_cc_works=yes
1789 # If we can't run a trivial program, we are probably using a cross compiler.
1790 if (./conftest; exit) 2>/dev/null; then
1791 ac_cv_prog_cc_cross=no
1793 ac_cv_prog_cc_cross=yes
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 ac_cv_prog_cc_works=no
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1803 if test $ac_cv_prog_cc_works = no; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809 cross_compiling=$ac_cv_prog_cc_cross
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether we are using GNU C" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 cat > conftest.c <<EOF
1821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1828 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1830 if test $ac_cv_prog_gcc = yes; then
1832 ac_test_CFLAGS="${CFLAGS+set}"
1833 ac_save_CFLAGS="$CFLAGS"
1835 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1836 echo "configure:1837: checking whether ${CC-cc} accepts -g" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 echo 'void f(){}' > conftest.c
1841 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1850 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1851 if test "$ac_test_CFLAGS" = set; then
1852 CFLAGS="$ac_save_CFLAGS"
1853 elif test $ac_cv_prog_cc_g = yes; then
1860 test "${CFLAGS+set}" = set || CFLAGS="-g"
1863 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1864 if test "${with_gnu_ld+set}" = set; then
1865 withval="$with_gnu_ld"
1866 test "$withval" = no || with_gnu_ld=yes
1873 if test "$ac_cv_prog_gcc" = yes; then
1874 # Check if gcc -print-prog-name=ld gives a path.
1875 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1876 echo "configure:1877: checking for ld used by GCC" >&5
1877 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1879 # Accept absolute paths.
1881 test -z "$LD" && LD="$ac_prog"
1884 # If it fails, then pretend we aren't using GCC.
1888 # If it is relative, then search for the first ld in PATH.
1892 elif test "$with_gnu_ld" = yes; then
1893 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1894 echo "configure:1895: checking for GNU ld" >&5
1896 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1897 echo "configure:1898: checking for non-GNU ld" >&5
1899 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 if test -z "$LD"; then
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1904 for ac_dir in $PATH; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f "$ac_dir/$ac_prog"; then
1907 ac_cv_path_LD="$ac_dir/$ac_prog"
1908 # Check to see if the program is GNU ld. I'd rather use --version,
1909 # but apparently some GNU ld's only accept -v.
1910 # Break only if it was the GNU/non-GNU ld that we prefer.
1911 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1912 test "$with_gnu_ld" != no && break
1914 test "$with_gnu_ld" != yes && break
1920 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1925 if test -n "$LD"; then
1926 echo "$ac_t""$LD" 1>&6
1928 echo "$ac_t""no" 1>&6
1930 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1932 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1933 echo "configure:1934: checking if the linker ($LD) is GNU ld" >&5
1934 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1938 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1939 ac_cv_prog_gnu_ld=yes
1941 ac_cv_prog_gnu_ld=no
1945 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1948 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1949 echo "configure:1950: checking for BSD-compatible nm" >&5
1950 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1955 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1959 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1960 test -z "$ac_dir" && ac_dir=.
1961 if test -f $ac_dir/nm; then
1962 # Check to see if the nm accepts a BSD-compat flag.
1963 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1964 # nm: unknown option "B" ignored
1965 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1966 ac_cv_path_NM="$ac_dir/nm -B"
1967 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1968 ac_cv_path_NM="$ac_dir/nm -p"
1970 ac_cv_path_NM="$ac_dir/nm"
1976 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1982 echo "$ac_t""$NM" 1>&6
1985 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1986 echo "configure:1987: checking whether ln -s works" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1991 if ln -s X conftestdata 2>/dev/null
1994 ac_cv_prog_LN_S="ln -s"
1999 LN_S="$ac_cv_prog_LN_S"
2000 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2001 echo "$ac_t""yes" 1>&6
2003 echo "$ac_t""no" 1>&6
2006 # Always use our own libtool.
2007 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2009 # Check for any special flags to pass to ltconfig.
2011 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2012 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2013 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2014 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2015 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2017 # Some flags need to be propagated to the compiler or linker for good
2021 # Find out which ABI we are using.
2022 echo '#line 2023 "configure"' > conftest.$ac_ext
2023 if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2024 case "`/usr/bin/file conftest.o`" in
2040 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2041 CFLAGS="$CFLAGS -belf"
2045 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2046 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2047 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2048 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2049 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2050 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2053 # Extract the first word of "sendmail", so it can be a program name with args.
2054 set dummy sendmail; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2062 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2066 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2069 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2074 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2078 SENDMAIL="$ac_cv_path_SENDMAIL"
2079 if test -n "$SENDMAIL"; then
2080 echo "$ac_t""$SENDMAIL" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 # Extract the first word of "vi", so it can be a program name with args.
2086 set dummy vi; ac_word=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2094 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2098 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2099 test -z "$ac_dir" && ac_dir=.
2100 if test -f $ac_dir/$ac_word; then
2101 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2106 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2110 EDITOR="$ac_cv_path_EDITOR"
2111 if test -n "$EDITOR"; then
2112 echo "$ac_t""$EDITOR" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 # Extract the first word of "finger", so it can be a program name with args.
2118 set dummy finger; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2130 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2131 test -z "$ac_dir" && ac_dir=.
2132 if test -f $ac_dir/$ac_word; then
2133 ac_cv_path_FINGER="$ac_dir/$ac_word"
2138 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2142 FINGER="$ac_cv_path_FINGER"
2143 if test -n "$FINGER"; then
2144 echo "$ac_t""$FINGER" 1>&6
2146 echo "$ac_t""no" 1>&6
2151 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2152 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2154 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2155 echo "configure: warning: programs compiled here do run here..." 1>&2
2156 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2158 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2159 echo "configure: warning: programs compiled here do not run here..." 1>&2
2160 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2163 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2164 echo "configure:2165: checking how to run the C preprocessor" >&5
2165 # On Suns, sometimes $CPP names a directory.
2166 if test -n "$CPP" && test -d "$CPP"; then
2169 if test -z "$CPP"; then
2170 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 # This must be in double quotes, not single quotes, because CPP may get
2174 # substituted into the Makefile and "${CC-cc}" will confuse make.
2176 # On the NeXT, cc -E runs the code through the compiler's parser,
2177 # not just through cpp.
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2185 { (eval echo configure:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2186 ac_err=`grep -v '^ *+' conftest.out`
2187 if test -z "$ac_err"; then
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 CPP="${CC-cc} -E -traditional-cpp"
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2202 { (eval echo configure:2203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2203 ac_err=`grep -v '^ *+' conftest.out`
2204 if test -z "$ac_err"; then
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2216 ac_cv_prog_CPP="$CPP"
2218 CPP="$ac_cv_prog_CPP"
2220 ac_cv_prog_CPP="$CPP"
2222 echo "$ac_t""$CPP" 1>&6
2225 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2226 echo "configure:2227: checking for AIX" >&5
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2236 egrep "yes" >/dev/null 2>&1; then
2238 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2239 #define _ALL_SOURCE 1
2244 echo "$ac_t""no" 1>&6
2249 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2250 echo "configure:2251: checking for POSIXized ISC" >&5
2251 if test -d /etc/conf/kconfig.d &&
2252 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2254 echo "$ac_t""yes" 1>&6
2255 ISC=yes # If later tests want to check for ISC.
2256 cat >> confdefs.h <<\EOF
2257 #define _POSIX_SOURCE 1
2260 if test "$GCC" = yes; then
2266 echo "$ac_t""no" 1>&6
2270 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2272 echo "configure:2273: checking for minix/config.h" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 #include <minix/config.h>
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out`
2284 if test -z "$ac_err"; then
2286 eval "ac_cv_header_$ac_safe=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2292 eval "ac_cv_header_$ac_safe=no"
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297 echo "$ac_t""yes" 1>&6
2300 echo "$ac_t""no" 1>&6
2304 if test "$MINIX" = yes; then
2305 cat >> confdefs.h <<\EOF
2306 #define _POSIX_SOURCE 1
2309 cat >> confdefs.h <<\EOF
2310 #define _POSIX_1_SOURCE 2
2313 cat >> confdefs.h <<\EOF
2323 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2324 echo "configure:2325: checking for ${CC-cc} option to accept ANSI C" >&5
2325 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 am_cv_prog_cc_stdc=no
2330 # Don't try gcc -ansi; that turns off useful extensions and
2331 # breaks some systems' header files.
2332 # AIX -qlanglvl=ansi
2333 # Ultrix and OSF/1 -std1
2334 # HP-UX -Aa -D_HPUX_SOURCE
2335 # SVR4 -Xc -D__EXTENSIONS__
2336 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2338 CC="$ac_save_CC $ac_arg"
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2360 s = g (p, va_arg (v,int));
2364 int test (int i, double x);
2365 struct s1 {int (*f) (int a);};
2366 struct s2 {int (*f) (double a);};
2367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2377 if { (eval echo configure:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2379 am_cv_prog_cc_stdc="$ac_arg"; break
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2390 if test -z "$am_cv_prog_cc_stdc"; then
2391 echo "$ac_t""none needed" 1>&6
2393 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2395 case "x$am_cv_prog_cc_stdc" in
2397 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2400 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2401 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2407 echo $ac_n "checking for socket""... $ac_c" 1>&6
2408 echo "configure:2409: checking for socket" >&5
2409 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* System header to define __stub macros and hopefully few prototypes,
2416 which can conflict with char socket(); below. */
2418 /* Override any gcc2 internal prototype to avoid an error. */
2419 /* We use char because int might match the return type of a gcc2
2420 builtin and then its argument prototype would still apply. */
2425 /* The GNU C library defines this for functions which it implements
2426 to always fail with ENOSYS. Some functions are actually named
2427 something starting with __ and the normal name is an alias. */
2428 #if defined (__stub_socket) || defined (__stub___socket)
2436 if { (eval echo configure:2437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2438 eval "ac_cv_func_socket=yes"
2440 echo "configure: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2443 eval "ac_cv_func_socket=no"
2448 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2452 echo "$ac_t""no" 1>&6
2454 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2455 echo "configure:2456: checking for main in -lsocket" >&5
2456 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 ac_save_LIBS="$LIBS"
2461 LIBS="-lsocket $LIBS"
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2472 eval "ac_cv_lib_$ac_lib_var=yes"
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2477 eval "ac_cv_lib_$ac_lib_var=no"
2480 LIBS="$ac_save_LIBS"
2483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2487 cat >> confdefs.h <<EOF
2488 #define $ac_tr_lib 1
2491 LIBS="-lsocket $LIBS"
2494 echo "$ac_t""no" 1>&6
2497 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2498 echo "configure:2499: checking for main in -lnet" >&5
2499 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 ac_save_LIBS="$LIBS"
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2515 eval "ac_cv_lib_$ac_lib_var=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 eval "ac_cv_lib_$ac_lib_var=no"
2523 LIBS="$ac_save_LIBS"
2526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_lib 1
2537 echo "$ac_t""no" 1>&6
2540 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2541 echo "configure:2542: checking for main in -lnsl_s" >&5
2542 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 ac_save_LIBS="$LIBS"
2547 LIBS="-lnsl_s $LIBS"
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2558 eval "ac_cv_lib_$ac_lib_var=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 eval "ac_cv_lib_$ac_lib_var=no"
2566 LIBS="$ac_save_LIBS"
2569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2570 echo "$ac_t""yes" 1>&6
2571 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2573 cat >> confdefs.h <<EOF
2574 #define $ac_tr_lib 1
2577 LIBS="-lnsl_s $LIBS"
2580 echo "$ac_t""no" 1>&6
2583 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2584 echo "configure:2585: checking for main in -lnsl" >&5
2585 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 ac_save_LIBS="$LIBS"
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2601 eval "ac_cv_lib_$ac_lib_var=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2606 eval "ac_cv_lib_$ac_lib_var=no"
2609 LIBS="$ac_save_LIBS"
2612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2616 cat >> confdefs.h <<EOF
2617 #define $ac_tr_lib 1
2623 echo "$ac_t""no" 1>&6
2626 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2627 echo "configure:2628: checking for socket in -linet" >&5
2628 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 ac_save_LIBS="$LIBS"
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2646 if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2648 eval "ac_cv_lib_$ac_lib_var=yes"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2653 eval "ac_cv_lib_$ac_lib_var=no"
2656 LIBS="$ac_save_LIBS"
2659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2660 echo "$ac_t""yes" 1>&6
2661 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2662 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2663 cat >> confdefs.h <<EOF
2664 #define $ac_tr_lib 1
2670 echo "$ac_t""no" 1>&6
2673 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2674 echo "configure:2675: checking for main in -lgen" >&5
2675 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 ac_save_LIBS="$LIBS"
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2691 eval "ac_cv_lib_$ac_lib_var=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 eval "ac_cv_lib_$ac_lib_var=no"
2699 LIBS="$ac_save_LIBS"
2702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2705 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2706 cat >> confdefs.h <<EOF
2707 #define $ac_tr_lib 1
2713 echo "$ac_t""no" 1>&6
2720 for ac_func in res_search
2722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_func" >&5
2724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 /* System header to define __stub macros and hopefully few prototypes,
2731 which can conflict with char $ac_func(); below. */
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2740 /* The GNU C library defines this for functions which it implements
2741 to always fail with ENOSYS. Some functions are actually named
2742 something starting with __ and the normal name is an alias. */
2743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2751 if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2753 eval "ac_cv_func_$ac_func=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "ac_cv_func_$ac_func=no"
2763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_func 1
2771 echo "$ac_t""no" 1>&6
2775 if test $ac_cv_func_res_search = "no" ; then
2776 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2777 echo "configure:2778: checking for res_search in -lbind" >&5
2778 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 ac_save_LIBS="$LIBS"
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 /* Override any gcc2 internal prototype to avoid an error. */
2788 /* We use char because int might match the return type of a gcc2
2789 builtin and then its argument prototype would still apply. */
2796 if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2798 eval "ac_cv_lib_$ac_lib_var=yes"
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2803 eval "ac_cv_lib_$ac_lib_var=no"
2806 LIBS="$ac_save_LIBS"
2809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2812 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2813 cat >> confdefs.h <<EOF
2814 #define $ac_tr_lib 1
2820 echo "$ac_t""no" 1>&6
2823 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2824 cat >> confdefs.h <<\EOF
2825 #define HAVE_RES_SEARCH 1
2829 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2830 echo "configure:2831: checking for res_search in -lresolv" >&5
2831 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 ac_save_LIBS="$LIBS"
2836 LIBS="-lresolv $LIBS"
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2840 /* Override any gcc2 internal prototype to avoid an error. */
2841 /* We use char because int might match the return type of a gcc2
2842 builtin and then its argument prototype would still apply. */
2849 if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2851 eval "ac_cv_lib_$ac_lib_var=yes"
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2856 eval "ac_cv_lib_$ac_lib_var=no"
2859 LIBS="$ac_save_LIBS"
2862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2865 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2866 cat >> confdefs.h <<EOF
2867 #define $ac_tr_lib 1
2870 LIBS="-lresolv $LIBS"
2873 echo "$ac_t""no" 1>&6
2876 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2877 cat >> confdefs.h <<\EOF
2878 #define HAVE_RES_SEARCH 1
2885 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2886 echo "configure:2887: checking for sigset in -lV3" >&5
2887 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 ac_save_LIBS="$LIBS"
2893 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 /* Override any gcc2 internal prototype to avoid an error. */
2897 /* We use char because int might match the return type of a gcc2
2898 builtin and then its argument prototype would still apply. */
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2907 eval "ac_cv_lib_$ac_lib_var=yes"
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 eval "ac_cv_lib_$ac_lib_var=no"
2915 LIBS="$ac_save_LIBS"
2918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2919 echo "$ac_t""yes" 1>&6
2920 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2922 cat >> confdefs.h <<EOF
2923 #define $ac_tr_lib 1
2929 echo "$ac_t""no" 1>&6
2935 if test $ol_enable_ldapd != no ; then
2936 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2937 echo "configure:2938: checking for main in -lxtpp" >&5
2938 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_save_LIBS="$LIBS"
2943 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_lib_$ac_lib_var=no"
2962 LIBS="$ac_save_LIBS"
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2969 cat >> confdefs.h <<\EOF
2973 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2976 echo "$ac_t""no" 1>&6
2980 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2981 echo "configure:2982: checking for main in -ldsap" >&5
2982 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 ac_save_LIBS="$LIBS"
2987 LIBS="-ldsap -lisode $LIBS"
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2998 eval "ac_cv_lib_$ac_lib_var=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 eval "ac_cv_lib_$ac_lib_var=no"
3006 LIBS="$ac_save_LIBS"
3009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3013 cat >> confdefs.h <<\EOF
3017 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3020 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3025 echo "configure:3026: checking for main in -lisode" >&5
3026 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 ac_save_LIBS="$LIBS"
3031 LIBS="-lisode $LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3057 cat >> confdefs.h <<\EOF
3058 #define HAVE_ISODE 1
3061 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3064 echo "$ac_t""no" 1>&6
3070 if test $ol_link_isode != no; then
3071 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3072 echo "configure:3073: checking for main in -lpp" >&5
3073 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 ac_save_LIBS="$LIBS"
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3087 if { (eval echo configure:3088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3089 eval "ac_cv_lib_$ac_lib_var=yes"
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3094 eval "ac_cv_lib_$ac_lib_var=no"
3097 LIBS="$ac_save_LIBS"
3100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3101 echo "$ac_t""yes" 1>&6
3103 cat >> confdefs.h <<\EOF
3107 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3110 echo "$ac_t""no" 1>&6
3115 # Extract the first word of "pepsy", so it can be a program name with args.
3116 set dummy pepsy; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3124 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3128 for ac_dir in $PATH; do
3129 test -z "$ac_dir" && ac_dir=.
3130 if test -f $ac_dir/$ac_word; then
3131 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3139 PEPSY="$ac_cv_path_PEPSY"
3140 if test -n "$PEPSY"; then
3141 echo "$ac_t""$PEPSY" 1>&6
3143 echo "$ac_t""no" 1>&6
3150 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3151 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_hdr" >&5
3156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3165 { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3166 ac_err=`grep -v '^ *+' conftest.out`
3167 if test -z "$ac_err"; then
3169 eval "ac_cv_header_$ac_safe=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 eval "ac_cv_header_$ac_safe=no"
3179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3182 cat >> confdefs.h <<EOF
3183 #define $ac_tr_hdr 1
3187 echo "$ac_t""no" 1>&6
3192 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3193 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3194 echo "configure:3195: checking for main in -lkrb4" >&5
3195 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 ac_save_LIBS="$LIBS"
3200 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3211 eval "ac_cv_lib_$ac_lib_var=yes"
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 eval "ac_cv_lib_$ac_lib_var=no"
3219 LIBS="$ac_save_LIBS"
3222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3226 echo "$ac_t""no" 1>&6
3231 if test $have_k5 = yes ; then
3232 ol_with_kerberos=found
3233 ol_link_kerberos=yes
3235 cat >> confdefs.h <<\EOF
3236 #define HAVE_KERBEROS 1
3239 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3244 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3245 for ac_hdr in krb.h des.h
3247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3249 echo "configure:3250: checking for $ac_hdr" >&5
3250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3259 { (eval echo configure:3260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3260 ac_err=`grep -v '^ *+' conftest.out`
3261 if test -z "$ac_err"; then
3263 eval "ac_cv_header_$ac_safe=yes"
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3269 eval "ac_cv_header_$ac_safe=no"
3273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3276 cat >> confdefs.h <<EOF
3277 #define $ac_tr_hdr 1
3281 echo "$ac_t""no" 1>&6
3286 if test $ac_cv_header_krb_h = yes ; then
3287 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3288 echo "configure:3289: checking for main in -lkrb" >&5
3289 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS="$LIBS"
3294 LIBS="-lkrb -ldes $LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 eval "ac_cv_lib_$ac_lib_var=no"
3313 LIBS="$ac_save_LIBS"
3316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3320 echo "$ac_t""no" 1>&6
3325 if test $have_k4 = yes ; then
3326 ol_with_kerberos=found
3327 ol_link_kerberos=yes
3329 cat >> confdefs.h <<\EOF
3330 #define HAVE_KERBEROS 1
3333 KRB_LIBS="-lkrb -ldes"
3340 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3341 -o $ol_with_threads = posix ; then
3343 for ac_hdr in pthread.h sched.h
3345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_hdr" >&5
3348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3357 { (eval echo configure:3358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3358 ac_err=`grep -v '^ *+' conftest.out`
3359 if test -z "$ac_err"; then
3361 eval "ac_cv_header_$ac_safe=yes"
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 eval "ac_cv_header_$ac_safe=no"
3371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3374 cat >> confdefs.h <<EOF
3375 #define $ac_tr_hdr 1
3379 echo "$ac_t""no" 1>&6
3384 if test $ac_cv_header_pthread_h = yes ; then
3385 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3386 echo "configure:3387: checking POSIX thread version" >&5
3387 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3395 # include <pthread.h>
3396 /* this check could be improved */
3397 # ifdef PTHREAD_ONCE_INIT
3398 pthread_version_final
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 egrep "pthread_version_final" >/dev/null 2>&1; then
3405 ol_pthread_final=yes
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3417 # include <pthread.h>
3418 /* this check could be improved */
3419 # ifdef pthread_once_init
3420 pthread_version_draft4
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3427 ol_pthread_draft4=yes
3430 ol_pthread_draft4=no
3435 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3436 ol_cv_pthread_version=final
3437 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3438 ol_cv_pthread_version=draft4
3440 ol_cv_pthread_version=unknown
3445 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3448 if test $ol_cv_pthread_version = final ; then
3449 cat >> confdefs.h <<\EOF
3450 #define HAVE_PTHREADS_FINAL 1
3453 elif test $ol_cv_pthread_version = draft4 ; then
3454 cat >> confdefs.h <<\EOF
3455 #define HAVE_PTHREADS_D4 1
3459 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3462 # consider threads found
3463 ol_with_threads=found
3466 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3467 echo "configure:3468: checking for LinuxThreads" >&5
3468 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3472 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3473 if test "$res" -gt 0 ; then
3474 ol_cv_linux_threads=yes
3476 ol_cv_linux_threads=no
3481 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3484 if test $ol_cv_linux_threads = yes ; then
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_LINUX_THREADS 1
3492 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3493 echo "configure:3494: checking for pthread_create" >&5
3494 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* System header to define __stub macros and hopefully few prototypes,
3501 which can conflict with char pthread_create(); below. */
3503 /* Override any gcc2 internal prototype to avoid an error. */
3504 /* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
3506 char pthread_create();
3510 /* The GNU C library defines this for functions which it implements
3511 to always fail with ENOSYS. Some functions are actually named
3512 something starting with __ and the normal name is an alias. */
3513 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3523 eval "ac_cv_func_pthread_create=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_func_pthread_create=no"
3533 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3534 echo "$ac_t""yes" 1>&6
3537 echo "$ac_t""no" 1>&6
3541 if test $ol_link_threads = no ; then
3542 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3543 echo "configure:3544: checking for pthread_create with -kthread" >&5
3544 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3549 LIBS="-kthread $LIBS"
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3562 ol_cv_kthread_flag=yes
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 ol_cv_kthread_flag=no
3574 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3576 if test $ol_cv_kthread_flag = yes ; then
3577 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
3578 ol_link_threads=posix
3582 if test $ol_link_threads = no ; then
3583 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3584 echo "configure:3585: checking for pthread_create with -pthread" >&5
3585 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3590 LIBS="-pthread $LIBS"
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3603 ol_cv_pthread_flag=yes
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 ol_cv_pthread_flag=no
3615 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3617 if test $ol_cv_pthread_flag = yes ; then
3618 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3619 ol_link_threads=posix
3623 if test $ol_link_threads = no ; then
3624 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3625 echo "configure:3626: checking for pthread_create with -pthreads" >&5
3626 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3631 LIBS="-pthreads $LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3644 ol_cv_pthreads_flag=yes
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 ol_cv_pthreads_flag=no
3656 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3658 if test $ol_cv_pthreads_flag = yes ; then
3659 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3660 ol_link_threads=posix
3664 if test $ol_link_threads = no ; then
3665 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3666 echo "configure:3667: checking for pthread_create with -thread" >&5
3667 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3672 LIBS="-thread $LIBS"
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3685 ol_cv_thread_flag=yes
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 ol_cv_thread_flag=no
3697 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3699 if test $ol_cv_thread_flag = yes ; then
3700 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3701 ol_link_threads=posix
3705 if test $ol_link_threads = no ; then
3707 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3708 echo "configure:3709: checking for pthread_mutex_lock in -lpthread" >&5
3709 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 ac_save_LIBS="$LIBS"
3714 LIBS="-lpthread -lexc $LIBS"
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char pthread_mutex_lock();
3724 pthread_mutex_lock()
3727 if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3729 eval "ac_cv_lib_$ac_lib_var=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 eval "ac_cv_lib_$ac_lib_var=no"
3737 LIBS="$ac_save_LIBS"
3740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3743 ol_link_threads=posix
3744 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3745 if test $ol_with_yielding_select = auto ; then
3746 ol_with_yielding_select=yes
3750 echo "$ac_t""no" 1>&6
3757 if test $ol_link_threads = no ; then
3759 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
3760 echo "configure:3761: checking for pthread_mutex_unlock in -lpthreads" >&5
3761 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 ac_save_LIBS="$LIBS"
3766 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3773 char pthread_mutex_unlock();
3776 pthread_mutex_unlock()
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3795 ol_link_threads=posix
3796 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3797 if test $ol_with_yielding_select = auto ; then
3798 ol_with_yielding_select=yes
3802 echo "$ac_t""no" 1>&6
3809 if test $ol_link_threads = no ; then
3811 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3812 echo "configure:3813: checking for pthread_create in -lpthread" >&5
3813 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3818 LIBS="-lpthread $LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3825 char pthread_create();
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_lib_$ac_lib_var=no"
3841 LIBS="$ac_save_LIBS"
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3847 ol_link_threads=posix
3848 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3850 echo "$ac_t""no" 1>&6
3857 if test $ol_link_threads = no ; then
3859 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3860 echo "configure:3861: checking for pthread_create in -lc_r" >&5
3861 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 ac_save_LIBS="$LIBS"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873 char pthread_create();
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 eval "ac_cv_lib_$ac_lib_var=no"
3889 LIBS="$ac_save_LIBS"
3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3895 ol_link_threads=posix
3896 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3898 echo "$ac_t""no" 1>&6
3905 if test $ol_link_threads = no ; then
3907 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3908 echo "configure:3909: checking for pthread_create in -lpthreads" >&5
3909 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 ac_save_LIBS="$LIBS"
3914 LIBS="-lpthreads $LIBS"
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3921 char pthread_create();
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_lib_$ac_lib_var=no"
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3943 ol_link_threads=posix
3944 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3946 echo "$ac_t""no" 1>&6
3953 if test $ol_link_threads = no ; then
3955 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3956 echo "configure:3957: checking for pthread_join in -lpthreads" >&5
3957 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 ac_save_LIBS="$LIBS"
3962 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char pthread_join();
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3982 eval "ac_cv_lib_$ac_lib_var=no"
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3991 ol_link_threads=posix
3992 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3995 echo "$ac_t""no" 1>&6
4002 if test $ol_link_threads = no; then
4004 LIBS="$LIBS -lpthread"
4005 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4006 echo "configure:4007: checking for pthread_create() in HP-UX -lpthread" >&5
4007 ol_try_pthread_hpux_11=no
4008 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4016 #include <pthread.h>
4018 #ifndef ELFABI_HPUX_REL11
4023 pthread_create(NULL, NULL, NULL, NULL);
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4028 ol_try_pthread_hpux_11=yes
4029 ol_cv_pthread_hpux_11=yes
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4034 ol_cv_pthread_hpux_11=no
4039 echo "$ac_t""yes" 1>&6
4042 if test $ol_cv_pthread_hpux_11=yes ; then
4043 ol_link_threads=posix
4044 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4045 if test $ol_try_pthread_hpux_11=yes ; then
4046 ac_cv_func_pthread_attr_init=yes
4051 if test $ol_link_threads != no ; then
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_PTHREADS 1
4057 save_CPPFLAGS="$CPPFLAGS"
4059 LIBS="$LTHREAD_LIBS $LIBS"
4061 for ac_func in sched_yield pthread_yield
4063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_func" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4094 eval "ac_cv_func_$ac_func=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_func_$ac_func=no"
4104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4107 cat >> confdefs.h <<EOF
4108 #define $ac_tr_func 1
4112 echo "$ac_t""no" 1>&6
4117 if test $ac_cv_func_sched_yield = no -a \
4118 $ac_cv_func_pthread_yield = no ; then
4119 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4120 echo "configure:4121: checking for sched_yield in -lrt" >&5
4121 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4125 ac_save_LIBS="$LIBS"
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4139 if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4141 eval "ac_cv_lib_$ac_lib_var=yes"
4143 echo "configure: failed program was:" >&5
4144 cat conftest.$ac_ext >&5
4146 eval "ac_cv_lib_$ac_lib_var=no"
4149 LIBS="$ac_save_LIBS"
4152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4153 echo "$ac_t""yes" 1>&6
4154 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4155 cat >> confdefs.h <<\EOF
4156 #define HAVE_SCHED_YIELD 1
4159 ac_cv_func_sched_yield=yes
4161 echo "$ac_t""no" 1>&6
4162 ac_cv_func_sched_yield=no
4166 if test $ac_cv_func_sched_yield = no -a \
4167 $ac_cv_func_pthread_yield = no ; then
4168 for ac_func in thr_yield
4170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_func" >&5
4172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 /* System header to define __stub macros and hopefully few prototypes,
4179 which can conflict with char $ac_func(); below. */
4181 /* Override any gcc2 internal prototype to avoid an error. */
4182 /* We use char because int might match the return type of a gcc2
4183 builtin and then its argument prototype would still apply. */
4188 /* The GNU C library defines this for functions which it implements
4189 to always fail with ENOSYS. Some functions are actually named
4190 something starting with __ and the normal name is an alias. */
4191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4201 eval "ac_cv_func_$ac_func=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4206 eval "ac_cv_func_$ac_func=no"
4211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4212 echo "$ac_t""yes" 1>&6
4213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4214 cat >> confdefs.h <<EOF
4215 #define $ac_tr_func 1
4219 echo "$ac_t""no" 1>&6
4224 if test $ac_cv_func_sched_yield = no -a \
4225 $ac_cv_func_pthread_yield = no -a \
4226 "$ac_cv_func_thr_yield" = no ; then
4227 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4230 for ac_func in pthread_kill pthread_detach
4232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4233 echo "configure:4234: checking for $ac_func" >&5
4234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 /* System header to define __stub macros and hopefully few prototypes,
4241 which can conflict with char $ac_func(); below. */
4243 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4250 /* The GNU C library defines this for functions which it implements
4251 to always fail with ENOSYS. Some functions are actually named
4252 something starting with __ and the normal name is an alias. */
4253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4263 eval "ac_cv_func_$ac_func=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_func_$ac_func=no"
4273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4274 echo "$ac_t""yes" 1>&6
4275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4276 cat >> confdefs.h <<EOF
4277 #define $ac_tr_func 1
4281 echo "$ac_t""no" 1>&6
4286 if test $ac_cv_func_pthread_detach = no ; then
4287 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
4291 pthread_setconcurrency \
4292 pthread_getconcurrency \
4293 thr_setconcurrency \
4294 thr_getconcurrency \
4297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4298 echo "configure:4299: checking for $ac_func" >&5
4299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 cat > conftest.$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 /* System header to define __stub macros and hopefully few prototypes,
4306 which can conflict with char $ac_func(); below. */
4308 /* Override any gcc2 internal prototype to avoid an error. */
4309 /* We use char because int might match the return type of a gcc2
4310 builtin and then its argument prototype would still apply. */
4315 /* The GNU C library defines this for functions which it implements
4316 to always fail with ENOSYS. Some functions are actually named
4317 something starting with __ and the normal name is an alias. */
4318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4328 eval "ac_cv_func_$ac_func=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4333 eval "ac_cv_func_$ac_func=no"
4338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4341 cat >> confdefs.h <<EOF
4342 #define $ac_tr_func 1
4346 echo "$ac_t""no" 1>&6
4351 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4352 echo "configure:4353: checking if pthread_create() works" >&5
4353 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4357 if test "$cross_compiling" = yes; then
4358 ol_cv_pthread_create_works=yes
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4364 #include <pthread.h>
4366 #define NULL (void*)0
4369 static void *task(p)
4372 return (void *) (p == NULL);
4375 int main(argc, argv)
4380 exit(pthread_create(&t, NULL, task, NULL));
4384 if { (eval echo configure:4385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4386 ol_cv_pthread_create_works=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 ol_cv_pthread_create_works=no
4398 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4400 if test $ol_cv_pthread_create_works = no ; then
4401 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4404 if test $ol_with_yielding_select = auto ; then
4405 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4406 echo "configure:4407: checking if select yields when using pthreads" >&5
4407 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4411 if test "$cross_compiling" = yes; then
4413 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4419 #include <sys/types.h>
4420 #include <sys/time.h>
4422 #include <pthread.h>
4424 #define NULL (void*) 0
4427 static int fildes[2];
4429 static void *task(p)
4441 FD_SET(fildes[0], &rfds);
4443 /* we're not interested in any fds */
4444 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4451 exit(0); /* if we exit here, the select blocked the whole process */
4454 int main(argc, argv)
4460 /* create a pipe to select */
4461 if(pipe(&fildes[0])) {
4466 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4467 (void) pthread_setconcurrency(2);
4469 #ifdef HAVE_THR_SETCONCURRENCY
4470 /* Set Solaris LWP concurrency to 2 */
4471 thr_setconcurrency(2);
4475 pthread_create(&t, NULL, task, NULL);
4477 #if HAVE_SCHED_YIELD
4478 sched_yield(); /* make sure task runs first */
4480 #ifdef HAVE_PTHREAD_YIELD
4481 pthread_yield(); /* make sure task runs first */
4488 if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4490 ol_cv_pthread_select_yields=no
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 ol_cv_pthread_select_yields=yes
4502 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4504 if test $ol_cv_pthread_select_yields = yes ; then
4505 ol_with_yielding_select=yes
4509 CPPFLAGS="$save_CPPFLAGS"
4512 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4516 if test $ol_with_threads = posix ; then
4517 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4521 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4522 -o $ol_with_threads = mach ; then
4524 for ac_hdr in mach/cthreads.h
4526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_hdr" >&5
4529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4538 { (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4539 ac_err=`grep -v '^ *+' conftest.out`
4540 if test -z "$ac_err"; then
4542 eval "ac_cv_header_$ac_safe=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 eval "ac_cv_header_$ac_safe=no"
4552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4553 echo "$ac_t""yes" 1>&6
4554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4555 cat >> confdefs.h <<EOF
4556 #define $ac_tr_hdr 1
4560 echo "$ac_t""no" 1>&6
4564 if test $ac_cv_header_mach_cthreads_h = yes ; then
4565 ol_with_threads=found
4567 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4568 echo "configure:4569: checking for cthread_fork" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char cthread_fork(); below. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char cthread_fork();
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4598 eval "ac_cv_func_cthread_fork=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 eval "ac_cv_func_cthread_fork=no"
4608 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4612 echo "$ac_t""no" 1>&6
4616 if test $ol_link_threads = no ; then
4617 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4618 echo "configure:4619: checking for cthread_fork with -all_load" >&5
4619 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4624 LIBS="-all_load $LIBS"
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 #include <mach/cthreads.h>
4631 cthread_fork((void *)0, (void *)0);
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4637 ol_cv_cthread_all_load=yes
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 ol_cv_cthread_all_load=no
4649 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4651 if test $ol_cv_cthread_all_load = yes ; then
4652 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4653 ol_link_threads=mach
4657 if test $ol_link_threads != no ; then
4658 : check for cthread specific functionality here
4659 cat >> confdefs.h <<\EOF
4660 #define HAVE_MACH_CTHREADS 1
4664 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4668 if test $ol_with_threads = mach ; then
4669 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4673 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4674 -o $ol_with_threads = lwp ; then
4676 for ac_hdr in thread.h synch.h
4678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4680 echo "configure:4681: checking for $ac_hdr" >&5
4681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 cat > conftest.$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out`
4692 if test -z "$ac_err"; then
4694 eval "ac_cv_header_$ac_safe=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_header_$ac_safe=no"
4704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_hdr 1
4712 echo "$ac_t""no" 1>&6
4716 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4717 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4718 echo "configure:4719: checking for thr_create in -lthread" >&5
4719 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS="$LIBS"
4724 LIBS="-lthread $LIBS"
4725 cat > conftest.$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4754 echo "$ac_t""no" 1>&6
4759 if test $have_thr = yes ; then
4760 cat >> confdefs.h <<\EOF
4764 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4767 if test $ol_with_yielding_select = auto ; then
4768 ol_with_yielding_select=yes
4772 thr_setconcurrency \
4773 thr_getconcurrency \
4776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_func" >&5
4778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4784 /* System header to define __stub macros and hopefully few prototypes,
4785 which can conflict with char $ac_func(); below. */
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 /* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4794 /* The GNU C library defines this for functions which it implements
4795 to always fail with ENOSYS. Some functions are actually named
4796 something starting with __ and the normal name is an alias. */
4797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4807 eval "ac_cv_func_$ac_func=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 eval "ac_cv_func_$ac_func=no"
4817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4820 cat >> confdefs.h <<EOF
4821 #define $ac_tr_func 1
4825 echo "$ac_t""no" 1>&6
4832 for ac_hdr in lwp/lwp.h
4834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_hdr" >&5
4837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4846 { (eval echo configure:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4847 ac_err=`grep -v '^ *+' conftest.out`
4848 if test -z "$ac_err"; then
4850 eval "ac_cv_header_$ac_safe=yes"
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4856 eval "ac_cv_header_$ac_safe=no"
4860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4863 cat >> confdefs.h <<EOF
4864 #define $ac_tr_hdr 1
4868 echo "$ac_t""no" 1>&6
4872 if test $ac_cv_header_lwp_lwp_h = yes ; then
4873 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4874 echo "configure:4875: checking for lwp_create in -llwp" >&5
4875 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 ac_save_LIBS="$LIBS"
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4895 eval "ac_cv_lib_$ac_lib_var=yes"
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4900 eval "ac_cv_lib_$ac_lib_var=no"
4903 LIBS="$ac_save_LIBS"
4906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4907 echo "$ac_t""yes" 1>&6
4910 echo "$ac_t""no" 1>&6
4915 if test $have_lwp = yes ; then
4916 cat >> confdefs.h <<\EOF
4920 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4923 if test $ol_with_yielding_select = auto ; then
4924 ol_with_yielding_select=no
4930 if test $ol_with_yielding_select = yes ; then
4931 cat >> confdefs.h <<\EOF
4932 #define HAVE_YIELDING_SELECT 1
4937 if test $ol_with_threads = manual ; then
4940 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4942 for ac_hdr in pthread.h sched.h
4944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_hdr" >&5
4947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956 { (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957 ac_err=`grep -v '^ *+' conftest.out`
4958 if test -z "$ac_err"; then
4960 eval "ac_cv_header_$ac_safe=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_header_$ac_safe=no"
4970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4973 cat >> confdefs.h <<EOF
4974 #define $ac_tr_hdr 1
4978 echo "$ac_t""no" 1>&6
4982 for ac_func in sched_yield pthread_yield
4984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_func" >&5
4986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* System header to define __stub macros and hopefully few prototypes,
4993 which can conflict with char $ac_func(); below. */
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5002 /* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5015 eval "ac_cv_func_$ac_func=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 eval "ac_cv_func_$ac_func=no"
5025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5028 cat >> confdefs.h <<EOF
5029 #define $ac_tr_func 1
5033 echo "$ac_t""no" 1>&6
5038 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5039 echo "configure:5040: checking for LinuxThreads" >&5
5040 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5044 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5045 if test "$res" -gt 0 ; then
5046 ol_cv_linux_threads=yes
5048 ol_cv_linux_threads=no
5053 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5056 for ac_hdr in mach/cthreads.h
5058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_hdr" >&5
5061 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5070 { (eval echo configure:5071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5071 ac_err=`grep -v '^ *+' conftest.out`
5072 if test -z "$ac_err"; then
5074 eval "ac_cv_header_$ac_safe=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 eval "ac_cv_header_$ac_safe=no"
5084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5087 cat >> confdefs.h <<EOF
5088 #define $ac_tr_hdr 1
5092 echo "$ac_t""no" 1>&6
5096 for ac_hdr in lwp/lwp.h
5098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_hdr 1
5132 echo "$ac_t""no" 1>&6
5136 for ac_hdr in thread.h synch.h
5138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5140 echo "configure:5141: checking for $ac_hdr" >&5
5141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5150 { (eval echo configure:5151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5151 ac_err=`grep -v '^ *+' conftest.out`
5152 if test -z "$ac_err"; then
5154 eval "ac_cv_header_$ac_safe=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 eval "ac_cv_header_$ac_safe=no"
5164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_hdr 1
5172 echo "$ac_t""no" 1>&6
5178 if test $ol_link_threads != no ; then
5179 cat >> confdefs.h <<\EOF
5183 cat >> confdefs.h <<\EOF
5184 #define _REENTRANT 1
5187 cat >> confdefs.h <<\EOF
5188 #define THREAD_SAFE 1
5191 cat >> confdefs.h <<\EOF
5192 #define _THREAD_SAFE 1
5195 cat >> confdefs.h <<\EOF
5196 #define THREADSAFE 1
5199 cat >> confdefs.h <<\EOF
5200 #define _THREADSAFE 1
5204 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5205 echo "configure:5206: checking for thread specific errno" >&5
5206 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5224 ol_cv_errno_thread_specific=yes
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 ol_cv_errno_thread_specific=no
5235 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5237 if test $ol_cv_errno_thread_specific != yes ; then
5238 LIBS="$LTHREAD_LIBS $LIBS"
5244 if test $ol_link_threads = no ; then
5245 if test $ol_with_threads = yes ; then
5246 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5249 if test $ol_with_threads = auto ; then
5250 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5254 cat >> confdefs.h <<\EOF
5255 #define NO_THREADS 1
5262 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5263 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5264 echo "configure:5265: checking for DB2 library" >&5
5265 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5269 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5270 echo "configure:5271: checking for db_open in -ldb" >&5
5271 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 ac_save_LIBS="$LIBS"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5291 eval "ac_cv_lib_$ac_lib_var=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 eval "ac_cv_lib_$ac_lib_var=no"
5299 LIBS="$ac_save_LIBS"
5302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5306 echo "$ac_t""no" 1>&6
5314 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5320 echo "configure:5321: checking for $ac_hdr" >&5
5321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5330 { (eval echo configure:5331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5331 ac_err=`grep -v '^ *+' conftest.out`
5332 if test -z "$ac_err"; then
5334 eval "ac_cv_header_$ac_safe=yes"
5337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5340 eval "ac_cv_header_$ac_safe=no"
5344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5345 echo "$ac_t""yes" 1>&6
5346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5347 cat >> confdefs.h <<EOF
5348 #define $ac_tr_hdr 1
5352 echo "$ac_t""no" 1>&6
5356 if test $ac_cv_header_db_h = yes ; then
5357 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5358 echo "configure:5359: checking if db.h is DB2" >&5
5359 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5368 /* this check could be improved */
5369 # ifdef DB_VERSION_MAJOR
5370 # if DB_VERSION_MAJOR == 2
5376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5377 egrep "__db_version_2" >/dev/null 2>&1; then
5379 ol_cv_header_db2=yes
5388 echo "$ac_t""$ol_cv_header_db2" 1>&6
5395 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5396 echo "configure:5397: checking for Berkeley DB2" >&5
5397 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5401 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
5402 ol_cv_berkeley_db2=no
5404 ol_cv_berkeley_db2=yes
5409 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5410 if test $ol_cv_berkeley_db2 = yes ; then
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_BERKELEY_DB2 1
5418 if test $ol_cv_berkeley_db2 = yes ; then
5420 ol_with_ldbm_api=db2
5422 if test $ol_with_ldbm_type = hash ; then
5423 cat >> confdefs.h <<\EOF
5424 #define LDBM_USE_DBHASH 1
5428 cat >> confdefs.h <<\EOF
5429 #define LDBM_USE_DBBTREE 1
5434 if test $ol_cv_lib_db2 != yes ; then
5435 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5440 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5441 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5442 echo "configure:5443: checking for Berkeley DB library" >&5
5443 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5447 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5448 echo "configure:5449: checking for dbopen" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char dbopen(); below. */
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5476 if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5478 eval "ac_cv_func_dbopen=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5483 eval "ac_cv_func_dbopen=no"
5488 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5492 echo "$ac_t""no" 1>&6
5494 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5495 echo "configure:5496: checking for dbopen in -ldb" >&5
5496 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 ac_save_LIBS="$LIBS"
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5516 eval "ac_cv_lib_$ac_lib_var=yes"
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 eval "ac_cv_lib_$ac_lib_var=no"
5524 LIBS="$ac_save_LIBS"
5527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5531 echo "$ac_t""no" 1>&6
5542 echo "$ac_t""$ol_cv_lib_db" 1>&6
5545 for ac_hdr in db_185.h
5547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_hdr" >&5
5550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5559 { (eval echo configure:5560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5560 ac_err=`grep -v '^ *+' conftest.out`
5561 if test -z "$ac_err"; then
5563 eval "ac_cv_header_$ac_safe=yes"
5566 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5569 eval "ac_cv_header_$ac_safe=no"
5573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_hdr 1
5581 echo "$ac_t""no" 1>&6
5585 if test "$ol_cv_header_db2" = yes ; then
5587 ol_cv_header_db=$ac_cv_header_db_185_h
5589 ol_cv_header_db=$ac_cv_header_db_h
5594 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5595 echo "configure:5596: checking for Berkeley DB" >&5
5596 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5600 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
5601 ol_cv_berkeley_db=no
5603 ol_cv_berkeley_db=yes
5608 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5609 if test $ol_cv_berkeley_db = yes ; then
5610 cat >> confdefs.h <<\EOF
5611 #define HAVE_BERKELEY_DB 1
5617 if test $ol_cv_berkeley_db = yes ; then
5621 if test $ol_with_ldbm_type = hash ; then
5622 cat >> confdefs.h <<\EOF
5623 #define LDBM_USE_DBHASH 1
5627 cat >> confdefs.h <<\EOF
5628 #define LDBM_USE_DBBTREE 1
5633 if test $ol_cv_lib_db != yes ; then
5634 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5639 if test $ol_with_ldbm_api = manual ; then
5642 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5644 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5648 echo "configure:5649: checking for $ac_hdr" >&5
5649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5658 { (eval echo configure:5659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5659 ac_err=`grep -v '^ *+' conftest.out`
5660 if test -z "$ac_err"; then
5662 eval "ac_cv_header_$ac_safe=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_header_$ac_safe=no"
5672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5673 echo "$ac_t""yes" 1>&6
5674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_hdr 1
5680 echo "$ac_t""no" 1>&6
5686 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5687 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5688 ol_with_ldbm_api=none
5691 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5692 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5693 echo "configure:5694: checking for GDBM library" >&5
5694 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5698 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5699 echo "configure:5700: checking for gdbm_open" >&5
5700 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char gdbm_open(); below. */
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5716 /* The GNU C library defines this for functions which it implements
5717 to always fail with ENOSYS. Some functions are actually named
5718 something starting with __ and the normal name is an alias. */
5719 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5727 if { (eval echo configure:5728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5729 eval "ac_cv_func_gdbm_open=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 eval "ac_cv_func_gdbm_open=no"
5739 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5740 echo "$ac_t""yes" 1>&6
5743 echo "$ac_t""no" 1>&6
5745 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5746 echo "configure:5747: checking for gdbm_open in -lgdbm" >&5
5747 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 ac_save_LIBS="$LIBS"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* Override any gcc2 internal prototype to avoid an error. */
5757 /* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5767 eval "ac_cv_lib_$ac_lib_var=yes"
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 eval "ac_cv_lib_$ac_lib_var=no"
5775 LIBS="$ac_save_LIBS"
5778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5780 ol_cv_lib_gdbm=-lgdbm
5782 echo "$ac_t""no" 1>&6
5793 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5796 for ac_hdr in gdbm.h
5798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5800 echo "configure:5801: checking for $ac_hdr" >&5
5801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5810 { (eval echo configure:5811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5811 ac_err=`grep -v '^ *+' conftest.out`
5812 if test -z "$ac_err"; then
5814 eval "ac_cv_header_$ac_safe=yes"
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 eval "ac_cv_header_$ac_safe=no"
5824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5825 echo "$ac_t""yes" 1>&6
5826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5827 cat >> confdefs.h <<EOF
5828 #define $ac_tr_hdr 1
5832 echo "$ac_t""no" 1>&6
5836 echo $ac_n "checking for db""... $ac_c" 1>&6
5837 echo "configure:5838: checking for db" >&5
5838 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5842 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5850 echo "$ac_t""$ol_cv_gdbm" 1>&6
5851 if test $ol_cv_gdbm = yes ; then
5852 cat >> confdefs.h <<\EOF
5859 if test $ol_cv_gdbm = yes ; then
5861 ol_with_ldbm_api=gdbm
5863 if test $ol_cv_lib_gdbm != yes ; then
5864 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5869 if test $ol_with_ldbm_api = auto ; then
5870 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5871 elif test $ol_with_ldbm_api = ndbm ; then
5872 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5873 echo "configure:5874: checking for NDBM library" >&5
5874 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5878 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5879 echo "configure:5880: checking for dbm_open" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char dbm_open(); below. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5909 eval "ac_cv_func_dbm_open=yes"
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5914 eval "ac_cv_func_dbm_open=no"
5919 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5923 echo "$ac_t""no" 1>&6
5925 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5926 echo "configure:5927: checking for dbm_open in -lndbm" >&5
5927 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6
5931 ac_save_LIBS="$LIBS"
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5947 eval "ac_cv_lib_$ac_lib_var=yes"
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5952 eval "ac_cv_lib_$ac_lib_var=no"
5955 LIBS="$ac_save_LIBS"
5958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ol_cv_lib_ndbm=-lndbm
5962 echo "$ac_t""no" 1>&6
5964 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5965 echo "configure:5966: checking for dbm_open in -ldbm" >&5
5966 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 ac_save_LIBS="$LIBS"
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* Override any gcc2 internal prototype to avoid an error. */
5976 /* We use char because int might match the return type of a gcc2
5977 builtin and then its argument prototype would still apply. */
5984 if { (eval echo configure:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5986 eval "ac_cv_lib_$ac_lib_var=yes"
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5991 eval "ac_cv_lib_$ac_lib_var=no"
5994 LIBS="$ac_save_LIBS"
5997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5998 echo "$ac_t""yes" 1>&6
5999 ol_cv_lib_ndbm=-ldbm
6001 echo "$ac_t""no" 1>&6
6014 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6017 for ac_hdr in ndbm.h
6019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6021 echo "configure:6022: checking for $ac_hdr" >&5
6022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6031 { (eval echo configure:6032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6032 ac_err=`grep -v '^ *+' conftest.out`
6033 if test -z "$ac_err"; then
6035 eval "ac_cv_header_$ac_safe=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_header_$ac_safe=no"
6045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6046 echo "$ac_t""yes" 1>&6
6047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6048 cat >> confdefs.h <<EOF
6049 #define $ac_tr_hdr 1
6053 echo "$ac_t""no" 1>&6
6057 echo $ac_n "checking for db""... $ac_c" 1>&6
6058 echo "configure:6059: checking for db" >&5
6059 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6063 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6071 echo "$ac_t""$ol_cv_ndbm" 1>&6
6072 if test $ol_cv_ndbm = yes ; then
6073 cat >> confdefs.h <<\EOF
6080 if test $ol_cv_ndbm = yes ; then
6082 ol_with_ldbm_api=ndbm
6084 if test $ol_cv_lib_ndbm != yes ; then
6085 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6090 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6091 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6092 if test $ol_enable_ldbm = yes ; then
6093 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6096 echo "configure: warning: disabling LDBM" 1>&2
6100 if test $ol_enable_wrappers != no ; then
6101 for ac_hdr in tcpd.h
6103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6105 echo "configure:6106: checking for $ac_hdr" >&5
6106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out`
6117 if test -z "$ac_err"; then
6119 eval "ac_cv_header_$ac_safe=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_header_$ac_safe=no"
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_hdr 1
6137 echo "$ac_t""no" 1>&6
6142 if test $ac_cv_header_tcpd_h != yes ; then
6145 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6146 echo "configure:6147: checking for main in -lwrap" >&5
6147 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6149 echo $ac_n "(cached) $ac_c" 1>&6
6151 ac_save_LIBS="$LIBS"
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6163 eval "ac_cv_lib_$ac_lib_var=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 eval "ac_cv_lib_$ac_lib_var=no"
6171 LIBS="$ac_save_LIBS"
6174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6175 echo "$ac_t""yes" 1>&6
6178 echo "$ac_t""no" 1>&6
6184 if test $have_wrappers = yes ; then
6185 cat >> confdefs.h <<\EOF
6189 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6191 echo "configure: warning: could not find -lwrap" 1>&2
6192 if test $ol_enable_wrappers = yes ; then
6193 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6196 echo "configure: warning: disabling wrappers support" 1>&2
6197 ol_enable_wrappers=no
6201 if test $ol_enable_dmalloc != no ; then
6202 for ac_hdr in dmalloc.h
6204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6206 echo "configure:6207: checking for $ac_hdr" >&5
6207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6208 echo $ac_n "(cached) $ac_c" 1>&6
6210 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure"
6212 #include "confdefs.h"
6215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6216 { (eval echo configure:6217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6217 ac_err=`grep -v '^ *+' conftest.out`
6218 if test -z "$ac_err"; then
6220 eval "ac_cv_header_$ac_safe=yes"
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6226 eval "ac_cv_header_$ac_safe=no"
6230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6231 echo "$ac_t""yes" 1>&6
6232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6233 cat >> confdefs.h <<EOF
6234 #define $ac_tr_hdr 1
6238 echo "$ac_t""no" 1>&6
6242 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6243 echo "configure:6244: checking for dmalloc_shutdown in -ldmalloc" >&5
6244 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6
6248 ac_save_LIBS="$LIBS"
6249 LIBS="-ldmalloc $LIBS"
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6256 char dmalloc_shutdown();
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6264 eval "ac_cv_lib_$ac_lib_var=yes"
6266 echo "configure: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6269 eval "ac_cv_lib_$ac_lib_var=no"
6272 LIBS="$ac_save_LIBS"
6275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6276 echo "$ac_t""yes" 1>&6
6277 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6278 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6279 cat >> confdefs.h <<EOF
6280 #define $ac_tr_lib 1
6283 LIBS="-ldmalloc $LIBS"
6286 echo "$ac_t""no" 1>&6
6291 # ud needs termcap (should insert check here)
6293 for ac_hdr in termcap.h ncurses.h
6295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6297 echo "configure:6298: checking for $ac_hdr" >&5
6298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6307 { (eval echo configure:6308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6308 ac_err=`grep -v '^ *+' conftest.out`
6309 if test -z "$ac_err"; then
6311 eval "ac_cv_header_$ac_safe=yes"
6314 echo "configure: failed program was:" >&5
6315 cat conftest.$ac_ext >&5
6317 eval "ac_cv_header_$ac_safe=no"
6321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6322 echo "$ac_t""yes" 1>&6
6323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6324 cat >> confdefs.h <<EOF
6325 #define $ac_tr_hdr 1
6329 echo "$ac_t""no" 1>&6
6334 if test $ol_link_termcap = no ; then
6335 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6336 echo "configure:6337: checking for tputs in -ltermcap" >&5
6337 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 ac_save_LIBS="$LIBS"
6342 LIBS="-ltermcap $LIBS"
6343 cat > conftest.$ac_ext <<EOF
6344 #line 6345 "configure"
6345 #include "confdefs.h"
6346 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6355 if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6357 eval "ac_cv_lib_$ac_lib_var=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6362 eval "ac_cv_lib_$ac_lib_var=no"
6365 LIBS="$ac_save_LIBS"
6368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6369 echo "$ac_t""yes" 1>&6
6372 echo "$ac_t""no" 1>&6
6376 if test $have_termcap = yes ; then
6377 cat >> confdefs.h <<\EOF
6378 #define HAVE_TERMCAP 1
6382 TERMCAP_LIBS=-ltermcap
6386 if test $ol_link_termcap = no ; then
6387 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6388 echo "configure:6389: checking for initscr in -lncurses" >&5
6389 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6391 echo $ac_n "(cached) $ac_c" 1>&6
6393 ac_save_LIBS="$LIBS"
6394 LIBS="-lncurses $LIBS"
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6409 eval "ac_cv_lib_$ac_lib_var=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 eval "ac_cv_lib_$ac_lib_var=no"
6417 LIBS="$ac_save_LIBS"
6420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6424 echo "$ac_t""no" 1>&6
6428 if test $have_ncurses = yes ; then
6429 cat >> confdefs.h <<\EOF
6430 #define HAVE_NCURSES 1
6434 TERMCAP_LIBS=-lncurses
6438 if test $ol_link_termcap = no ; then
6439 cat >> confdefs.h <<\EOF
6440 #define NO_TERMCAP 1
6446 # FreeBSD (and others) have crypt(3) in -lcrypt
6447 if test $ol_enable_crypt != no ; then
6448 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6449 echo "configure:6450: checking for crypt" >&5
6450 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6453 cat > conftest.$ac_ext <<EOF
6454 #line 6455 "configure"
6455 #include "confdefs.h"
6456 /* System header to define __stub macros and hopefully few prototypes,
6457 which can conflict with char crypt(); below. */
6459 /* Override any gcc2 internal prototype to avoid an error. */
6460 /* We use char because int might match the return type of a gcc2
6461 builtin and then its argument prototype would still apply. */
6466 /* The GNU C library defines this for functions which it implements
6467 to always fail with ENOSYS. Some functions are actually named
6468 something starting with __ and the normal name is an alias. */
6469 #if defined (__stub_crypt) || defined (__stub___crypt)
6477 if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6479 eval "ac_cv_func_crypt=yes"
6481 echo "configure: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 eval "ac_cv_func_crypt=no"
6489 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6490 echo "$ac_t""yes" 1>&6
6493 echo "$ac_t""no" 1>&6
6495 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6496 echo "configure:6497: checking for crypt in -lcrypt" >&5
6497 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_save_LIBS="$LIBS"
6502 LIBS="-lcrypt $LIBS"
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6517 eval "ac_cv_lib_$ac_lib_var=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_lib_$ac_lib_var=no"
6525 LIBS="$ac_save_LIBS"
6528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6530 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6533 echo "$ac_t""no" 1>&6
6540 if test $have_crypt = yes ; then
6541 cat >> confdefs.h <<\EOF
6542 #define HAVE_CRYPT 1
6546 echo "configure: warning: could not find crypt" 1>&2
6547 if test $ol_enable_crypt = yes ; then
6548 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6551 echo "configure: warning: disabling crypt support" 1>&2
6556 # FreeBSD (and others) have setproctitle(3) in -lutil
6557 if test $ol_enable_proctitle != no ; then
6558 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6559 echo "configure:6560: checking for setproctitle" >&5
6560 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6561 echo $ac_n "(cached) $ac_c" 1>&6
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char setproctitle(); below. */
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char setproctitle();
6576 /* The GNU C library defines this for functions which it implements
6577 to always fail with ENOSYS. Some functions are actually named
6578 something starting with __ and the normal name is an alias. */
6579 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6589 eval "ac_cv_func_setproctitle=yes"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 eval "ac_cv_func_setproctitle=no"
6599 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6600 echo "$ac_t""yes" 1>&6
6601 have_setproctitle=yes
6603 echo "$ac_t""no" 1>&6
6605 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6606 echo "configure:6607: checking for setproctitle in -lutil" >&5
6607 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6609 echo $ac_n "(cached) $ac_c" 1>&6
6611 ac_save_LIBS="$LIBS"
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char setproctitle();
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6627 eval "ac_cv_lib_$ac_lib_var=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_lib_$ac_lib_var=no"
6635 LIBS="$ac_save_LIBS"
6638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6640 have_setproctitle=yes
6641 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6643 echo "$ac_t""no" 1>&6
6644 have_setproctitle=no
6645 LIBOBJS="$LIBOBJS setproctitle.o"
6651 if test $have_setproctitle = yes ; then
6652 cat >> confdefs.h <<\EOF
6653 #define HAVE_SETPROCTITLE 1
6659 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6660 echo "configure:6661: checking for ANSI C header files" >&5
6661 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6672 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6673 { (eval echo configure:6674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6674 ac_err=`grep -v '^ *+' conftest.out`
6675 if test -z "$ac_err"; then
6677 ac_cv_header_stdc=yes
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 ac_cv_header_stdc=no
6687 if test $ac_cv_header_stdc = yes; then
6688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695 egrep "memchr" >/dev/null 2>&1; then
6699 ac_cv_header_stdc=no
6705 if test $ac_cv_header_stdc = yes; then
6706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 egrep "free" >/dev/null 2>&1; then
6717 ac_cv_header_stdc=no
6723 if test $ac_cv_header_stdc = yes; then
6724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725 if test "$cross_compiling" = yes; then
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6732 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6733 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6735 int main () { int i; for (i = 0; i < 256; i++)
6736 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6744 echo "configure: failed program was:" >&5
6745 cat conftest.$ac_ext >&5
6747 ac_cv_header_stdc=no
6755 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6756 if test $ac_cv_header_stdc = yes; then
6757 cat >> confdefs.h <<\EOF
6758 #define STDC_HEADERS 1
6764 if test $ac_cv_header_stdc != yes; then
6765 echo "configure: warning: could not Standard C compliant headers" 1>&2
6769 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6772 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6773 echo "configure:6774: checking for $ac_hdr that defines DIR" >&5
6774 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6780 #include <sys/types.h>
6786 if { (eval echo configure:6787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6788 eval "ac_cv_header_dirent_$ac_safe=yes"
6790 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 eval "ac_cv_header_dirent_$ac_safe=no"
6797 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6800 cat >> confdefs.h <<EOF
6801 #define $ac_tr_hdr 1
6803 ac_header_dirent=$ac_hdr; break
6805 echo "$ac_t""no" 1>&6
6808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6809 if test $ac_header_dirent = dirent.h; then
6810 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6811 echo "configure:6812: checking for opendir in -ldir" >&5
6812 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 ac_save_LIBS="$LIBS"
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6832 eval "ac_cv_lib_$ac_lib_var=yes"
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 eval "ac_cv_lib_$ac_lib_var=no"
6840 LIBS="$ac_save_LIBS"
6843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6844 echo "$ac_t""yes" 1>&6
6847 echo "$ac_t""no" 1>&6
6851 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6852 echo "configure:6853: checking for opendir in -lx" >&5
6853 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 ac_save_LIBS="$LIBS"
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6873 eval "ac_cv_lib_$ac_lib_var=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6878 eval "ac_cv_lib_$ac_lib_var=no"
6881 LIBS="$ac_save_LIBS"
6884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6888 echo "$ac_t""no" 1>&6
6893 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6894 echo "configure:6895: checking for sys/wait.h that is POSIX.1 compatible" >&5
6895 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 #include <sys/types.h>
6902 #include <sys/wait.h>
6904 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6907 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6915 if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6917 ac_cv_header_sys_wait_h=yes
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 ac_cv_header_sys_wait_h=no
6927 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6928 if test $ac_cv_header_sys_wait_h = yes; then
6929 cat >> confdefs.h <<\EOF
6930 #define HAVE_SYS_WAIT_H 1
6935 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6936 echo "configure:6937: checking POSIX termios" >&5
6937 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 #include <sys/types.h>
6945 #include <termios.h>
6947 /* SunOS 4.0.3 has termios.h but not the library calls. */
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6953 am_cv_sys_posix_termios=yes
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 am_cv_sys_posix_termios=no
6963 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6966 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6967 echo "configure:6968: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6968 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6973 gwinsz_in_termios_h=no
6974 if test $am_cv_sys_posix_termios = yes; then
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 #include <sys/types.h>
6979 # include <termios.h>
6985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6986 egrep "yes" >/dev/null 2>&1; then
6988 gwinsz_in_termios_h=yes
6994 if test $gwinsz_in_termios_h = no; then
6995 cat > conftest.$ac_ext <<EOF
6996 #line 6997 "configure"
6997 #include "confdefs.h"
6998 #include <sys/types.h>
6999 # include <sys/ioctl.h>
7005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 egrep "yes" >/dev/null 2>&1; then
7008 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7016 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7017 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7018 cat >> confdefs.h <<\EOF
7019 #define GWINSZ_IN_SYS_IOCTL 1
7024 if test $am_cv_sys_posix_termios = yes ; then
7025 cat >> confdefs.h <<\EOF
7026 #define HAVE_POSIX_TERMIOS 1
7064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7066 echo "configure:7067: checking for $ac_hdr" >&5
7067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7070 cat > conftest.$ac_ext <<EOF
7071 #line 7072 "configure"
7072 #include "confdefs.h"
7075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7076 { (eval echo configure:7077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7077 ac_err=`grep -v '^ *+' conftest.out`
7078 if test -z "$ac_err"; then
7080 eval "ac_cv_header_$ac_safe=yes"
7083 echo "configure: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 eval "ac_cv_header_$ac_safe=no"
7090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7091 echo "$ac_t""yes" 1>&6
7092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7093 cat >> confdefs.h <<EOF
7094 #define $ac_tr_hdr 1
7098 echo "$ac_t""no" 1>&6
7103 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7104 echo "configure:7105: checking for uid_t in sys/types.h" >&5
7105 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure"
7110 #include "confdefs.h"
7111 #include <sys/types.h>
7113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114 egrep "uid_t" >/dev/null 2>&1; then
7116 ac_cv_type_uid_t=yes
7125 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7126 if test $ac_cv_type_uid_t = no; then
7127 cat >> confdefs.h <<\EOF
7131 cat >> confdefs.h <<\EOF
7137 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7138 echo "configure:7139: checking type of array argument to getgroups" >&5
7139 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 if test "$cross_compiling" = yes; then
7143 ac_cv_type_getgroups=cross
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7149 /* Thanks to Mike Rendell for this test. */
7150 #include <sys/types.h>
7153 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7158 union { gid_t gval; long lval; } val;
7161 for (i = 0; i < NGID; i++)
7162 gidset[i] = val.gval;
7163 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7165 /* Exit non-zero if getgroups seems to require an array of ints. This
7166 happens when gid_t is short but getgroups modifies an array of ints. */
7167 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7173 ac_cv_type_getgroups=gid_t
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 ac_cv_type_getgroups=int
7183 if test $ac_cv_type_getgroups = cross; then
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7192 ac_cv_type_getgroups=gid_t
7195 ac_cv_type_getgroups=int
7202 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7203 cat >> confdefs.h <<EOF
7204 #define GETGROUPS_T $ac_cv_type_getgroups
7207 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7208 echo "configure:7209: checking for mode_t" >&5
7209 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 cat > conftest.$ac_ext <<EOF
7213 #line 7214 "configure"
7214 #include "confdefs.h"
7215 #include <sys/types.h>
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7224 ac_cv_type_mode_t=yes
7227 ac_cv_type_mode_t=no
7232 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7233 if test $ac_cv_type_mode_t = no; then
7234 cat >> confdefs.h <<\EOF
7240 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7241 echo "configure:7242: checking for off_t" >&5
7242 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 #include <sys/types.h>
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7257 ac_cv_type_off_t=yes
7265 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7266 if test $ac_cv_type_off_t = no; then
7267 cat >> confdefs.h <<\EOF
7273 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7274 echo "configure:7275: checking for pid_t" >&5
7275 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7276 echo $ac_n "(cached) $ac_c" 1>&6
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 #include <sys/types.h>
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7290 ac_cv_type_pid_t=yes
7298 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7299 if test $ac_cv_type_pid_t = no; then
7300 cat >> confdefs.h <<\EOF
7306 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7307 echo "configure:7308: checking for ptrdiff_t" >&5
7308 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7319 if { (eval echo configure:7320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7321 am_cv_type_ptrdiff_t=yes
7323 echo "configure: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7326 am_cv_type_ptrdiff_t=no
7331 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7332 if test $am_cv_type_ptrdiff_t = yes; then
7333 cat >> confdefs.h <<\EOF
7334 #define HAVE_PTRDIFF_T 1
7339 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7340 echo "configure:7341: checking return type of signal handlers" >&5
7341 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 #include <sys/types.h>
7353 extern "C" void (*signal (int, void (*)(int)))(int);
7355 void (*signal ()) ();
7362 if { (eval echo configure:7363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7364 ac_cv_type_signal=void
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 ac_cv_type_signal=int
7374 echo "$ac_t""$ac_cv_type_signal" 1>&6
7375 cat >> confdefs.h <<EOF
7376 #define RETSIGTYPE $ac_cv_type_signal
7380 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7381 echo "configure:7382: checking for size_t" >&5
7382 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7383 echo $ac_n "(cached) $ac_c" 1>&6
7385 cat > conftest.$ac_ext <<EOF
7386 #line 7387 "configure"
7387 #include "confdefs.h"
7388 #include <sys/types.h>
7394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7397 ac_cv_type_size_t=yes
7400 ac_cv_type_size_t=no
7405 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7406 if test $ac_cv_type_size_t = no; then
7407 cat >> confdefs.h <<\EOF
7408 #define size_t unsigned
7413 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7414 echo "configure:7415: checking for st_blksize in struct stat" >&5
7415 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 #include <sys/types.h>
7422 #include <sys/stat.h>
7424 struct stat s; s.st_blksize;
7427 if { (eval echo configure:7428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7429 ac_cv_struct_st_blksize=yes
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 ac_cv_struct_st_blksize=no
7439 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7440 if test $ac_cv_struct_st_blksize = yes; then
7441 cat >> confdefs.h <<\EOF
7442 #define HAVE_ST_BLKSIZE 1
7447 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7448 echo "configure:7449: checking whether time.h and sys/time.h may both be included" >&5
7449 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7450 echo $ac_n "(cached) $ac_c" 1>&6
7452 cat > conftest.$ac_ext <<EOF
7453 #line 7454 "configure"
7454 #include "confdefs.h"
7455 #include <sys/types.h>
7456 #include <sys/time.h>
7462 if { (eval echo configure:7463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7464 ac_cv_header_time=yes
7466 echo "configure: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 ac_cv_header_time=no
7474 echo "$ac_t""$ac_cv_header_time" 1>&6
7475 if test $ac_cv_header_time = yes; then
7476 cat >> confdefs.h <<\EOF
7477 #define TIME_WITH_SYS_TIME 1
7482 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7483 echo "configure:7484: checking whether struct tm is in sys/time.h or time.h" >&5
7484 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 #include <sys/types.h>
7493 struct tm *tp; tp->tm_sec;
7496 if { (eval echo configure:7497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7498 ac_cv_struct_tm=time.h
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 ac_cv_struct_tm=sys/time.h
7508 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7509 if test $ac_cv_struct_tm = sys/time.h; then
7510 cat >> confdefs.h <<\EOF
7511 #define TM_IN_SYS_TIME 1
7518 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7519 echo "configure:7520: checking if toupper() requires islower()" >&5
7520 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7524 if test "$cross_compiling" = yes; then
7525 ol_cv_c_upper_lower=safe
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7534 if ('C' == toupper('C'))
7540 if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7542 ol_cv_c_upper_lower=no
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7547 ol_cv_c_upper_lower=yes
7554 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7555 if test $ol_cv_c_upper_lower != no ; then
7556 cat >> confdefs.h <<\EOF
7557 #define C_UPPER_LOWER 1
7562 echo $ac_n "checking for working const""... $ac_c" 1>&6
7563 echo "configure:7564: checking for working const" >&5
7564 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7573 /* Ultrix mips cc rejects this. */
7574 typedef int charset[2]; const charset x;
7575 /* SunOS 4.1.1 cc rejects this. */
7576 char const *const *ccp;
7578 /* NEC SVR4.0.2 mips cc rejects this. */
7579 struct point {int x, y;};
7580 static struct point const zero = {0,0};
7581 /* AIX XL C 1.02.0.0 rejects this.
7582 It does not let you subtract one const X* pointer from another in an arm
7583 of an if-expression whose if-part is not a constant expression */
7584 const char *g = "string";
7585 ccp = &g + (g ? g-g : 0);
7586 /* HPUX 7.0 cc rejects these. */
7589 ccp = (char const *const *) p;
7590 { /* SCO 3.2v4 cc rejects this. */
7592 char const *s = 0 ? (char *) 0 : (char const *) 0;
7596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7598 const int *foo = &x[0];
7601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7602 typedef const int *iptr;
7606 { /* AIX XL C 1.02.0.0 rejects this saying
7607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7608 struct s { int j; const int *ap[3]; };
7609 struct s *b; b->j = 5;
7611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7617 if { (eval echo configure:7618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7621 echo "configure: failed program was:" >&5
7622 cat conftest.$ac_ext >&5
7629 echo "$ac_t""$ac_cv_c_const" 1>&6
7630 if test $ac_cv_c_const = no; then
7631 cat >> confdefs.h <<\EOF
7638 if test $cross_compiling = yes ; then
7639 cat >> confdefs.h <<\EOF
7640 #define CROSS_COMPILING 1
7644 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7645 echo "configure:7646: checking whether byte ordering is bigendian" >&5
7646 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7649 ac_cv_c_bigendian=unknown
7650 # See if sys/param.h defines the BYTE_ORDER macro.
7651 cat > conftest.$ac_ext <<EOF
7652 #line 7653 "configure"
7653 #include "confdefs.h"
7654 #include <sys/types.h>
7655 #include <sys/param.h>
7658 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7663 if { (eval echo configure:7664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7665 # It does; now see whether it defined to BIG_ENDIAN or not.
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7669 #include <sys/types.h>
7670 #include <sys/param.h>
7673 #if BYTE_ORDER != BIG_ENDIAN
7678 if { (eval echo configure:7679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7680 ac_cv_c_bigendian=yes
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7685 ac_cv_c_bigendian=no
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7693 if test $ac_cv_c_bigendian = unknown; then
7694 if test "$cross_compiling" = yes; then
7695 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7701 /* Are we little or big endian? From Harbison&Steele. */
7705 char c[sizeof (long)];
7708 exit (u.c[sizeof (long) - 1] == 1);
7711 if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7713 ac_cv_c_bigendian=no
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7718 ac_cv_c_bigendian=yes
7726 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7727 if test $ac_cv_c_bigendian = yes; then
7728 cat >> confdefs.h <<\EOF
7729 #define WORDS_BIGENDIAN 1
7734 echo $ac_n "checking size of short""... $ac_c" 1>&6
7735 echo "configure:7736: checking size of short" >&5
7736 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7739 if test "$cross_compiling" = yes; then
7740 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7748 FILE *f=fopen("conftestval", "w");
7750 fprintf(f, "%d\n", sizeof(short));
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7756 ac_cv_sizeof_short=`cat conftestval`
7758 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5
7761 ac_cv_sizeof_short=0
7767 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7768 cat >> confdefs.h <<EOF
7769 #define SIZEOF_SHORT $ac_cv_sizeof_short
7773 echo $ac_n "checking size of int""... $ac_c" 1>&6
7774 echo "configure:7775: checking size of int" >&5
7775 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 if test "$cross_compiling" = yes; then
7779 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7787 FILE *f=fopen("conftestval", "w");
7789 fprintf(f, "%d\n", sizeof(int));
7793 if { (eval echo configure:7794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7795 ac_cv_sizeof_int=`cat conftestval`
7797 echo "configure: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7806 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7807 cat >> confdefs.h <<EOF
7808 #define SIZEOF_INT $ac_cv_sizeof_int
7812 echo $ac_n "checking size of long""... $ac_c" 1>&6
7813 echo "configure:7814: checking size of long" >&5
7814 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7817 if test "$cross_compiling" = yes; then
7818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7820 cat > conftest.$ac_ext <<EOF
7821 #line 7822 "configure"
7822 #include "confdefs.h"
7826 FILE *f=fopen("conftestval", "w");
7828 fprintf(f, "%d\n", sizeof(long));
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7834 ac_cv_sizeof_long=`cat conftestval`
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7845 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7846 cat >> confdefs.h <<EOF
7847 #define SIZEOF_LONG $ac_cv_sizeof_long
7853 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7854 echo "configure:7855: checking for 8-bit clean memcmp" >&5
7855 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7858 if test "$cross_compiling" = yes; then
7859 ac_cv_func_memcmp_clean=no
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7867 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7868 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7874 ac_cv_func_memcmp_clean=yes
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 ac_cv_func_memcmp_clean=no
7886 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7887 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7889 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7890 echo "configure:7891: checking for strftime" >&5
7891 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7894 cat > conftest.$ac_ext <<EOF
7895 #line 7896 "configure"
7896 #include "confdefs.h"
7897 /* System header to define __stub macros and hopefully few prototypes,
7898 which can conflict with char strftime(); below. */
7900 /* Override any gcc2 internal prototype to avoid an error. */
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7907 /* The GNU C library defines this for functions which it implements
7908 to always fail with ENOSYS. Some functions are actually named
7909 something starting with __ and the normal name is an alias. */
7910 #if defined (__stub_strftime) || defined (__stub___strftime)
7918 if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7920 eval "ac_cv_func_strftime=yes"
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7925 eval "ac_cv_func_strftime=no"
7930 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7931 echo "$ac_t""yes" 1>&6
7932 cat >> confdefs.h <<\EOF
7933 #define HAVE_STRFTIME 1
7937 echo "$ac_t""no" 1>&6
7938 # strftime is in -lintl on SCO UNIX.
7939 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7940 echo "configure:7941: checking for strftime in -lintl" >&5
7941 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7945 ac_save_LIBS="$LIBS"
7947 cat > conftest.$ac_ext <<EOF
7948 #line 7949 "configure"
7949 #include "confdefs.h"
7950 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7959 if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7961 eval "ac_cv_lib_$ac_lib_var=yes"
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 eval "ac_cv_lib_$ac_lib_var=no"
7969 LIBS="$ac_save_LIBS"
7972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7973 echo "$ac_t""yes" 1>&6
7974 cat >> confdefs.h <<\EOF
7975 #define HAVE_STRFTIME 1
7980 echo "$ac_t""no" 1>&6
7985 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7986 echo "configure:7987: checking for vprintf" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char vprintf(); below. */
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8016 eval "ac_cv_func_vprintf=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 eval "ac_cv_func_vprintf=no"
8026 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 cat >> confdefs.h <<\EOF
8029 #define HAVE_VPRINTF 1
8033 echo "$ac_t""no" 1>&6
8036 if test "$ac_cv_func_vprintf" != yes; then
8037 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8038 echo "configure:8039: checking for _doprnt" >&5
8039 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8045 /* System header to define __stub macros and hopefully few prototypes,
8046 which can conflict with char _doprnt(); below. */
8048 /* Override any gcc2 internal prototype to avoid an error. */
8049 /* We use char because int might match the return type of a gcc2
8050 builtin and then its argument prototype would still apply. */
8055 /* The GNU C library defines this for functions which it implements
8056 to always fail with ENOSYS. Some functions are actually named
8057 something starting with __ and the normal name is an alias. */
8058 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8068 eval "ac_cv_func__doprnt=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_func__doprnt=no"
8078 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8079 echo "$ac_t""yes" 1>&6
8080 cat >> confdefs.h <<\EOF
8081 #define HAVE_DOPRNT 1
8085 echo "$ac_t""no" 1>&6
8091 if test $ac_cv_func_vprintf = yes ; then
8092 for ac_func in vsnprintf vsprintf
8094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_func" >&5
8096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* System header to define __stub macros and hopefully few prototypes,
8103 which can conflict with char $ac_func(); below. */
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8112 /* The GNU C library defines this for functions which it implements
8113 to always fail with ENOSYS. Some functions are actually named
8114 something starting with __ and the normal name is an alias. */
8115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8125 eval "ac_cv_func_$ac_func=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_func_$ac_func=no"
8135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8138 cat >> confdefs.h <<EOF
8139 #define $ac_tr_func 1
8143 echo "$ac_t""no" 1>&6
8179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8180 echo "configure:8181: checking for $ac_func" >&5
8181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure"
8186 #include "confdefs.h"
8187 /* System header to define __stub macros and hopefully few prototypes,
8188 which can conflict with char $ac_func(); below. */
8190 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8197 /* The GNU C library defines this for functions which it implements
8198 to always fail with ENOSYS. Some functions are actually named
8199 something starting with __ and the normal name is an alias. */
8200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8210 eval "ac_cv_func_$ac_func=yes"
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 eval "ac_cv_func_$ac_func=no"
8220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8223 cat >> confdefs.h <<EOF
8224 #define $ac_tr_func 1
8228 echo "$ac_t""no" 1>&6
8233 for ac_func in getopt strdup tempnam
8235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8236 echo "configure:8237: checking for $ac_func" >&5
8237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8240 cat > conftest.$ac_ext <<EOF
8241 #line 8242 "configure"
8242 #include "confdefs.h"
8243 /* System header to define __stub macros and hopefully few prototypes,
8244 which can conflict with char $ac_func(); below. */
8246 /* Override any gcc2 internal prototype to avoid an error. */
8247 /* We use char because int might match the return type of a gcc2
8248 builtin and then its argument prototype would still apply. */
8253 /* The GNU C library defines this for functions which it implements
8254 to always fail with ENOSYS. Some functions are actually named
8255 something starting with __ and the normal name is an alias. */
8256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8266 eval "ac_cv_func_$ac_func=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_func_$ac_func=no"
8276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8277 echo "$ac_t""yes" 1>&6
8278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8279 cat >> confdefs.h <<EOF
8280 #define $ac_tr_func 1
8284 echo "$ac_t""no" 1>&6
8285 LIBOBJS="$LIBOBJS ${ac_func}.o"
8291 # Check Configuration
8293 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8294 echo "configure:8295: checking declaration of sys_errlist" >&5
8295 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8304 #include <sys/types.h>
8307 char *c = (char *) *sys_errlist
8310 if { (eval echo configure:8311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8312 ol_cv_dcl_sys_errlist=yes
8314 echo "configure: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8317 ol_cv_dcl_sys_errlist=no
8322 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8324 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8325 if test $ol_cv_dcl_sys_errlist = no ; then
8326 cat >> confdefs.h <<\EOF
8327 #define DECL_SYS_ERRLIST 1
8330 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8331 echo "configure:8332: checking existence of sys_errlist" >&5
8332 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8341 char *c = (char *) *sys_errlist
8344 if { (eval echo configure:8345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8346 ol_cv_have_sys_errlist=yes
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8351 ol_cv_have_sys_errlist=no
8356 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8361 if test "$ol_enable_debug" != no ; then
8362 cat >> confdefs.h <<\EOF
8363 #define LDAP_DEBUG 1
8367 if test "$ol_enable_libui" = yes ; then
8368 cat >> confdefs.h <<\EOF
8369 #define LDAP_LIBUI 1
8373 if test "$ol_enable_cache" = no ; then
8374 cat >> confdefs.h <<\EOF
8375 #define LDAP_NOCACHE 1
8379 if test "$ol_enable_dns" != no ; then
8380 cat >> confdefs.h <<\EOF
8385 if test "$ol_enable_proctitle" != no ; then
8386 cat >> confdefs.h <<\EOF
8387 #define LDAP_PROCTITLE 1
8391 if test "$ol_enable_referrals" != no ; then
8392 cat >> confdefs.h <<\EOF
8393 #define LDAP_REFERRALS 1
8397 if test "$ol_enable_cldap" != no ; then
8398 cat >> confdefs.h <<\EOF
8399 #define LDAP_CONNECTIONLESS 1
8404 if test "$ol_enable_aclgroups" != no ; then
8405 cat >> confdefs.h <<\EOF
8406 #define SLAPD_ACLGROUPS 1
8410 if test "$ol_enable_crypt" != no ; then
8411 cat >> confdefs.h <<\EOF
8412 #define SLAPD_CRYPT 1
8416 if test "$ol_enable_cleartext" != no ; then
8417 cat >> confdefs.h <<\EOF
8418 #define SLAPD_CLEARTEXT 1
8422 if test "$ol_enable_phonetic" != no ; then
8423 cat >> confdefs.h <<\EOF
8424 #define SLAPD_PHONETIC 1
8428 if test "$ol_enable_rlookups" != no ; then
8429 cat >> confdefs.h <<\EOF
8430 #define SLAPD_RLOOKUPS 1
8435 if test "$ol_link_ldbm" != no ; then
8436 cat >> confdefs.h <<\EOF
8437 #define SLAPD_LDBM 1
8444 if test "$ol_enable_passwd" != no ; then
8445 cat >> confdefs.h <<\EOF
8446 #define SLAPD_PASSWD 1
8453 if test "$ol_enable_shell" != no ; then
8454 cat >> confdefs.h <<\EOF
8455 #define SLAPD_SHELL 1
8462 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8463 $BUILD_SLAPD = yes ; then
8467 if test "$ol_link_isode" != no ; then
8492 cat > confcache <<\EOF
8493 # This file is a shell script that caches the results of configure
8494 # tests run on this system so they can be shared between configure
8495 # scripts and configure runs. It is not useful on other systems.
8496 # If it contains results you don't want to keep, you may remove or edit it.
8498 # By default, configure uses ./config.cache as the cache file,
8499 # creating it if it does not exist already. You can give configure
8500 # the --cache-file=FILE option to use a different cache file; that is
8501 # what configure does when it calls configure scripts in
8502 # subdirectories, so they share the cache.
8503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8504 # config.status only pays attention to the cache file if you give it the
8505 # --recheck option to rerun configure.
8508 # The following way of writing the cache mishandles newlines in values,
8509 # but we know of no workaround that is simple, portable, and efficient.
8510 # So, don't put newlines in cache variables' values.
8511 # Ultrix sh set writes to stderr and can't be redirected directly,
8512 # and sets the high bit in the cache file unless we assign to the vars.
8514 case `(ac_space=' '; set) 2>&1` in
8516 # `set' does not quote correctly, so add quotes (double-quote substitution
8517 # turns \\\\ into \\, and sed turns \\ into \).
8519 -e "s/'/'\\\\''/g" \
8520 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8523 # `set' quotes correctly as required by POSIX, so do not add quotes.
8524 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8527 if cmp -s $cache_file confcache; then
8530 if test -w $cache_file; then
8531 echo "updating cache $cache_file"
8532 cat confcache > $cache_file
8534 echo "not updating unwritable cache $cache_file"
8539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8542 # Let make expand exec_prefix.
8543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8545 # Any assignment to VPATH causes Sun make to only execute
8546 # the first set of double-colon rules, so remove it if not needed.
8547 # If there is a colon in the path, we need to keep it.
8548 if test "x$srcdir" = x.; then
8549 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8554 DEFS=-DHAVE_CONFIG_H
8556 # Without the "./", some shells look in PATH for config.status.
8557 : ${CONFIG_STATUS=./config.status}
8559 echo creating $CONFIG_STATUS
8560 rm -f $CONFIG_STATUS
8561 cat > $CONFIG_STATUS <<EOF
8563 # Generated automatically by configure.
8564 # Run this file to recreate the current configuration.
8565 # This directory was configured as follows,
8566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8568 # $0 $ac_configure_args
8570 # Compiler output produced by configure, useful for debugging
8571 # configure, is in ./config.log if it exists.
8573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8576 case "\$ac_option" in
8577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8578 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8579 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8580 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8581 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8583 -help | --help | --hel | --he | --h)
8584 echo "\$ac_cs_usage"; exit 0 ;;
8585 *) echo "\$ac_cs_usage"; exit 1 ;;
8589 ac_given_srcdir=$srcdir
8590 ac_given_INSTALL="$INSTALL"
8592 trap 'rm -fr `echo "\
8593 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8594 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8595 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8596 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8597 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8598 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8599 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8600 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8601 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8602 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8603 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8604 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8605 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8606 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8607 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8608 include/Makefile:build/top.mk:include/Makefile.in \
8609 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8610 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8611 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8612 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8613 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8614 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8615 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8616 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8617 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8618 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8619 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8620 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8621 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8622 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8623 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8624 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8625 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8626 tests/Makefile:build/top.mk:tests/Makefile.in \
8627 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8629 cat >> $CONFIG_STATUS <<EOF
8631 # Protect against being on the right side of a sed subst in config.status.
8632 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8633 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8636 s%@CFLAGS@%$CFLAGS%g
8637 s%@CPPFLAGS@%$CPPFLAGS%g
8638 s%@CXXFLAGS@%$CXXFLAGS%g
8640 s%@LDFLAGS@%$LDFLAGS%g
8642 s%@exec_prefix@%$exec_prefix%g
8643 s%@prefix@%$prefix%g
8644 s%@program_transform_name@%$program_transform_name%g
8645 s%@bindir@%$bindir%g
8646 s%@sbindir@%$sbindir%g
8647 s%@libexecdir@%$libexecdir%g
8648 s%@datadir@%$datadir%g
8649 s%@sysconfdir@%$sysconfdir%g
8650 s%@sharedstatedir@%$sharedstatedir%g
8651 s%@localstatedir@%$localstatedir%g
8652 s%@libdir@%$libdir%g
8653 s%@includedir@%$includedir%g
8654 s%@oldincludedir@%$oldincludedir%g
8655 s%@infodir@%$infodir%g
8656 s%@mandir@%$mandir%g
8657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8658 s%@INSTALL_DATA@%$INSTALL_DATA%g
8659 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8660 s%@PACKAGE@%$PACKAGE%g
8661 s%@VERSION@%$VERSION%g
8662 s%@ACLOCAL@%$ACLOCAL%g
8663 s%@AUTOCONF@%$AUTOCONF%g
8664 s%@AUTOMAKE@%$AUTOMAKE%g
8665 s%@AUTOHEADER@%$AUTOHEADER%g
8666 s%@MAKEINFO@%$MAKEINFO%g
8667 s%@SET_MAKE@%$SET_MAKE%g
8668 s%@top_builddir@%$top_builddir%g
8669 s%@ldap_subdir@%$ldap_subdir%g
8671 s%@host_alias@%$host_alias%g
8672 s%@host_cpu@%$host_cpu%g
8673 s%@host_vendor@%$host_vendor%g
8674 s%@host_os@%$host_os%g
8675 s%@RANLIB@%$RANLIB%g
8680 s%@LIBTOOL@%$LIBTOOL%g
8681 s%@SENDMAIL@%$SENDMAIL%g
8682 s%@EDITOR@%$EDITOR%g
8683 s%@FINGER@%$FINGER%g
8686 s%@LIBOBJS@%$LIBOBJS%g
8687 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8688 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8689 s%@BUILD_LDBM@%$BUILD_LDBM%g
8690 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8691 s%@BUILD_SHELL@%$BUILD_SHELL%g
8692 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8693 s%@LDAP_LIBS@%$LDAP_LIBS%g
8694 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8695 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8696 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8697 s%@LDBM_LIBS@%$LDBM_LIBS%g
8698 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8699 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8700 s%@KRB_LIBS@%$KRB_LIBS%g
8701 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8706 cat >> $CONFIG_STATUS <<\EOF
8708 # Split the substitutions into bite-sized pieces for seds with
8709 # small command number limits, like on Digital OSF/1 and HP-UX.
8710 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8711 ac_file=1 # Number of current file.
8712 ac_beg=1 # First line for current file.
8713 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8716 while $ac_more_lines; do
8717 if test $ac_beg -gt 1; then
8718 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8720 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8722 if test ! -s conftest.s$ac_file; then
8724 rm -f conftest.s$ac_file
8726 if test -z "$ac_sed_cmds"; then
8727 ac_sed_cmds="sed -f conftest.s$ac_file"
8729 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8731 ac_file=`expr $ac_file + 1`
8733 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8736 if test -z "$ac_sed_cmds"; then
8741 cat >> $CONFIG_STATUS <<EOF
8743 CONFIG_FILES=\${CONFIG_FILES-"\
8744 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8745 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8746 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8747 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8748 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8749 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8750 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8751 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8752 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8753 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8754 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8755 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8756 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8757 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8758 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8759 include/Makefile:build/top.mk:include/Makefile.in \
8760 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8761 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8762 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8763 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8764 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8765 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8766 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8767 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8768 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8769 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8770 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8771 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8772 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8773 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8774 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8775 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8776 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8777 tests/Makefile:build/top.mk:tests/Makefile.in \
8780 cat >> $CONFIG_STATUS <<\EOF
8781 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8784 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8785 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8786 *) ac_file_in="${ac_file}.in" ;;
8789 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8791 # Remove last slash and all that follows it. Not all systems have dirname.
8792 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8793 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8794 # The file is in a subdirectory.
8795 test ! -d "$ac_dir" && mkdir "$ac_dir"
8796 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8797 # A "../" for each directory in $ac_dir_suffix.
8798 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8800 ac_dir_suffix= ac_dots=
8803 case "$ac_given_srcdir" in
8805 if test -z "$ac_dots"; then top_srcdir=.
8806 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8807 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8809 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8810 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8813 case "$ac_given_INSTALL" in
8814 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8815 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8818 echo creating "$ac_file"
8820 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8822 *Makefile*) ac_comsub="1i\\
8823 # $configure_input" ;;
8827 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8829 s%@configure_input@%$configure_input%g
8830 s%@srcdir@%$srcdir%g
8831 s%@top_srcdir@%$top_srcdir%g
8832 s%@INSTALL@%$INSTALL%g
8833 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8837 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8838 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8840 # ac_d sets the value in "#define NAME VALUE" lines.
8841 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8842 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8845 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8846 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8847 ac_uB='\([ ]\)%\1#\2define\3'
8850 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8851 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8852 ac_eB='$%\1#\2define\3'
8856 if test "${CONFIG_HEADERS+set}" != set; then
8858 cat >> $CONFIG_STATUS <<EOF
8859 CONFIG_HEADERS="include/portable.h"
8861 cat >> $CONFIG_STATUS <<\EOF
8863 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8866 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8867 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8868 *) ac_file_in="${ac_file}.in" ;;
8871 echo creating $ac_file
8873 rm -f conftest.frag conftest.in conftest.out
8874 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8875 cat $ac_file_inputs > conftest.in
8879 # Transform confdefs.h into a sed script conftest.vals that substitutes
8880 # the proper values into config.h.in to produce config.h. And first:
8881 # Protect against being on the right side of a sed subst in config.status.
8882 # Protect against being in an unquoted here document in config.status.
8884 cat > conftest.hdr <<\EOF
8887 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8891 sed -n -f conftest.hdr confdefs.h > conftest.vals
8894 # This sed command replaces #undef with comments. This is necessary, for
8895 # example, in the case of _POSIX_SOURCE, which is predefined and required
8896 # on some systems where configure will not decide to define it.
8897 cat >> conftest.vals <<\EOF
8898 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8901 # Break up conftest.vals because some shells have a limit on
8902 # the size of here documents, and old seds have small limits too.
8907 ac_lines=`grep -c . conftest.vals`
8908 # grep -c gives empty output for an empty file on some AIX systems.
8909 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8910 # Write a limited-size here document to conftest.frag.
8911 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8912 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8914 sed -f conftest.frag conftest.in > conftest.out
8916 mv conftest.out conftest.in
8918 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8920 mv conftest.tail conftest.vals
8924 cat >> $CONFIG_STATUS <<\EOF
8925 rm -f conftest.frag conftest.h
8926 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8927 cat conftest.in >> conftest.h
8929 if cmp -s $ac_file conftest.h 2>/dev/null; then
8930 echo "$ac_file is unchanged"
8933 # Remove last slash and all that follows it. Not all systems have dirname.
8934 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8936 # The file is in a subdirectory.
8937 test ! -d "$ac_dir" && mkdir "$ac_dir"
8940 mv conftest.h $ac_file
8945 cat >> $CONFIG_STATUS <<EOF
8948 cat >> $CONFIG_STATUS <<\EOF
8951 echo Please \"make depend\" to build dependencies
8955 chmod +x $CONFIG_STATUS
8956 rm -fr confdefs* $ac_clean_files
8957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1