3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (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 with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-modules enable dynamic module support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-wrappers enable tcp wrapper support (no)"
66 --enable-bdb2 enable bdb2 backend (no)"
68 --with-bdb2-module module type (static)"
70 --enable-ldap enable ldap backend (no)"
72 --with-ldap-module module type (static)"
74 --enable-ldbm enable ldbm backend (yes)"
76 --with-ldbm-module module type (static)"
78 --with-ldbm-api use LDBM API (auto)"
80 --with-ldbm-type use LDBM type (auto)"
82 --enable-passwd enable passwd backend (no)"
84 --with-passwd-module module type (static)"
86 --enable-perl enable perl backend (no)"
88 --with-perl-module module type (static)"
90 --enable-shell enable shell backend (no)"
92 --with-shell-module module type (static)"
94 --enable-tcl enable tcl backend (no)"
96 --with-tcl-module module type (static)"
100 --enable-slurpd enable building slurpd (auto)"
102 Library Generation & Linking Options"
104 --enable-static[=PKGS] build static libraries [default=yes]"
106 --enable-shared[=PKGS] build shared libraries [default=yes]"
108 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
112 --disable-libtool-lock avoid locking (might break parallel builds)"
114 # Initialize some variables set by options.
115 # The variables have the same names as the options, with
116 # dashes changed to underlines.
118 cache_file=./config.cache
127 program_transform_name=s,x,x,
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Initialize some other variables.
151 SHELL=${CONFIG_SHELL-/bin/sh}
152 # Maximum number of lines to put in a shell here document.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
167 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
171 # Accept the important Cygnus configure options, so we can diagnose typos.
175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
178 bindir="$ac_optarg" ;;
180 -build | --build | --buil | --bui | --bu)
182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
183 build="$ac_optarg" ;;
185 -cache-file | --cache-file | --cache-fil | --cache-fi \
186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
187 ac_prev=cache_file ;;
188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
190 cache_file="$ac_optarg" ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir="$ac_optarg" ;;
198 -disable-* | --disable-*)
199 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}=no" ;;
207 -enable-* | --enable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
218 eval "enable_${ac_feature}='$ac_optarg'" ;;
220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222 | --exec | --exe | --ex)
223 ac_prev=exec_prefix ;;
224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226 | --exec=* | --exe=* | --ex=*)
227 exec_prefix="$ac_optarg" ;;
229 -gas | --gas | --ga | --g)
230 # Obsolete; use --with-gas.
233 -help | --help | --hel | --he)
234 # Omit some internal or obsolete options to make the list less imposing.
235 # This message is too long to be a string in the A/UX 3.1 sh.
237 Usage: configure [options] [host]
238 Options: [defaults in brackets after descriptions]
240 --cache-file=FILE cache test results in FILE
241 --help print this message
242 --no-create do not create output files
243 --quiet, --silent do not print \`checking...' messages
244 --version print the version of autoconf that created configure
245 Directory and file names:
246 --prefix=PREFIX install architecture-independent files in PREFIX
248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
250 --bindir=DIR user executables in DIR [EPREFIX/bin]
251 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
252 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
253 --datadir=DIR read-only architecture-independent data in DIR
255 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
256 --sharedstatedir=DIR modifiable architecture-independent data in DIR
258 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
259 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
260 --includedir=DIR C header files in DIR [PREFIX/include]
261 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
262 --infodir=DIR info documentation in DIR [PREFIX/info]
263 --mandir=DIR man documentation in DIR [PREFIX/man]
264 --srcdir=DIR find the sources in DIR [configure dir or ..]
265 --program-prefix=PREFIX prepend PREFIX to installed program names
266 --program-suffix=SUFFIX append SUFFIX to installed program names
267 --program-transform-name=PROGRAM
268 run sed PROGRAM on installed program names
272 --build=BUILD configure for building on BUILD [BUILD=HOST]
273 --host=HOST configure for HOST [guessed]
274 --target=TARGET configure for TARGET [TARGET=HOST]
275 Features and packages:
276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
280 --x-includes=DIR X include files are in DIR
281 --x-libraries=DIR X library files are in DIR
283 if test -n "$ac_help"; then
284 echo "--enable and --with options recognized:$ac_help"
288 -host | --host | --hos | --ho)
290 -host=* | --host=* | --hos=* | --ho=*)
293 -includedir | --includedir | --includedi | --included | --include \
294 | --includ | --inclu | --incl | --inc)
295 ac_prev=includedir ;;
296 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
297 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 includedir="$ac_optarg" ;;
300 -infodir | --infodir | --infodi | --infod | --info | --inf)
302 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 infodir="$ac_optarg" ;;
305 -libdir | --libdir | --libdi | --libd)
307 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 libdir="$ac_optarg" ;;
310 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
311 | --libexe | --libex | --libe)
312 ac_prev=libexecdir ;;
313 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
314 | --libexe=* | --libex=* | --libe=*)
315 libexecdir="$ac_optarg" ;;
317 -localstatedir | --localstatedir | --localstatedi | --localstated \
318 | --localstate | --localstat | --localsta | --localst \
319 | --locals | --local | --loca | --loc | --lo)
320 ac_prev=localstatedir ;;
321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
322 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
323 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 localstatedir="$ac_optarg" ;;
326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
329 mandir="$ac_optarg" ;;
332 # Obsolete; use --without-fp.
335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
345 | --oldin | --oldi | --old | --ol | --o)
346 ac_prev=oldincludedir ;;
347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
350 oldincludedir="$ac_optarg" ;;
352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
355 prefix="$ac_optarg" ;;
357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
358 | --program-pre | --program-pr | --program-p)
359 ac_prev=program_prefix ;;
360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
362 program_prefix="$ac_optarg" ;;
364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
365 | --program-suf | --program-su | --program-s)
366 ac_prev=program_suffix ;;
367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
369 program_suffix="$ac_optarg" ;;
371 -program-transform-name | --program-transform-name \
372 | --program-transform-nam | --program-transform-na \
373 | --program-transform-n | --program-transform- \
374 | --program-transform | --program-transfor \
375 | --program-transfo | --program-transf \
376 | --program-trans | --program-tran \
377 | --progr-tra | --program-tr | --program-t)
378 ac_prev=program_transform_name ;;
379 -program-transform-name=* | --program-transform-name=* \
380 | --program-transform-nam=* | --program-transform-na=* \
381 | --program-transform-n=* | --program-transform-=* \
382 | --program-transform=* | --program-transfor=* \
383 | --program-transfo=* | --program-transf=* \
384 | --program-trans=* | --program-tran=* \
385 | --progr-tra=* | --program-tr=* | --program-t=*)
386 program_transform_name="$ac_optarg" ;;
388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
389 | -silent | --silent | --silen | --sile | --sil)
392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
396 sbindir="$ac_optarg" ;;
398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
400 | --sharedst | --shareds | --shared | --share | --shar \
402 ac_prev=sharedstatedir ;;
403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
407 sharedstatedir="$ac_optarg" ;;
409 -site | --site | --sit)
411 -site=* | --site=* | --sit=*)
414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
417 srcdir="$ac_optarg" ;;
419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
420 | --syscon | --sysco | --sysc | --sys | --sy)
421 ac_prev=sysconfdir ;;
422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
424 sysconfdir="$ac_optarg" ;;
426 -target | --target | --targe | --targ | --tar | --ta | --t)
428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
429 target="$ac_optarg" ;;
431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
434 -version | --version | --versio | --versi | --vers)
435 echo "configure generated by autoconf version 2.13.1"
439 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}='$ac_optarg'" ;;
451 -without-* | --without-*)
452 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
457 ac_package=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}=no" ;;
461 # Obsolete; use --with-x.
464 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
465 | --x-incl | --x-inc | --x-in | --x-i)
466 ac_prev=x_includes ;;
467 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
468 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
469 x_includes="$ac_optarg" ;;
471 -x-libraries | --x-libraries | --x-librarie | --x-librari \
472 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
473 ac_prev=x_libraries ;;
474 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
475 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
476 x_libraries="$ac_optarg" ;;
478 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
483 echo "configure: warning: $ac_option: invalid host type" 1>&2
485 if test "x$nonopt" != xNONE; then
486 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
494 if test -n "$ac_prev"; then
495 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
500 # File descriptor usage:
503 # 2 errors and warnings
504 # 3 some systems may open it to /dev/tty
505 # 4 used on the Kubota Titan
506 # 6 checking for... messages and results
507 # 5 compiler messages saved in config.log
508 if test "$silent" = yes; then
516 This file contains any messages produced by compilers while
517 running configure, to aid debugging if configure makes a mistake.
520 # Strip out --no-create and --no-recursion so they do not pile up.
521 # Also quote any args containing shell metacharacters.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 | --no-cr | --no-c) ;;
528 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
529 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
531 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
532 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
537 # Only set these to C if already set. These must not be set unconditionally
538 # because not all systems understand e.g. LANG=C (notably SCO).
539 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
540 # Non-C LC_CTYPE values break the ctype check.
541 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
542 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
543 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
544 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
547 rm -rf conftest* confdefs.h
548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
551 # A filename unique to this package, relative to the directory that
552 # configure is in, which we can look for to find out if srcdir is correct.
553 ac_unique_file=build/version
555 # Find the source files, if location was not specified.
556 if test -z "$srcdir"; then
557 ac_srcdir_defaulted=yes
558 # Try the directory containing this script, then its parent.
560 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
561 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
563 if test ! -r $srcdir/$ac_unique_file; then
567 ac_srcdir_defaulted=no
569 if test ! -r $srcdir/$ac_unique_file; then
570 if test "$ac_srcdir_defaulted" = yes; then
571 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
573 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
576 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
578 # Prefer explicitly selected file to automatically selected ones.
579 if test -z "$CONFIG_SITE"; then
580 if test "x$prefix" != xNONE; then
581 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
583 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
586 for ac_site_file in $CONFIG_SITE; do
587 if test -r "$ac_site_file"; then
588 echo "loading site script $ac_site_file"
595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
596 ac_cpp='$CPP $CPPFLAGS'
597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
599 cross_compiling=$ac_cv_prog_cc_cross
603 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
604 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
605 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
612 ac_n= ac_c='\c' ac_t=
616 for ac_dir in build $srcdir/build; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
630 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
631 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
632 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
634 OL_VERSION=`cat $ac_aux_dir/version`
635 if test -z "$OL_VERSION"; then
636 { echo "configure: error: could not determine version" 1>&2; exit 1; }
640 echo $ac_n "checking host system type""... $ac_c" 1>&6
641 echo "configure:642: checking host system type" >&5
642 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
644 # Make sure we can run config.sub.
645 if $ac_config_sub sun4 >/dev/null 2>&1; then :
646 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649 ac_cv_host_alias=$host
650 case "$ac_cv_host_alias" in
654 if ac_cv_host_alias=`$ac_config_guess`; then :
655 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
657 *) ac_cv_host_alias=$nonopt ;;
661 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
662 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo $ac_n "(cached) $ac_c" 1>&6
669 echo "$ac_t""$ac_cv_host" 1>&6
672 host_alias=$ac_cv_host_alias
673 host_cpu=$ac_cv_host_cpu
674 host_vendor=$ac_cv_host_vendor
675 host_os=$ac_cv_host_os
681 echo $ac_n "checking target system type""... $ac_c" 1>&6
682 echo "configure:683: checking target system type" >&5
683 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
685 # Make sure we can run config.sub.
686 if $ac_config_sub sun4 >/dev/null 2>&1; then :
687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
690 ac_cv_target_alias=$target
691 case "$ac_cv_target_alias" in
695 ac_cv_target_alias=$host_alias ;;
697 *) ac_cv_target_alias=$nonopt ;;
701 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
702 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
703 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
704 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo $ac_n "(cached) $ac_c" 1>&6
709 echo "$ac_t""$ac_cv_target" 1>&6
712 target_alias=$ac_cv_target_alias
713 target_cpu=$ac_cv_target_cpu
714 target_vendor=$ac_cv_target_vendor
715 target_os=$ac_cv_target_os
721 echo $ac_n "checking build system type""... $ac_c" 1>&6
722 echo "configure:723: checking build system type" >&5
723 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
725 # Make sure we can run config.sub.
726 if $ac_config_sub sun4 >/dev/null 2>&1; then :
727 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 ac_cv_build_alias=$build
731 case "$ac_cv_build_alias" in
735 ac_cv_build_alias=$host_alias ;;
737 *) ac_cv_build_alias=$nonopt ;;
741 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
742 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
743 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
744 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo $ac_n "(cached) $ac_c" 1>&6
749 echo "$ac_t""$ac_cv_build" 1>&6
752 build_alias=$ac_cv_build_alias
753 build_cpu=$ac_cv_build_cpu
754 build_vendor=$ac_cv_build_vendor
755 build_os=$ac_cv_build_os
761 # Do some error checking and defaulting for the host and target type.
763 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
766 # 1. You are not allowed to specify --host, --target, and nonopt at the
768 # 2. Host defaults to nonopt.
769 # 3. If nonopt is not specified, then host defaults to the current host,
770 # as determined by config.guess.
771 # 4. Target and build default to nonopt.
772 # 5. If nonopt is not specified, then target and build default to host.
774 # The aliases save the names the user supplied, while $host etc.
775 # will get canonicalized.
776 case $host---$target---$nonopt in
777 NONE---*---* | *---NONE---* | *---*---NONE) ;;
778 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
781 test "$host_alias" != "$target_alias" &&
782 test "$program_prefix$program_suffix$program_transform_name" = \
784 program_prefix=${target_alias}-
787 # Find a good install program. We prefer a C program (faster),
788 # so one script is as good as another. But avoid the broken or
789 # incompatible versions:
790 # SysV /etc/install, /usr/sbin/install
791 # SunOS /usr/etc/install
794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
797 # ./install, which can be erroneously created by make from ./install.sh.
798 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
799 echo "configure:800: checking for a BSD compatible install" >&5
800 if test -z "$INSTALL"; then
801 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
805 for ac_dir in $PATH; do
806 # Account for people who put trailing slashes in PATH elements.
808 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
810 # OSF1 and SCO ODT 3.0 have their own names for install.
811 # Don't use installbsd from OSF since it installs stuff as root
813 for ac_prog in ginstall scoinst install; do
814 if test -f $ac_dir/$ac_prog; then
815 if test $ac_prog = install &&
816 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
817 # AIX install. It has an incompatible calling convention.
819 elif test $ac_prog = install &&
820 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
821 # program-specific install script used by HP pwplus--don't use.
824 ac_cv_path_install="$ac_dir/$ac_prog -c"
835 if test "${ac_cv_path_install+set}" = set; then
836 INSTALL="$ac_cv_path_install"
838 # As a last resort, use the slow shell script. We don't cache a
839 # path for INSTALL within a source directory, because that will
840 # break other packages using the cache if that directory is
841 # removed, or if the path is relative.
842 INSTALL="$ac_install_sh"
845 echo "$ac_t""$INSTALL" 1>&6
847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
848 # It thinks the first close brace ends the variable substitution.
849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
855 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
856 echo "configure:857: checking whether build environment is sane" >&5
859 echo timestamp > conftestfile
860 # Do `set' in a subshell so we don't clobber the current shell's
861 # arguments. Must try -L first in case configure is actually a
862 # symlink; some systems play weird games with the mod time of symlinks
863 # (eg FreeBSD returns the mod time of the symlink's containing
866 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
867 if test "$*" = "X"; then
869 set X `ls -t $srcdir/configure conftestfile`
871 if test "$*" != "X $srcdir/configure conftestfile" \
872 && test "$*" != "X conftestfile $srcdir/configure"; then
874 # If neither matched, then we have a broken ls. This can happen
875 # if, for instance, CONFIG_SHELL is bash and it inherits a
876 # broken ls alias from the environment. This has actually
877 # happened. Such a system could not be considered "sane".
878 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
879 alias in your environment" 1>&2; exit 1; }
882 test "$2" = conftestfile
888 { echo "configure: error: newly created file is older than distributed files!
889 Check your system clock" 1>&2; exit 1; }
892 echo "$ac_t""yes" 1>&6
893 if test "$program_transform_name" = s,x,x,; then
894 program_transform_name=
896 # Double any \ or $. echo might interpret backslashes.
897 cat <<\EOF_SED > conftestsed
898 s,\\,\\\\,g; s,\$,$$,g
900 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
903 test "$program_prefix" != NONE &&
904 program_transform_name="s,^,${program_prefix},;$program_transform_name"
905 # Use a double $ so make ignores it.
906 test "$program_suffix" != NONE &&
907 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
909 # sed with no file args requires a program.
910 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
912 for ac_prog in mawk gawk nawk awk
914 # Extract the first word of "$ac_prog", so it can be a program name with args.
915 set dummy $ac_prog; ac_word=$2
916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" >&5
918 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 if test -n "$AWK"; then
922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
926 for ac_dir in $ac_dummy; do
927 test -z "$ac_dir" && ac_dir=.
928 if test -f $ac_dir/$ac_word; then
929 ac_cv_prog_AWK="$ac_prog"
936 AWK="$ac_cv_prog_AWK"
937 if test -n "$AWK"; then
938 echo "$ac_t""$AWK" 1>&6
940 echo "$ac_t""no" 1>&6
943 test -n "$AWK" && break
946 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
947 echo "configure:948: checking whether ${MAKE-make} sets \${MAKE}" >&5
948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 cat > conftestmake <<\EOF
954 @echo 'ac_maketemp="${MAKE}"'
956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
957 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
958 if test -n "$ac_maketemp"; then
959 eval ac_cv_prog_make_${ac_make}_set=yes
961 eval ac_cv_prog_make_${ac_make}_set=no
965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
966 echo "$ac_t""yes" 1>&6
969 echo "$ac_t""no" 1>&6
970 SET_MAKE="MAKE=${MAKE-make}"
979 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
980 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
985 missing_dir=`cd $ac_aux_dir && pwd`
986 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
987 echo "configure:988: checking for working aclocal" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
993 echo "$ac_t""found" 1>&6
995 ACLOCAL="$missing_dir/missing aclocal"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working autoconf" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 AUTOCONF="$missing_dir/missing autoconf"
1009 echo "$ac_t""missing" 1>&6
1012 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working automake" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (automake --version) < /dev/null > /dev/null 2>&1; then
1019 echo "$ac_t""found" 1>&6
1021 AUTOMAKE="$missing_dir/missing automake"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working autoheader" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1031 AUTOHEADER=autoheader
1032 echo "$ac_t""found" 1>&6
1034 AUTOHEADER="$missing_dir/missing autoheader"
1035 echo "$ac_t""missing" 1>&6
1038 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1039 echo "configure:1040: checking for working makeinfo" >&5
1040 # Run test in a subshell; some versions of sh will print an error if
1041 # an executable is not found, even if stderr is redirected.
1042 # Redirect stdin to placate older versions of autoconf. Sigh.
1043 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1045 echo "$ac_t""found" 1>&6
1047 MAKEINFO="$missing_dir/missing makeinfo"
1048 echo "$ac_t""missing" 1>&6
1051 install_sh="$missing_dir/install-sh"
1052 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1054 for ac_prog in gnutar gtar tar
1056 # Extract the first word of "$ac_prog", so it can be a program name with args.
1057 set dummy $ac_prog; ac_word=$2
1058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1059 echo "configure:1060: checking for $ac_word" >&5
1060 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 if test -n "$AMTAR"; then
1064 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1068 for ac_dir in $ac_dummy; do
1069 test -z "$ac_dir" && ac_dir=.
1070 if test -f $ac_dir/$ac_word; then
1071 ac_cv_prog_AMTAR="$ac_prog"
1078 AMTAR="$ac_cv_prog_AMTAR"
1079 if test -n "$AMTAR"; then
1080 echo "$ac_t""$AMTAR" 1>&6
1082 echo "$ac_t""no" 1>&6
1085 test -n "$AMTAR" && break
1090 if test -n "$AMTAR"; then
1091 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1098 cat >> confdefs.h <<EOF
1099 #define OPENLDAP_PACKAGE "$PACKAGE"
1102 cat >> confdefs.h <<EOF
1103 #define OPENLDAP_VERSION "$VERSION"
1109 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1110 echo "configure:1111: checking configure arguments" >&5
1115 ldap_subdir="openldap"
1117 # Check whether --with-subdir or --without-subdir was given.
1118 if test "${with_subdir+set}" = set; then
1119 withval="$with_subdir"
1121 if test "$withval" = "no"; then
1123 elif test "$withval" != "yes"; then
1124 ldap_subdir="$withval"
1130 # OpenLDAP --enable-debug
1131 # Check whether --enable-debug or --disable-debug was given.
1132 if test "${enable_debug+set}" = set; then
1133 enableval="$enable_debug"
1136 for ol_val in auto yes no ; do
1137 if test "$enableval" = "$ol_val" ; then
1141 if test "$ol_arg" = "invalid" ; then
1142 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1144 ol_enable_debug="$ol_arg"
1147 ol_enable_debug="yes"
1149 # end --enable-debug
1150 # OpenLDAP --enable-syslog
1151 # Check whether --enable-syslog or --disable-syslog was given.
1152 if test "${enable_syslog+set}" = set; then
1153 enableval="$enable_syslog"
1156 for ol_val in auto yes no ; do
1157 if test "$enableval" = "$ol_val" ; then
1161 if test "$ol_arg" = "invalid" ; then
1162 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1164 ol_enable_syslog="$ol_arg"
1167 ol_enable_syslog="auto"
1169 # end --enable-syslog
1170 # OpenLDAP --enable-proctitle
1171 # Check whether --enable-proctitle or --disable-proctitle was given.
1172 if test "${enable_proctitle+set}" = set; then
1173 enableval="$enable_proctitle"
1176 for ol_val in auto yes no ; do
1177 if test "$enableval" = "$ol_val" ; then
1181 if test "$ol_arg" = "invalid" ; then
1182 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1184 ol_enable_proctitle="$ol_arg"
1187 ol_enable_proctitle="yes"
1189 # end --enable-proctitle
1190 # OpenLDAP --enable-cache
1191 # Check whether --enable-cache or --disable-cache was given.
1192 if test "${enable_cache+set}" = set; then
1193 enableval="$enable_cache"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1204 ol_enable_cache="$ol_arg"
1207 ol_enable_cache="yes"
1209 # end --enable-cache
1210 # OpenLDAP --enable-dns
1211 # Check whether --enable-dns or --disable-dns was given.
1212 if test "${enable_dns+set}" = set; then
1213 enableval="$enable_dns"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1224 ol_enable_dns="$ol_arg"
1230 # OpenLDAP --enable-referrals
1231 # Check whether --enable-referrals or --disable-referrals was given.
1232 if test "${enable_referrals+set}" = set; then
1233 enableval="$enable_referrals"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1244 ol_enable_referrals="$ol_arg"
1247 ol_enable_referrals="yes"
1249 # end --enable-referrals
1250 # OpenLDAP --enable-cldap
1251 # Check whether --enable-cldap or --disable-cldap was given.
1252 if test "${enable_cldap+set}" = set; then
1253 enableval="$enable_cldap"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1264 ol_enable_cldap="$ol_arg"
1267 ol_enable_cldap="no"
1269 # end --enable-cldap
1270 # OpenLDAP --enable-x_compile
1271 # Check whether --enable-x_compile or --disable-x_compile was given.
1272 if test "${enable_x_compile+set}" = set; then
1273 enableval="$enable_x_compile"
1276 for ol_val in yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1284 ol_enable_x_compile="$ol_arg"
1287 ol_enable_x_compile="no"
1289 # end --enable-x_compile
1291 # OpenLDAP --enable-dmalloc
1292 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1293 if test "${enable_dmalloc+set}" = set; then
1294 enableval="$enable_dmalloc"
1297 for ol_val in auto yes no ; do
1298 if test "$enableval" = "$ol_val" ; then
1302 if test "$ol_arg" = "invalid" ; then
1303 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1305 ol_enable_dmalloc="$ol_arg"
1308 ol_enable_dmalloc="no"
1310 # end --enable-dmalloc
1312 # OpenLDAP --with-kerberos
1313 # Check whether --with-kerberos or --without-kerberos was given.
1314 if test "${with_kerberos+set}" = set; then
1315 withval="$with_kerberos"
1318 for ol_val in auto k5 k4 afs yes no ; do
1319 if test "$withval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1326 ol_with_kerberos="$ol_arg"
1329 ol_with_kerberos="auto"
1331 # end --with-kerberos
1333 # OpenLDAP --with-readline
1334 # Check whether --with-readline or --without-readline was given.
1335 if test "${with_readline+set}" = set; then
1336 withval="$with_readline"
1339 for ol_val in auto yes no ; do
1340 if test "$withval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1347 ol_with_readline="$ol_arg"
1350 ol_with_readline="auto"
1352 # end --with-readline
1354 # OpenLDAP --with-threads
1355 # Check whether --with-threads or --without-threads was given.
1356 if test "${with_threads+set}" = set; then
1357 withval="$with_threads"
1360 for ol_val in auto posix mach lwp yes no manual ; do
1361 if test "$withval" = "$ol_val" ; then
1365 if test "$ol_arg" = "invalid" ; then
1366 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1368 ol_with_threads="$ol_arg"
1371 ol_with_threads="auto"
1373 # end --with-threads
1375 # OpenLDAP --with-tls
1376 # Check whether --with-tls or --without-tls was given.
1377 if test "${with_tls+set}" = set; then
1381 for ol_val in auto ssleay openssl yes no ; do
1382 if test "$withval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1389 ol_with_tls="$ol_arg"
1396 # OpenLDAP --with-yielding_select
1397 # Check whether --with-yielding_select or --without-yielding_select was given.
1398 if test "${with_yielding_select+set}" = set; then
1399 withval="$with_yielding_select"
1402 for ol_val in auto yes no manual ; do
1403 if test "$withval" = "$ol_val" ; then
1407 if test "$ol_arg" = "invalid" ; then
1408 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1410 ol_with_yielding_select="$ol_arg"
1413 ol_with_yielding_select="auto"
1415 # end --with-yielding_select
1419 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1420 if test "${with_xxldapdoptions+set}" = set; then
1421 withval="$with_xxldapdoptions"
1425 # OpenLDAP --enable-ldapd
1426 # Check whether --enable-ldapd or --disable-ldapd was given.
1427 if test "${enable_ldapd+set}" = set; then
1428 enableval="$enable_ldapd"
1431 for ol_val in auto yes no ; do
1432 if test "$enableval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1439 ol_enable_ldapd="$ol_arg"
1442 ol_enable_ldapd="no"
1444 # end --enable-ldapd
1446 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1447 if test "${with_xxslapdoptions+set}" = set; then
1448 withval="$with_xxslapdoptions"
1452 # OpenLDAP --enable-slapd
1453 # Check whether --enable-slapd or --disable-slapd was given.
1454 if test "${enable_slapd+set}" = set; then
1455 enableval="$enable_slapd"
1458 for ol_val in auto yes no ; do
1459 if test "$enableval" = "$ol_val" ; then
1463 if test "$ol_arg" = "invalid" ; then
1464 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1466 ol_enable_slapd="$ol_arg"
1469 ol_enable_slapd="yes"
1471 # end --enable-slapd
1472 # OpenLDAP --enable-cleartext
1473 # Check whether --enable-cleartext or --disable-cleartext was given.
1474 if test "${enable_cleartext+set}" = set; then
1475 enableval="$enable_cleartext"
1478 for ol_val in auto yes no ; do
1479 if test "$enableval" = "$ol_val" ; then
1483 if test "$ol_arg" = "invalid" ; then
1484 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1486 ol_enable_cleartext="$ol_arg"
1489 ol_enable_cleartext="yes"
1491 # end --enable-cleartext
1492 # OpenLDAP --enable-crypt
1493 # Check whether --enable-crypt or --disable-crypt was given.
1494 if test "${enable_crypt+set}" = set; then
1495 enableval="$enable_crypt"
1498 for ol_val in auto yes no ; do
1499 if test "$enableval" = "$ol_val" ; then
1503 if test "$ol_arg" = "invalid" ; then
1504 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1506 ol_enable_crypt="$ol_arg"
1509 ol_enable_crypt="auto"
1511 # end --enable-crypt
1512 # OpenLDAP --enable-modules
1513 # Check whether --enable-modules or --disable-modules was given.
1514 if test "${enable_modules+set}" = set; then
1515 enableval="$enable_modules"
1518 for ol_val in auto yes no ; do
1519 if test "$enableval" = "$ol_val" ; then
1523 if test "$ol_arg" = "invalid" ; then
1524 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1526 ol_enable_modules="$ol_arg"
1529 ol_enable_modules="no"
1531 # end --enable-modules
1532 # OpenLDAP --enable-phonetic
1533 # Check whether --enable-phonetic or --disable-phonetic was given.
1534 if test "${enable_phonetic+set}" = set; then
1535 enableval="$enable_phonetic"
1538 for ol_val in auto yes no ; do
1539 if test "$enableval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1546 ol_enable_phonetic="$ol_arg"
1549 ol_enable_phonetic="no"
1551 # end --enable-phonetic
1552 # OpenLDAP --enable-rlookups
1553 # Check whether --enable-rlookups or --disable-rlookups was given.
1554 if test "${enable_rlookups+set}" = set; then
1555 enableval="$enable_rlookups"
1558 for ol_val in auto yes no ; do
1559 if test "$enableval" = "$ol_val" ; then
1563 if test "$ol_arg" = "invalid" ; then
1564 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1566 ol_enable_rlookups="$ol_arg"
1569 ol_enable_rlookups="auto"
1571 # end --enable-rlookups
1572 # OpenLDAP --enable-wrappers
1573 # Check whether --enable-wrappers or --disable-wrappers was given.
1574 if test "${enable_wrappers+set}" = set; then
1575 enableval="$enable_wrappers"
1578 for ol_val in auto yes no ; do
1579 if test "$enableval" = "$ol_val" ; then
1583 if test "$ol_arg" = "invalid" ; then
1584 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1586 ol_enable_wrappers="$ol_arg"
1589 ol_enable_wrappers="no"
1591 # end --enable-wrappers
1593 # OpenLDAP --enable-bdb2
1594 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1595 if test "${enable_bdb2+set}" = set; then
1596 enableval="$enable_bdb2"
1599 for ol_val in auto yes no ; do
1600 if test "$enableval" = "$ol_val" ; then
1604 if test "$ol_arg" = "invalid" ; then
1605 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1607 ol_enable_bdb2="$ol_arg"
1613 # OpenLDAP --with-bdb2_module
1614 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1615 if test "${with_bdb2_module+set}" = set; then
1616 withval="$with_bdb2_module"
1619 for ol_val in static dynamic ; do
1620 if test "$withval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1627 ol_with_bdb2_module="$ol_arg"
1630 ol_with_bdb2_module="static"
1632 # end --with-bdb2_module
1634 # OpenLDAP --enable-ldap
1635 # Check whether --enable-ldap or --disable-ldap was given.
1636 if test "${enable_ldap+set}" = set; then
1637 enableval="$enable_ldap"
1640 for ol_val in auto yes no ; do
1641 if test "$enableval" = "$ol_val" ; then
1645 if test "$ol_arg" = "invalid" ; then
1646 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1648 ol_enable_ldap="$ol_arg"
1654 # OpenLDAP --with-ldap_module
1655 # Check whether --with-ldap_module or --without-ldap_module was given.
1656 if test "${with_ldap_module+set}" = set; then
1657 withval="$with_ldap_module"
1660 for ol_val in static dynamic ; do
1661 if test "$withval" = "$ol_val" ; then
1665 if test "$ol_arg" = "invalid" ; then
1666 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1668 ol_with_ldap_module="$ol_arg"
1671 ol_with_ldap_module="static"
1673 # end --with-ldap_module
1675 # OpenLDAP --enable-ldbm
1676 # Check whether --enable-ldbm or --disable-ldbm was given.
1677 if test "${enable_ldbm+set}" = set; then
1678 enableval="$enable_ldbm"
1681 for ol_val in auto yes no ; do
1682 if test "$enableval" = "$ol_val" ; then
1686 if test "$ol_arg" = "invalid" ; then
1687 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1689 ol_enable_ldbm="$ol_arg"
1692 ol_enable_ldbm="yes"
1695 # OpenLDAP --with-ldbm_module
1696 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1697 if test "${with_ldbm_module+set}" = set; then
1698 withval="$with_ldbm_module"
1701 for ol_val in static dynamic ; do
1702 if test "$withval" = "$ol_val" ; then
1706 if test "$ol_arg" = "invalid" ; then
1707 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1709 ol_with_ldbm_module="$ol_arg"
1712 ol_with_ldbm_module="static"
1714 # end --with-ldbm_module
1716 # OpenLDAP --with-ldbm_api
1717 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1718 if test "${with_ldbm_api+set}" = set; then
1719 withval="$with_ldbm_api"
1722 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1723 if test "$withval" = "$ol_val" ; then
1727 if test "$ol_arg" = "invalid" ; then
1728 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1730 ol_with_ldbm_api="$ol_arg"
1733 ol_with_ldbm_api="auto"
1735 # end --with-ldbm_api
1737 # OpenLDAP --with-ldbm_type
1738 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1739 if test "${with_ldbm_type+set}" = set; then
1740 withval="$with_ldbm_type"
1743 for ol_val in auto btree hash ; do
1744 if test "$withval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1751 ol_with_ldbm_type="$ol_arg"
1754 ol_with_ldbm_type="auto"
1756 # end --with-ldbm_type
1759 # OpenLDAP --enable-passwd
1760 # Check whether --enable-passwd or --disable-passwd was given.
1761 if test "${enable_passwd+set}" = set; then
1762 enableval="$enable_passwd"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1773 ol_enable_passwd="$ol_arg"
1776 ol_enable_passwd="no"
1778 # end --enable-passwd
1779 # OpenLDAP --with-passwd_module
1780 # Check whether --with-passwd_module or --without-passwd_module was given.
1781 if test "${with_passwd_module+set}" = set; then
1782 withval="$with_passwd_module"
1785 for ol_val in static dynamic ; do
1786 if test "$withval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1793 ol_with_passwd_module="$ol_arg"
1796 ol_with_passwd_module="static"
1798 # end --with-passwd_module
1800 # OpenLDAP --enable-perl
1801 # Check whether --enable-perl or --disable-perl was given.
1802 if test "${enable_perl+set}" = set; then
1803 enableval="$enable_perl"
1806 for ol_val in auto yes no ; do
1807 if test "$enableval" = "$ol_val" ; then
1811 if test "$ol_arg" = "invalid" ; then
1812 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1814 ol_enable_perl="$ol_arg"
1820 # OpenLDAP --with-perl_module
1821 # Check whether --with-perl_module or --without-perl_module was given.
1822 if test "${with_perl_module+set}" = set; then
1823 withval="$with_perl_module"
1826 for ol_val in static dynamic ; do
1827 if test "$withval" = "$ol_val" ; then
1831 if test "$ol_arg" = "invalid" ; then
1832 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1834 ol_with_perl_module="$ol_arg"
1837 ol_with_perl_module="static"
1839 # end --with-perl_module
1841 # OpenLDAP --enable-shell
1842 # Check whether --enable-shell or --disable-shell was given.
1843 if test "${enable_shell+set}" = set; then
1844 enableval="$enable_shell"
1847 for ol_val in auto yes no ; do
1848 if test "$enableval" = "$ol_val" ; then
1852 if test "$ol_arg" = "invalid" ; then
1853 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1855 ol_enable_shell="$ol_arg"
1858 ol_enable_shell="no"
1860 # end --enable-shell
1861 # OpenLDAP --with-shell_module
1862 # Check whether --with-shell_module or --without-shell_module was given.
1863 if test "${with_shell_module+set}" = set; then
1864 withval="$with_shell_module"
1867 for ol_val in static dynamic ; do
1868 if test "$withval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1875 ol_with_shell_module="$ol_arg"
1878 ol_with_shell_module="static"
1880 # end --with-shell_module
1882 # OpenLDAP --enable-tcl
1883 # Check whether --enable-tcl or --disable-tcl was given.
1884 if test "${enable_tcl+set}" = set; then
1885 enableval="$enable_tcl"
1888 for ol_val in auto yes no ; do
1889 if test "$enableval" = "$ol_val" ; then
1893 if test "$ol_arg" = "invalid" ; then
1894 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1896 ol_enable_tcl="$ol_arg"
1902 # OpenLDAP --with-tcl_module
1903 # Check whether --with-tcl_module or --without-tcl_module was given.
1904 if test "${with_tcl_module+set}" = set; then
1905 withval="$with_tcl_module"
1908 for ol_val in static dynamic ; do
1909 if test "$withval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1916 ol_with_tcl_module="$ol_arg"
1919 ol_with_tcl_module="static"
1921 # end --with-tcl_module
1924 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1925 if test "${with_xxslurpdoptions+set}" = set; then
1926 withval="$with_xxslurpdoptions"
1930 # OpenLDAP --enable-slurpd
1931 # Check whether --enable-slurpd or --disable-slurpd was given.
1932 if test "${enable_slurpd+set}" = set; then
1933 enableval="$enable_slurpd"
1936 for ol_val in auto yes no ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1944 ol_enable_slurpd="$ol_arg"
1947 ol_enable_slurpd="auto"
1949 # end --enable-slurpd
1951 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1952 if test "${with_xxliboptions+set}" = set; then
1953 withval="$with_xxliboptions"
1957 # Check whether --enable-static or --disable-static was given.
1958 if test "${enable_static+set}" = set; then
1959 enableval="$enable_static"
1960 p=${PACKAGE-default}
1961 case "$enableval" in
1962 yes) enable_static=yes ;;
1963 no) enable_static=no ;;
1966 # Look at the argument we got. We use all the common list separators.
1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1968 for pkg in $enableval; do
1969 if test "X$pkg" = "X$p"; then
1980 # Check whether --enable-shared or --disable-shared was given.
1981 if test "${enable_shared+set}" = set; then
1982 enableval="$enable_shared"
1983 p=${PACKAGE-default}
1984 case "$enableval" in
1985 yes) enable_shared=yes ;;
1986 no) enable_shared=no ;;
1989 # Look at the argument we got. We use all the common list separators.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1991 for pkg in $enableval; do
1992 if test "X$pkg" = "X$p"; then
2005 if test $ol_enable_dns = yes ; then
2006 if test $ol_enable_referrals = no ; then
2007 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2009 if test $ol_enable_referrals = auto ; then
2010 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2011 ol_enable_referrals=yes
2015 if test $ol_enable_slapd = no ; then
2016 if test $ol_enable_bdb2 = yes ; then
2017 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2019 if test $ol_enable_ldap = yes ; then
2020 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2022 if test $ol_enable_ldbm = yes ; then
2023 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2025 if test $ol_enable_passwd = yes ; then
2026 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2028 if test $ol_enable_perl = yes ; then
2029 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2031 if test $ol_enable_shell = yes ; then
2032 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2034 if test $ol_enable_tcl = yes ; then
2035 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2037 if test $ol_enable_modules = yes ; then
2038 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2040 if test $ol_enable_wrappers = yes ; then
2041 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2043 if test $ol_enable_phonetic = yes ; then
2044 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2046 if test $ol_enable_rlookups = yes ; then
2047 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2049 if test $ol_with_ldbm_api != auto ; then
2050 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2052 if test $ol_with_ldbm_type != auto ; then
2053 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2055 if test $ol_with_bdb2_module != static ; then
2056 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2058 if test $ol_with_ldap_module != static ; then
2059 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2061 if test $ol_with_ldbm_module != static ; then
2062 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2064 if test $ol_with_passwd_module != static ; then
2065 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2067 if test $ol_with_perl_module != static ; then
2068 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2070 if test $ol_with_shell_module != static ; then
2071 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2073 if test $ol_with_tcl_module != static ; then
2074 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2076 if test $ol_enable_slurpd = yes ; then
2077 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2080 # force settings to no
2089 ol_enable_modules=no
2090 ol_enable_phonetic=no
2091 ol_enable_rlookups=no
2092 ol_enable_wrappers=no
2095 ol_with_ldbm_type=no
2097 ol_with_bdb2_module=static
2098 ol_with_ldap_module=static
2099 ol_with_ldbm_module=static
2100 ol_with_passwd_module=static
2101 ol_with_perl_module=static
2102 ol_with_shell_module=static
2103 ol_with_tcl_module=static
2107 elif test $ol_enable_ldbm = no ; then
2109 if test $ol_with_ldbm_api != auto ; then
2110 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2113 if test $ol_with_ldbm_type != auto ; then
2114 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2117 if test $ol_with_ldbm_module != static ; then
2118 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2121 if test $ol_enable_bdb2 = yes ; then
2122 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2125 if test $ol_enable_modules != yes -a \
2126 $ol_enable_ldap = no -a \
2127 $ol_enable_passwd = no -a \
2128 $ol_enable_perl = no -a \
2129 $ol_enable_shell = no -a \
2130 $ol_enable_tcl = no ; then
2131 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2135 ol_with_ldbm_type=no
2136 ol_with_ldbm_module=static
2138 elif test $ol_enable_bdb2 = yes ; then
2140 if test $ol_with_ldbm_api != auto -a \
2141 $ol_with_ldbm_api != db2 ; then
2142 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2145 ol_with_ldbm_api=db2
2149 if test $ol_enable_bdb2 != no ; then
2150 if test $ol_with_ldbm_api != auto -a \
2151 $ol_with_ldbm_api != db2 ; then
2152 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2157 if test $ol_with_ldbm_api = gdbm -a \
2158 $ol_with_ldbm_type = btree ; then
2159 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2161 if test $ol_with_ldbm_api = mdbm -a \
2162 $ol_with_ldbm_type = btree ; then
2163 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2165 if test $ol_with_ldbm_api = ndbm -a \
2166 $ol_with_ldbm_type = btree ; then
2167 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2171 if test $ol_enable_slurpd = yes ; then
2172 if test $ol_with_threads = no ; then
2173 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2177 echo "$ac_t""done" 1>&6
2202 BUILD_BDB2_DYNAMIC=no
2203 BUILD_LDAP_DYNAMIC=no
2204 BUILD_LDBM_DYNAMIC=no
2205 BUILD_PASSWD_DYNAMIC=no
2206 BUILD_PERL_DYNAMIC=no
2207 BUILD_SHELL_DYNAMIC=no
2208 BUILD_TCL_DYNAMIC=no
2210 SLAPD_MODULES_LDFLAGS=
2211 SLAPD_MODULES_CPPFLAGS=
2214 SLAPD_PERL_CPPFLAGS=
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_MKVERSION 1
2233 *-*-aix*) if test -z "$CC" ; then
2234 case "$ol_with_threads" in
2235 auto | yes | posix) ol_aix_threads=yes ;;
2241 if test $ol_aix_threads = yes ; then
2242 if test -z "${CC}" ; then
2243 for ac_prog in cc_r xlc_r cc
2245 # Extract the first word of "$ac_prog", so it can be a program name with args.
2246 set dummy $ac_prog; ac_word=$2
2247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_word" >&5
2249 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 if test -n "$CC"; then
2253 ac_cv_prog_CC="$CC" # Let the user override the test.
2255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2257 for ac_dir in $ac_dummy; do
2258 test -z "$ac_dir" && ac_dir=.
2259 if test -f $ac_dir/$ac_word; then
2260 ac_cv_prog_CC="$ac_prog"
2268 if test -n "$CC"; then
2269 echo "$ac_t""$CC" 1>&6
2271 echo "$ac_t""no" 1>&6
2274 test -n "$CC" && break
2278 if test "$CC" = cc ; then
2279 if test $ol_with_threads != auto ; then
2280 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2282 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2288 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2289 ol_with_threads=posix
2290 ol_cv_pthread_create=yes
2294 if test -z "${CC}"; then
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2309 for ac_dir in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir=.
2311 if test -f $ac_dir/$ac_word; then
2312 ac_cv_prog_CC="$ac_prog"
2320 if test -n "$CC"; then
2321 echo "$ac_t""$CC" 1>&6
2323 echo "$ac_t""no" 1>&6
2326 test -n "$CC" && break
2332 # Check whether --enable-fast-install or --disable-fast-install was given.
2333 if test "${enable_fast_install+set}" = set; then
2334 enableval="$enable_fast_install"
2335 p=${PACKAGE-default}
2336 case "$enableval" in
2337 yes) enable_fast_install=yes ;;
2338 no) enable_fast_install=no ;;
2340 enable_fast_install=no
2341 # Look at the argument we got. We use all the common list separators.
2342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2343 for pkg in $enableval; do
2344 if test "X$pkg" = "X$p"; then
2345 enable_fast_install=yes
2352 enable_fast_install=yes
2355 # Extract the first word of "ranlib", so it can be a program name with args.
2356 set dummy ranlib; ac_word=$2
2357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2358 echo "configure:2359: checking for $ac_word" >&5
2359 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 if test -n "$RANLIB"; then
2363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367 for ac_dir in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir=.
2369 if test -f $ac_dir/$ac_word; then
2370 ac_cv_prog_RANLIB="ranlib"
2375 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2378 RANLIB="$ac_cv_prog_RANLIB"
2379 if test -n "$RANLIB"; then
2380 echo "$ac_t""$RANLIB" 1>&6
2382 echo "$ac_t""no" 1>&6
2385 # Extract the first word of "gcc", so it can be a program name with args.
2386 set dummy gcc; ac_word=$2
2387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_word" >&5
2389 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2397 for ac_dir in $ac_dummy; do
2398 test -z "$ac_dir" && ac_dir=.
2399 if test -f $ac_dir/$ac_word; then
2408 if test -n "$CC"; then
2409 echo "$ac_t""$CC" 1>&6
2411 echo "$ac_t""no" 1>&6
2414 if test -z "$CC"; then
2415 # Extract the first word of "cc", so it can be a program name with args.
2416 set dummy cc; ac_word=$2
2417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_word" >&5
2419 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2428 for ac_dir in $ac_dummy; do
2429 test -z "$ac_dir" && ac_dir=.
2430 if test -f $ac_dir/$ac_word; then
2431 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2432 ac_prog_rejected=yes
2440 if test $ac_prog_rejected = yes; then
2441 # We found a bogon in the path, so make sure we never use it.
2442 set dummy $ac_cv_prog_CC
2444 if test $# -gt 0; then
2445 # We chose a different compiler from the bogus one.
2446 # However, it has the same basename, so the bogon will be chosen
2447 # first if we set CC to just the basename; use the full file name.
2449 set dummy "$ac_dir/$ac_word" "$@"
2457 if test -n "$CC"; then
2458 echo "$ac_t""$CC" 1>&6
2460 echo "$ac_t""no" 1>&6
2463 if test -z "$CC"; then
2464 case "`uname -s`" in
2465 *win32* | *WIN32* | *CYGWIN*)
2466 # Extract the first word of "cl", so it can be a program name with args.
2467 set dummy cl; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2489 if test -n "$CC"; then
2490 echo "$ac_t""$CC" 1>&6
2492 echo "$ac_t""no" 1>&6
2497 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2500 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cc_cross
2510 cat > conftest.$ac_ext << EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2517 if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2518 ac_cv_prog_cc_works=yes
2519 # If we can't run a trivial program, we are probably using a cross compiler.
2520 if (./conftest; exit) 2>/dev/null; then
2521 ac_cv_prog_cc_cross=no
2523 ac_cv_prog_cc_cross=yes
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2528 ac_cv_prog_cc_works=no
2532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cc_cross
2538 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2539 if test $ac_cv_prog_cc_works = no; then
2540 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2542 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2544 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2545 cross_compiling=$ac_cv_prog_cc_cross
2547 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2548 echo "configure:2549: checking whether we are using GNU C" >&5
2549 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.c <<EOF
2557 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2564 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2566 if test $ac_cv_prog_gcc = yes; then
2572 ac_test_CFLAGS="${CFLAGS+set}"
2573 ac_save_CFLAGS="$CFLAGS"
2575 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2576 echo "configure:2577: checking whether ${CC-cc} accepts -g" >&5
2577 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 echo 'void f(){}' > conftest.c
2581 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2590 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2591 if test "$ac_test_CFLAGS" = set; then
2592 CFLAGS="$ac_save_CFLAGS"
2593 elif test $ac_cv_prog_cc_g = yes; then
2594 if test "$GCC" = yes; then
2600 if test "$GCC" = yes; then
2607 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2608 if test "${with_gnu_ld+set}" = set; then
2609 withval="$with_gnu_ld"
2610 test "$withval" = no || with_gnu_ld=yes
2616 if test "$ac_cv_prog_gcc" = yes; then
2617 # Check if gcc -print-prog-name=ld gives a path.
2618 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2619 echo "configure:2620: checking for ld used by GCC" >&5
2620 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2622 # Accept absolute paths.
2623 [\\/]* | [A-Za-z]:[\\/]*)
2624 re_direlt='/[^/][^/]*/\.\./'
2625 # Canonicalize the path of ld
2626 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2627 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2628 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2630 test -z "$LD" && LD="$ac_prog"
2633 # If it fails, then pretend we aren't using GCC.
2637 # If it is relative, then search for the first ld in PATH.
2641 elif test "$with_gnu_ld" = yes; then
2642 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2643 echo "configure:2644: checking for GNU ld" >&5
2645 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2646 echo "configure:2647: checking for non-GNU ld" >&5
2648 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 if test -z "$LD"; then
2652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2653 for ac_dir in $PATH; do
2654 test -z "$ac_dir" && ac_dir=.
2655 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2656 ac_cv_path_LD="$ac_dir/$ac_prog"
2657 # Check to see if the program is GNU ld. I'd rather use --version,
2658 # but apparently some GNU ld's only accept -v.
2659 # Break only if it was the GNU/non-GNU ld that we prefer.
2660 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2661 test "$with_gnu_ld" != no && break
2663 test "$with_gnu_ld" != yes && break
2669 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2674 if test -n "$LD"; then
2675 echo "$ac_t""$LD" 1>&6
2677 echo "$ac_t""no" 1>&6
2679 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2681 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2682 echo "configure:2683: checking if the linker ($LD) is GNU ld" >&5
2683 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2687 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2688 ac_cv_prog_gnu_ld=yes
2690 ac_cv_prog_gnu_ld=no
2694 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2697 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2698 echo "configure:2699: checking for BSD-compatible nm" >&5
2699 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 if test -n "$NM"; then
2703 # Let the user override the test.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2707 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2708 test -z "$ac_dir" && ac_dir=.
2709 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2710 # Check to see if the nm accepts a BSD-compat flag.
2711 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2712 # nm: unknown option "B" ignored
2713 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2714 ac_cv_path_NM="$ac_dir/nm -B"
2716 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2717 ac_cv_path_NM="$ac_dir/nm -p"
2720 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2721 continue # so that we can try to find one that supports BSD flags
2726 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2731 echo "$ac_t""$NM" 1>&6
2734 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2735 echo "configure:2736: checking whether ln -s works" >&5
2736 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2740 if ln -s X conftestdata 2>/dev/null
2743 ac_cv_prog_LN_S="ln -s"
2748 LN_S="$ac_cv_prog_LN_S"
2749 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2750 echo "$ac_t""yes" 1>&6
2752 echo "$ac_t""no" 1>&6
2756 # Check for any special flags to pass to ltconfig.
2757 libtool_flags="--cache-file=$cache_file"
2758 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2759 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2760 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2761 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2762 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2765 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2766 if test "${enable_libtool_lock+set}" = set; then
2767 enableval="$enable_libtool_lock"
2771 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2772 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2774 # Some flags need to be propagated to the compiler or linker for good
2778 # Find out which ABI we are using.
2779 echo '#line 2780 "configure"' > conftest.$ac_ext
2780 if { (eval echo configure:2781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2781 case "`/usr/bin/file conftest.o`" in
2797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2798 SAVE_CFLAGS="$CFLAGS"
2799 CFLAGS="$CFLAGS -belf"
2800 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2801 echo "configure:2802: checking whether the C compiler needs -belf" >&5
2802 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2815 lt_cv_cc_needs_belf=yes
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 lt_cv_cc_needs_belf=no
2825 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2826 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2827 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2828 CFLAGS="$SAVE_CFLAGS"
2836 # Save cache, so that ltconfig can load it
2839 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2840 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2841 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2842 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2843 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2844 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2845 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2846 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2848 # Reload cache, that may have been modified by ltconfig
2851 # This can be used to rebuild libtool when needed
2852 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2854 # Always use our own libtool.
2855 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2857 # Redirect the config.log output again, so that the ltconfig log is not
2858 # clobbered by the next message.
2859 exec 5>>./config.log
2862 for ac_prog in mawk gawk nawk awk
2864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_word" >&5
2868 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 if test -n "$AWK"; then
2872 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2876 for ac_dir in $ac_dummy; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f $ac_dir/$ac_word; then
2879 ac_cv_prog_AWK="$ac_prog"
2886 AWK="$ac_cv_prog_AWK"
2887 if test -n "$AWK"; then
2888 echo "$ac_t""$AWK" 1>&6
2890 echo "$ac_t""no" 1>&6
2893 test -n "$AWK" && break
2896 # test for ln hardlink support
2897 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2898 echo "configure:2899: checking whether ln works" >&5
2899 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 rm -f conftest.src conftest.dst
2903 echo "conftest" > conftest.src
2904 if ln conftest.src conftest.dst 2>/dev/null
2906 ol_cv_prog_LN_H="ln"
2908 ol_cv_prog_LN_H="cp"
2910 rm -f conftest.src conftest.dst
2913 LN_H="$ol_cv_prog_LN_H"
2914 if test "$ol_cv_prog_LN_H" = "ln"; then
2915 echo "$ac_t""yes" 1>&6
2917 echo "$ac_t""no" 1>&6
2920 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2921 echo "configure:2922: checking whether ln -s works" >&5
2922 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2926 if ln -s X conftestdata 2>/dev/null
2929 ac_cv_prog_LN_S="ln -s"
2934 LN_S="$ac_cv_prog_LN_S"
2935 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2936 echo "$ac_t""yes" 1>&6
2938 echo "$ac_t""no" 1>&6
2942 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2946 # Extract the first word of "sendmail", so it can be a program name with args.
2947 set dummy sendmail; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2955 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2958 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2962 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2963 for ac_dir in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir=.
2965 if test -f $ac_dir/$ac_word; then
2966 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2971 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2975 SENDMAIL="$ac_cv_path_SENDMAIL"
2976 if test -n "$SENDMAIL"; then
2977 echo "$ac_t""$SENDMAIL" 1>&6
2979 echo "$ac_t""no" 1>&6
2982 # Extract the first word of "vi", so it can be a program name with args.
2983 set dummy vi; ac_word=$2
2984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_word" >&5
2986 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2991 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2994 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2998 ac_dummy="$PATH:/usr/ucb"
2999 for ac_dir in $ac_dummy; do
3000 test -z "$ac_dir" && ac_dir=.
3001 if test -f $ac_dir/$ac_word; then
3002 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3007 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3011 EDITOR="$ac_cv_path_EDITOR"
3012 if test -n "$EDITOR"; then
3013 echo "$ac_t""$EDITOR" 1>&6
3015 echo "$ac_t""no" 1>&6
3018 # Extract the first word of "finger", so it can be a program name with args.
3019 set dummy finger; ac_word=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3027 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3030 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3034 ac_dummy="$PATH:/usr/ucb"
3035 for ac_dir in $ac_dummy; do
3036 test -z "$ac_dir" && ac_dir=.
3037 if test -f $ac_dir/$ac_word; then
3038 ac_cv_path_FINGER="$ac_dir/$ac_word"
3043 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3047 FINGER="$ac_cv_path_FINGER"
3048 if test -n "$FINGER"; then
3049 echo "$ac_t""$FINGER" 1>&6
3051 echo "$ac_t""no" 1>&6
3056 if test $ol_enable_perl != no ; then
3057 # Extract the first word of "perl", so it can be a program name with args.
3058 set dummy perl; ac_word=$2
3059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3060 echo "configure:3061: checking for $ac_word" >&5
3061 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3066 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3069 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3074 for ac_dir in $ac_dummy; do
3075 test -z "$ac_dir" && ac_dir=.
3076 if test -f $ac_dir/$ac_word; then
3077 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3082 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3086 PERLBIN="$ac_cv_path_PERLBIN"
3087 if test -n "$PERLBIN"; then
3088 echo "$ac_t""$PERLBIN" 1>&6
3090 echo "$ac_t""no" 1>&6
3094 if test "no$PERLBIN" = "no" ; then
3095 if test $ol_enable_perl = yes ; then
3096 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3100 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3101 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3107 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3108 echo "configure:3109: checking how to run the C preprocessor" >&5
3109 # On Suns, sometimes $CPP names a directory.
3110 if test -n "$CPP" && test -d "$CPP"; then
3113 if test -z "$CPP"; then
3114 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 # This must be in double quotes, not single quotes, because CPP may get
3118 # substituted into the Makefile and "${CC-cc}" will confuse make.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp.
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3129 { (eval echo configure:3130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3131 if test -z "$ac_err"; then
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 CPP="${CC-cc} -E -traditional-cpp"
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3146 { (eval echo configure:3147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3148 if test -z "$ac_err"; then
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 CPP="${CC-cc} -nologo -E"
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3163 { (eval echo configure:3164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3165 if test -z "$ac_err"; then
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3179 ac_cv_prog_CPP="$CPP"
3181 CPP="$ac_cv_prog_CPP"
3183 ac_cv_prog_CPP="$CPP"
3185 echo "$ac_t""$CPP" 1>&6
3188 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3189 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3191 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3192 echo "configure: warning: programs compiled here do run here..." 1>&2
3193 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3195 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3196 echo "configure: warning: programs compiled here do not run here..." 1>&2
3197 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3200 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3201 echo "configure:3202: checking for AIX" >&5
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3211 egrep "yes" >/dev/null 2>&1; then
3213 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3214 #define _ALL_SOURCE 1
3219 echo "$ac_t""no" 1>&6
3224 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3225 echo "configure:3226: checking for POSIXized ISC" >&5
3226 if test -d /etc/conf/kconfig.d &&
3227 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3229 echo "$ac_t""yes" 1>&6
3230 ISC=yes # If later tests want to check for ISC.
3231 cat >> confdefs.h <<\EOF
3232 #define _POSIX_SOURCE 1
3235 if test "$GCC" = yes; then
3241 echo "$ac_t""no" 1>&6
3245 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3246 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3247 echo "configure:3248: checking for minix/config.h" >&5
3248 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 #include <minix/config.h>
3256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257 { (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259 if test -z "$ac_err"; then
3261 eval "ac_cv_header_$ac_safe=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_header_$ac_safe=no"
3271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3275 echo "$ac_t""no" 1>&6
3279 if test "$MINIX" = yes; then
3280 cat >> confdefs.h <<\EOF
3281 #define _POSIX_SOURCE 1
3284 cat >> confdefs.h <<\EOF
3285 #define _POSIX_1_SOURCE 2
3288 cat >> confdefs.h <<\EOF
3295 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3296 echo "configure:3297: checking for Cygwin environment" >&5
3297 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3307 #define __CYGWIN__ __CYGWIN32__
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3324 echo "$ac_t""$ac_cv_cygwin" 1>&6
3326 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3327 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3328 echo "configure:3329: checking for mingw32 environment" >&5
3329 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3340 if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3352 echo "$ac_t""$ac_cv_mingw32" 1>&6
3354 test "$ac_cv_mingw32" = yes && MINGW32=yes
3355 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3356 echo "configure:3357: checking for EMX OS/2 environment" >&5
3357 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3368 if { (eval echo configure:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3372 echo "configure: failed program was:" >&5
3373 cat conftest.$ac_ext >&5
3380 echo "$ac_t""$ac_cv_emxos2" 1>&6
3382 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3386 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3387 echo "configure:3388: checking for executable suffix" >&5
3388 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3395 echo 'int main () { return 0; }' > conftest.$ac_ext
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3398 for file in conftest.*; do
3400 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3401 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3405 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3408 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3413 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3414 echo "$ac_t""${ac_cv_exeext}" 1>&6
3417 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3418 echo "configure:3419: checking for object suffix" >&5
3419 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3423 echo 'int i = 1;' > conftest.$ac_ext
3424 if { (eval echo configure:3425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 for ac_file in conftest.*; do
3428 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3432 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3437 echo "$ac_t""$ac_cv_objext" 1>&6
3438 OBJEXT=$ac_cv_objext
3439 ac_objext=$ac_cv_objext
3442 cat >> confdefs.h <<EOF
3443 #define EXEEXT "${EXEEXT}"
3447 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3448 echo "configure:3449: checking for be_app in -lbe" >&5
3449 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_save_LIBS="$LIBS"
3454 LIBS="-lbe -lroot -lnet $LIBS"
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_lib_$ac_lib_var=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_lib_$ac_lib_var=no"
3477 LIBS="$ac_save_LIBS"
3480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3482 LIBS="$LIBS -lbe -lroot -lnet"
3484 echo "$ac_t""no" 1>&6
3492 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3493 echo "configure:3494: checking for ${CC-cc} option to accept ANSI C" >&5
3494 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 am_cv_prog_cc_stdc=no
3499 # Don't try gcc -ansi; that turns off useful extensions and
3500 # breaks some systems' header files.
3501 # AIX -qlanglvl=ansi
3502 # Ultrix and OSF/1 -std1
3503 # HP-UX 10.20 and later -Ae
3504 # HP-UX older versions -Aa -D_HPUX_SOURCE
3505 # SVR4 -Xc -D__EXTENSIONS__
3506 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 CC="$ac_save_CC $ac_arg"
3509 cat > conftest.$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3514 #include <sys/types.h>
3515 #include <sys/stat.h>
3516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3517 struct buf { int x; };
3518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3519 static char *e (p, i)
3525 static char *f (char * (*g) (char **, int), char **p, ...)
3530 s = g (p, va_arg (v,int));
3534 int test (int i, double x);
3535 struct s1 {int (*f) (int a);};
3536 struct s2 {int (*f) (double a);};
3537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3547 if { (eval echo configure:3548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3549 am_cv_prog_cc_stdc="$ac_arg"; break
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3560 if test -z "$am_cv_prog_cc_stdc"; then
3561 echo "$ac_t""none needed" 1>&6
3563 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3565 case "x$am_cv_prog_cc_stdc" in
3567 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3570 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3571 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3574 # test for make depend flag
3577 if test -z "${MKDEP}"; then
3579 if test -z "${MKDEP_FLAGS}"; then
3580 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3581 echo "configure:3582: checking for ${OL_MKDEP} depend flag" >&5
3582 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3587 for flag in "-M" "-xM"; do
3588 cat > conftest.c <<EOF
3591 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3592 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3594 if test ! -f conftest."${ac_object}" ; then
3596 OL_MKDEP_FLAGS="$flag"
3605 echo "$ac_t""$ol_cv_mkdep" 1>&6
3608 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3613 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3618 if test "${ol_cv_mkdep}" = no ; then
3619 # this will soon become an error
3620 echo "configure: warning: do not know how to generate dependencies" 1>&2
3624 if test $ol_enable_modules != no ; then
3625 # Extract the first word of "glib-config", so it can be a program name with args.
3626 set dummy glib-config; ac_word=$2
3627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3628 echo "configure:3629: checking for $ac_word" >&5
3629 if eval "test \"\${ac_cv_path_GLIBCONFIG+set}\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 case "$GLIBCONFIG" in
3634 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
3637 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
3640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3642 for ac_dir in $ac_dummy; do
3643 test -z "$ac_dir" && ac_dir=.
3644 if test -f $ac_dir/$ac_word; then
3645 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
3653 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
3654 if test -n "$GLIBCONFIG"; then
3655 echo "$ac_t""$GLIBCONFIG" 1>&6
3657 echo "$ac_t""no" 1>&6
3661 if test "no$GLIBCONFIG" = "no" ; then
3662 if test $ol_enable_modules = yes ; then
3663 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
3667 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
3668 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
3669 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
3674 ol_with_bdb2_module=static
3675 ol_with_ldap_module=static
3676 ol_with_ldbm_module=static
3677 ol_with_passwd_module=static
3678 ol_with_perl_module=static
3679 ol_with_shell_module=static
3680 ol_with_tcl_module=static
3685 echo $ac_n "checking for socket""... $ac_c" 1>&6
3686 echo "configure:3687: checking for socket" >&5
3687 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* System header to define __stub macros and hopefully few prototypes,
3694 which can conflict with char socket(); below. */
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_socket) || defined (__stub___socket)
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3717 eval "ac_cv_func_socket=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 eval "ac_cv_func_socket=no"
3727 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3731 echo "$ac_t""no" 1>&6
3733 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3734 echo "configure:3735: checking for main in -lsocket" >&5
3735 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
3736 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 ac_save_LIBS="$LIBS"
3740 LIBS="-lsocket $LIBS"
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 eval "ac_cv_lib_$ac_lib_var=yes"
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_lib_$ac_lib_var=no"
3759 LIBS="$ac_save_LIBS"
3762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3766 cat >> confdefs.h <<EOF
3767 #define $ac_tr_lib 1
3770 LIBS="-lsocket $LIBS"
3773 echo "$ac_t""no" 1>&6
3776 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3777 echo "configure:3778: checking for main in -lnet" >&5
3778 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
3779 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_save_LIBS="$LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3809 cat >> confdefs.h <<EOF
3810 #define $ac_tr_lib 1
3816 echo "$ac_t""no" 1>&6
3819 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3820 echo "configure:3821: checking for socket in -lnet" >&5
3821 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
3822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 ac_save_LIBS="$LIBS"
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 /* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3841 eval "ac_cv_lib_$ac_lib_var=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_lib_$ac_lib_var=no"
3849 LIBS="$ac_save_LIBS"
3852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3855 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3856 cat >> confdefs.h <<EOF
3857 #define $ac_tr_lib 1
3863 echo "$ac_t""no" 1>&6
3866 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3867 echo "configure:3868: checking for main in -lnsl_s" >&5
3868 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
3869 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 ac_save_LIBS="$LIBS"
3873 LIBS="-lnsl_s $LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3899 cat >> confdefs.h <<EOF
3900 #define $ac_tr_lib 1
3903 LIBS="-lnsl_s $LIBS"
3906 echo "$ac_t""no" 1>&6
3909 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3910 echo "configure:3911: checking for main in -lnsl" >&5
3911 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
3912 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 ac_save_LIBS="$LIBS"
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_lib_$ac_lib_var=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_lib_$ac_lib_var=no"
3935 LIBS="$ac_save_LIBS"
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3940 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3942 cat >> confdefs.h <<EOF
3943 #define $ac_tr_lib 1
3949 echo "$ac_t""no" 1>&6
3952 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3953 echo "configure:3954: checking for socket in -linet" >&5
3954 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
3955 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_save_LIBS="$LIBS"
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_lib_$ac_lib_var=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_lib_$ac_lib_var=no"
3982 LIBS="$ac_save_LIBS"
3985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_lib 1
3996 echo "$ac_t""no" 1>&6
3999 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4000 echo "configure:4001: checking for main in -lgen" >&5
4001 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4002 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 ac_save_LIBS="$LIBS"
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4017 eval "ac_cv_lib_$ac_lib_var=yes"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 eval "ac_cv_lib_$ac_lib_var=no"
4025 LIBS="$ac_save_LIBS"
4028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4031 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4032 cat >> confdefs.h <<EOF
4033 #define $ac_tr_lib 1
4039 echo "$ac_t""no" 1>&6
4046 if test $ol_enable_dns != no ; then
4047 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4048 echo "configure:4049: checking for res_search" >&5
4049 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char res_search(); below. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4066 /* The GNU C library defines this for functions which it implements
4067 to always fail with ENOSYS. Some functions are actually named
4068 something starting with __ and the normal name is an alias. */
4069 #if defined (__stub_res_search) || defined (__stub___res_search)
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_func_res_search=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_func_res_search=no"
4089 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4093 echo "$ac_t""no" 1>&6
4096 if test $ac_cv_func_res_search = no ; then
4097 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4098 echo "configure:4099: checking for res_search in -lbind" >&5
4099 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
4100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 ac_save_LIBS="$LIBS"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_lib_$ac_lib_var=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_lib_$ac_lib_var=no"
4127 LIBS="$ac_save_LIBS"
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4134 cat >> confdefs.h <<EOF
4135 #define $ac_tr_lib 1
4141 echo "$ac_t""no" 1>&6
4144 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
4146 if test $ac_cv_func_res_search = no ; then
4147 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
4148 echo "configure:4149: checking for res_search in -lresolv" >&5
4149 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
4150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_save_LIBS="$LIBS"
4154 LIBS="-lresolv $LIBS"
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 eval "ac_cv_lib_$ac_lib_var=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_lib_$ac_lib_var=no"
4177 LIBS="$ac_save_LIBS"
4180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4181 echo "$ac_t""yes" 1>&6
4182 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4184 cat >> confdefs.h <<EOF
4185 #define $ac_tr_lib 1
4188 LIBS="-lresolv $LIBS"
4191 echo "$ac_t""no" 1>&6
4194 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
4197 if test "$ac_cv_func_res_search" = yes ; then
4198 cat >> confdefs.h <<\EOF
4199 #define HAVE_RES_SEARCH 1
4202 elif test $ol_enable_dns = yes ; then
4203 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
4205 echo "configure: warning: no res_search, disabling DNS support" 1>&2
4209 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4210 echo "configure:4211: checking for sigset in -lV3" >&5
4211 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4215 ac_save_LIBS="$LIBS"
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 /* Override any gcc2 internal prototype to avoid an error. */
4221 /* We use char because int might match the return type of a gcc2
4222 builtin and then its argument prototype would still apply. */
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4231 eval "ac_cv_lib_$ac_lib_var=yes"
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 eval "ac_cv_lib_$ac_lib_var=no"
4239 LIBS="$ac_save_LIBS"
4242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4245 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4246 cat >> confdefs.h <<EOF
4247 #define $ac_tr_lib 1
4253 echo "$ac_t""no" 1>&6
4257 for ac_hdr in regex.h
4259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4261 echo "configure:4262: checking for $ac_hdr" >&5
4262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4271 { (eval echo configure:4272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4273 if test -z "$ac_err"; then
4275 eval "ac_cv_header_$ac_safe=yes"
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4281 eval "ac_cv_header_$ac_safe=no"
4285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4288 cat >> confdefs.h <<EOF
4289 #define $ac_tr_hdr 1
4293 echo "$ac_t""no" 1>&6
4297 if test "$ac_cv_header_regex_h" != yes ; then
4298 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4300 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4301 echo "configure:4302: checking for regfree" >&5
4302 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4303 echo $ac_n "(cached) $ac_c" 1>&6
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4308 /* System header to define __stub macros and hopefully few prototypes,
4309 which can conflict with char regfree(); below. */
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4319 /* The GNU C library defines this for functions which it implements
4320 to always fail with ENOSYS. Some functions are actually named
4321 something starting with __ and the normal name is an alias. */
4322 #if defined (__stub_regfree) || defined (__stub___regfree)
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 eval "ac_cv_func_regfree=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_func_regfree=no"
4342 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4343 echo "$ac_t""yes" 1>&6
4346 echo "$ac_t""no" 1>&6
4347 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4352 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4353 echo "configure:4354: checking for compatible POSIX regex" >&5
4354 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4358 if test "$cross_compiling" = yes; then
4359 ol_cv_c_posix_regex=cross
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4365 #include <sys/types.h>
4367 static char *pattern, *string;
4375 if(regcomp(&re, pattern, 0)) {
4379 string = "ALL MATCH";
4381 rc = regexec(&re, string, 0, (void*)0, 0);
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4390 ol_cv_c_posix_regex=yes
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 ol_cv_c_posix_regex=no
4402 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4404 if test "$ol_cv_c_posix_regex" = no ; then
4405 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4408 echo $ac_n "checking for select""... $ac_c" 1>&6
4409 echo "configure:4410: checking for select" >&5
4410 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* System header to define __stub macros and hopefully few prototypes,
4417 which can conflict with char select(); below. */
4419 /* Override any gcc2 internal prototype to avoid an error. */
4420 /* We use char because int might match the return type of a gcc2
4421 builtin and then its argument prototype would still apply. */
4427 /* The GNU C library defines this for functions which it implements
4428 to always fail with ENOSYS. Some functions are actually named
4429 something starting with __ and the normal name is an alias. */
4430 #if defined (__stub_select) || defined (__stub___select)
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_func_select=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_func_select=no"
4450 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4454 echo "$ac_t""no" 1>&6
4455 { echo "configure: error: select() required." 1>&2; exit 1; }
4459 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4460 echo "configure:4461: checking types of arguments for select()" >&5
4461 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4471 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4472 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 #ifdef HAVE_SYS_TYPES_H
4477 #include <sys/types.h>
4479 #ifdef HAVE_SYS_TIME_H
4480 #include <sys/time.h>
4482 #ifdef HAVE_SYS_SELECT_H
4483 #include <sys/select.h>
4485 #ifdef HAVE_SYS_SOCKET_H
4486 #include <sys/socket.h>
4488 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4493 if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4495 ac_not_found=no ; break 3
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4512 if test "$ac_not_found" = yes; then
4513 ac_cv_func_select_arg1=int
4514 ac_cv_func_select_arg234='int *'
4515 ac_cv_func_select_arg5='struct timeval *'
4517 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4518 cat >> confdefs.h <<EOF
4519 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4522 cat >> confdefs.h <<EOF
4523 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4526 cat >> confdefs.h <<EOF
4527 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4534 if test $ol_enable_ldapd != no ; then
4535 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4537 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4538 echo "configure:4539: checking for main in -lxtpp" >&5
4539 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
4540 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 ac_save_LIBS="$LIBS"
4544 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 eval "ac_cv_lib_$ac_lib_var=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 eval "ac_cv_lib_$ac_lib_var=no"
4563 LIBS="$ac_save_LIBS"
4566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4567 echo "$ac_t""yes" 1>&6
4570 cat >> confdefs.h <<\EOF
4574 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4577 echo "$ac_t""no" 1>&6
4581 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4582 echo "configure:4583: checking for main in -ldsap" >&5
4583 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
4584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 ac_save_LIBS="$LIBS"
4588 LIBS="-ldsap -lisode $LIBS"
4589 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_lib_$ac_lib_var=no"
4607 LIBS="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4614 cat >> confdefs.h <<\EOF
4618 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4621 echo "$ac_t""no" 1>&6
4625 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4626 echo "configure:4627: checking for main in -lisode" >&5
4627 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
4628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-lisode $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4658 cat >> confdefs.h <<\EOF
4659 #define HAVE_ISODE 1
4662 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4665 echo "$ac_t""no" 1>&6
4671 if test $ol_link_isode != no; then
4672 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4673 echo "configure:4674: checking for main in -lpp" >&5
4674 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
4675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 ac_save_LIBS="$LIBS"
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4704 cat >> confdefs.h <<\EOF
4708 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4711 echo "$ac_t""no" 1>&6
4716 # Extract the first word of "pepsy", so it can be a program name with args.
4717 set dummy pepsy; ac_word=$2
4718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_word" >&5
4720 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4725 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4728 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4733 for ac_dir in $ac_dummy; do
4734 test -z "$ac_dir" && ac_dir=.
4735 if test -f $ac_dir/$ac_word; then
4736 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4744 PEPSY="$ac_cv_path_PEPSY"
4745 if test -n "$PEPSY"; then
4746 echo "$ac_t""$PEPSY" 1>&6
4748 echo "$ac_t""no" 1>&6
4755 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4756 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4760 echo "configure:4761: checking for $ac_hdr" >&5
4761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4770 { (eval echo configure:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4772 if test -z "$ac_err"; then
4774 eval "ac_cv_header_$ac_safe=yes"
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4780 eval "ac_cv_header_$ac_safe=no"
4784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4787 cat >> confdefs.h <<EOF
4788 #define $ac_tr_hdr 1
4792 echo "$ac_t""no" 1>&6
4797 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4798 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4799 echo "configure:4800: checking for main in -lkrb4" >&5
4800 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
4801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4802 echo $ac_n "(cached) $ac_c" 1>&6
4804 ac_save_LIBS="$LIBS"
4805 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4821 eval "ac_cv_lib_$ac_lib_var=no"
4824 LIBS="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4831 echo "$ac_t""no" 1>&6
4836 if test $have_k5 = yes ; then
4837 ol_with_kerberos=found
4838 ol_link_kerberos=yes
4840 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4842 LIBS="$KRB_LIBS $LIBS"
4844 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4845 echo "configure:4846: checking for des_debug in Kerberos libraries" >&5
4846 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4851 LIBS="$KRB_LIBS $LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4856 #include <kerberosIV/krb.h>
4857 #include <kerberosIV/des.h>
4858 extern int des_debug;
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 ol_cv_var_des_debug=yes
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 ol_cv_var_des_debug=no
4880 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4882 if test $ol_cv_var_des_debug = yes ; then
4883 cat >> confdefs.h <<\EOF
4884 #define HAVE_DES_DEBUG 1
4894 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4895 for ac_hdr in krb.h des.h
4897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_hdr" >&5
4900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4909 { (eval echo configure:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4911 if test -z "$ac_err"; then
4913 eval "ac_cv_header_$ac_safe=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_header_$ac_safe=no"
4923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4926 cat >> confdefs.h <<EOF
4927 #define $ac_tr_hdr 1
4931 echo "$ac_t""no" 1>&6
4936 if test $ac_cv_header_krb_h = yes ; then
4937 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4938 echo "configure:4939: checking for main in -lkrb" >&5
4939 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
4940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4944 LIBS="-lkrb -ldes $LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955 eval "ac_cv_lib_$ac_lib_var=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 eval "ac_cv_lib_$ac_lib_var=no"
4963 LIBS="$ac_save_LIBS"
4966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4970 echo "$ac_t""no" 1>&6
4975 if test $have_k4 = yes ; then
4976 ol_with_kerberos=found
4977 ol_link_kerberos=yes
4979 KRB_LIBS="-lkrb -ldes"
4984 if test $ol_link_kerberos = yes ; then
4985 cat >> confdefs.h <<\EOF
4986 #define HAVE_KERBEROS 1
4992 if test $ol_with_tls != no ; then
4994 for ac_hdr in openssl/ssl.h ssl.h
4996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h <<EOF
5026 #define $ac_tr_hdr 1
5030 echo "$ac_t""no" 1>&6
5035 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5036 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5037 echo "configure:5038: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5038 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 ac_save_LIBS="$LIBS"
5043 LIBS="-lssl -lcrypto $LIBS"
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char SSLeay_add_ssl_algorithms();
5053 SSLeay_add_ssl_algorithms()
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058 eval "ac_cv_lib_$ac_lib_var=yes"
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5063 eval "ac_cv_lib_$ac_lib_var=no"
5066 LIBS="$ac_save_LIBS"
5069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5070 echo "$ac_t""yes" 1>&6
5074 echo "$ac_t""no" 1>&6
5079 if test $have_ssleay = no ; then
5080 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5081 echo "configure:5082: checking for SSL_library_init in -lssl" >&5
5082 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5083 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 ac_save_LIBS="$LIBS"
5087 LIBS="-lssl -lcrypto $LIBS"
5088 cat > conftest.$ac_ext <<EOF
5089 #line 5090 "configure"
5090 #include "confdefs.h"
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5094 char SSL_library_init();
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5102 eval "ac_cv_lib_$ac_lib_var=yes"
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 eval "ac_cv_lib_$ac_lib_var=no"
5110 LIBS="$ac_save_LIBS"
5113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5118 echo "$ac_t""no" 1>&6
5124 if test $have_ssleay = no ; then
5125 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5126 echo "configure:5127: checking for ssl3_accept in -lssl" >&5
5127 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 ac_save_LIBS="$LIBS"
5132 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5136 /* Override any gcc2 internal prototype to avoid an error. */
5137 /* We use char because int might match the return type of a gcc2
5138 builtin and then its argument prototype would still apply. */
5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147 eval "ac_cv_lib_$ac_lib_var=yes"
5149 echo "configure: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5152 eval "ac_cv_lib_$ac_lib_var=no"
5155 LIBS="$ac_save_LIBS"
5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5163 echo "$ac_t""no" 1>&6
5169 if test $have_ssleay = yes ; then
5173 cat >> confdefs.h <<\EOF
5174 #define HAVE_SSLEAY 1
5178 if test $need_rsaref = yes; then
5179 cat >> confdefs.h <<\EOF
5180 #define HAVE_RSAREF 1
5184 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5186 TLS_LIBS="-lssl -lcrypto"
5192 if test $ol_link_tls = yes ; then
5193 cat >> confdefs.h <<\EOF
5201 gethostbyname_r gethostbyaddr_r \
5204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5205 echo "configure:5206: checking for $ac_func" >&5
5206 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5207 echo $ac_n "(cached) $ac_c" 1>&6
5209 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure"
5211 #include "confdefs.h"
5212 /* System header to define __stub macros and hopefully few prototypes,
5213 which can conflict with char $ac_func(); below. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5223 /* The GNU C library defines this for functions which it implements
5224 to always fail with ENOSYS. Some functions are actually named
5225 something starting with __ and the normal name is an alias. */
5226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 eval "ac_cv_func_$ac_func=yes"
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 eval "ac_cv_func_$ac_func=no"
5246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5247 echo "$ac_t""yes" 1>&6
5248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5249 cat >> confdefs.h <<EOF
5250 #define $ac_tr_func 1
5254 echo "$ac_t""no" 1>&6
5259 if test "$ac_cv_func_ctime_r" = no ; then
5260 ol_cv_func_ctime_r_nargs=0
5262 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5263 echo "configure:5264: checking number of arguments of ctime_r" >&5
5264 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5272 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 ol_cv_func_ctime_r_nargs=3
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5287 time_t ti; char *buffer; ctime_r(&ti,buffer);
5290 if { (eval echo configure:5291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5292 ol_cv_func_ctime_r_nargs=2
5294 echo "configure: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5297 ol_cv_func_ctime_r_nargs=0
5304 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5305 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5306 cat >> confdefs.h <<EOF
5307 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5314 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5315 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5316 echo "configure:5317: checking number of arguments of gethostbyname_r" >&5
5317 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 cat > conftest.$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5323 #include <sys/types.h>
5324 #include <sys/socket.h>
5325 #include <netinet/in.h>
5327 #define BUFSIZE (sizeof(struct hostent)+10)
5329 struct hostent hent; char buffer[BUFSIZE];
5330 int bufsize=BUFSIZE;int h_errno;
5331 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5332 buffer, bufsize, &h_errno);
5335 if { (eval echo configure:5336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5337 ol_cv_func_gethostbyname_r_nargs=5
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 #include <sys/types.h>
5346 #include <sys/socket.h>
5347 #include <netinet/in.h>
5349 #define BUFSIZE (sizeof(struct hostent)+10)
5351 struct hostent hent;struct hostent *rhent;
5352 char buffer[BUFSIZE];
5353 int bufsize=BUFSIZE;int h_errno;
5354 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5358 if { (eval echo configure:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5360 ol_cv_func_gethostbyname_r_nargs=6
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 ol_cv_func_gethostbyname_r_nargs=0
5372 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5373 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5374 cat >> confdefs.h <<EOF
5375 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5381 ol_cv_func_gethostbyname_r_nargs=0
5384 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5385 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5386 echo "configure:5387: checking number of arguments of gethostbyaddr_r" >&5
5387 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <sys/types.h>
5394 #include <sys/socket.h>
5395 #include <netinet/in.h>
5397 #define BUFSIZE (sizeof(struct hostent)+10)
5399 struct hostent hent; char buffer[BUFSIZE];
5401 size_t alen=sizeof(struct in_addr);
5402 int bufsize=BUFSIZE;int h_errno;
5403 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5404 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5407 if { (eval echo configure:5408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5409 ol_cv_func_gethostbyaddr_r_nargs=7
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure"
5416 #include "confdefs.h"
5417 #include <sys/types.h>
5418 #include <sys/socket.h>
5419 #include <netinet/in.h>
5421 #define BUFSIZE (sizeof(struct hostent)+10)
5423 struct hostent hent;
5424 struct hostent *rhent; char buffer[BUFSIZE];
5426 size_t alen=sizeof(struct in_addr);
5427 int bufsize=BUFSIZE;int h_errno;
5428 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5429 alen, AF_INET, &hent, buffer, bufsize,
5433 if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5435 ol_cv_func_gethostbyaddr_r_nargs=8
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 ol_cv_func_gethostbyaddr_r_nargs=0
5447 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5448 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5449 cat >> confdefs.h <<EOF
5450 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5456 ol_cv_func_gethostbyaddr_r_nargs=0
5459 if test "$ac_cv_func_ctime_r" = yes \
5460 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5461 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5462 -a "$ac_cv_func_gethostbyname_r" = yes \
5463 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5464 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5465 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5466 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5467 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5470 cat >> confdefs.h <<\EOF
5471 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5477 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5478 -o $ol_with_threads = posix ; then
5480 for ac_hdr in pthread.h sched.h
5482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5484 echo "configure:5485: checking for $ac_hdr" >&5
5485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5494 { (eval echo configure:5495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5496 if test -z "$ac_err"; then
5498 eval "ac_cv_header_$ac_safe=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_header_$ac_safe=no"
5508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5511 cat >> confdefs.h <<EOF
5512 #define $ac_tr_hdr 1
5516 echo "$ac_t""no" 1>&6
5521 if test $ac_cv_header_pthread_h = yes ; then
5522 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5523 echo "configure:5524: checking POSIX thread version" >&5
5524 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5532 # include <pthread.h>
5533 /* this check could be improved */
5534 # ifdef PTHREAD_ONCE_INIT
5535 pthread_version_final
5539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5540 egrep "pthread_version_final" >/dev/null 2>&1; then
5542 ol_pthread_final=yes
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5554 # include <pthread.h>
5555 /* this check could be improved */
5556 # ifdef pthread_once_init
5557 pthread_version_draft4
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5564 ol_pthread_draft4=yes
5567 ol_pthread_draft4=no
5572 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5573 ol_cv_pthread_version=final
5574 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5575 ol_cv_pthread_version=draft4
5577 ol_cv_pthread_version=unknown
5582 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5585 if test $ol_cv_pthread_version = final ; then
5586 cat >> confdefs.h <<\EOF
5587 #define HAVE_PTHREADS_FINAL 1
5590 elif test $ol_cv_pthread_version = draft4 ; then
5591 cat >> confdefs.h <<\EOF
5592 #define HAVE_PTHREADS_D4 1
5596 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5599 # consider threads found
5600 ol_with_threads=found
5603 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5604 echo "configure:5605: checking for LinuxThreads pthread.h" >&5
5605 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 #include <pthread.h>
5613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5614 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5616 ol_cv_header_linux_threads=yes
5619 ol_cv_header_linux_threads=no
5626 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5627 if test $ol_cv_header_linux_threads = yes; then
5628 cat >> confdefs.h <<\EOF
5629 #define HAVE_LINUX_THREADS 1
5636 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5637 echo "configure:5638: checking for pthread_create in default libraries" >&5
5638 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5642 if test "$cross_compiling" = yes; then
5643 ol_cv_pthread_create=yes
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5649 #include <pthread.h>
5651 #define NULL (void*)0
5654 static void *task(p)
5657 return (void *) (p == NULL);
5660 int main(argc, argv)
5667 /* make sure pthread_create() isn't just a stub */
5668 #if HAVE_PTHREADS_D4
5669 status = pthread_create(&t, pthread_attr_default, task, NULL);
5671 status = pthread_create(&t, NULL, task, NULL);
5674 if( status ) return status;
5676 /* make sure pthread_detach() isn't just a stub */
5677 #if HAVE_PTHREADS_D4
5678 status = pthread_detach( &t );
5680 status = pthread_detach( t );
5683 if( status ) return status;
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5691 ol_cv_pthread_create=yes
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 ol_cv_pthread_create=no
5703 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5705 if test $ol_cv_pthread_create != no ; then
5706 ol_link_threads=posix
5710 # Pthread try link: -mt (ol_cv_pthread_mt)
5711 if test "$ol_link_threads" = no ; then
5713 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5714 echo "configure:5715: checking for pthread link with -mt" >&5
5715 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5727 #include <pthread.h>
5729 #define NULL (void*)0
5736 #if HAVE_PTHREADS_D4
5737 pthread_create(&t, pthread_attr_default, NULL, NULL);
5738 pthread_detach( &t );
5740 pthread_create(&t, NULL, NULL, NULL);
5741 pthread_detach( t );
5743 #ifdef HAVE_LINUX_THREADS
5744 pthread_kill_other_threads_np();
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 ol_cv_pthread_mt=yes
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5765 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5767 if test $ol_cv_pthread_mt = yes ; then
5768 ol_link_pthreads="-mt"
5769 ol_link_threads=posix
5773 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5774 if test "$ol_link_threads" = no ; then
5776 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5777 echo "configure:5778: checking for pthread link with -kthread" >&5
5778 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5784 LIBS="-kthread $LIBS"
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5790 #include <pthread.h>
5792 #define NULL (void*)0
5799 #if HAVE_PTHREADS_D4
5800 pthread_create(&t, pthread_attr_default, NULL, NULL);
5801 pthread_detach( &t );
5803 pthread_create(&t, NULL, NULL, NULL);
5804 pthread_detach( t );
5806 #ifdef HAVE_LINUX_THREADS
5807 pthread_kill_other_threads_np();
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5814 ol_cv_pthread_kthread=yes
5816 echo "configure: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 ol_cv_pthread_kthread=no
5828 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5830 if test $ol_cv_pthread_kthread = yes ; then
5831 ol_link_pthreads="-kthread"
5832 ol_link_threads=posix
5836 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5837 if test "$ol_link_threads" = no ; then
5839 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5840 echo "configure:5841: checking for pthread link with -pthread" >&5
5841 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5847 LIBS="-pthread $LIBS"
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5853 #include <pthread.h>
5855 #define NULL (void*)0
5862 #if HAVE_PTHREADS_D4
5863 pthread_create(&t, pthread_attr_default, NULL, NULL);
5864 pthread_detach( &t );
5866 pthread_create(&t, NULL, NULL, NULL);
5867 pthread_detach( t );
5869 #ifdef HAVE_LINUX_THREADS
5870 pthread_kill_other_threads_np();
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 ol_cv_pthread_pthread=yes
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 ol_cv_pthread_pthread=no
5891 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5893 if test $ol_cv_pthread_pthread = yes ; then
5894 ol_link_pthreads="-pthread"
5895 ol_link_threads=posix
5899 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5900 if test "$ol_link_threads" = no ; then
5902 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5903 echo "configure:5904: checking for pthread link with -pthreads" >&5
5904 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5910 LIBS="-pthreads $LIBS"
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5916 #include <pthread.h>
5918 #define NULL (void*)0
5925 #if HAVE_PTHREADS_D4
5926 pthread_create(&t, pthread_attr_default, NULL, NULL);
5927 pthread_detach( &t );
5929 pthread_create(&t, NULL, NULL, NULL);
5930 pthread_detach( t );
5932 #ifdef HAVE_LINUX_THREADS
5933 pthread_kill_other_threads_np();
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 ol_cv_pthread_pthreads=yes
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 ol_cv_pthread_pthreads=no
5954 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5956 if test $ol_cv_pthread_pthreads = yes ; then
5957 ol_link_pthreads="-pthreads"
5958 ol_link_threads=posix
5962 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
5963 if test "$ol_link_threads" = no ; then
5965 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
5966 echo "configure:5967: checking for pthread link with -mthreads" >&5
5967 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5973 LIBS="-mthreads $LIBS"
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5979 #include <pthread.h>
5981 #define NULL (void*)0
5988 #if HAVE_PTHREADS_D4
5989 pthread_create(&t, pthread_attr_default, NULL, NULL);
5990 pthread_detach( &t );
5992 pthread_create(&t, NULL, NULL, NULL);
5993 pthread_detach( t );
5995 #ifdef HAVE_LINUX_THREADS
5996 pthread_kill_other_threads_np();
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6003 ol_cv_pthread_mthreads=yes
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 ol_cv_pthread_mthreads=no
6017 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6019 if test $ol_cv_pthread_mthreads = yes ; then
6020 ol_link_pthreads="-mthreads"
6021 ol_link_threads=posix
6025 # Pthread try link: -thread (ol_cv_pthread_thread)
6026 if test "$ol_link_threads" = no ; then
6028 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6029 echo "configure:6030: checking for pthread link with -thread" >&5
6030 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6036 LIBS="-thread $LIBS"
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6042 #include <pthread.h>
6044 #define NULL (void*)0
6051 #if HAVE_PTHREADS_D4
6052 pthread_create(&t, pthread_attr_default, NULL, NULL);
6053 pthread_detach( &t );
6055 pthread_create(&t, NULL, NULL, NULL);
6056 pthread_detach( t );
6058 #ifdef HAVE_LINUX_THREADS
6059 pthread_kill_other_threads_np();
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6066 ol_cv_pthread_thread=yes
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6071 ol_cv_pthread_thread=no
6080 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6082 if test $ol_cv_pthread_thread = yes ; then
6083 ol_link_pthreads="-thread"
6084 ol_link_threads=posix
6089 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6090 if test "$ol_link_threads" = no ; then
6091 # try -lpthread -lmach -lexc -lc_r
6092 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6093 echo "configure:6094: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6094 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6100 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6106 #include <pthread.h>
6108 #define NULL (void*)0
6115 #if HAVE_PTHREADS_D4
6116 pthread_create(&t, pthread_attr_default, NULL, NULL);
6117 pthread_detach( &t );
6119 pthread_create(&t, NULL, NULL, NULL);
6120 pthread_detach( t );
6122 #ifdef HAVE_LINUX_THREADS
6123 pthread_kill_other_threads_np();
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6144 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6146 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6147 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6148 ol_link_threads=posix
6152 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6153 if test "$ol_link_threads" = no ; then
6154 # try -lpthread -lmach -lexc
6155 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6156 echo "configure:6157: checking for pthread link with -lpthread -lmach -lexc" >&5
6157 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6163 LIBS="-lpthread -lmach -lexc $LIBS"
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6169 #include <pthread.h>
6171 #define NULL (void*)0
6178 #if HAVE_PTHREADS_D4
6179 pthread_create(&t, pthread_attr_default, NULL, NULL);
6180 pthread_detach( &t );
6182 pthread_create(&t, NULL, NULL, NULL);
6183 pthread_detach( t );
6185 #ifdef HAVE_LINUX_THREADS
6186 pthread_kill_other_threads_np();
6191 if { (eval echo configure:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 ol_cv_pthread_lpthread_lmach_lexc=yes
6195 echo "configure: failed program was:" >&5
6196 cat conftest.$ac_ext >&5
6198 ol_cv_pthread_lpthread_lmach_lexc=no
6207 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6209 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6210 ol_link_pthreads="-lpthread -lmach -lexc"
6211 ol_link_threads=posix
6216 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6217 if test "$ol_link_threads" = no ; then
6218 # try -lpthread -Wl,-woff,85
6219 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6220 echo "configure:6221: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6221 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6227 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6233 #include <pthread.h>
6235 #define NULL (void*)0
6242 #if HAVE_PTHREADS_D4
6243 pthread_create(&t, pthread_attr_default, NULL, NULL);
6244 pthread_detach( &t );
6246 pthread_create(&t, NULL, NULL, NULL);
6247 pthread_detach( t );
6249 #ifdef HAVE_LINUX_THREADS
6250 pthread_kill_other_threads_np();
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6257 ol_cv_pthread_lib_lpthread_woff=yes
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6262 ol_cv_pthread_lib_lpthread_woff=no
6271 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6273 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6274 ol_link_pthreads="-lpthread -Wl,-woff,85"
6275 ol_link_threads=posix
6280 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6281 if test "$ol_link_threads" = no ; then
6283 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6284 echo "configure:6285: checking for pthread link with -lpthread" >&5
6285 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6
6291 LIBS="-lpthread $LIBS"
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6297 #include <pthread.h>
6299 #define NULL (void*)0
6306 #if HAVE_PTHREADS_D4
6307 pthread_create(&t, pthread_attr_default, NULL, NULL);
6308 pthread_detach( &t );
6310 pthread_create(&t, NULL, NULL, NULL);
6311 pthread_detach( t );
6313 #ifdef HAVE_LINUX_THREADS
6314 pthread_kill_other_threads_np();
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6321 ol_cv_pthread_lpthread=yes
6323 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6326 ol_cv_pthread_lpthread=no
6335 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6337 if test $ol_cv_pthread_lpthread = yes ; then
6338 ol_link_pthreads="-lpthread"
6339 ol_link_threads=posix
6343 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6344 if test "$ol_link_threads" = no ; then
6346 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6347 echo "configure:6348: checking for pthread link with -lc_r" >&5
6348 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6360 #include <pthread.h>
6362 #define NULL (void*)0
6369 #if HAVE_PTHREADS_D4
6370 pthread_create(&t, pthread_attr_default, NULL, NULL);
6371 pthread_detach( &t );
6373 pthread_create(&t, NULL, NULL, NULL);
6374 pthread_detach( t );
6376 #ifdef HAVE_LINUX_THREADS
6377 pthread_kill_other_threads_np();
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6384 ol_cv_pthread_lc_r=yes
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 ol_cv_pthread_lc_r=no
6398 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6400 if test $ol_cv_pthread_lc_r = yes ; then
6401 ol_link_pthreads="-lc_r"
6402 ol_link_threads=posix
6407 # Pthread try link: -threads (ol_cv_pthread_threads)
6408 if test "$ol_link_threads" = no ; then
6410 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6411 echo "configure:6412: checking for pthread link with -threads" >&5
6412 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6418 LIBS="-threads $LIBS"
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6424 #include <pthread.h>
6426 #define NULL (void*)0
6433 #if HAVE_PTHREADS_D4
6434 pthread_create(&t, pthread_attr_default, NULL, NULL);
6435 pthread_detach( &t );
6437 pthread_create(&t, NULL, NULL, NULL);
6438 pthread_detach( t );
6440 #ifdef HAVE_LINUX_THREADS
6441 pthread_kill_other_threads_np();
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 ol_cv_pthread_threads=yes
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 ol_cv_pthread_threads=no
6462 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6464 if test $ol_cv_pthread_threads = yes ; then
6465 ol_link_pthreads="-threads"
6466 ol_link_threads=posix
6471 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6472 if test "$ol_link_threads" = no ; then
6473 # try -lpthreads -lmach -lexc -lc_r
6474 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6475 echo "configure:6476: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6476 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6482 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6488 #include <pthread.h>
6490 #define NULL (void*)0
6497 #if HAVE_PTHREADS_D4
6498 pthread_create(&t, pthread_attr_default, NULL, NULL);
6499 pthread_detach( &t );
6501 pthread_create(&t, NULL, NULL, NULL);
6502 pthread_detach( t );
6504 #ifdef HAVE_LINUX_THREADS
6505 pthread_kill_other_threads_np();
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
6526 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
6528 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
6529 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
6530 ol_link_threads=posix
6534 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
6535 if test "$ol_link_threads" = no ; then
6536 # try -lpthreads -lmach -lexc
6537 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
6538 echo "configure:6539: checking for pthread link with -lpthreads -lmach -lexc" >&5
6539 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6545 LIBS="-lpthreads -lmach -lexc $LIBS"
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6551 #include <pthread.h>
6553 #define NULL (void*)0
6560 #if HAVE_PTHREADS_D4
6561 pthread_create(&t, pthread_attr_default, NULL, NULL);
6562 pthread_detach( &t );
6564 pthread_create(&t, NULL, NULL, NULL);
6565 pthread_detach( t );
6567 #ifdef HAVE_LINUX_THREADS
6568 pthread_kill_other_threads_np();
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 ol_cv_pthread_lpthreads_lmach_lexc=yes
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 ol_cv_pthread_lpthreads_lmach_lexc=no
6589 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6591 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6592 ol_link_pthreads="-lpthreads -lmach -lexc"
6593 ol_link_threads=posix
6597 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6598 if test "$ol_link_threads" = no ; then
6599 # try -lpthreads -lexc
6600 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6601 echo "configure:6602: checking for pthread link with -lpthreads -lexc" >&5
6602 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6608 LIBS="-lpthreads -lexc $LIBS"
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6614 #include <pthread.h>
6616 #define NULL (void*)0
6623 #if HAVE_PTHREADS_D4
6624 pthread_create(&t, pthread_attr_default, NULL, NULL);
6625 pthread_detach( &t );
6627 pthread_create(&t, NULL, NULL, NULL);
6628 pthread_detach( t );
6630 #ifdef HAVE_LINUX_THREADS
6631 pthread_kill_other_threads_np();
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6638 ol_cv_pthread_lpthreads_lexc=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 ol_cv_pthread_lpthreads_lexc=no
6652 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6654 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6655 ol_link_pthreads="-lpthreads -lexc"
6656 ol_link_threads=posix
6661 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6662 if test "$ol_link_threads" = no ; then
6664 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6665 echo "configure:6666: checking for pthread link with -lpthreads" >&5
6666 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6672 LIBS="-lpthreads $LIBS"
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6678 #include <pthread.h>
6680 #define NULL (void*)0
6687 #if HAVE_PTHREADS_D4
6688 pthread_create(&t, pthread_attr_default, NULL, NULL);
6689 pthread_detach( &t );
6691 pthread_create(&t, NULL, NULL, NULL);
6692 pthread_detach( t );
6694 #ifdef HAVE_LINUX_THREADS
6695 pthread_kill_other_threads_np();
6700 if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6702 ol_cv_pthread_lib_lpthreads=yes
6704 echo "configure: failed program was:" >&5
6705 cat conftest.$ac_ext >&5
6707 ol_cv_pthread_lib_lpthreads=no
6716 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6718 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6719 ol_link_pthreads="-lpthreads"
6720 ol_link_threads=posix
6725 if test $ol_link_threads != no ; then
6726 cat >> confdefs.h <<\EOF
6727 #define HAVE_PTHREADS 1
6731 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6733 save_CPPFLAGS="$CPPFLAGS"
6735 LIBS="$LTHREAD_LIBS $LIBS"
6737 for ac_func in sched_yield pthread_yield
6739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6740 echo "configure:6741: checking for $ac_func" >&5
6741 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char $ac_func(); below. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6758 /* The GNU C library defines this for functions which it implements
6759 to always fail with ENOSYS. Some functions are actually named
6760 something starting with __ and the normal name is an alias. */
6761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6771 eval "ac_cv_func_$ac_func=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 eval "ac_cv_func_$ac_func=no"
6781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6784 cat >> confdefs.h <<EOF
6785 #define $ac_tr_func 1
6789 echo "$ac_t""no" 1>&6
6794 if test $ac_cv_func_sched_yield = no -a \
6795 $ac_cv_func_pthread_yield = no ; then
6796 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6797 echo "configure:6798: checking for sched_yield in -lrt" >&5
6798 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
6799 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6800 echo $ac_n "(cached) $ac_c" 1>&6
6802 ac_save_LIBS="$LIBS"
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6816 if { (eval echo configure:6817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6818 eval "ac_cv_lib_$ac_lib_var=yes"
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 eval "ac_cv_lib_$ac_lib_var=no"
6826 LIBS="$ac_save_LIBS"
6829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6830 echo "$ac_t""yes" 1>&6
6831 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6832 cat >> confdefs.h <<\EOF
6833 #define HAVE_SCHED_YIELD 1
6836 ac_cv_func_sched_yield=yes
6838 echo "$ac_t""no" 1>&6
6839 ac_cv_func_sched_yield=no
6843 if test $ac_cv_func_sched_yield = no -a \
6844 $ac_cv_func_pthread_yield = no ; then
6845 for ac_func in thr_yield
6847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6848 echo "configure:6849: checking for $ac_func" >&5
6849 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char $ac_func(); below. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6866 /* The GNU C library defines this for functions which it implements
6867 to always fail with ENOSYS. Some functions are actually named
6868 something starting with __ and the normal name is an alias. */
6869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 eval "ac_cv_func_$ac_func=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_func_$ac_func=no"
6889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6892 cat >> confdefs.h <<EOF
6893 #define $ac_tr_func 1
6897 echo "$ac_t""no" 1>&6
6902 if test $ac_cv_func_sched_yield = no -a \
6903 $ac_cv_func_pthread_yield = no -a \
6904 "$ac_cv_func_thr_yield" = no ; then
6905 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6908 for ac_func in pthread_kill
6910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6911 echo "configure:6912: checking for $ac_func" >&5
6912 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func(); below. */
6921 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6929 /* The GNU C library defines this for functions which it implements
6930 to always fail with ENOSYS. Some functions are actually named
6931 something starting with __ and the normal name is an alias. */
6932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6942 eval "ac_cv_func_$ac_func=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6947 eval "ac_cv_func_$ac_func=no"
6952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6955 cat >> confdefs.h <<EOF
6956 #define $ac_tr_func 1
6960 echo "$ac_t""no" 1>&6
6965 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6966 echo "configure:6967: checking for pthread_detach with <pthread.h>" >&5
6967 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6975 #include <pthread.h>
6977 #define NULL (void*)0
6981 pthread_detach(NULL);
6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6986 ol_cv_func_pthread_detach=yes
6988 echo "configure: failed program was:" >&5
6989 cat conftest.$ac_ext >&5
6991 ol_cv_func_pthread_detach=no
6997 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6999 if test $ol_cv_func_pthread_detach = no ; then
7000 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7003 cat >> confdefs.h <<\EOF
7004 #define HAVE_PTHREAD_DETACH 1
7009 pthread_setconcurrency \
7010 pthread_getconcurrency \
7011 thr_setconcurrency \
7012 thr_getconcurrency \
7015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7016 echo "configure:7017: checking for $ac_func" >&5
7017 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 /* System header to define __stub macros and hopefully few prototypes,
7024 which can conflict with char $ac_func(); below. */
7026 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7034 /* The GNU C library defines this for functions which it implements
7035 to always fail with ENOSYS. Some functions are actually named
7036 something starting with __ and the normal name is an alias. */
7037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7045 if { (eval echo configure:7046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047 eval "ac_cv_func_$ac_func=yes"
7049 echo "configure: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7052 eval "ac_cv_func_$ac_func=no"
7057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7058 echo "$ac_t""yes" 1>&6
7059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7060 cat >> confdefs.h <<EOF
7061 #define $ac_tr_func 1
7065 echo "$ac_t""no" 1>&6
7071 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7072 echo "configure:7073: checking for pthread_kill_other_threads_np" >&5
7073 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char pthread_kill_other_threads_np(); below. */
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char pthread_kill_other_threads_np();
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7096 f = pthread_kill_other_threads_np;
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7113 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7114 echo "$ac_t""yes" 1>&6
7117 echo "$ac_t""no" 1>&6
7120 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7121 echo "configure:7122: checking for LinuxThreads implementation" >&5
7122 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7125 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7128 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7133 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7134 echo "configure:7135: checking for LinuxThreads consistency" >&5
7135 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7139 if test $ol_cv_header_linux_threads = yes -a \
7140 $ol_cv_sys_linux_threads = yes; then
7141 ol_cv_linux_threads=yes
7142 elif test $ol_cv_header_linux_threads = no -a \
7143 $ol_cv_sys_linux_threads = no; then
7144 ol_cv_linux_threads=no
7146 ol_cv_linux_threads=error
7151 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7154 if test $ol_cv_linux_threads = error; then
7155 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7158 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7159 echo "configure:7160: checking if pthread_create() works" >&5
7160 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7164 if test "$cross_compiling" = yes; then
7165 ol_cv_pthread_create_works=yes
7167 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure"
7169 #include "confdefs.h"
7171 #include <pthread.h>
7173 #define NULL (void*)0
7176 static void *task(p)
7179 return (void *) (p == NULL);
7182 int main(argc, argv)
7187 #if HAVE_PTHREADS_D4
7188 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7190 exit(pthread_create(&t, NULL, task, NULL));
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7197 ol_cv_pthread_create_works=yes
7199 echo "configure: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7202 ol_cv_pthread_create_works=no
7209 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7211 if test $ol_cv_pthread_create_works = no ; then
7212 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7215 if test $ol_with_yielding_select = auto ; then
7216 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7217 echo "configure:7218: checking if select yields when using pthreads" >&5
7218 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7219 echo $ac_n "(cached) $ac_c" 1>&6
7222 if test "$cross_compiling" = yes; then
7223 ol_cv_pthread_select_yields=cross
7225 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7229 #include <sys/types.h>
7230 #include <sys/time.h>
7232 #include <pthread.h>
7234 #define NULL (void*) 0
7237 static int fildes[2];
7239 static void *task(p)
7251 FD_SET(fildes[0], &rfds);
7253 /* we're not interested in any fds */
7254 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7261 exit(0); /* if we exit here, the select blocked the whole process */
7264 int main(argc, argv)
7270 /* create a pipe to select */
7271 if(pipe(&fildes[0])) {
7276 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7277 (void) pthread_setconcurrency(2);
7279 #ifdef HAVE_THR_SETCONCURRENCY
7280 /* Set Solaris LWP concurrency to 2 */
7281 thr_setconcurrency(2);
7285 #if HAVE_PTHREADS_D4
7286 pthread_create(&t, pthread_attr_default, task, NULL);
7288 pthread_create(&t, NULL, task, NULL);
7291 #if HAVE_SCHED_YIELD
7292 sched_yield(); /* make sure task runs first */
7294 #ifdef HAVE_PTHREAD_YIELD
7295 pthread_yield(); /* make sure task runs first */
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7304 ol_cv_pthread_select_yields=no
7306 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7309 ol_cv_pthread_select_yields=yes
7316 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7318 if test $ol_cv_pthread_select_yields = cross ; then
7319 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7322 if test $ol_cv_pthread_select_yields = yes ; then
7323 ol_with_yielding_select=yes
7327 CPPFLAGS="$save_CPPFLAGS"
7330 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7334 if test $ol_with_threads = posix ; then
7335 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7339 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7340 -o $ol_with_threads = mach ; then
7342 for ac_hdr in mach/cthreads.h
7344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7346 echo "configure:7347: checking for $ac_hdr" >&5
7347 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 cat > conftest.$ac_ext <<EOF
7351 #line 7352 "configure"
7352 #include "confdefs.h"
7355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7356 { (eval echo configure:7357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7358 if test -z "$ac_err"; then
7360 eval "ac_cv_header_$ac_safe=yes"
7363 echo "configure: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7366 eval "ac_cv_header_$ac_safe=no"
7370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7371 echo "$ac_t""yes" 1>&6
7372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7373 cat >> confdefs.h <<EOF
7374 #define $ac_tr_hdr 1
7378 echo "$ac_t""no" 1>&6
7382 if test $ac_cv_header_mach_cthreads_h = yes ; then
7383 ol_with_threads=found
7385 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7386 echo "configure:7387: checking for cthread_fork" >&5
7387 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char cthread_fork(); below. */
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7399 char cthread_fork();
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 eval "ac_cv_func_cthread_fork=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_func_cthread_fork=no"
7427 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6
7431 echo "$ac_t""no" 1>&6
7435 if test $ol_link_threads = no ; then
7436 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7437 echo "configure:7438: checking for cthread_fork with -all_load" >&5
7438 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
7439 echo $ac_n "(cached) $ac_c" 1>&6
7443 LIBS="-all_load $LIBS"
7444 cat > conftest.$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 #include <mach/cthreads.h>
7450 cthread_fork((void *)0, (void *)0);
7454 if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7456 ol_cv_cthread_all_load=yes
7458 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7461 ol_cv_cthread_all_load=no
7468 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7470 if test $ol_cv_cthread_all_load = yes ; then
7471 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7472 ol_link_threads=mach
7476 if test $ol_link_threads != no ; then
7477 : check for cthread specific functionality here
7478 cat >> confdefs.h <<\EOF
7479 #define HAVE_MACH_CTHREADS 1
7483 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7487 if test $ol_with_threads = mach ; then
7488 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7492 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7493 -o $ol_with_threads = lwp ; then
7495 for ac_hdr in thread.h synch.h
7497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_hdr" >&5
7500 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7509 { (eval echo configure:7510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7511 if test -z "$ac_err"; then
7513 eval "ac_cv_header_$ac_safe=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7519 eval "ac_cv_header_$ac_safe=no"
7523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7526 cat >> confdefs.h <<EOF
7527 #define $ac_tr_hdr 1
7531 echo "$ac_t""no" 1>&6
7535 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
7536 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
7537 echo "configure:7538: checking for thr_create in -lthread" >&5
7538 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
7539 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7542 ac_save_LIBS="$LIBS"
7543 LIBS="-lthread $LIBS"
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7547 /* Override any gcc2 internal prototype to avoid an error. */
7548 /* We use char because int might match the return type of a gcc2
7549 builtin and then its argument prototype would still apply. */
7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 eval "ac_cv_lib_$ac_lib_var=yes"
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7563 eval "ac_cv_lib_$ac_lib_var=no"
7566 LIBS="$ac_save_LIBS"
7569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7570 echo "$ac_t""yes" 1>&6
7573 echo "$ac_t""no" 1>&6
7578 if test $have_thr = yes ; then
7579 cat >> confdefs.h <<\EOF
7583 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7586 if test $ol_with_yielding_select = auto ; then
7587 ol_with_yielding_select=yes
7591 thr_setconcurrency \
7592 thr_getconcurrency \
7595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7596 echo "configure:7597: checking for $ac_func" >&5
7597 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 /* System header to define __stub macros and hopefully few prototypes,
7604 which can conflict with char $ac_func(); below. */
7606 /* Override any gcc2 internal prototype to avoid an error. */
7607 /* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7614 /* The GNU C library defines this for functions which it implements
7615 to always fail with ENOSYS. Some functions are actually named
7616 something starting with __ and the normal name is an alias. */
7617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7625 if { (eval echo configure:7626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7627 eval "ac_cv_func_$ac_func=yes"
7629 echo "configure: failed program was:" >&5
7630 cat conftest.$ac_ext >&5
7632 eval "ac_cv_func_$ac_func=no"
7637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7638 echo "$ac_t""yes" 1>&6
7639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7640 cat >> confdefs.h <<EOF
7641 #define $ac_tr_func 1
7645 echo "$ac_t""no" 1>&6
7652 for ac_hdr in lwp/lwp.h
7654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_hdr" >&5
7657 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7660 cat > conftest.$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7666 { (eval echo configure:7667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7668 if test -z "$ac_err"; then
7670 eval "ac_cv_header_$ac_safe=yes"
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 eval "ac_cv_header_$ac_safe=no"
7680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7681 echo "$ac_t""yes" 1>&6
7682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7683 cat >> confdefs.h <<EOF
7684 #define $ac_tr_hdr 1
7688 echo "$ac_t""no" 1>&6
7692 if test $ac_cv_header_lwp_lwp_h = yes ; then
7693 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7694 echo "configure:7695: checking for lwp_create in -llwp" >&5
7695 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
7696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7697 echo $ac_n "(cached) $ac_c" 1>&6
7699 ac_save_LIBS="$LIBS"
7701 cat > conftest.$ac_ext <<EOF
7702 #line 7703 "configure"
7703 #include "confdefs.h"
7704 /* Override any gcc2 internal prototype to avoid an error. */
7705 /* We use char because int might match the return type of a gcc2
7706 builtin and then its argument prototype would still apply. */
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 eval "ac_cv_lib_$ac_lib_var=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7720 eval "ac_cv_lib_$ac_lib_var=no"
7723 LIBS="$ac_save_LIBS"
7726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7727 echo "$ac_t""yes" 1>&6
7730 echo "$ac_t""no" 1>&6
7735 if test $have_lwp = yes ; then
7736 cat >> confdefs.h <<\EOF
7740 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7743 if test $ol_with_yielding_select = auto ; then
7744 ol_with_yielding_select=no
7750 if test $ol_with_yielding_select = yes ; then
7751 cat >> confdefs.h <<\EOF
7752 #define HAVE_YIELDING_SELECT 1
7757 if test $ol_with_threads = manual ; then
7760 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7762 for ac_hdr in pthread.h sched.h
7764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7766 echo "configure:7767: checking for $ac_hdr" >&5
7767 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7776 { (eval echo configure:7777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7778 if test -z "$ac_err"; then
7780 eval "ac_cv_header_$ac_safe=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_header_$ac_safe=no"
7790 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7791 echo "$ac_t""yes" 1>&6
7792 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7793 cat >> confdefs.h <<EOF
7794 #define $ac_tr_hdr 1
7798 echo "$ac_t""no" 1>&6
7802 for ac_func in sched_yield pthread_yield
7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_func" >&5
7806 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure"
7811 #include "confdefs.h"
7812 /* System header to define __stub macros and hopefully few prototypes,
7813 which can conflict with char $ac_func(); below. */
7815 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7823 /* The GNU C library defines this for functions which it implements
7824 to always fail with ENOSYS. Some functions are actually named
7825 something starting with __ and the normal name is an alias. */
7826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7836 eval "ac_cv_func_$ac_func=yes"
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 eval "ac_cv_func_$ac_func=no"
7846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7847 echo "$ac_t""yes" 1>&6
7848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7849 cat >> confdefs.h <<EOF
7850 #define $ac_tr_func 1
7854 echo "$ac_t""no" 1>&6
7859 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7860 echo "configure:7861: checking for LinuxThreads pthread.h" >&5
7861 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7864 cat > conftest.$ac_ext <<EOF
7865 #line 7866 "configure"
7866 #include "confdefs.h"
7867 #include <pthread.h>
7869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7870 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7872 ol_cv_header_linux_threads=yes
7875 ol_cv_header_linux_threads=no
7882 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7883 if test $ol_cv_header_linux_threads = yes; then
7884 cat >> confdefs.h <<\EOF
7885 #define HAVE_LINUX_THREADS 1
7891 for ac_hdr in mach/cthreads.h
7893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7895 echo "configure:7896: checking for $ac_hdr" >&5
7896 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7905 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7907 if test -z "$ac_err"; then
7909 eval "ac_cv_header_$ac_safe=yes"
7912 echo "configure: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7915 eval "ac_cv_header_$ac_safe=no"
7919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7920 echo "$ac_t""yes" 1>&6
7921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7922 cat >> confdefs.h <<EOF
7923 #define $ac_tr_hdr 1
7927 echo "$ac_t""no" 1>&6
7931 for ac_hdr in lwp/lwp.h
7933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_hdr" >&5
7936 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7945 { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7947 if test -z "$ac_err"; then
7949 eval "ac_cv_header_$ac_safe=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 eval "ac_cv_header_$ac_safe=no"
7959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7962 cat >> confdefs.h <<EOF
7963 #define $ac_tr_hdr 1
7967 echo "$ac_t""no" 1>&6
7971 for ac_hdr in thread.h synch.h
7973 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7974 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7975 echo "configure:7976: checking for $ac_hdr" >&5
7976 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7987 if test -z "$ac_err"; then
7989 eval "ac_cv_header_$ac_safe=yes"
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 eval "ac_cv_header_$ac_safe=no"
7999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8001 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8002 cat >> confdefs.h <<EOF
8003 #define $ac_tr_hdr 1
8007 echo "$ac_t""no" 1>&6
8013 if test $ol_link_threads != no ; then
8014 cat >> confdefs.h <<\EOF
8018 cat >> confdefs.h <<\EOF
8019 #define _REENTRANT 1
8022 cat >> confdefs.h <<\EOF
8023 #define THREAD_SAFE 1
8026 cat >> confdefs.h <<\EOF
8027 #define _THREAD_SAFE 1
8030 cat >> confdefs.h <<\EOF
8031 #define THREADSAFE 1
8034 cat >> confdefs.h <<\EOF
8035 #define _THREADSAFE 1
8038 cat >> confdefs.h <<\EOF
8039 #define _SGI_MP_SOURCE 1
8043 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8044 echo "configure:8045: checking for thread specific errno" >&5
8045 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 ol_cv_errno_thread_specific=yes
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 ol_cv_errno_thread_specific=no
8070 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8072 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8073 echo "configure:8074: checking for thread specific h_errno" >&5
8074 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8086 if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 ol_cv_h_errno_thread_specific=yes
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8093 ol_cv_h_errno_thread_specific=no
8099 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8101 if test $ol_cv_errno_thread_specific != yes \
8102 -o $ol_cv_h_errno_thread_specific != yes ; then
8103 LIBS="$LTHREAD_LIBS $LIBS"
8109 if test $ol_link_threads = no ; then
8110 if test $ol_with_threads = yes ; then
8111 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8114 if test $ol_with_threads = auto ; then
8115 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8119 cat >> confdefs.h <<\EOF
8120 #define NO_THREADS 1
8126 if test $ol_link_threads != no ; then
8127 cat >> confdefs.h <<\EOF
8128 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8135 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8136 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8137 echo "configure:8138: checking for DB2 library" >&5
8138 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8142 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8143 echo "configure:8144: checking for db_open in -ldb" >&5
8144 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8145 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8148 ac_save_LIBS="$LIBS"
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8164 eval "ac_cv_lib_$ac_lib_var=yes"
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8169 eval "ac_cv_lib_$ac_lib_var=no"
8172 LIBS="$ac_save_LIBS"
8175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8179 echo "$ac_t""no" 1>&6
8187 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8193 echo "configure:8194: checking for $ac_hdr" >&5
8194 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8203 { (eval echo configure:8204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8205 if test -z "$ac_err"; then
8207 eval "ac_cv_header_$ac_safe=yes"
8210 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8213 eval "ac_cv_header_$ac_safe=no"
8217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8218 echo "$ac_t""yes" 1>&6
8219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8220 cat >> confdefs.h <<EOF
8221 #define $ac_tr_hdr 1
8225 echo "$ac_t""no" 1>&6
8229 if test $ac_cv_header_db_h = yes ; then
8230 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8231 echo "configure:8232: checking if db.h is DB2" >&5
8232 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8236 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8241 /* this check could be improved */
8242 # ifdef DB_VERSION_MAJOR
8243 # if DB_VERSION_MAJOR == 2
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 egrep "__db_version_2" >/dev/null 2>&1; then
8252 ol_cv_header_db2=yes
8261 echo "$ac_t""$ol_cv_header_db2" 1>&6
8268 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8269 echo "configure:8270: checking for Berkeley DB2" >&5
8270 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
8271 echo $ac_n "(cached) $ac_c" 1>&6
8274 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8275 ol_cv_berkeley_db2=no
8277 ol_cv_berkeley_db2=yes
8282 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8283 if test $ol_cv_berkeley_db2 = yes ; then
8284 cat >> confdefs.h <<\EOF
8285 #define HAVE_BERKELEY_DB2 1
8291 if test $ol_cv_berkeley_db2 = yes ; then
8293 ol_with_ldbm_api=db2
8295 if test $ol_with_ldbm_type = hash ; then
8296 cat >> confdefs.h <<\EOF
8297 #define LDBM_USE_DBHASH 1
8301 cat >> confdefs.h <<\EOF
8302 #define LDBM_USE_DBBTREE 1
8307 if test $ol_cv_lib_db2 != yes ; then
8308 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8314 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8318 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8319 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8320 echo "configure:8321: checking for Berkeley DB library" >&5
8321 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8325 for ac_hdr in db1/db.h
8327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8329 echo "configure:8330: checking for $ac_hdr" >&5
8330 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8339 { (eval echo configure:8340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8341 if test -z "$ac_err"; then
8343 eval "ac_cv_header_$ac_safe=yes"
8346 echo "configure: failed program was:" >&5
8347 cat conftest.$ac_ext >&5
8349 eval "ac_cv_header_$ac_safe=no"
8353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8354 echo "$ac_t""yes" 1>&6
8355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8356 cat >> confdefs.h <<EOF
8357 #define $ac_tr_hdr 1
8361 echo "$ac_t""no" 1>&6
8366 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8367 echo "configure:8368: checking for dbopen" >&5
8368 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
8369 echo $ac_n "(cached) $ac_c" 1>&6
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 /* System header to define __stub macros and hopefully few prototypes,
8375 which can conflict with char dbopen(); below. */
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8385 /* The GNU C library defines this for functions which it implements
8386 to always fail with ENOSYS. Some functions are actually named
8387 something starting with __ and the normal name is an alias. */
8388 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8398 eval "ac_cv_func_dbopen=yes"
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8403 eval "ac_cv_func_dbopen=no"
8408 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8412 echo "$ac_t""no" 1>&6
8414 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8415 echo "configure:8416: checking for dbopen in -ldb1" >&5
8416 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
8417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 ac_save_LIBS="$LIBS"
8422 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure"
8424 #include "confdefs.h"
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8434 if { (eval echo configure:8435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8436 eval "ac_cv_lib_$ac_lib_var=yes"
8438 echo "configure: failed program was:" >&5
8439 cat conftest.$ac_ext >&5
8441 eval "ac_cv_lib_$ac_lib_var=no"
8444 LIBS="$ac_save_LIBS"
8447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8448 echo "$ac_t""yes" 1>&6
8451 echo "$ac_t""no" 1>&6
8453 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8454 echo "configure:8455: checking for dbopen in -ldb" >&5
8455 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
8456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8459 ac_save_LIBS="$LIBS"
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 /* Override any gcc2 internal prototype to avoid an error. */
8465 /* We use char because int might match the return type of a gcc2
8466 builtin and then its argument prototype would still apply. */
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 eval "ac_cv_lib_$ac_lib_var=yes"
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 eval "ac_cv_lib_$ac_lib_var=no"
8483 LIBS="$ac_save_LIBS"
8486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8487 echo "$ac_t""yes" 1>&6
8490 echo "$ac_t""no" 1>&6
8504 echo "$ac_t""$ol_cv_lib_db" 1>&6
8507 for ac_hdr in db_185.h
8509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8511 echo "configure:8512: checking for $ac_hdr" >&5
8512 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8521 { (eval echo configure:8522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8523 if test -z "$ac_err"; then
8525 eval "ac_cv_header_$ac_safe=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 eval "ac_cv_header_$ac_safe=no"
8535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8538 cat >> confdefs.h <<EOF
8539 #define $ac_tr_hdr 1
8543 echo "$ac_t""no" 1>&6
8547 if test "$ol_cv_header_db2" = yes ; then
8549 ol_cv_header_db=$ac_cv_header_db_185_h
8551 ol_cv_header_db=$ac_cv_header_db_h
8556 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
8557 echo "configure:8558: checking for Berkeley DB" >&5
8558 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
8559 echo $ac_n "(cached) $ac_c" 1>&6
8562 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
8563 ol_cv_berkeley_db=no
8565 ol_cv_berkeley_db=yes
8570 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8571 if test $ol_cv_berkeley_db = yes ; then
8572 cat >> confdefs.h <<\EOF
8573 #define HAVE_BERKELEY_DB 1
8579 if test $ol_cv_berkeley_db = yes ; then
8583 if test $ol_with_ldbm_type = hash ; then
8584 cat >> confdefs.h <<\EOF
8585 #define LDBM_USE_DBHASH 1
8589 cat >> confdefs.h <<\EOF
8590 #define LDBM_USE_DBBTREE 1
8595 if test $ol_cv_lib_db != yes ; then
8596 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8601 if test $ol_with_ldbm_api = manual ; then
8604 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8606 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8610 echo "configure:8611: checking for $ac_hdr" >&5
8611 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8612 echo $ac_n "(cached) $ac_c" 1>&6
8614 cat > conftest.$ac_ext <<EOF
8615 #line 8616 "configure"
8616 #include "confdefs.h"
8619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8620 { (eval echo configure:8621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8622 if test -z "$ac_err"; then
8624 eval "ac_cv_header_$ac_safe=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 eval "ac_cv_header_$ac_safe=no"
8634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8637 cat >> confdefs.h <<EOF
8638 #define $ac_tr_hdr 1
8642 echo "$ac_t""no" 1>&6
8648 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8649 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8650 ol_with_ldbm_api=none
8653 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8654 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8655 echo "configure:8656: checking for MDBM library" >&5
8656 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8660 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8661 echo "configure:8662: checking for mdbm_set_chain" >&5
8662 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 /* System header to define __stub macros and hopefully few prototypes,
8669 which can conflict with char mdbm_set_chain(); below. */
8671 /* Override any gcc2 internal prototype to avoid an error. */
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8674 char mdbm_set_chain();
8679 /* The GNU C library defines this for functions which it implements
8680 to always fail with ENOSYS. Some functions are actually named
8681 something starting with __ and the normal name is an alias. */
8682 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8690 if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8692 eval "ac_cv_func_mdbm_set_chain=yes"
8694 echo "configure: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8697 eval "ac_cv_func_mdbm_set_chain=no"
8702 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8706 echo "$ac_t""no" 1>&6
8708 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8709 echo "configure:8710: checking for mdbm_set_chain in -lmdbm" >&5
8710 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
8711 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8714 ac_save_LIBS="$LIBS"
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8722 char mdbm_set_chain();
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_lib_$ac_lib_var=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_lib_$ac_lib_var=no"
8738 LIBS="$ac_save_LIBS"
8741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8742 echo "$ac_t""yes" 1>&6
8743 ol_cv_lib_mdbm=-lmdbm
8745 echo "$ac_t""no" 1>&6
8756 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8759 for ac_hdr in mdbm.h
8761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8763 echo "configure:8764: checking for $ac_hdr" >&5
8764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8765 echo $ac_n "(cached) $ac_c" 1>&6
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8773 { (eval echo configure:8774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8775 if test -z "$ac_err"; then
8777 eval "ac_cv_header_$ac_safe=yes"
8780 echo "configure: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8783 eval "ac_cv_header_$ac_safe=no"
8787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8788 echo "$ac_t""yes" 1>&6
8789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8790 cat >> confdefs.h <<EOF
8791 #define $ac_tr_hdr 1
8795 echo "$ac_t""no" 1>&6
8799 echo $ac_n "checking for db""... $ac_c" 1>&6
8800 echo "configure:8801: checking for db" >&5
8801 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
8802 echo $ac_n "(cached) $ac_c" 1>&6
8805 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8813 echo "$ac_t""$ol_cv_mdbm" 1>&6
8814 if test $ol_cv_mdbm = yes ; then
8815 cat >> confdefs.h <<\EOF
8822 if test $ol_cv_mdbm = yes ; then
8824 ol_with_ldbm_api=mdbm
8825 if test $ol_cv_lib_mdbm != yes ; then
8826 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8831 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8832 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8833 echo "configure:8834: checking for GDBM library" >&5
8834 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8838 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8839 echo "configure:8840: checking for gdbm_open" >&5
8840 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 /* System header to define __stub macros and hopefully few prototypes,
8847 which can conflict with char gdbm_open(); below. */
8849 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8857 /* The GNU C library defines this for functions which it implements
8858 to always fail with ENOSYS. Some functions are actually named
8859 something starting with __ and the normal name is an alias. */
8860 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8870 eval "ac_cv_func_gdbm_open=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_func_gdbm_open=no"
8880 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8881 echo "$ac_t""yes" 1>&6
8884 echo "$ac_t""no" 1>&6
8886 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8887 echo "configure:8888: checking for gdbm_open in -lgdbm" >&5
8888 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
8889 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8890 echo $ac_n "(cached) $ac_c" 1>&6
8892 ac_save_LIBS="$LIBS"
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 /* Override any gcc2 internal prototype to avoid an error. */
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8908 eval "ac_cv_lib_$ac_lib_var=yes"
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 eval "ac_cv_lib_$ac_lib_var=no"
8916 LIBS="$ac_save_LIBS"
8919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8920 echo "$ac_t""yes" 1>&6
8921 ol_cv_lib_gdbm=-lgdbm
8923 echo "$ac_t""no" 1>&6
8934 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8937 for ac_hdr in gdbm.h
8939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8941 echo "configure:8942: checking for $ac_hdr" >&5
8942 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8951 { (eval echo configure:8952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8953 if test -z "$ac_err"; then
8955 eval "ac_cv_header_$ac_safe=yes"
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 eval "ac_cv_header_$ac_safe=no"
8965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8966 echo "$ac_t""yes" 1>&6
8967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8968 cat >> confdefs.h <<EOF
8969 #define $ac_tr_hdr 1
8973 echo "$ac_t""no" 1>&6
8977 echo $ac_n "checking for db""... $ac_c" 1>&6
8978 echo "configure:8979: checking for db" >&5
8979 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8991 echo "$ac_t""$ol_cv_gdbm" 1>&6
8992 if test $ol_cv_gdbm = yes ; then
8993 cat >> confdefs.h <<\EOF
9000 if test $ol_cv_gdbm = yes ; then
9002 ol_with_ldbm_api=gdbm
9004 if test $ol_cv_lib_gdbm != yes ; then
9005 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9010 if test $ol_with_ldbm_api = auto ; then
9011 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9012 elif test $ol_with_ldbm_api = ndbm ; then
9013 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9014 echo "configure:9015: checking for NDBM library" >&5
9015 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9019 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9020 echo "configure:9021: checking for dbm_open" >&5
9021 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 /* System header to define __stub macros and hopefully few prototypes,
9028 which can conflict with char dbm_open(); below. */
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 /* We use char because int might match the return type of a gcc2
9032 builtin and then its argument prototype would still apply. */
9038 /* The GNU C library defines this for functions which it implements
9039 to always fail with ENOSYS. Some functions are actually named
9040 something starting with __ and the normal name is an alias. */
9041 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9051 eval "ac_cv_func_dbm_open=yes"
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 eval "ac_cv_func_dbm_open=no"
9061 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9062 echo "$ac_t""yes" 1>&6
9065 echo "$ac_t""no" 1>&6
9067 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9068 echo "configure:9069: checking for dbm_open in -lndbm" >&5
9069 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9073 ac_save_LIBS="$LIBS"
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 /* Override any gcc2 internal prototype to avoid an error. */
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9087 if { (eval echo configure:9088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9089 eval "ac_cv_lib_$ac_lib_var=yes"
9091 echo "configure: failed program was:" >&5
9092 cat conftest.$ac_ext >&5
9094 eval "ac_cv_lib_$ac_lib_var=no"
9097 LIBS="$ac_save_LIBS"
9100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9101 echo "$ac_t""yes" 1>&6
9102 ol_cv_lib_ndbm=-lndbm
9104 echo "$ac_t""no" 1>&6
9106 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9107 echo "configure:9108: checking for dbm_open in -ldbm" >&5
9108 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 ac_save_LIBS="$LIBS"
9114 cat > conftest.$ac_ext <<EOF
9115 #line 9116 "configure"
9116 #include "confdefs.h"
9117 /* Override any gcc2 internal prototype to avoid an error. */
9118 /* We use char because int might match the return type of a gcc2
9119 builtin and then its argument prototype would still apply. */
9126 if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9128 eval "ac_cv_lib_$ac_lib_var=yes"
9130 echo "configure: failed program was:" >&5
9131 cat conftest.$ac_ext >&5
9133 eval "ac_cv_lib_$ac_lib_var=no"
9136 LIBS="$ac_save_LIBS"
9139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9140 echo "$ac_t""yes" 1>&6
9141 ol_cv_lib_ndbm=-ldbm
9143 echo "$ac_t""no" 1>&6
9156 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9159 for ac_hdr in ndbm.h
9161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9163 echo "configure:9164: checking for $ac_hdr" >&5
9164 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9173 { (eval echo configure:9174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9175 if test -z "$ac_err"; then
9177 eval "ac_cv_header_$ac_safe=yes"
9180 echo "configure: failed program was:" >&5
9181 cat conftest.$ac_ext >&5
9183 eval "ac_cv_header_$ac_safe=no"
9187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9190 cat >> confdefs.h <<EOF
9191 #define $ac_tr_hdr 1
9195 echo "$ac_t""no" 1>&6
9199 echo $ac_n "checking for db""... $ac_c" 1>&6
9200 echo "configure:9201: checking for db" >&5
9201 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9205 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9213 echo "$ac_t""$ol_cv_ndbm" 1>&6
9214 if test $ol_cv_ndbm = yes ; then
9215 cat >> confdefs.h <<\EOF
9222 if test $ol_cv_ndbm = yes ; then
9224 ol_with_ldbm_api=ndbm
9226 if test $ol_cv_lib_ndbm != yes ; then
9227 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9232 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9233 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9234 if test $ol_enable_ldbm = yes ; then
9235 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9238 echo "configure: warning: disabling LDBM" 1>&2
9242 if test $ol_enable_wrappers != no ; then
9243 for ac_hdr in tcpd.h
9245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9247 echo "configure:9248: checking for $ac_hdr" >&5
9248 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9249 echo $ac_n "(cached) $ac_c" 1>&6
9251 cat > conftest.$ac_ext <<EOF
9252 #line 9253 "configure"
9253 #include "confdefs.h"
9256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9257 { (eval echo configure:9258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9259 if test -z "$ac_err"; then
9261 eval "ac_cv_header_$ac_safe=yes"
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9267 eval "ac_cv_header_$ac_safe=no"
9271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9272 echo "$ac_t""yes" 1>&6
9273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9274 cat >> confdefs.h <<EOF
9275 #define $ac_tr_hdr 1
9279 echo "$ac_t""no" 1>&6
9284 if test $ac_cv_header_tcpd_h != yes ; then
9287 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9288 echo "configure:9289: checking for main in -lwrap" >&5
9289 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
9290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9291 echo $ac_n "(cached) $ac_c" 1>&6
9293 ac_save_LIBS="$LIBS"
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 eval "ac_cv_lib_$ac_lib_var=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_lib_$ac_lib_var=no"
9313 LIBS="$ac_save_LIBS"
9316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9320 echo "$ac_t""no" 1>&6
9326 if test $have_wrappers = yes ; then
9327 cat >> confdefs.h <<\EOF
9331 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9333 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9334 echo "configure:9335: checking for main in -lnsl" >&5
9335 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9336 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9339 ac_save_LIBS="$LIBS"
9341 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure"
9343 #include "confdefs.h"
9349 if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9351 eval "ac_cv_lib_$ac_lib_var=yes"
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 eval "ac_cv_lib_$ac_lib_var=no"
9359 LIBS="$ac_save_LIBS"
9362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9363 echo "$ac_t""yes" 1>&6
9364 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9366 cat >> confdefs.h <<EOF
9367 #define $ac_tr_lib 1
9373 echo "$ac_t""no" 1>&6
9377 echo "configure: warning: could not find -lwrap" 1>&2
9378 if test $ol_enable_wrappers = yes ; then
9379 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9382 echo "configure: warning: disabling wrappers support" 1>&2
9383 ol_enable_wrappers=no
9387 if test $ol_enable_syslog != no ; then
9388 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9389 echo "configure:9390: checking for openlog" >&5
9390 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
9391 echo $ac_n "(cached) $ac_c" 1>&6
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9396 /* System header to define __stub macros and hopefully few prototypes,
9397 which can conflict with char openlog(); below. */
9399 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined (__stub_openlog) || defined (__stub___openlog)
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 eval "ac_cv_func_openlog=yes"
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 eval "ac_cv_func_openlog=no"
9430 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9431 echo "$ac_t""yes" 1>&6
9434 echo "$ac_t""no" 1>&6
9437 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9438 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9440 ol_enable_syslog=$ac_cv_func_openlog
9443 if test $ol_enable_dmalloc != no ; then
9444 for ac_hdr in dmalloc.h
9446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9448 echo "configure:9449: checking for $ac_hdr" >&5
9449 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9458 { (eval echo configure:9459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9460 if test -z "$ac_err"; then
9462 eval "ac_cv_header_$ac_safe=yes"
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9468 eval "ac_cv_header_$ac_safe=no"
9472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9473 echo "$ac_t""yes" 1>&6
9474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9475 cat >> confdefs.h <<EOF
9476 #define $ac_tr_hdr 1
9480 echo "$ac_t""no" 1>&6
9484 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9485 echo "configure:9486: checking for dmalloc_shutdown in -ldmalloc" >&5
9486 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
9487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9490 ac_save_LIBS="$LIBS"
9491 LIBS="-ldmalloc $LIBS"
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9498 char dmalloc_shutdown();
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506 eval "ac_cv_lib_$ac_lib_var=yes"
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 eval "ac_cv_lib_$ac_lib_var=no"
9514 LIBS="$ac_save_LIBS"
9517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9518 echo "$ac_t""yes" 1>&6
9519 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9521 cat >> confdefs.h <<EOF
9522 #define $ac_tr_lib 1
9525 LIBS="-ldmalloc $LIBS"
9528 echo "$ac_t""no" 1>&6
9533 if test $ol_enable_tcl != no ; then
9536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9538 echo "configure:9539: checking for $ac_hdr" >&5
9539 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9548 { (eval echo configure:9549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9550 if test -z "$ac_err"; then
9552 eval "ac_cv_header_$ac_safe=yes"
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9558 eval "ac_cv_header_$ac_safe=no"
9562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9565 cat >> confdefs.h <<EOF
9566 #define $ac_tr_hdr 1
9570 echo "$ac_t""no" 1>&6
9575 if test $ac_cv_header_tcl_h != yes ; then
9578 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9579 echo "configure:9580: checking for main in -ltcl" >&5
9580 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
9581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9584 ac_save_LIBS="$LIBS"
9586 cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure"
9588 #include "confdefs.h"
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9596 eval "ac_cv_lib_$ac_lib_var=yes"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 eval "ac_cv_lib_$ac_lib_var=no"
9604 LIBS="$ac_save_LIBS"
9607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9608 echo "$ac_t""yes" 1>&6
9609 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9611 echo "$ac_t""no" 1>&6
9616 if test $have_tcl != yes; then
9617 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9618 echo "configure:9619: checking for main in -ltcl7.6" >&5
9619 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
9620 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9623 ac_save_LIBS="$LIBS"
9624 LIBS="-ltcl7.6 $LIBS"
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9633 if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9635 eval "ac_cv_lib_$ac_lib_var=yes"
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9640 eval "ac_cv_lib_$ac_lib_var=no"
9643 LIBS="$ac_save_LIBS"
9646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9648 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9650 echo "$ac_t""no" 1>&6
9656 if test $have_tcl != yes; then
9657 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9658 echo "configure:9659: checking for main in -ltcl8.0" >&5
9659 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
9660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9661 echo $ac_n "(cached) $ac_c" 1>&6
9663 ac_save_LIBS="$LIBS"
9664 LIBS="-ltcl8.0 $LIBS"
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675 eval "ac_cv_lib_$ac_lib_var=yes"
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9680 eval "ac_cv_lib_$ac_lib_var=no"
9683 LIBS="$ac_save_LIBS"
9686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9687 echo "$ac_t""yes" 1>&6
9688 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9690 echo "$ac_t""no" 1>&6
9697 if test $have_tcl != yes ; then
9698 echo "configure: warning: could not find -ltcl" 1>&2
9699 if test $ol_enable_tcl = yes ; then
9700 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9707 # ud needs termcap (should insert check here)
9709 for ac_hdr in termcap.h ncurses.h
9711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9713 echo "configure:9714: checking for $ac_hdr" >&5
9714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9715 echo $ac_n "(cached) $ac_c" 1>&6
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9723 { (eval echo configure:9724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9725 if test -z "$ac_err"; then
9727 eval "ac_cv_header_$ac_safe=yes"
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9733 eval "ac_cv_header_$ac_safe=no"
9737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9738 echo "$ac_t""yes" 1>&6
9739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9740 cat >> confdefs.h <<EOF
9741 #define $ac_tr_hdr 1
9745 echo "$ac_t""no" 1>&6
9750 if test $ol_link_termcap = no ; then
9751 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9752 echo "configure:9753: checking for tputs in -ltermcap" >&5
9753 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
9754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9757 ac_save_LIBS="$LIBS"
9758 LIBS="-ltermcap $LIBS"
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9771 if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9773 eval "ac_cv_lib_$ac_lib_var=yes"
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 eval "ac_cv_lib_$ac_lib_var=no"
9781 LIBS="$ac_save_LIBS"
9784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9785 echo "$ac_t""yes" 1>&6
9788 echo "$ac_t""no" 1>&6
9792 if test $have_termcap = yes ; then
9793 cat >> confdefs.h <<\EOF
9794 #define HAVE_TERMCAP 1
9798 TERMCAP_LIBS=-ltermcap
9802 if test $ol_link_termcap = no ; then
9803 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9804 echo "configure:9805: checking for initscr in -lncurses" >&5
9805 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
9806 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9809 ac_save_LIBS="$LIBS"
9810 LIBS="-lncurses $LIBS"
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 /* Override any gcc2 internal prototype to avoid an error. */
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9825 eval "ac_cv_lib_$ac_lib_var=yes"
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9830 eval "ac_cv_lib_$ac_lib_var=no"
9833 LIBS="$ac_save_LIBS"
9836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9837 echo "$ac_t""yes" 1>&6
9840 echo "$ac_t""no" 1>&6
9844 if test $have_ncurses = yes ; then
9845 cat >> confdefs.h <<\EOF
9846 #define HAVE_NCURSES 1
9850 TERMCAP_LIBS=-lncurses
9854 if test $ol_link_termcap = no ; then
9855 cat >> confdefs.h <<\EOF
9856 #define NO_TERMCAP 1
9863 if test $ol_with_readline != no ; then
9864 for ac_hdr in readline/readline.h readline/history.h
9866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9868 echo "configure:9869: checking for $ac_hdr" >&5
9869 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9878 { (eval echo configure:9879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9880 if test -z "$ac_err"; then
9882 eval "ac_cv_header_$ac_safe=yes"
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9888 eval "ac_cv_header_$ac_safe=no"
9892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9893 echo "$ac_t""yes" 1>&6
9894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9895 cat >> confdefs.h <<EOF
9896 #define $ac_tr_hdr 1
9900 echo "$ac_t""no" 1>&6
9905 if test $ac_cv_header_readline_readline_h = yes ; then
9907 LIBS="$TERMCAP_LIBS $LIBS"
9908 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9909 echo "configure:9910: checking for readline in -lreadline" >&5
9910 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
9911 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9914 ac_save_LIBS="$LIBS"
9915 LIBS="-lreadline $LIBS"
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 /* Override any gcc2 internal prototype to avoid an error. */
9920 /* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9928 if { (eval echo configure:9929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930 eval "ac_cv_lib_$ac_lib_var=yes"
9932 echo "configure: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9935 eval "ac_cv_lib_$ac_lib_var=no"
9938 LIBS="$ac_save_LIBS"
9941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9942 echo "$ac_t""yes" 1>&6
9945 echo "$ac_t""no" 1>&6
9951 if test $have_readline = yes ; then
9952 ol_with_readline=found
9953 ol_link_readline=yes
9955 READLINE_LIBS="-lreadline"
9960 if test $ol_link_readline = yes ; then
9961 cat >> confdefs.h <<\EOF
9962 #define HAVE_READLINE 1
9968 # FreeBSD (and others) have crypt(3) in -lcrypt
9969 if test $ol_enable_crypt != no ; then
9970 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9971 echo "configure:9972: checking for crypt" >&5
9972 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char crypt(); below. */
9981 /* Override any gcc2 internal prototype to avoid an error. */
9982 /* We use char because int might match the return type of a gcc2
9983 builtin and then its argument prototype would still apply. */
9989 /* The GNU C library defines this for functions which it implements
9990 to always fail with ENOSYS. Some functions are actually named
9991 something starting with __ and the normal name is an alias. */
9992 #if defined (__stub_crypt) || defined (__stub___crypt)
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 eval "ac_cv_func_crypt=yes"
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 eval "ac_cv_func_crypt=no"
10012 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10013 echo "$ac_t""yes" 1>&6
10016 echo "$ac_t""no" 1>&6
10018 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10019 echo "configure:10020: checking for crypt in -lcrypt" >&5
10020 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
10021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 ac_save_LIBS="$LIBS"
10025 LIBS="-lcrypt $LIBS"
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 /* Override any gcc2 internal prototype to avoid an error. */
10030 /* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 eval "ac_cv_lib_$ac_lib_var=yes"
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 eval "ac_cv_lib_$ac_lib_var=no"
10048 LIBS="$ac_save_LIBS"
10051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10056 echo "$ac_t""no" 1>&6
10063 if test $have_crypt = yes ; then
10064 cat >> confdefs.h <<\EOF
10065 #define HAVE_CRYPT 1
10069 echo "configure: warning: could not find crypt" 1>&2
10070 if test $ol_enable_crypt = yes ; then
10071 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10074 echo "configure: warning: disabling crypt support" 1>&2
10079 # FreeBSD (and others) have setproctitle(3) in -lutil
10080 if test $ol_enable_proctitle != no ; then
10081 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10082 echo "configure:10083: checking for setproctitle" >&5
10083 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char setproctitle(); below. */
10091 #include <assert.h>
10092 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10095 char setproctitle();
10100 /* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_func_setproctitle=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_func_setproctitle=no"
10123 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 have_setproctitle=yes
10127 echo "$ac_t""no" 1>&6
10129 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10130 echo "configure:10131: checking for setproctitle in -lutil" >&5
10131 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
10132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10135 ac_save_LIBS="$LIBS"
10136 LIBS="-lutil $LIBS"
10137 cat > conftest.$ac_ext <<EOF
10138 #line 10139 "configure"
10139 #include "confdefs.h"
10140 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char setproctitle();
10149 if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10151 eval "ac_cv_lib_$ac_lib_var=yes"
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10156 eval "ac_cv_lib_$ac_lib_var=no"
10159 LIBS="$ac_save_LIBS"
10162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10163 echo "$ac_t""yes" 1>&6
10164 have_setproctitle=yes
10165 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10167 echo "$ac_t""no" 1>&6
10168 have_setproctitle=no
10169 LIBOBJS="$LIBOBJS setproctitle.o"
10175 if test $have_setproctitle = yes ; then
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_SETPROCTITLE 1
10184 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
10185 echo "configure:10186: checking for EBCDIC" >&5
10186 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10190 cat > conftest.$ac_ext <<EOF
10191 #line 10192 "configure"
10192 #include "confdefs.h"
10195 #include <__ASCII__/generate_error.h>
10199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10200 { (eval echo configure:10201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10202 if test -z "$ac_err"; then
10204 ol_cv_cpp_ebcdic=yes
10207 echo "configure: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10210 ol_cv_cpp_ebcdic=no
10215 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
10216 if test $ol_cv_cpp_ebcdic = yes ; then
10217 cat >> confdefs.h <<\EOF
10218 #define HAVE_EBCDIC 1
10223 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10224 echo "configure:10225: checking for ANSI C header files" >&5
10225 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 #include <stdlib.h>
10232 #include <stdarg.h>
10233 #include <string.h>
10236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10237 { (eval echo configure:10238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10239 if test -z "$ac_err"; then
10241 ol_cv_header_stdc=yes
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 ol_cv_header_stdc=no
10251 if test $ol_cv_header_stdc = yes; then
10252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <string.h>
10258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10259 egrep "memchr" >/dev/null 2>&1; then
10263 ol_cv_header_stdc=no
10269 if test $ol_cv_header_stdc = yes; then
10270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10271 cat > conftest.$ac_ext <<EOF
10272 #line 10273 "configure"
10273 #include "confdefs.h"
10274 #include <stdlib.h>
10276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10277 egrep "free" >/dev/null 2>&1; then
10281 ol_cv_header_stdc=no
10287 if test $ol_cv_header_stdc = yes; then
10288 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10289 if test "$cross_compiling" = yes; then
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10296 #ifndef HAVE_EBCDIC
10297 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10298 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10300 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10301 || ('j' <= (c) && (c) <= 'r') \
10302 || ('s' <= (c) && (c) <= 'z'))
10303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10306 int main () { int i; for (i = 0; i < 256; i++)
10307 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 ol_cv_header_stdc=no
10326 echo "$ac_t""$ol_cv_header_stdc" 1>&6
10327 if test $ol_cv_header_stdc = yes; then
10328 cat >> confdefs.h <<\EOF
10329 #define STDC_HEADERS 1
10333 ac_cv_header_stdc=disable
10336 if test $ol_cv_header_stdc != yes; then
10337 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
10340 ac_header_dirent=no
10341 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
10343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10344 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
10345 echo "configure:10346: checking for $ac_hdr that defines DIR" >&5
10346 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10349 cat > conftest.$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10352 #include <sys/types.h>
10358 if { (eval echo configure:10359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10360 eval "ac_cv_header_dirent_$ac_safe=yes"
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 eval "ac_cv_header_dirent_$ac_safe=no"
10369 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
10370 echo "$ac_t""yes" 1>&6
10371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10372 cat >> confdefs.h <<EOF
10373 #define $ac_tr_hdr 1
10375 ac_header_dirent=$ac_hdr; break
10377 echo "$ac_t""no" 1>&6
10380 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10381 if test $ac_header_dirent = dirent.h; then
10382 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
10383 echo "configure:10384: checking for opendir in -ldir" >&5
10384 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
10385 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10388 ac_save_LIBS="$LIBS"
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10393 /* Override any gcc2 internal prototype to avoid an error. */
10394 /* We use char because int might match the return type of a gcc2
10395 builtin and then its argument prototype would still apply. */
10402 if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10404 eval "ac_cv_lib_$ac_lib_var=yes"
10406 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5
10409 eval "ac_cv_lib_$ac_lib_var=no"
10412 LIBS="$ac_save_LIBS"
10415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10416 echo "$ac_t""yes" 1>&6
10419 echo "$ac_t""no" 1>&6
10423 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
10424 echo "configure:10425: checking for opendir in -lx" >&5
10425 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
10426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10429 ac_save_LIBS="$LIBS"
10431 cat > conftest.$ac_ext <<EOF
10432 #line 10433 "configure"
10433 #include "confdefs.h"
10434 /* Override any gcc2 internal prototype to avoid an error. */
10435 /* We use char because int might match the return type of a gcc2
10436 builtin and then its argument prototype would still apply. */
10443 if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10445 eval "ac_cv_lib_$ac_lib_var=yes"
10447 echo "configure: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10450 eval "ac_cv_lib_$ac_lib_var=no"
10453 LIBS="$ac_save_LIBS"
10456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10457 echo "$ac_t""yes" 1>&6
10460 echo "$ac_t""no" 1>&6
10465 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
10466 echo "configure:10467: checking for sys/wait.h that is POSIX.1 compatible" >&5
10467 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10470 cat > conftest.$ac_ext <<EOF
10471 #line 10472 "configure"
10472 #include "confdefs.h"
10473 #include <sys/types.h>
10474 #include <sys/wait.h>
10475 #ifndef WEXITSTATUS
10476 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10479 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10487 if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10489 ac_cv_header_sys_wait_h=yes
10491 echo "configure: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10494 ac_cv_header_sys_wait_h=no
10499 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
10500 if test $ac_cv_header_sys_wait_h = yes; then
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_SYS_WAIT_H 1
10507 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
10508 echo "configure:10509: checking POSIX termios" >&5
10509 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10515 #include <sys/types.h>
10516 #include <unistd.h>
10517 #include <termios.h>
10519 /* SunOS 4.0.3 has termios.h but not the library calls. */
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10525 am_cv_sys_posix_termios=yes
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 am_cv_sys_posix_termios=no
10535 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
10538 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
10539 echo "configure:10540: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
10540 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10543 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
10545 gwinsz_in_termios_h=no
10546 if test $am_cv_sys_posix_termios = yes; then
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10550 #include <sys/types.h>
10551 # include <termios.h>
10557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10558 egrep "yes" >/dev/null 2>&1; then
10560 gwinsz_in_termios_h=yes
10566 if test $gwinsz_in_termios_h = no; then
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10570 #include <sys/types.h>
10571 # include <sys/ioctl.h>
10577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10578 egrep "yes" >/dev/null 2>&1; then
10580 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10588 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10589 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10590 cat >> confdefs.h <<\EOF
10591 #define GWINSZ_IN_SYS_IOCTL 1
10596 if test $am_cv_sys_posix_termios = yes ; then
10597 cat >> confdefs.h <<\EOF
10598 #define HAVE_POSIX_TERMIOS 1
10645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10647 echo "configure:10648: checking for $ac_hdr" >&5
10648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10659 if test -z "$ac_err"; then
10661 eval "ac_cv_header_$ac_safe=yes"
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 eval "ac_cv_header_$ac_safe=no"
10671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10674 cat >> confdefs.h <<EOF
10675 #define $ac_tr_hdr 1
10679 echo "$ac_t""no" 1>&6
10684 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10685 echo "configure:10686: checking for uid_t in sys/types.h" >&5
10686 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10689 cat > conftest.$ac_ext <<EOF
10690 #line 10691 "configure"
10691 #include "confdefs.h"
10692 #include <sys/types.h>
10694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10695 egrep "uid_t" >/dev/null 2>&1; then
10697 ac_cv_type_uid_t=yes
10700 ac_cv_type_uid_t=no
10706 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10707 if test $ac_cv_type_uid_t = no; then
10708 cat >> confdefs.h <<\EOF
10712 cat >> confdefs.h <<\EOF
10718 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10719 echo "configure:10720: checking type of array argument to getgroups" >&5
10720 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10723 if test "$cross_compiling" = yes; then
10724 ac_cv_type_getgroups=cross
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10730 /* Thanks to Mike Rendell for this test. */
10731 #include <sys/types.h>
10734 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10737 gid_t gidset[NGID];
10739 union { gid_t gval; long lval; } val;
10742 for (i = 0; i < NGID; i++)
10743 gidset[i] = val.gval;
10744 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10746 /* Exit non-zero if getgroups seems to require an array of ints. This
10747 happens when gid_t is short but getgroups modifies an array of ints. */
10748 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10754 ac_cv_type_getgroups=gid_t
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 ac_cv_type_getgroups=int
10764 if test $ac_cv_type_getgroups = cross; then
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10768 #include <unistd.h>
10770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10771 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10773 ac_cv_type_getgroups=gid_t
10776 ac_cv_type_getgroups=int
10783 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10784 cat >> confdefs.h <<EOF
10785 #define GETGROUPS_T $ac_cv_type_getgroups
10788 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10789 echo "configure:10790: checking for ANSI C header files" >&5
10790 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10796 #include <stdlib.h>
10797 #include <stdarg.h>
10798 #include <string.h>
10801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10802 { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10804 if test -z "$ac_err"; then
10806 ac_cv_header_stdc=yes
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10812 ac_cv_header_stdc=no
10816 if test $ac_cv_header_stdc = yes; then
10817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 #include <string.h>
10823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10824 egrep "memchr" >/dev/null 2>&1; then
10828 ac_cv_header_stdc=no
10834 if test $ac_cv_header_stdc = yes; then
10835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10839 #include <stdlib.h>
10841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10842 egrep "free" >/dev/null 2>&1; then
10846 ac_cv_header_stdc=no
10852 if test $ac_cv_header_stdc = yes; then
10853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10854 if test "$cross_compiling" = yes; then
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10861 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10862 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10864 int main () { int i; for (i = 0; i < 256; i++)
10865 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10869 if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10876 ac_cv_header_stdc=no
10884 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10885 if test $ac_cv_header_stdc = yes; then
10886 cat >> confdefs.h <<\EOF
10887 #define STDC_HEADERS 1
10892 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10893 echo "configure:10894: checking for mode_t" >&5
10894 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10897 cat > conftest.$ac_ext <<EOF
10898 #line 10899 "configure"
10899 #include "confdefs.h"
10900 #include <sys/types.h>
10902 #include <stdlib.h>
10903 #include <stddef.h>
10906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10907 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10909 eval "ac_cv_type_mode_t=yes"
10912 eval "ac_cv_type_mode_t=no"
10917 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10920 echo "$ac_t""no" 1>&6
10921 cat >> confdefs.h <<EOF
10927 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10928 echo "configure:10929: checking for off_t" >&5
10929 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
10930 echo $ac_n "(cached) $ac_c" 1>&6
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 #include <sys/types.h>
10937 #include <stdlib.h>
10938 #include <stddef.h>
10941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10944 eval "ac_cv_type_off_t=yes"
10947 eval "ac_cv_type_off_t=no"
10952 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
10953 echo "$ac_t""yes" 1>&6
10955 echo "$ac_t""no" 1>&6
10956 cat >> confdefs.h <<EOF
10962 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10963 echo "configure:10964: checking for pid_t" >&5
10964 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <sys/types.h>
10972 #include <stdlib.h>
10973 #include <stddef.h>
10976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10977 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10979 eval "ac_cv_type_pid_t=yes"
10982 eval "ac_cv_type_pid_t=no"
10987 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10990 echo "$ac_t""no" 1>&6
10991 cat >> confdefs.h <<EOF
10997 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10998 echo "configure:10999: checking for ptrdiff_t" >&5
10999 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11005 #include <stddef.h>
11010 if { (eval echo configure:11011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11012 am_cv_type_ptrdiff_t=yes
11014 echo "configure: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11017 am_cv_type_ptrdiff_t=no
11022 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11023 if test $am_cv_type_ptrdiff_t = yes; then
11024 cat >> confdefs.h <<\EOF
11025 #define HAVE_PTRDIFF_T 1
11030 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11031 echo "configure:11032: checking return type of signal handlers" >&5
11032 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11035 cat > conftest.$ac_ext <<EOF
11036 #line 11037 "configure"
11037 #include "confdefs.h"
11038 #include <sys/types.h>
11039 #include <signal.h>
11044 extern "C" void (*signal (int, void (*)(int)))(int);
11046 void (*signal ()) ();
11053 if { (eval echo configure:11054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11055 ac_cv_type_signal=void
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 ac_cv_type_signal=int
11065 echo "$ac_t""$ac_cv_type_signal" 1>&6
11066 cat >> confdefs.h <<EOF
11067 #define RETSIGTYPE $ac_cv_type_signal
11071 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11072 echo "configure:11073: checking for sig_atomic_t" >&5
11073 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079 #include <signal.h>
11081 sig_atomic_t atomic;
11084 if { (eval echo configure:11085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11086 ol_cv_type_sig_atomic_t=yes
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 ol_cv_type_sig_atomic_t=no
11096 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11097 if test $ol_cv_type_sig_atomic_t = no; then
11098 cat >> confdefs.h <<\EOF
11099 #define sig_atomic_t int
11104 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11105 echo "configure:11106: checking for size_t" >&5
11106 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11112 #include <sys/types.h>
11114 #include <stdlib.h>
11115 #include <stddef.h>
11118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11119 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11121 eval "ac_cv_type_size_t=yes"
11124 eval "ac_cv_type_size_t=no"
11129 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11130 echo "$ac_t""yes" 1>&6
11132 echo "$ac_t""no" 1>&6
11133 cat >> confdefs.h <<EOF
11134 #define size_t unsigned
11139 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11140 echo "configure:11141: checking for socklen_t" >&5
11141 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11148 #ifdef HAVE_SYS_TYPES_H
11149 #include <sys/types.h>
11151 #ifdef HAVE_SYS_SOCKET_H
11152 #include <sys/socket.h>
11159 if { (eval echo configure:11160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11161 ol_cv_type_socklen_t=yes
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11166 ol_cv_type_socklen_t=no
11171 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11172 if test $ol_cv_type_socklen_t = no; then
11173 cat >> confdefs.h <<\EOF
11174 #define socklen_t int
11179 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11180 echo "configure:11181: checking for member st_blksize in aggregate type struct stat" >&5
11181 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 #include <sys/types.h>
11188 #include <sys/stat.h>
11190 struct stat foo; foo.st_blksize;
11193 if { (eval echo configure:11194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11195 ac_cv_c_struct_member_st_blksize=yes
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 ac_cv_c_struct_member_st_blksize=no
11205 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11206 st_blksize="$ac_cv_c_struct_member_st_blksize"
11207 if test $ac_cv_c_struct_member_st_blksize = yes; then
11208 cat >> confdefs.h <<\EOF
11209 #define HAVE_ST_BLKSIZE 1
11214 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11215 echo "configure:11216: checking whether time.h and sys/time.h may both be included" >&5
11216 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11222 #include <sys/types.h>
11223 #include <sys/time.h>
11229 if { (eval echo configure:11230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11231 ac_cv_header_time=yes
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11236 ac_cv_header_time=no
11241 echo "$ac_t""$ac_cv_header_time" 1>&6
11242 if test $ac_cv_header_time = yes; then
11243 cat >> confdefs.h <<\EOF
11244 #define TIME_WITH_SYS_TIME 1
11249 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11250 echo "configure:11251: checking whether struct tm is in sys/time.h or time.h" >&5
11251 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11252 echo $ac_n "(cached) $ac_c" 1>&6
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 #include <sys/types.h>
11260 struct tm *tp; tp->tm_sec;
11263 if { (eval echo configure:11264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11265 ac_cv_struct_tm=time.h
11267 echo "configure: failed program was:" >&5
11268 cat conftest.$ac_ext >&5
11270 ac_cv_struct_tm=sys/time.h
11275 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11276 if test $ac_cv_struct_tm = sys/time.h; then
11277 cat >> confdefs.h <<\EOF
11278 #define TM_IN_SYS_TIME 1
11283 # test for pw_gecos in struct passwd
11284 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11285 echo "configure:11286: checking struct passwd for pw_gecos" >&5
11286 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11287 echo $ac_n "(cached) $ac_c" 1>&6
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11297 pwd.pw_gecos = pwd.pw_name;
11301 if { (eval echo configure:11302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11303 ol_cv_struct_passwd_pw_gecos=yes
11305 echo "configure: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11308 ol_cv_struct_passwd_pw_gecos=no
11313 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11314 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11315 cat >> confdefs.h <<\EOF
11316 #define HAVE_PW_GECOS 1
11321 # test for pw_passwd in struct passwd
11322 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11323 echo "configure:11324: checking struct passwd for pw_passwd" >&5
11324 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11335 pwd.pw_passwd = pwd.pw_name;
11339 if { (eval echo configure:11340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11341 ol_cv_struct_passwd_pw_passwd=yes
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 ol_cv_struct_passwd_pw_passwd=no
11351 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11352 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11353 cat >> confdefs.h <<\EOF
11354 #define HAVE_PW_PASSWD 1
11360 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11361 echo "configure:11362: checking if toupper() requires islower()" >&5
11362 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11366 if test "$cross_compiling" = yes; then
11367 ol_cv_c_upper_lower=safe
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11376 if ('C' == toupper('C'))
11382 if { (eval echo configure:11383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11384 ol_cv_c_upper_lower=no
11386 echo "configure: failed program was:" >&5
11387 cat conftest.$ac_ext >&5
11389 ol_cv_c_upper_lower=yes
11396 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11397 if test $ol_cv_c_upper_lower != no ; then
11398 cat >> confdefs.h <<\EOF
11399 #define C_UPPER_LOWER 1
11404 echo $ac_n "checking for working const""... $ac_c" 1>&6
11405 echo "configure:11406: checking for working const" >&5
11406 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11407 echo $ac_n "(cached) $ac_c" 1>&6
11409 cat > conftest.$ac_ext <<EOF
11410 #line 11411 "configure"
11411 #include "confdefs.h"
11415 /* Ultrix mips cc rejects this. */
11416 typedef int charset[2]; const charset x;
11417 /* SunOS 4.1.1 cc rejects this. */
11418 char const *const *ccp;
11420 /* NEC SVR4.0.2 mips cc rejects this. */
11421 struct point {int x, y;};
11422 static struct point const zero = {0,0};
11423 /* AIX XL C 1.02.0.0 rejects this.
11424 It does not let you subtract one const X* pointer from another in an arm
11425 of an if-expression whose if-part is not a constant expression */
11426 const char *g = "string";
11427 ccp = &g + (g ? g-g : 0);
11428 /* HPUX 7.0 cc rejects these. */
11431 ccp = (char const *const *) p;
11432 { /* SCO 3.2v4 cc rejects this. */
11434 char const *s = 0 ? (char *) 0 : (char const *) 0;
11438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11439 int x[] = {25, 17};
11440 const int *foo = &x[0];
11443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11444 typedef const int *iptr;
11448 { /* AIX XL C 1.02.0.0 rejects this saying
11449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11450 struct s { int j; const int *ap[3]; };
11451 struct s *b; b->j = 5;
11453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11454 const int foo = 10;
11459 if { (eval echo configure:11460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11471 echo "$ac_t""$ac_cv_c_const" 1>&6
11472 if test $ac_cv_c_const = no; then
11473 cat >> confdefs.h <<\EOF
11479 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11480 echo "configure:11481: checking if compiler understands volatile" >&5
11481 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11482 echo $ac_n "(cached) $ac_c" 1>&6
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11489 volatile int a; int * volatile b = x ? &y : &z;
11490 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11494 if { (eval echo configure:11495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11496 ol_cv_c_volatile=yes
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 ol_cv_c_volatile=no
11506 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11507 if test $ol_cv_c_volatile = yes; then
11510 cat >> confdefs.h <<\EOF
11517 if test $cross_compiling = yes ; then
11518 cat >> confdefs.h <<\EOF
11519 #define CROSS_COMPILING 1
11523 cat >> confdefs.h <<\EOF
11524 #define LBER_INT_T long
11527 cat >> confdefs.h <<\EOF
11528 #define LBER_TAG_T long
11531 cat >> confdefs.h <<\EOF
11532 #define LBER_SOCKET_T int
11537 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11538 echo "configure:11539: checking whether byte ordering is bigendian" >&5
11539 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11542 ac_cv_c_bigendian=unknown
11543 # See if sys/param.h defines the BYTE_ORDER macro.
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 #include <sys/types.h>
11548 #include <sys/param.h>
11551 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11552 bogus endian macros
11556 if { (eval echo configure:11557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11558 # It does; now see whether it defined to BIG_ENDIAN or not.
11559 cat > conftest.$ac_ext <<EOF
11560 #line 11561 "configure"
11561 #include "confdefs.h"
11562 #include <sys/types.h>
11563 #include <sys/param.h>
11566 #if BYTE_ORDER != BIG_ENDIAN
11571 if { (eval echo configure:11572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11573 ac_cv_c_bigendian=yes
11575 echo "configure: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11578 ac_cv_c_bigendian=no
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11586 if test $ac_cv_c_bigendian = unknown; then
11587 if test "$cross_compiling" = yes; then
11588 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11594 /* Are we little or big endian? From Harbison&Steele. */
11598 char c[sizeof (long)];
11601 exit (u.c[sizeof (long) - 1] == 1);
11604 if { (eval echo configure:11605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11606 ac_cv_c_bigendian=no
11608 echo "configure: failed program was:" >&5
11609 cat conftest.$ac_ext >&5
11611 ac_cv_c_bigendian=yes
11619 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11620 if test $ac_cv_c_bigendian = yes; then
11621 cat >> confdefs.h <<\EOF
11622 #define WORDS_BIGENDIAN 1
11627 echo $ac_n "checking size of short""... $ac_c" 1>&6
11628 echo "configure:11629: checking size of short" >&5
11629 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11632 if test "$cross_compiling" = yes; then
11633 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11635 cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11641 FILE *f=fopen("conftestval", "w");
11643 fprintf(f, "%d\n", sizeof(short));
11647 if { (eval echo configure:11648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11649 ac_cv_sizeof_short=`cat conftestval`
11651 echo "configure: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11654 ac_cv_sizeof_short=0
11660 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11661 cat >> confdefs.h <<EOF
11662 #define SIZEOF_SHORT $ac_cv_sizeof_short
11666 echo $ac_n "checking size of int""... $ac_c" 1>&6
11667 echo "configure:11668: checking size of int" >&5
11668 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
11669 echo $ac_n "(cached) $ac_c" 1>&6
11671 if test "$cross_compiling" = yes; then
11672 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11680 FILE *f=fopen("conftestval", "w");
11682 fprintf(f, "%d\n", sizeof(int));
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11688 ac_cv_sizeof_int=`cat conftestval`
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11699 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11700 cat >> confdefs.h <<EOF
11701 #define SIZEOF_INT $ac_cv_sizeof_int
11705 echo $ac_n "checking size of long""... $ac_c" 1>&6
11706 echo "configure:11707: checking size of long" >&5
11707 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
11708 echo $ac_n "(cached) $ac_c" 1>&6
11710 if test "$cross_compiling" = yes; then
11711 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11713 cat > conftest.$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11719 FILE *f=fopen("conftestval", "w");
11721 fprintf(f, "%d\n", sizeof(long));
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11727 ac_cv_sizeof_long=`cat conftestval`
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 ac_cv_sizeof_long=0
11738 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11739 cat >> confdefs.h <<EOF
11740 #define SIZEOF_LONG $ac_cv_sizeof_long
11745 if test "$ac_cv_sizeof_int" -lt 4 ; then
11746 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11748 cat >> confdefs.h <<\EOF
11749 #define LBER_INT_T long
11752 cat >> confdefs.h <<\EOF
11753 #define LBER_TAG_T long
11756 cat >> confdefs.h <<\EOF
11757 #define LBER_SOCKET_T int
11761 cat >> confdefs.h <<\EOF
11762 #define LBER_INT_T int
11765 cat >> confdefs.h <<\EOF
11766 #define LBER_TAG_T long
11769 cat >> confdefs.h <<\EOF
11770 #define LBER_SOCKET_T int
11776 cat >> confdefs.h <<\EOF
11777 #define LBER_LEN_T long
11781 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11782 echo "configure:11783: checking for 8-bit clean memcmp" >&5
11783 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11786 if test "$cross_compiling" = yes; then
11787 ac_cv_func_memcmp_clean=no
11789 cat > conftest.$ac_ext <<EOF
11790 #line 11791 "configure"
11791 #include "confdefs.h"
11795 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11796 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11802 ac_cv_func_memcmp_clean=yes
11804 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11807 ac_cv_func_memcmp_clean=no
11814 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11815 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11817 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11818 echo "configure:11819: checking for strftime" >&5
11819 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char strftime(); below. */
11827 #include <assert.h>
11828 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined (__stub_strftime) || defined (__stub___strftime)
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11849 eval "ac_cv_func_strftime=yes"
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11854 eval "ac_cv_func_strftime=no"
11859 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11860 echo "$ac_t""yes" 1>&6
11861 cat >> confdefs.h <<\EOF
11862 #define HAVE_STRFTIME 1
11866 echo "$ac_t""no" 1>&6
11867 # strftime is in -lintl on SCO UNIX.
11868 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11869 echo "configure:11870: checking for strftime in -lintl" >&5
11870 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
11871 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11872 echo $ac_n "(cached) $ac_c" 1>&6
11874 ac_save_LIBS="$LIBS"
11875 LIBS="-lintl $LIBS"
11876 cat > conftest.$ac_ext <<EOF
11877 #line 11878 "configure"
11878 #include "confdefs.h"
11879 /* Override any gcc2 internal prototype to avoid an error. */
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11888 if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11890 eval "ac_cv_lib_$ac_lib_var=yes"
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11895 eval "ac_cv_lib_$ac_lib_var=no"
11898 LIBS="$ac_save_LIBS"
11901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11902 echo "$ac_t""yes" 1>&6
11903 cat >> confdefs.h <<\EOF
11904 #define HAVE_STRFTIME 1
11907 LIBS="-lintl $LIBS"
11909 echo "$ac_t""no" 1>&6
11915 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11916 echo "configure:11917: checking for vprintf" >&5
11917 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
11918 echo $ac_n "(cached) $ac_c" 1>&6
11920 cat > conftest.$ac_ext <<EOF
11921 #line 11922 "configure"
11922 #include "confdefs.h"
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char vprintf(); below. */
11925 #include <assert.h>
11926 /* Override any gcc2 internal prototype to avoid an error. */
11927 /* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11934 /* The GNU C library defines this for functions which it implements
11935 to always fail with ENOSYS. Some functions are actually named
11936 something starting with __ and the normal name is an alias. */
11937 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11947 eval "ac_cv_func_vprintf=yes"
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11952 eval "ac_cv_func_vprintf=no"
11957 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11958 echo "$ac_t""yes" 1>&6
11959 cat >> confdefs.h <<\EOF
11960 #define HAVE_VPRINTF 1
11964 echo "$ac_t""no" 1>&6
11967 if test "$ac_cv_func_vprintf" != yes; then
11968 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11969 echo "configure:11970: checking for _doprnt" >&5
11970 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
11971 echo $ac_n "(cached) $ac_c" 1>&6
11973 cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11976 /* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char _doprnt(); below. */
11978 #include <assert.h>
11979 /* Override any gcc2 internal prototype to avoid an error. */
11980 /* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11998 if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12000 eval "ac_cv_func__doprnt=yes"
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12005 eval "ac_cv_func__doprnt=no"
12010 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 cat >> confdefs.h <<\EOF
12013 #define HAVE_DOPRNT 1
12017 echo "$ac_t""no" 1>&6
12023 if test $ac_cv_func_vprintf = yes ; then
12024 for ac_func in vsnprintf vsprintf
12026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12027 echo "configure:12028: checking for $ac_func" >&5
12028 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
12031 cat > conftest.$ac_ext <<EOF
12032 #line 12033 "configure"
12033 #include "confdefs.h"
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func(); below. */
12036 #include <assert.h>
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12045 /* The GNU C library defines this for functions which it implements
12046 to always fail with ENOSYS. Some functions are actually named
12047 something starting with __ and the normal name is an alias. */
12048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12056 if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12058 eval "ac_cv_func_$ac_func=yes"
12060 echo "configure: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12063 eval "ac_cv_func_$ac_func=no"
12068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12069 echo "$ac_t""yes" 1>&6
12070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12071 cat >> confdefs.h <<EOF
12072 #define $ac_tr_func 1
12076 echo "$ac_t""no" 1>&6
12130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12131 echo "configure:12132: checking for $ac_func" >&5
12132 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12135 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func(); below. */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error. */
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12162 eval "ac_cv_func_$ac_func=yes"
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12167 eval "ac_cv_func_$ac_func=no"
12172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12173 echo "$ac_t""yes" 1>&6
12174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12175 cat >> confdefs.h <<EOF
12176 #define $ac_tr_func 1
12180 echo "$ac_t""no" 1>&6
12185 for ac_func in getopt tempnam
12187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12188 echo "configure:12189: checking for $ac_func" >&5
12189 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12192 cat > conftest.$ac_ext <<EOF
12193 #line 12194 "configure"
12194 #include "confdefs.h"
12195 /* System header to define __stub macros and hopefully few prototypes,
12196 which can conflict with char $ac_func(); below. */
12197 #include <assert.h>
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 /* We use char because int might match the return type of a gcc2
12200 builtin and then its argument prototype would still apply. */
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12217 if { (eval echo configure:12218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12219 eval "ac_cv_func_$ac_func=yes"
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12224 eval "ac_cv_func_$ac_func=no"
12229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12230 echo "$ac_t""yes" 1>&6
12231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12232 cat >> confdefs.h <<EOF
12233 #define $ac_tr_func 1
12237 echo "$ac_t""no" 1>&6
12238 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12244 # Check Configuration
12245 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12246 echo "configure:12247: checking declaration of sys_errlist" >&5
12247 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12248 echo $ac_n "(cached) $ac_c" 1>&6
12251 cat > conftest.$ac_ext <<EOF
12252 #line 12253 "configure"
12253 #include "confdefs.h"
12256 #include <sys/types.h>
12259 char *c = (char *) *sys_errlist
12262 if { (eval echo configure:12263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12264 ol_cv_dcl_sys_errlist=yes
12265 ol_cv_have_sys_errlist=yes
12267 echo "configure: failed program was:" >&5
12268 cat conftest.$ac_ext >&5
12270 ol_cv_dcl_sys_errlist=no
12275 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12277 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12278 if test $ol_cv_dcl_sys_errlist = no ; then
12279 cat >> confdefs.h <<\EOF
12280 #define DECL_SYS_ERRLIST 1
12284 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12285 echo "configure:12286: checking existence of sys_errlist" >&5
12286 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12295 char *c = (char *) *sys_errlist
12298 if { (eval echo configure:12299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12300 ol_cv_have_sys_errlist=yes
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12305 ol_cv_have_sys_errlist=no
12310 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12312 if test $ol_cv_have_sys_errlist = yes ; then
12313 cat >> confdefs.h <<\EOF
12314 #define HAVE_SYS_ERRLIST 1
12321 if test "$ol_enable_debug" != no ; then
12322 cat >> confdefs.h <<\EOF
12323 #define LDAP_DEBUG 1
12327 if test "$ol_enable_syslog" = yes ; then
12328 cat >> confdefs.h <<\EOF
12329 #define LDAP_SYSLOG 1
12333 if test "$ol_enable_libui" = yes ; then
12334 cat >> confdefs.h <<\EOF
12335 #define LDAP_LIBUI 1
12339 if test "$ol_enable_cache" = no ; then
12340 cat >> confdefs.h <<\EOF
12341 #define LDAP_NOCACHE 1
12345 if test "$ol_enable_dns" != no ; then
12346 cat >> confdefs.h <<\EOF
12347 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12351 if test "$ol_enable_proctitle" != no ; then
12352 cat >> confdefs.h <<\EOF
12353 #define LDAP_PROCTITLE 1
12357 if test "$ol_enable_referrals" != no ; then
12358 cat >> confdefs.h <<\EOF
12359 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12363 if test "$ol_enable_cldap" != no ; then
12364 cat >> confdefs.h <<\EOF
12365 #define LDAP_CONNECTIONLESS 1
12370 if test "$ol_enable_crypt" != no ; then
12371 cat >> confdefs.h <<\EOF
12372 #define SLAPD_CRYPT 1
12376 if test "$ol_enable_cleartext" != no ; then
12377 cat >> confdefs.h <<\EOF
12378 #define SLAPD_CLEARTEXT 1
12382 if test "$ol_enable_phonetic" != no ; then
12383 cat >> confdefs.h <<\EOF
12384 #define SLAPD_PHONETIC 1
12388 if test "$ol_enable_rlookups" != no ; then
12389 cat >> confdefs.h <<\EOF
12390 #define SLAPD_RLOOKUPS 1
12395 if test "$ol_link_modules" != no ; then
12396 cat >> confdefs.h <<\EOF
12397 #define SLAPD_MODULES 1
12403 if test "$ol_link_bdb2" != no ; then
12404 cat >> confdefs.h <<\EOF
12405 #define SLAPD_BDB2 1
12410 if test "$ol_with_bdb2_module" != static ; then
12411 cat >> confdefs.h <<\EOF
12412 #define SLAPD_BDB2_DYNAMIC 1
12415 BUILD_BDB2_DYNAMIC=yes
12419 if test "$ol_enable_ldap" != no ; then
12420 cat >> confdefs.h <<\EOF
12421 #define SLAPD_LDAP 1
12426 if test "$ol_with_ldap_module" != static ; then
12427 cat >> confdefs.h <<\EOF
12428 #define SLAPD_LDAP_DYNAMIC 1
12431 BUILD_LDAP_DYNAMIC=yes
12435 if test "$ol_link_ldbm" != no ; then
12436 cat >> confdefs.h <<\EOF
12437 #define SLAPD_LDBM 1
12442 if test "$ol_with_ldbm_module" != static ; then
12443 cat >> confdefs.h <<\EOF
12444 #define SLAPD_LDBM_DYNAMIC 1
12447 BUILD_LDBM_DYNAMIC=yes
12451 if test "$ol_enable_passwd" != no ; then
12452 cat >> confdefs.h <<\EOF
12453 #define SLAPD_PASSWD 1
12458 if test "$ol_with_passwd_module" != static ; then
12459 cat >> confdefs.h <<\EOF
12460 #define SLAPD_PASSWD_DYNAMIC 1
12463 BUILD_PASSWD_DYNAMIC=yes
12467 if test "$ol_link_perl" != no ; then
12468 cat >> confdefs.h <<\EOF
12469 #define SLAPD_PERL 1
12474 if test "$ol_with_perl_module" != static ; then
12475 cat >> confdefs.h <<\EOF
12476 #define SLAPD_PERL_DYNAMIC 1
12479 BUILD_PERL_DYNAMIC=yes
12483 if test "$ol_enable_shell" != no ; then
12484 cat >> confdefs.h <<\EOF
12485 #define SLAPD_SHELL 1
12490 if test "$ol_with_shell_module" != static ; then
12491 cat >> confdefs.h <<\EOF
12492 #define SLAPD_SHELL_DYNAMIC 1
12495 BUILD_SHELL_DYNAMIC=yes
12499 if test "$ol_enable_tcl" != no ; then
12500 cat >> confdefs.h <<\EOF
12501 #define SLAPD_TCL 1
12506 if test "$ol_with_tcl_module" != static; then
12507 cat >> confdefs.h <<\EOF
12508 #define SLAPD_TCL_DYNAMIC 1
12511 BUILD_TCL_DYNAMIC=yes
12515 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12516 $BUILD_SLAPD = yes ; then
12520 if test "$ol_link_isode" != no ; then
12565 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12567 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12568 # Let make expand exec_prefix.
12569 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12571 # Any assignment to VPATH causes Sun make to only execute
12572 # the first set of double-colon rules, so remove it if not needed.
12573 # If there is a colon in the path, we need to keep it.
12574 if test "x$srcdir" = x.; then
12575 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12578 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12580 DEFS=-DHAVE_CONFIG_H
12582 # Without the "./", some shells look in PATH for config.status.
12583 : ${CONFIG_STATUS=./config.status}
12585 echo creating $CONFIG_STATUS
12586 rm -f $CONFIG_STATUS
12587 cat > $CONFIG_STATUS <<EOF
12589 # Generated automatically by configure.
12590 # Run this file to recreate the current configuration.
12591 # This directory was configured as follows,
12592 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12594 # $0 $ac_configure_args
12596 # Compiler output produced by configure, useful for debugging
12597 # configure, is in ./config.log if it exists.
12599 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12602 case "\$ac_option" in
12603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12604 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12605 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12606 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12607 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
12609 -help | --help | --hel | --he | --h)
12610 echo "\$ac_cs_usage"; exit 0 ;;
12611 *) echo "\$ac_cs_usage"; exit 1 ;;
12615 ac_given_srcdir=$srcdir
12616 ac_given_INSTALL="$INSTALL"
12618 trap 'rm -fr `echo "\
12619 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12620 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12621 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12622 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12623 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12624 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12625 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12626 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12627 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12628 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12629 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12630 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12631 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12632 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12633 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12634 include/Makefile:build/top.mk:include/Makefile.in \
12635 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12636 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12637 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12638 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12639 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12640 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12641 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12642 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12643 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12644 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12645 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12646 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12647 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12648 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12649 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12650 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12651 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12652 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12653 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12654 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12655 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12656 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12657 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12658 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12659 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12660 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12661 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12663 cat >> $CONFIG_STATUS <<EOF
12665 # Protect against being on the right side of a sed subst in config.status.
12666 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12667 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12671 s%@CFLAGS@%$CFLAGS%g
12672 s%@CPPFLAGS@%$CPPFLAGS%g
12673 s%@CXXFLAGS@%$CXXFLAGS%g
12674 s%@FFLAGS@%$FFLAGS%g
12676 s%@LDFLAGS@%$LDFLAGS%g
12678 s%@exec_prefix@%$exec_prefix%g
12679 s%@prefix@%$prefix%g
12680 s%@program_transform_name@%$program_transform_name%g
12681 s%@bindir@%$bindir%g
12682 s%@sbindir@%$sbindir%g
12683 s%@libexecdir@%$libexecdir%g
12684 s%@datadir@%$datadir%g
12685 s%@sysconfdir@%$sysconfdir%g
12686 s%@sharedstatedir@%$sharedstatedir%g
12687 s%@localstatedir@%$localstatedir%g
12688 s%@libdir@%$libdir%g
12689 s%@includedir@%$includedir%g
12690 s%@oldincludedir@%$oldincludedir%g
12691 s%@infodir@%$infodir%g
12692 s%@mandir@%$mandir%g
12694 s%@host_alias@%$host_alias%g
12695 s%@host_cpu@%$host_cpu%g
12696 s%@host_vendor@%$host_vendor%g
12697 s%@host_os@%$host_os%g
12698 s%@target@%$target%g
12699 s%@target_alias@%$target_alias%g
12700 s%@target_cpu@%$target_cpu%g
12701 s%@target_vendor@%$target_vendor%g
12702 s%@target_os@%$target_os%g
12704 s%@build_alias@%$build_alias%g
12705 s%@build_cpu@%$build_cpu%g
12706 s%@build_vendor@%$build_vendor%g
12707 s%@build_os@%$build_os%g
12708 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12709 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12710 s%@INSTALL_DATA@%$INSTALL_DATA%g
12711 s%@PACKAGE@%$PACKAGE%g
12712 s%@VERSION@%$VERSION%g
12713 s%@ACLOCAL@%$ACLOCAL%g
12714 s%@AUTOCONF@%$AUTOCONF%g
12715 s%@AUTOMAKE@%$AUTOMAKE%g
12716 s%@AUTOHEADER@%$AUTOHEADER%g
12717 s%@MAKEINFO@%$MAKEINFO%g
12718 s%@install_sh@%$install_sh%g
12721 s%@AMTARFLAGS@%$AMTARFLAGS%g
12722 s%@SET_MAKE@%$SET_MAKE%g
12723 s%@top_builddir@%$top_builddir%g
12724 s%@ldap_subdir@%$ldap_subdir%g
12726 s%@RANLIB@%$RANLIB%g
12730 s%@LIBTOOL@%$LIBTOOL%g
12732 s%@SENDMAIL@%$SENDMAIL%g
12733 s%@EDITOR@%$EDITOR%g
12734 s%@FINGER@%$FINGER%g
12735 s%@PERLBIN@%$PERLBIN%g
12737 s%@EXEEXT@%$EXEEXT%g
12738 s%@OBJEXT@%$OBJEXT%g
12739 s%@OL_MKDEP@%$OL_MKDEP%g
12740 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12741 s%@GLIBCONFIG@%$GLIBCONFIG%g
12743 s%@LIBOBJS@%$LIBOBJS%g
12744 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12745 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12746 s%@BUILD_BDB2@%$BUILD_BDB2%g
12747 s%@BUILD_LDAP@%$BUILD_LDAP%g
12748 s%@BUILD_LDBM@%$BUILD_LDBM%g
12749 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12750 s%@BUILD_PERL@%$BUILD_PERL%g
12751 s%@BUILD_SHELL@%$BUILD_SHELL%g
12752 s%@BUILD_TCL@%$BUILD_TCL%g
12753 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12754 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12755 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12756 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12757 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12758 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12759 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12760 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12761 s%@LDAP_LIBS@%$LDAP_LIBS%g
12762 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12763 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12764 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12765 s%@LDBM_LIBS@%$LDBM_LIBS%g
12766 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12767 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12768 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12769 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12770 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12771 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12772 s%@KRB_LIBS@%$KRB_LIBS%g
12773 s%@READLINE_LIBS@%$READLINE_LIBS%g
12774 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12775 s%@TLS_LIBS@%$TLS_LIBS%g
12780 cat >> $CONFIG_STATUS <<\EOF
12782 # Split the substitutions into bite-sized pieces for seds with
12783 # small command number limits, like on Digital OSF/1 and HP-UX.
12784 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12785 ac_file=1 # Number of current file.
12786 ac_beg=1 # First line for current file.
12787 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12790 while $ac_more_lines; do
12791 if test $ac_beg -gt 1; then
12792 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12794 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12796 if test ! -s conftest.s$ac_file; then
12797 ac_more_lines=false
12798 rm -f conftest.s$ac_file
12800 if test -z "$ac_sed_cmds"; then
12801 ac_sed_cmds="sed -f conftest.s$ac_file"
12803 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12805 ac_file=`expr $ac_file + 1`
12807 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12810 if test -z "$ac_sed_cmds"; then
12815 cat >> $CONFIG_STATUS <<EOF
12817 CONFIG_FILES=\${CONFIG_FILES-"\
12818 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12819 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12820 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12821 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12822 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12823 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12824 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12825 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12826 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12827 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12828 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12829 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12830 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12831 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12832 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12833 include/Makefile:build/top.mk:include/Makefile.in \
12834 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12835 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12836 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12837 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12838 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12839 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12840 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12841 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12842 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12843 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12844 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12845 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12846 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12847 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12848 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12849 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12850 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12851 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12852 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12853 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12854 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12855 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12856 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12857 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12858 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12859 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12862 cat >> $CONFIG_STATUS <<\EOF
12863 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12866 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12867 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12868 *) ac_file_in="${ac_file}.in" ;;
12871 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12873 # Remove last slash and all that follows it. Not all systems have dirname.
12874 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12875 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12876 # The file is in a subdirectory.
12877 test ! -d "$ac_dir" && mkdir "$ac_dir"
12878 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12879 # A "../" for each directory in $ac_dir_suffix.
12880 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12882 ac_dir_suffix= ac_dots=
12885 case "$ac_given_srcdir" in
12887 if test -z "$ac_dots"; then top_srcdir=.
12888 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12889 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12890 *) # Relative path.
12891 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12892 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12895 case "$ac_given_INSTALL" in
12896 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12897 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12900 echo creating "$ac_file"
12902 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12904 *Makefile*) ac_comsub="1i\\
12905 # $configure_input" ;;
12909 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12911 s%@configure_input@%$configure_input%g
12912 s%@srcdir@%$srcdir%g
12913 s%@top_srcdir@%$top_srcdir%g
12914 s%@INSTALL@%$INSTALL%g
12915 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12919 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12920 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12922 # ac_d sets the value in "#define NAME VALUE" lines.
12923 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12924 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12927 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12928 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12929 ac_uB='\([ ]\)%\1#\2define\3'
12932 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12933 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12934 ac_eB='$%\1#\2define\3'
12938 if test "${CONFIG_HEADERS+set}" != set; then
12940 cat >> $CONFIG_STATUS <<EOF
12941 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12943 cat >> $CONFIG_STATUS <<\EOF
12945 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12948 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12949 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12950 *) ac_file_in="${ac_file}.in" ;;
12953 echo creating $ac_file
12955 rm -f conftest.frag conftest.in conftest.out
12956 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12957 cat $ac_file_inputs > conftest.in
12961 # Transform confdefs.h into a sed script conftest.vals that substitutes
12962 # the proper values into config.h.in to produce config.h. And first:
12963 # Protect against being on the right side of a sed subst in config.status.
12964 # Protect against being in an unquoted here document in config.status.
12965 rm -f conftest.vals
12966 cat > conftest.hdr <<\EOF
12969 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12973 sed -n -f conftest.hdr confdefs.h > conftest.vals
12976 # This sed command replaces #undef with comments. This is necessary, for
12977 # example, in the case of _POSIX_SOURCE, which is predefined and required
12978 # on some systems where configure will not decide to define it.
12979 cat >> conftest.vals <<\EOF
12980 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12983 # Break up conftest.vals because some shells have a limit on
12984 # the size of here documents, and old seds have small limits too.
12986 rm -f conftest.tail
12989 ac_lines=`grep -c . conftest.vals`
12990 # grep -c gives empty output for an empty file on some AIX systems.
12991 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12992 # Write a limited-size here document to conftest.frag.
12993 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12994 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12996 sed -f conftest.frag conftest.in > conftest.out
12998 mv conftest.out conftest.in
12999 ' >> $CONFIG_STATUS
13000 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13001 rm -f conftest.vals
13002 mv conftest.tail conftest.vals
13004 rm -f conftest.vals
13006 cat >> $CONFIG_STATUS <<\EOF
13007 rm -f conftest.frag conftest.h
13008 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13009 cat conftest.in >> conftest.h
13011 if cmp -s $ac_file conftest.h 2>/dev/null; then
13012 echo "$ac_file is unchanged"
13015 # Remove last slash and all that follows it. Not all systems have dirname.
13016 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13017 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13018 # The file is in a subdirectory.
13019 test ! -d "$ac_dir" && mkdir "$ac_dir"
13022 mv conftest.h $ac_file
13027 cat >> $CONFIG_STATUS <<EOF
13030 cat >> $CONFIG_STATUS <<\EOF
13033 echo Please \"make depend\" to build dependencies
13037 chmod +x $CONFIG_STATUS
13038 rm -fr confdefs* $ac_clean_files
13039 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1