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
3684 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3685 echo "configure:3686: checking for EBCDIC" >&5
3686 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3695 #include <__ASCII__/generate_error.h>
3699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3700 { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3702 if test -z "$ac_err"; then
3704 ol_cv_cpp_ebcdic=yes
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3715 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3716 if test $ol_cv_cpp_ebcdic = yes ; then
3717 cat >> confdefs.h <<\EOF
3718 #define HAVE_EBCDIC 1
3723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3724 echo "configure:3725: checking for ANSI C header files" >&5
3725 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3737 { (eval echo configure:3738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3739 if test -z "$ac_err"; then
3741 ol_cv_header_stdc=yes
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 ol_cv_header_stdc=no
3751 if test $ol_cv_header_stdc = yes; then
3752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 egrep "memchr" >/dev/null 2>&1; then
3763 ol_cv_header_stdc=no
3769 if test $ol_cv_header_stdc = yes; then
3770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 egrep "free" >/dev/null 2>&1; then
3781 ol_cv_header_stdc=no
3787 if test $ol_cv_header_stdc = yes; then
3788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3789 if test "$cross_compiling" = yes; then
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3800 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3801 || ('j' <= (c) && (c) <= 'r') \
3802 || ('s' <= (c) && (c) <= 'z'))
3803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3806 int main () { int i; for (i = 0; i < 256; i++)
3807 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 ol_cv_header_stdc=no
3826 echo "$ac_t""$ol_cv_header_stdc" 1>&6
3827 if test $ol_cv_header_stdc = yes; then
3828 cat >> confdefs.h <<\EOF
3829 #define STDC_HEADERS 1
3833 ac_cv_header_stdc=disable
3836 if test $ol_cv_header_stdc != yes; then
3837 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
3841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3844 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
3845 echo "configure:3846: checking for $ac_hdr that defines DIR" >&5
3846 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <sys/types.h>
3858 if { (eval echo configure:3859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860 eval "ac_cv_header_dirent_$ac_safe=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 eval "ac_cv_header_dirent_$ac_safe=no"
3869 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3872 cat >> confdefs.h <<EOF
3873 #define $ac_tr_hdr 1
3875 ac_header_dirent=$ac_hdr; break
3877 echo "$ac_t""no" 1>&6
3880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3881 if test $ac_header_dirent = dirent.h; then
3882 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
3883 echo "configure:3884: checking for opendir in -ldir" >&5
3884 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
3885 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 ac_save_LIBS="$LIBS"
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3894 /* We use char because int might match the return type of a gcc2
3895 builtin and then its argument prototype would still apply. */
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3904 eval "ac_cv_lib_$ac_lib_var=yes"
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 eval "ac_cv_lib_$ac_lib_var=no"
3912 LIBS="$ac_save_LIBS"
3915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3919 echo "$ac_t""no" 1>&6
3923 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
3924 echo "configure:3925: checking for opendir in -lx" >&5
3925 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
3926 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3929 ac_save_LIBS="$LIBS"
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 eval "ac_cv_lib_$ac_lib_var=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 eval "ac_cv_lib_$ac_lib_var=no"
3953 LIBS="$ac_save_LIBS"
3956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3960 echo "$ac_t""no" 1>&6
3965 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3966 echo "configure:3967: checking for sys/wait.h that is POSIX.1 compatible" >&5
3967 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 #include <sys/types.h>
3974 #include <sys/wait.h>
3976 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3979 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3984 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3987 if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3989 ac_cv_header_sys_wait_h=yes
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 ac_cv_header_sys_wait_h=no
3999 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4000 if test $ac_cv_header_sys_wait_h = yes; then
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_SYS_WAIT_H 1
4007 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4008 echo "configure:4009: checking POSIX termios" >&5
4009 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/types.h>
4017 #include <termios.h>
4019 /* SunOS 4.0.3 has termios.h but not the library calls. */
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 am_cv_sys_posix_termios=yes
4027 echo "configure: failed program was:" >&5
4028 cat conftest.$ac_ext >&5
4030 am_cv_sys_posix_termios=no
4035 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4038 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4039 echo "configure:4040: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4040 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4045 gwinsz_in_termios_h=no
4046 if test $am_cv_sys_posix_termios = yes; then
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 #include <sys/types.h>
4051 # include <termios.h>
4057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4058 egrep "yes" >/dev/null 2>&1; then
4060 gwinsz_in_termios_h=yes
4066 if test $gwinsz_in_termios_h = no; then
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4070 #include <sys/types.h>
4071 # include <sys/ioctl.h>
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078 egrep "yes" >/dev/null 2>&1; then
4080 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4088 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4089 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4090 cat >> confdefs.h <<\EOF
4091 #define GWINSZ_IN_SYS_IOCTL 1
4096 if test $am_cv_sys_posix_termios = yes ; then
4097 cat >> confdefs.h <<\EOF
4098 #define HAVE_POSIX_TERMIOS 1
4145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4147 echo "configure:4148: checking for $ac_hdr" >&5
4148 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4157 { (eval echo configure:4158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4159 if test -z "$ac_err"; then
4161 eval "ac_cv_header_$ac_safe=yes"
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4167 eval "ac_cv_header_$ac_safe=no"
4171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4174 cat >> confdefs.h <<EOF
4175 #define $ac_tr_hdr 1
4179 echo "$ac_t""no" 1>&6
4186 echo $ac_n "checking for socket""... $ac_c" 1>&6
4187 echo "configure:4188: checking for socket" >&5
4188 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4194 /* System header to define __stub macros and hopefully few prototypes,
4195 which can conflict with char socket(); below. */
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4205 /* The GNU C library defines this for functions which it implements
4206 to always fail with ENOSYS. Some functions are actually named
4207 something starting with __ and the normal name is an alias. */
4208 #if defined (__stub_socket) || defined (__stub___socket)
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 eval "ac_cv_func_socket=yes"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 eval "ac_cv_func_socket=no"
4228 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4232 echo "$ac_t""no" 1>&6
4234 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4235 echo "configure:4236: checking for main in -lsocket" >&5
4236 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4237 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4241 LIBS="-lsocket $LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_lib_$ac_lib_var=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_lib_$ac_lib_var=no"
4260 LIBS="$ac_save_LIBS"
4263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4267 cat >> confdefs.h <<EOF
4268 #define $ac_tr_lib 1
4271 LIBS="-lsocket $LIBS"
4274 echo "$ac_t""no" 1>&6
4277 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4278 echo "configure:4279: checking for main in -lnet" >&5
4279 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 ac_save_LIBS="$LIBS"
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 eval "ac_cv_lib_$ac_lib_var=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_lib_$ac_lib_var=no"
4303 LIBS="$ac_save_LIBS"
4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4308 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4310 cat >> confdefs.h <<EOF
4311 #define $ac_tr_lib 1
4317 echo "$ac_t""no" 1>&6
4320 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4321 echo "configure:4322: checking for socket in -lnet" >&5
4322 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 ac_save_LIBS="$LIBS"
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_lib 1
4364 echo "$ac_t""no" 1>&6
4367 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4368 echo "configure:4369: checking for main in -lnsl_s" >&5
4369 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4374 LIBS="-lnsl_s $LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385 eval "ac_cv_lib_$ac_lib_var=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 eval "ac_cv_lib_$ac_lib_var=no"
4393 LIBS="$ac_save_LIBS"
4396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4397 echo "$ac_t""yes" 1>&6
4398 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4400 cat >> confdefs.h <<EOF
4401 #define $ac_tr_lib 1
4404 LIBS="-lnsl_s $LIBS"
4407 echo "$ac_t""no" 1>&6
4410 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4411 echo "configure:4412: checking for main in -lnsl" >&5
4412 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4413 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 ac_save_LIBS="$LIBS"
4418 cat > conftest.$ac_ext <<EOF
4419 #line 4420 "configure"
4420 #include "confdefs.h"
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4436 LIBS="$ac_save_LIBS"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4443 cat >> confdefs.h <<EOF
4444 #define $ac_tr_lib 1
4450 echo "$ac_t""no" 1>&6
4453 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4454 echo "configure:4455: checking for socket in -linet" >&5
4455 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 ac_save_LIBS="$LIBS"
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475 eval "ac_cv_lib_$ac_lib_var=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_lib_$ac_lib_var=no"
4483 LIBS="$ac_save_LIBS"
4486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4489 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4490 cat >> confdefs.h <<EOF
4491 #define $ac_tr_lib 1
4497 echo "$ac_t""no" 1>&6
4500 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4501 echo "configure:4502: checking for main in -lgen" >&5
4502 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4503 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 ac_save_LIBS="$LIBS"
4508 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_lib_$ac_lib_var=no"
4526 LIBS="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4533 cat >> confdefs.h <<EOF
4534 #define $ac_tr_lib 1
4540 echo "$ac_t""no" 1>&6
4547 echo $ac_n "checking for select""... $ac_c" 1>&6
4548 echo "configure:4549: checking for select" >&5
4549 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char select(); below. */
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_select) || defined (__stub___select)
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 eval "ac_cv_func_select=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 eval "ac_cv_func_select=no"
4589 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4593 echo "$ac_t""no" 1>&6
4594 { echo "configure: error: select() required." 1>&2; exit 1; }
4598 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4599 echo "configure:4600: checking types of arguments for select()" >&5
4600 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4610 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4611 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4615 #ifdef HAVE_SYS_TYPES_H
4616 #include <sys/types.h>
4618 #ifdef HAVE_SYS_TIME_H
4619 #include <sys/time.h>
4621 #ifdef HAVE_SYS_SELECT_H
4622 #include <sys/select.h>
4624 #ifdef HAVE_SYS_SOCKET_H
4625 #include <sys/socket.h>
4627 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);
4632 if { (eval echo configure:4633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4634 ac_not_found=no ; break 3
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4651 if test "$ac_not_found" = yes; then
4652 ac_cv_func_select_arg1=int
4653 ac_cv_func_select_arg234='int *'
4654 ac_cv_func_select_arg5='struct timeval *'
4656 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4657 cat >> confdefs.h <<EOF
4658 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4661 cat >> confdefs.h <<EOF
4662 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4665 cat >> confdefs.h <<EOF
4666 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4672 for ac_hdr in regex.h
4674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 eval "ac_cv_header_$ac_safe=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4696 eval "ac_cv_header_$ac_safe=no"
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_hdr 1
4708 echo "$ac_t""no" 1>&6
4712 if test "$ac_cv_header_regex_h" != yes ; then
4713 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4715 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4716 echo "configure:4717: checking for regfree" >&5
4717 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char regfree(); below. */
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_regfree) || defined (__stub___regfree)
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 eval "ac_cv_func_regfree=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 eval "ac_cv_func_regfree=no"
4757 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4762 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4767 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4768 echo "configure:4769: checking for compatible POSIX regex" >&5
4769 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4773 if test "$cross_compiling" = yes; then
4774 ol_cv_c_posix_regex=cross
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4780 #include <sys/types.h>
4782 static char *pattern, *string;
4790 if(regcomp(&re, pattern, 0)) {
4794 string = "ALL MATCH";
4796 rc = regexec(&re, string, 0, (void*)0, 0);
4803 if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4805 ol_cv_c_posix_regex=yes
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 ol_cv_c_posix_regex=no
4817 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4819 if test "$ol_cv_c_posix_regex" = no ; then
4820 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4824 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4825 echo "configure:4826: checking for sigset in -lV3" >&5
4826 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 ac_save_LIBS="$LIBS"
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_lib_$ac_lib_var=no"
4854 LIBS="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4860 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4861 cat >> confdefs.h <<EOF
4862 #define $ac_tr_lib 1
4868 echo "$ac_t""no" 1>&6
4874 if test $ol_enable_dns != no ; then
4875 echo $ac_n "checking for res_search""... $ac_c" 1>&6
4876 echo "configure:4877: checking for res_search" >&5
4877 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* System header to define __stub macros and hopefully few prototypes,
4884 which can conflict with char res_search(); below. */
4886 /* Override any gcc2 internal prototype to avoid an error. */
4887 /* We use char because int might match the return type of a gcc2
4888 builtin and then its argument prototype would still apply. */
4894 /* The GNU C library defines this for functions which it implements
4895 to always fail with ENOSYS. Some functions are actually named
4896 something starting with __ and the normal name is an alias. */
4897 #if defined (__stub_res_search) || defined (__stub___res_search)
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 eval "ac_cv_func_res_search=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4912 eval "ac_cv_func_res_search=no"
4917 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
4918 echo "$ac_t""yes" 1>&6
4921 echo "$ac_t""no" 1>&6
4924 if test $ac_cv_func_res_search = no ; then
4925 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
4926 echo "configure:4927: checking for res_search in -lbind" >&5
4927 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
4928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 ac_save_LIBS="$LIBS"
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4947 eval "ac_cv_lib_$ac_lib_var=yes"
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4952 eval "ac_cv_lib_$ac_lib_var=no"
4955 LIBS="$ac_save_LIBS"
4958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4962 cat >> confdefs.h <<EOF
4963 #define $ac_tr_lib 1
4969 echo "$ac_t""no" 1>&6
4972 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
4974 if test $ac_cv_func_res_search = no ; then
4975 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
4976 echo "configure:4977: checking for res_search in -lresolv" >&5
4977 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
4978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 ac_save_LIBS="$LIBS"
4982 LIBS="-lresolv $LIBS"
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 eval "ac_cv_lib_$ac_lib_var=yes"
4999 echo "configure: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5002 eval "ac_cv_lib_$ac_lib_var=no"
5005 LIBS="$ac_save_LIBS"
5008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5009 echo "$ac_t""yes" 1>&6
5010 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5011 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5012 cat >> confdefs.h <<EOF
5013 #define $ac_tr_lib 1
5016 LIBS="-lresolv $LIBS"
5019 echo "$ac_t""no" 1>&6
5022 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5025 if test "$ac_cv_func_res_search" = yes ; then
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_RES_SEARCH 1
5030 elif test $ol_enable_dns = yes ; then
5031 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5033 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5040 if test $ol_enable_ldapd != no ; then
5041 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5043 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5044 echo "configure:5045: checking for main in -lxtpp" >&5
5045 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 ac_save_LIBS="$LIBS"
5050 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5076 cat >> confdefs.h <<\EOF
5080 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5083 echo "$ac_t""no" 1>&6
5087 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5088 echo "configure:5089: checking for main in -ldsap" >&5
5089 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 ac_save_LIBS="$LIBS"
5094 LIBS="-ldsap -lisode $LIBS"
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 eval "ac_cv_lib_$ac_lib_var=yes"
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 eval "ac_cv_lib_$ac_lib_var=no"
5113 LIBS="$ac_save_LIBS"
5116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5117 echo "$ac_t""yes" 1>&6
5120 cat >> confdefs.h <<\EOF
5124 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5127 echo "$ac_t""no" 1>&6
5131 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5132 echo "configure:5133: checking for main in -lisode" >&5
5133 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 ac_save_LIBS="$LIBS"
5138 LIBS="-lisode $LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 eval "ac_cv_lib_$ac_lib_var=yes"
5151 echo "configure: failed program was:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_lib_$ac_lib_var=no"
5157 LIBS="$ac_save_LIBS"
5160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5164 cat >> confdefs.h <<\EOF
5165 #define HAVE_ISODE 1
5168 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5171 echo "$ac_t""no" 1>&6
5177 if test $ol_link_isode != no; then
5178 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5179 echo "configure:5180: checking for main in -lpp" >&5
5180 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5184 ac_save_LIBS="$LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_lib_$ac_lib_var=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_lib_$ac_lib_var=no"
5204 LIBS="$ac_save_LIBS"
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5210 cat >> confdefs.h <<\EOF
5214 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5217 echo "$ac_t""no" 1>&6
5222 # Extract the first word of "pepsy", so it can be a program name with args.
5223 set dummy pepsy; ac_word=$2
5224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_word" >&5
5226 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5231 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5234 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5239 for ac_dir in $ac_dummy; do
5240 test -z "$ac_dir" && ac_dir=.
5241 if test -f $ac_dir/$ac_word; then
5242 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5250 PEPSY="$ac_cv_path_PEPSY"
5251 if test -n "$PEPSY"; then
5252 echo "$ac_t""$PEPSY" 1>&6
5254 echo "$ac_t""no" 1>&6
5261 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5262 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5266 echo "configure:5267: checking for $ac_hdr" >&5
5267 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5276 { (eval echo configure:5277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5278 if test -z "$ac_err"; then
5280 eval "ac_cv_header_$ac_safe=yes"
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5286 eval "ac_cv_header_$ac_safe=no"
5290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5293 cat >> confdefs.h <<EOF
5294 #define $ac_tr_hdr 1
5298 echo "$ac_t""no" 1>&6
5303 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5304 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5305 echo "configure:5306: checking for main in -lkrb4" >&5
5306 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 ac_save_LIBS="$LIBS"
5311 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5322 eval "ac_cv_lib_$ac_lib_var=yes"
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5327 eval "ac_cv_lib_$ac_lib_var=no"
5330 LIBS="$ac_save_LIBS"
5333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5334 echo "$ac_t""yes" 1>&6
5337 echo "$ac_t""no" 1>&6
5342 if test $have_k5 = yes ; then
5343 ol_with_kerberos=found
5344 ol_link_kerberos=yes
5346 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5348 LIBS="$KRB_LIBS $LIBS"
5350 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5351 echo "configure:5352: checking for des_debug in Kerberos libraries" >&5
5352 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5357 LIBS="$KRB_LIBS $LIBS"
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5362 #include <kerberosIV/krb.h>
5363 #include <kerberosIV/des.h>
5364 extern int des_debug;
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374 ol_cv_var_des_debug=yes
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 ol_cv_var_des_debug=no
5386 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5388 if test $ol_cv_var_des_debug = yes ; then
5389 cat >> confdefs.h <<\EOF
5390 #define HAVE_DES_DEBUG 1
5400 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5401 for ac_hdr in krb.h des.h
5403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5405 echo "configure:5406: checking for $ac_hdr" >&5
5406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5417 if test -z "$ac_err"; then
5419 eval "ac_cv_header_$ac_safe=yes"
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 eval "ac_cv_header_$ac_safe=no"
5429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5430 echo "$ac_t""yes" 1>&6
5431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5432 cat >> confdefs.h <<EOF
5433 #define $ac_tr_hdr 1
5437 echo "$ac_t""no" 1>&6
5442 if test $ac_cv_header_krb_h = yes ; then
5443 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5444 echo "configure:5445: checking for main in -lkrb" >&5
5445 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 ac_save_LIBS="$LIBS"
5450 LIBS="-lkrb -ldes $LIBS"
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 eval "ac_cv_lib_$ac_lib_var=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5
5466 eval "ac_cv_lib_$ac_lib_var=no"
5469 LIBS="$ac_save_LIBS"
5472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5476 echo "$ac_t""no" 1>&6
5481 if test $have_k4 = yes ; then
5482 ol_with_kerberos=found
5483 ol_link_kerberos=yes
5485 KRB_LIBS="-lkrb -ldes"
5490 if test $ol_link_kerberos = yes ; then
5491 cat >> confdefs.h <<\EOF
5492 #define HAVE_KERBEROS 1
5498 if test $ol_with_tls != no ; then
5500 for ac_hdr in openssl/ssl.h ssl.h
5502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5504 echo "configure:5505: checking for $ac_hdr" >&5
5505 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5514 { (eval echo configure:5515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5516 if test -z "$ac_err"; then
5518 eval "ac_cv_header_$ac_safe=yes"
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 eval "ac_cv_header_$ac_safe=no"
5528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5529 echo "$ac_t""yes" 1>&6
5530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5531 cat >> confdefs.h <<EOF
5532 #define $ac_tr_hdr 1
5536 echo "$ac_t""no" 1>&6
5541 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5542 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5543 echo "configure:5544: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5544 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 ac_save_LIBS="$LIBS"
5549 LIBS="-lssl -lcrypto $LIBS"
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 /* Override any gcc2 internal prototype to avoid an error. */
5554 /* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5556 char SSLeay_add_ssl_algorithms();
5559 SSLeay_add_ssl_algorithms()
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564 eval "ac_cv_lib_$ac_lib_var=yes"
5566 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5569 eval "ac_cv_lib_$ac_lib_var=no"
5572 LIBS="$ac_save_LIBS"
5575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5580 echo "$ac_t""no" 1>&6
5585 if test $have_ssleay = no ; then
5586 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5587 echo "configure:5588: checking for SSL_library_init in -lssl" >&5
5588 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5589 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5590 echo $ac_n "(cached) $ac_c" 1>&6
5592 ac_save_LIBS="$LIBS"
5593 LIBS="-lssl -lcrypto $LIBS"
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* Override any gcc2 internal prototype to avoid an error. */
5598 /* We use char because int might match the return type of a gcc2
5599 builtin and then its argument prototype would still apply. */
5600 char SSL_library_init();
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5608 eval "ac_cv_lib_$ac_lib_var=yes"
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5613 eval "ac_cv_lib_$ac_lib_var=no"
5616 LIBS="$ac_save_LIBS"
5619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5620 echo "$ac_t""yes" 1>&6
5624 echo "$ac_t""no" 1>&6
5630 if test $have_ssleay = no ; then
5631 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5632 echo "configure:5633: checking for ssl3_accept in -lssl" >&5
5633 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5634 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 ac_save_LIBS="$LIBS"
5638 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 eval "ac_cv_lib_$ac_lib_var=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 eval "ac_cv_lib_$ac_lib_var=no"
5661 LIBS="$ac_save_LIBS"
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5669 echo "$ac_t""no" 1>&6
5675 if test $have_ssleay = yes ; then
5679 cat >> confdefs.h <<\EOF
5680 #define HAVE_SSLEAY 1
5684 if test $need_rsaref = yes; then
5685 cat >> confdefs.h <<\EOF
5686 #define HAVE_RSAREF 1
5690 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5692 TLS_LIBS="-lssl -lcrypto"
5698 if test $ol_link_tls = yes ; then
5699 cat >> confdefs.h <<\EOF
5707 gethostbyname_r gethostbyaddr_r \
5710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5711 echo "configure:5712: checking for $ac_func" >&5
5712 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 /* System header to define __stub macros and hopefully few prototypes,
5719 which can conflict with char $ac_func(); below. */
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5729 /* The GNU C library defines this for functions which it implements
5730 to always fail with ENOSYS. Some functions are actually named
5731 something starting with __ and the normal name is an alias. */
5732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5742 eval "ac_cv_func_$ac_func=yes"
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5747 eval "ac_cv_func_$ac_func=no"
5752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5755 cat >> confdefs.h <<EOF
5756 #define $ac_tr_func 1
5760 echo "$ac_t""no" 1>&6
5765 if test "$ac_cv_func_ctime_r" = no ; then
5766 ol_cv_func_ctime_r_nargs=0
5768 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5769 echo "configure:5770: checking number of arguments of ctime_r" >&5
5770 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5778 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5781 if { (eval echo configure:5782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5783 ol_cv_func_ctime_r_nargs=3
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5793 time_t ti; char *buffer; ctime_r(&ti,buffer);
5796 if { (eval echo configure:5797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5798 ol_cv_func_ctime_r_nargs=2
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 ol_cv_func_ctime_r_nargs=0
5810 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5811 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5812 cat >> confdefs.h <<EOF
5813 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5820 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5821 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5822 echo "configure:5823: checking number of arguments of gethostbyname_r" >&5
5823 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5829 #include <sys/types.h>
5830 #include <sys/socket.h>
5831 #include <netinet/in.h>
5833 #define BUFSIZE (sizeof(struct hostent)+10)
5835 struct hostent hent; char buffer[BUFSIZE];
5836 int bufsize=BUFSIZE;int h_errno;
5837 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5838 buffer, bufsize, &h_errno);
5841 if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5843 ol_cv_func_gethostbyname_r_nargs=5
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 #include <sys/types.h>
5852 #include <sys/socket.h>
5853 #include <netinet/in.h>
5855 #define BUFSIZE (sizeof(struct hostent)+10)
5857 struct hostent hent;struct hostent *rhent;
5858 char buffer[BUFSIZE];
5859 int bufsize=BUFSIZE;int h_errno;
5860 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5864 if { (eval echo configure:5865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5866 ol_cv_func_gethostbyname_r_nargs=6
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5871 ol_cv_func_gethostbyname_r_nargs=0
5878 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5879 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5880 cat >> confdefs.h <<EOF
5881 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5887 ol_cv_func_gethostbyname_r_nargs=0
5890 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5891 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5892 echo "configure:5893: checking number of arguments of gethostbyaddr_r" >&5
5893 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 #include <sys/types.h>
5900 #include <sys/socket.h>
5901 #include <netinet/in.h>
5903 #define BUFSIZE (sizeof(struct hostent)+10)
5905 struct hostent hent; char buffer[BUFSIZE];
5907 size_t alen=sizeof(struct in_addr);
5908 int bufsize=BUFSIZE;int h_errno;
5909 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5910 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 ol_cv_func_gethostbyaddr_r_nargs=7
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 #include <sys/types.h>
5924 #include <sys/socket.h>
5925 #include <netinet/in.h>
5927 #define BUFSIZE (sizeof(struct hostent)+10)
5929 struct hostent hent;
5930 struct hostent *rhent; char buffer[BUFSIZE];
5932 size_t alen=sizeof(struct in_addr);
5933 int bufsize=BUFSIZE;int h_errno;
5934 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5935 alen, AF_INET, &hent, buffer, bufsize,
5939 if { (eval echo configure:5940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5941 ol_cv_func_gethostbyaddr_r_nargs=8
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5946 ol_cv_func_gethostbyaddr_r_nargs=0
5953 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5954 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5955 cat >> confdefs.h <<EOF
5956 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5962 ol_cv_func_gethostbyaddr_r_nargs=0
5965 if test "$ac_cv_func_ctime_r" = yes \
5966 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5967 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5968 -a "$ac_cv_func_gethostbyname_r" = yes \
5969 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5970 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5971 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5972 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5973 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5976 cat >> confdefs.h <<\EOF
5977 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5983 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5984 -o $ol_with_threads = posix ; then
5986 for ac_hdr in pthread.h sched.h
5988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_hdr" >&5
5991 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6000 { (eval echo configure:6001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6002 if test -z "$ac_err"; then
6004 eval "ac_cv_header_$ac_safe=yes"
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6010 eval "ac_cv_header_$ac_safe=no"
6014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6017 cat >> confdefs.h <<EOF
6018 #define $ac_tr_hdr 1
6022 echo "$ac_t""no" 1>&6
6027 if test $ac_cv_header_pthread_h = yes ; then
6028 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6029 echo "configure:6030: checking POSIX thread version" >&5
6030 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6038 # include <pthread.h>
6039 /* this check could be improved */
6040 # ifdef PTHREAD_ONCE_INIT
6041 pthread_version_final
6045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 egrep "pthread_version_final" >/dev/null 2>&1; then
6048 ol_pthread_final=yes
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6060 # include <pthread.h>
6061 /* this check could be improved */
6062 # ifdef pthread_once_init
6063 pthread_version_draft4
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6070 ol_pthread_draft4=yes
6073 ol_pthread_draft4=no
6078 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6079 ol_cv_pthread_version=final
6080 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6081 ol_cv_pthread_version=draft4
6083 ol_cv_pthread_version=unknown
6088 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6091 if test $ol_cv_pthread_version = final ; then
6092 cat >> confdefs.h <<\EOF
6093 #define HAVE_PTHREADS_FINAL 1
6096 elif test $ol_cv_pthread_version = draft4 ; then
6097 cat >> confdefs.h <<\EOF
6098 #define HAVE_PTHREADS_D4 1
6102 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6105 # consider threads found
6106 ol_with_threads=found
6109 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6110 echo "configure:6111: checking for LinuxThreads pthread.h" >&5
6111 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 #include <pthread.h>
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6122 ol_cv_header_linux_threads=yes
6125 ol_cv_header_linux_threads=no
6132 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6133 if test $ol_cv_header_linux_threads = yes; then
6134 cat >> confdefs.h <<\EOF
6135 #define HAVE_LINUX_THREADS 1
6142 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6143 echo "configure:6144: checking for pthread_create in default libraries" >&5
6144 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6145 echo $ac_n "(cached) $ac_c" 1>&6
6148 if test "$cross_compiling" = yes; then
6149 ol_cv_pthread_create=yes
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6153 "configure"
6153 #include "confdefs.h"
6155 #include <pthread.h>
6157 #define NULL (void*)0
6160 static void *task(p)
6163 return (void *) (p == NULL);
6166 int main(argc, argv)
6173 /* make sure pthread_create() isn't just a stub */
6174 #if HAVE_PTHREADS_D4
6175 status = pthread_create(&t, pthread_attr_default, task, NULL);
6177 status = pthread_create(&t, NULL, task, NULL);
6180 if( status ) return status;
6182 /* make sure pthread_detach() isn't just a stub */
6183 #if HAVE_PTHREADS_D4
6184 status = pthread_detach( &t );
6186 status = pthread_detach( t );
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6195 ol_cv_pthread_create=yes
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 ol_cv_pthread_create=no
6207 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6209 if test $ol_cv_pthread_create != no ; then
6210 ol_link_threads=posix
6214 # Pthread try link: -mt (ol_cv_pthread_mt)
6215 if test "$ol_link_threads" = no ; then
6217 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
6218 echo "configure:6219: checking for pthread link with -mt" >&5
6219 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
6220 echo $ac_n "(cached) $ac_c" 1>&6
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6231 #include <pthread.h>
6233 #define NULL (void*)0
6240 #if HAVE_PTHREADS_D4
6241 pthread_create(&t, pthread_attr_default, NULL, NULL);
6242 pthread_detach( &t );
6244 pthread_create(&t, NULL, NULL, NULL);
6245 pthread_detach( t );
6247 #ifdef HAVE_LINUX_THREADS
6248 pthread_kill_other_threads_np();
6253 if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255 ol_cv_pthread_mt=yes
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6269 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
6271 if test $ol_cv_pthread_mt = yes ; then
6272 ol_link_pthreads="-mt"
6273 ol_link_threads=posix
6277 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6278 if test "$ol_link_threads" = no ; then
6280 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6281 echo "configure:6282: checking for pthread link with -kthread" >&5
6282 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6288 LIBS="-kthread $LIBS"
6290 cat > conftest.$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6294 #include <pthread.h>
6296 #define NULL (void*)0
6303 #if HAVE_PTHREADS_D4
6304 pthread_create(&t, pthread_attr_default, NULL, NULL);
6305 pthread_detach( &t );
6307 pthread_create(&t, NULL, NULL, NULL);
6308 pthread_detach( t );
6310 #ifdef HAVE_LINUX_THREADS
6311 pthread_kill_other_threads_np();
6316 if { (eval echo configure:6317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6318 ol_cv_pthread_kthread=yes
6320 echo "configure: failed program was:" >&5
6321 cat conftest.$ac_ext >&5
6323 ol_cv_pthread_kthread=no
6332 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6334 if test $ol_cv_pthread_kthread = yes ; then
6335 ol_link_pthreads="-kthread"
6336 ol_link_threads=posix
6340 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6341 if test "$ol_link_threads" = no ; then
6343 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6344 echo "configure:6345: checking for pthread link with -pthread" >&5
6345 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6351 LIBS="-pthread $LIBS"
6353 cat > conftest.$ac_ext <<EOF
6354 #line 6355 "configure"
6355 #include "confdefs.h"
6357 #include <pthread.h>
6359 #define NULL (void*)0
6366 #if HAVE_PTHREADS_D4
6367 pthread_create(&t, pthread_attr_default, NULL, NULL);
6368 pthread_detach( &t );
6370 pthread_create(&t, NULL, NULL, NULL);
6371 pthread_detach( t );
6373 #ifdef HAVE_LINUX_THREADS
6374 pthread_kill_other_threads_np();
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 ol_cv_pthread_pthread=yes
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6386 ol_cv_pthread_pthread=no
6395 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6397 if test $ol_cv_pthread_pthread = yes ; then
6398 ol_link_pthreads="-pthread"
6399 ol_link_threads=posix
6403 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6404 if test "$ol_link_threads" = no ; then
6406 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6407 echo "configure:6408: checking for pthread link with -pthreads" >&5
6408 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6414 LIBS="-pthreads $LIBS"
6416 cat > conftest.$ac_ext <<EOF
6417 #line 6418 "configure"
6418 #include "confdefs.h"
6420 #include <pthread.h>
6422 #define NULL (void*)0
6429 #if HAVE_PTHREADS_D4
6430 pthread_create(&t, pthread_attr_default, NULL, NULL);
6431 pthread_detach( &t );
6433 pthread_create(&t, NULL, NULL, NULL);
6434 pthread_detach( t );
6436 #ifdef HAVE_LINUX_THREADS
6437 pthread_kill_other_threads_np();
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444 ol_cv_pthread_pthreads=yes
6446 echo "configure: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6449 ol_cv_pthread_pthreads=no
6458 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
6460 if test $ol_cv_pthread_pthreads = yes ; then
6461 ol_link_pthreads="-pthreads"
6462 ol_link_threads=posix
6466 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
6467 if test "$ol_link_threads" = no ; then
6469 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
6470 echo "configure:6471: checking for pthread link with -mthreads" >&5
6471 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6477 LIBS="-mthreads $LIBS"
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6483 #include <pthread.h>
6485 #define NULL (void*)0
6492 #if HAVE_PTHREADS_D4
6493 pthread_create(&t, pthread_attr_default, NULL, NULL);
6494 pthread_detach( &t );
6496 pthread_create(&t, NULL, NULL, NULL);
6497 pthread_detach( t );
6499 #ifdef HAVE_LINUX_THREADS
6500 pthread_kill_other_threads_np();
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6507 ol_cv_pthread_mthreads=yes
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 ol_cv_pthread_mthreads=no
6521 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
6523 if test $ol_cv_pthread_mthreads = yes ; then
6524 ol_link_pthreads="-mthreads"
6525 ol_link_threads=posix
6529 # Pthread try link: -thread (ol_cv_pthread_thread)
6530 if test "$ol_link_threads" = no ; then
6532 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
6533 echo "configure:6534: checking for pthread link with -thread" >&5
6534 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6540 LIBS="-thread $LIBS"
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6546 #include <pthread.h>
6548 #define NULL (void*)0
6555 #if HAVE_PTHREADS_D4
6556 pthread_create(&t, pthread_attr_default, NULL, NULL);
6557 pthread_detach( &t );
6559 pthread_create(&t, NULL, NULL, NULL);
6560 pthread_detach( t );
6562 #ifdef HAVE_LINUX_THREADS
6563 pthread_kill_other_threads_np();
6568 if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570 ol_cv_pthread_thread=yes
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 ol_cv_pthread_thread=no
6584 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
6586 if test $ol_cv_pthread_thread = yes ; then
6587 ol_link_pthreads="-thread"
6588 ol_link_threads=posix
6593 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
6594 if test "$ol_link_threads" = no ; then
6595 # try -lpthread -lmach -lexc -lc_r
6596 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
6597 echo "configure:6598: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
6598 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6604 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6610 #include <pthread.h>
6612 #define NULL (void*)0
6619 #if HAVE_PTHREADS_D4
6620 pthread_create(&t, pthread_attr_default, NULL, NULL);
6621 pthread_detach( &t );
6623 pthread_create(&t, NULL, NULL, NULL);
6624 pthread_detach( t );
6626 #ifdef HAVE_LINUX_THREADS
6627 pthread_kill_other_threads_np();
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
6648 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
6650 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
6651 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
6652 ol_link_threads=posix
6656 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
6657 if test "$ol_link_threads" = no ; then
6658 # try -lpthread -lmach -lexc
6659 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
6660 echo "configure:6661: checking for pthread link with -lpthread -lmach -lexc" >&5
6661 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6667 LIBS="-lpthread -lmach -lexc $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6673 #include <pthread.h>
6675 #define NULL (void*)0
6682 #if HAVE_PTHREADS_D4
6683 pthread_create(&t, pthread_attr_default, NULL, NULL);
6684 pthread_detach( &t );
6686 pthread_create(&t, NULL, NULL, NULL);
6687 pthread_detach( t );
6689 #ifdef HAVE_LINUX_THREADS
6690 pthread_kill_other_threads_np();
6695 if { (eval echo configure:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6697 ol_cv_pthread_lpthread_lmach_lexc=yes
6699 echo "configure: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6702 ol_cv_pthread_lpthread_lmach_lexc=no
6711 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
6713 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
6714 ol_link_pthreads="-lpthread -lmach -lexc"
6715 ol_link_threads=posix
6720 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
6721 if test "$ol_link_threads" = no ; then
6722 # try -lpthread -Wl,-woff,85
6723 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
6724 echo "configure:6725: checking for pthread link with -lpthread -Wl,-woff,85" >&5
6725 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6731 LIBS="-lpthread -Wl,-woff,85 $LIBS"
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6737 #include <pthread.h>
6739 #define NULL (void*)0
6746 #if HAVE_PTHREADS_D4
6747 pthread_create(&t, pthread_attr_default, NULL, NULL);
6748 pthread_detach( &t );
6750 pthread_create(&t, NULL, NULL, NULL);
6751 pthread_detach( t );
6753 #ifdef HAVE_LINUX_THREADS
6754 pthread_kill_other_threads_np();
6759 if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6761 ol_cv_pthread_lib_lpthread_woff=yes
6763 echo "configure: failed program was:" >&5
6764 cat conftest.$ac_ext >&5
6766 ol_cv_pthread_lib_lpthread_woff=no
6775 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6777 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6778 ol_link_pthreads="-lpthread -Wl,-woff,85"
6779 ol_link_threads=posix
6784 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6785 if test "$ol_link_threads" = no ; then
6787 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6788 echo "configure:6789: checking for pthread link with -lpthread" >&5
6789 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6795 LIBS="-lpthread $LIBS"
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6801 #include <pthread.h>
6803 #define NULL (void*)0
6810 #if HAVE_PTHREADS_D4
6811 pthread_create(&t, pthread_attr_default, NULL, NULL);
6812 pthread_detach( &t );
6814 pthread_create(&t, NULL, NULL, NULL);
6815 pthread_detach( t );
6817 #ifdef HAVE_LINUX_THREADS
6818 pthread_kill_other_threads_np();
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6825 ol_cv_pthread_lpthread=yes
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6830 ol_cv_pthread_lpthread=no
6839 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6841 if test $ol_cv_pthread_lpthread = yes ; then
6842 ol_link_pthreads="-lpthread"
6843 ol_link_threads=posix
6847 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6848 if test "$ol_link_threads" = no ; then
6850 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6851 echo "configure:6852: checking for pthread link with -lc_r" >&5
6852 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6864 #include <pthread.h>
6866 #define NULL (void*)0
6873 #if HAVE_PTHREADS_D4
6874 pthread_create(&t, pthread_attr_default, NULL, NULL);
6875 pthread_detach( &t );
6877 pthread_create(&t, NULL, NULL, NULL);
6878 pthread_detach( t );
6880 #ifdef HAVE_LINUX_THREADS
6881 pthread_kill_other_threads_np();
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 ol_cv_pthread_lc_r=yes
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 ol_cv_pthread_lc_r=no
6902 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6904 if test $ol_cv_pthread_lc_r = yes ; then
6905 ol_link_pthreads="-lc_r"
6906 ol_link_threads=posix
6911 # Pthread try link: -threads (ol_cv_pthread_threads)
6912 if test "$ol_link_threads" = no ; then
6914 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6915 echo "configure:6916: checking for pthread link with -threads" >&5
6916 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6922 LIBS="-threads $LIBS"
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6928 #include <pthread.h>
6930 #define NULL (void*)0
6937 #if HAVE_PTHREADS_D4
6938 pthread_create(&t, pthread_attr_default, NULL, NULL);
6939 pthread_detach( &t );
6941 pthread_create(&t, NULL, NULL, NULL);
6942 pthread_detach( t );
6944 #ifdef HAVE_LINUX_THREADS
6945 pthread_kill_other_threads_np();
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6952 ol_cv_pthread_threads=yes
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 ol_cv_pthread_threads=no
6966 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6968 if test $ol_cv_pthread_threads = yes ; then
6969 ol_link_pthreads="-threads"
6970 ol_link_threads=posix
6975 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6976 if test "$ol_link_threads" = no ; then
6977 # try -lpthreads -lmach -lexc -lc_r
6978 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6979 echo "configure:6980: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6980 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6986 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6992 #include <pthread.h>
6994 #define NULL (void*)0
7001 #if HAVE_PTHREADS_D4
7002 pthread_create(&t, pthread_attr_default, NULL, NULL);
7003 pthread_detach( &t );
7005 pthread_create(&t, NULL, NULL, NULL);
7006 pthread_detach( t );
7008 #ifdef HAVE_LINUX_THREADS
7009 pthread_kill_other_threads_np();
7014 if { (eval echo configure:7015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7016 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
7030 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
7032 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
7033 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
7034 ol_link_threads=posix
7038 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
7039 if test "$ol_link_threads" = no ; then
7040 # try -lpthreads -lmach -lexc
7041 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
7042 echo "configure:7043: checking for pthread link with -lpthreads -lmach -lexc" >&5
7043 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7049 LIBS="-lpthreads -lmach -lexc $LIBS"
7051 cat > conftest.$ac_ext <<EOF
7052 #line 7053 "configure"
7053 #include "confdefs.h"
7055 #include <pthread.h>
7057 #define NULL (void*)0
7064 #if HAVE_PTHREADS_D4
7065 pthread_create(&t, pthread_attr_default, NULL, NULL);
7066 pthread_detach( &t );
7068 pthread_create(&t, NULL, NULL, NULL);
7069 pthread_detach( t );
7071 #ifdef HAVE_LINUX_THREADS
7072 pthread_kill_other_threads_np();
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7079 ol_cv_pthread_lpthreads_lmach_lexc=yes
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 ol_cv_pthread_lpthreads_lmach_lexc=no
7093 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
7095 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
7096 ol_link_pthreads="-lpthreads -lmach -lexc"
7097 ol_link_threads=posix
7101 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
7102 if test "$ol_link_threads" = no ; then
7103 # try -lpthreads -lexc
7104 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
7105 echo "configure:7106: checking for pthread link with -lpthreads -lexc" >&5
7106 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7112 LIBS="-lpthreads -lexc $LIBS"
7114 cat > conftest.$ac_ext <<EOF
7115 #line 7116 "configure"
7116 #include "confdefs.h"
7118 #include <pthread.h>
7120 #define NULL (void*)0
7127 #if HAVE_PTHREADS_D4
7128 pthread_create(&t, pthread_attr_default, NULL, NULL);
7129 pthread_detach( &t );
7131 pthread_create(&t, NULL, NULL, NULL);
7132 pthread_detach( t );
7134 #ifdef HAVE_LINUX_THREADS
7135 pthread_kill_other_threads_np();
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7142 ol_cv_pthread_lpthreads_lexc=yes
7144 echo "configure: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7147 ol_cv_pthread_lpthreads_lexc=no
7156 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
7158 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
7159 ol_link_pthreads="-lpthreads -lexc"
7160 ol_link_threads=posix
7165 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
7166 if test "$ol_link_threads" = no ; then
7168 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
7169 echo "configure:7170: checking for pthread link with -lpthreads" >&5
7170 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7176 LIBS="-lpthreads $LIBS"
7178 cat > conftest.$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7182 #include <pthread.h>
7184 #define NULL (void*)0
7191 #if HAVE_PTHREADS_D4
7192 pthread_create(&t, pthread_attr_default, NULL, NULL);
7193 pthread_detach( &t );
7195 pthread_create(&t, NULL, NULL, NULL);
7196 pthread_detach( t );
7198 #ifdef HAVE_LINUX_THREADS
7199 pthread_kill_other_threads_np();
7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7206 ol_cv_pthread_lib_lpthreads=yes
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 ol_cv_pthread_lib_lpthreads=no
7220 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
7222 if test $ol_cv_pthread_lib_lpthreads = yes ; then
7223 ol_link_pthreads="-lpthreads"
7224 ol_link_threads=posix
7229 if test $ol_link_threads != no ; then
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_PTHREADS 1
7235 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
7237 save_CPPFLAGS="$CPPFLAGS"
7239 LIBS="$LTHREAD_LIBS $LIBS"
7241 for ac_func in sched_yield pthread_yield
7243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7244 echo "configure:7245: checking for $ac_func" >&5
7245 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7246 echo $ac_n "(cached) $ac_c" 1>&6
7248 cat > conftest.$ac_ext <<EOF
7249 #line 7250 "configure"
7250 #include "confdefs.h"
7251 /* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func(); below. */
7254 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 eval "ac_cv_func_$ac_func=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_func_$ac_func=no"
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7293 echo "$ac_t""no" 1>&6
7298 if test $ac_cv_func_sched_yield = no -a \
7299 $ac_cv_func_pthread_yield = no ; then
7300 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
7301 echo "configure:7302: checking for sched_yield in -lrt" >&5
7302 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
7303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7306 ac_save_LIBS="$LIBS"
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7322 eval "ac_cv_lib_$ac_lib_var=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 eval "ac_cv_lib_$ac_lib_var=no"
7330 LIBS="$ac_save_LIBS"
7333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7334 echo "$ac_t""yes" 1>&6
7335 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
7336 cat >> confdefs.h <<\EOF
7337 #define HAVE_SCHED_YIELD 1
7340 ac_cv_func_sched_yield=yes
7342 echo "$ac_t""no" 1>&6
7343 ac_cv_func_sched_yield=no
7347 if test $ac_cv_func_sched_yield = no -a \
7348 $ac_cv_func_pthread_yield = no ; then
7349 for ac_func in thr_yield
7351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7352 echo "configure:7353: checking for $ac_func" >&5
7353 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 /* System header to define __stub macros and hopefully few prototypes,
7360 which can conflict with char $ac_func(); below. */
7362 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7370 /* The GNU C library defines this for functions which it implements
7371 to always fail with ENOSYS. Some functions are actually named
7372 something starting with __ and the normal name is an alias. */
7373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7383 eval "ac_cv_func_$ac_func=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_func_$ac_func=no"
7393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7394 echo "$ac_t""yes" 1>&6
7395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7396 cat >> confdefs.h <<EOF
7397 #define $ac_tr_func 1
7401 echo "$ac_t""no" 1>&6
7406 if test $ac_cv_func_sched_yield = no -a \
7407 $ac_cv_func_pthread_yield = no -a \
7408 "$ac_cv_func_thr_yield" = no ; then
7409 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
7412 for ac_func in pthread_kill
7414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7415 echo "configure:7416: checking for $ac_func" >&5
7416 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422 /* System header to define __stub macros and hopefully few prototypes,
7423 which can conflict with char $ac_func(); below. */
7425 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7433 /* The GNU C library defines this for functions which it implements
7434 to always fail with ENOSYS. Some functions are actually named
7435 something starting with __ and the normal name is an alias. */
7436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7444 if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7446 eval "ac_cv_func_$ac_func=yes"
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7451 eval "ac_cv_func_$ac_func=no"
7456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7457 echo "$ac_t""yes" 1>&6
7458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7459 cat >> confdefs.h <<EOF
7460 #define $ac_tr_func 1
7464 echo "$ac_t""no" 1>&6
7469 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
7470 echo "configure:7471: checking for pthread_detach with <pthread.h>" >&5
7471 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7479 #include <pthread.h>
7481 #define NULL (void*)0
7485 pthread_detach(NULL);
7488 if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7490 ol_cv_func_pthread_detach=yes
7492 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5
7495 ol_cv_func_pthread_detach=no
7501 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
7503 if test $ol_cv_func_pthread_detach = no ; then
7504 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
7507 cat >> confdefs.h <<\EOF
7508 #define HAVE_PTHREAD_DETACH 1
7513 pthread_setconcurrency \
7514 pthread_getconcurrency \
7515 thr_setconcurrency \
7516 thr_getconcurrency \
7519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7520 echo "configure:7521: checking for $ac_func" >&5
7521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7522 echo $ac_n "(cached) $ac_c" 1>&6
7524 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure"
7526 #include "confdefs.h"
7527 /* System header to define __stub macros and hopefully few prototypes,
7528 which can conflict with char $ac_func(); below. */
7530 /* Override any gcc2 internal prototype to avoid an error. */
7531 /* We use char because int might match the return type of a gcc2
7532 builtin and then its argument prototype would still apply. */
7538 /* The GNU C library defines this for functions which it implements
7539 to always fail with ENOSYS. Some functions are actually named
7540 something starting with __ and the normal name is an alias. */
7541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7551 eval "ac_cv_func_$ac_func=yes"
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7556 eval "ac_cv_func_$ac_func=no"
7561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7564 cat >> confdefs.h <<EOF
7565 #define $ac_tr_func 1
7569 echo "$ac_t""no" 1>&6
7575 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
7576 echo "configure:7577: checking for pthread_kill_other_threads_np" >&5
7577 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583 /* System header to define __stub macros and hopefully few prototypes,
7584 which can conflict with char pthread_kill_other_threads_np(); below. */
7586 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7589 char pthread_kill_other_threads_np();
7594 /* The GNU C library defines this for functions which it implements
7595 to always fail with ENOSYS. Some functions are actually named
7596 something starting with __ and the normal name is an alias. */
7597 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
7600 f = pthread_kill_other_threads_np;
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7607 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 eval "ac_cv_func_pthread_kill_other_threads_np=no"
7617 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7621 echo "$ac_t""no" 1>&6
7624 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
7625 echo "configure:7626: checking for LinuxThreads implementation" >&5
7626 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7629 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
7632 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
7637 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
7638 echo "configure:7639: checking for LinuxThreads consistency" >&5
7639 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7643 if test $ol_cv_header_linux_threads = yes -a \
7644 $ol_cv_sys_linux_threads = yes; then
7645 ol_cv_linux_threads=yes
7646 elif test $ol_cv_header_linux_threads = no -a \
7647 $ol_cv_sys_linux_threads = no; then
7648 ol_cv_linux_threads=no
7650 ol_cv_linux_threads=error
7655 echo "$ac_t""$ol_cv_linux_threads" 1>&6
7658 if test $ol_cv_linux_threads = error; then
7659 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
7662 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
7663 echo "configure:7664: checking if pthread_create() works" >&5
7664 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7668 if test "$cross_compiling" = yes; then
7669 ol_cv_pthread_create_works=yes
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7675 #include <pthread.h>
7677 #define NULL (void*)0
7680 static void *task(p)
7683 return (void *) (p == NULL);
7686 int main(argc, argv)
7691 #if HAVE_PTHREADS_D4
7692 exit(pthread_create(&t, pthread_attr_default, task, NULL));
7694 exit(pthread_create(&t, NULL, task, NULL));
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7701 ol_cv_pthread_create_works=yes
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 ol_cv_pthread_create_works=no
7713 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
7715 if test $ol_cv_pthread_create_works = no ; then
7716 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
7719 if test $ol_with_yielding_select = auto ; then
7720 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
7721 echo "configure:7722: checking if select yields when using pthreads" >&5
7722 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
7723 echo $ac_n "(cached) $ac_c" 1>&6
7726 if test "$cross_compiling" = yes; then
7727 ol_cv_pthread_select_yields=cross
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7733 #include <sys/types.h>
7734 #include <sys/time.h>
7736 #include <pthread.h>
7738 #define NULL (void*) 0
7741 static int fildes[2];
7743 static void *task(p)
7755 FD_SET(fildes[0], &rfds);
7757 /* we're not interested in any fds */
7758 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7765 exit(0); /* if we exit here, the select blocked the whole process */
7768 int main(argc, argv)
7774 /* create a pipe to select */
7775 if(pipe(&fildes[0])) {
7780 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7781 (void) pthread_setconcurrency(2);
7783 #ifdef HAVE_THR_SETCONCURRENCY
7784 /* Set Solaris LWP concurrency to 2 */
7785 thr_setconcurrency(2);
7789 #if HAVE_PTHREADS_D4
7790 pthread_create(&t, pthread_attr_default, task, NULL);
7792 pthread_create(&t, NULL, task, NULL);
7795 #if HAVE_SCHED_YIELD
7796 sched_yield(); /* make sure task runs first */
7798 #ifdef HAVE_PTHREAD_YIELD
7799 pthread_yield(); /* make sure task runs first */
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7808 ol_cv_pthread_select_yields=no
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 ol_cv_pthread_select_yields=yes
7820 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7822 if test $ol_cv_pthread_select_yields = cross ; then
7823 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
7826 if test $ol_cv_pthread_select_yields = yes ; then
7827 ol_with_yielding_select=yes
7831 CPPFLAGS="$save_CPPFLAGS"
7834 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7838 if test $ol_with_threads = posix ; then
7839 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7843 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7844 -o $ol_with_threads = mach ; then
7846 for ac_hdr in mach/cthreads.h
7848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_hdr" >&5
7851 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7860 { (eval echo configure:7861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7862 if test -z "$ac_err"; then
7864 eval "ac_cv_header_$ac_safe=yes"
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 eval "ac_cv_header_$ac_safe=no"
7874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7877 cat >> confdefs.h <<EOF
7878 #define $ac_tr_hdr 1
7882 echo "$ac_t""no" 1>&6
7886 if test $ac_cv_header_mach_cthreads_h = yes ; then
7887 ol_with_threads=found
7889 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7890 echo "configure:7891: checking for cthread_fork" >&5
7891 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7894 cat > conftest.$ac_ext <<EOF
7895 #line 7896 "configure"
7896 #include "confdefs.h"
7897 /* System header to define __stub macros and hopefully few prototypes,
7898 which can conflict with char cthread_fork(); below. */
7900 /* Override any gcc2 internal prototype to avoid an error. */
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7903 char cthread_fork();
7908 /* The GNU C library defines this for functions which it implements
7909 to always fail with ENOSYS. Some functions are actually named
7910 something starting with __ and the normal name is an alias. */
7911 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 eval "ac_cv_func_cthread_fork=yes"
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 eval "ac_cv_func_cthread_fork=no"
7931 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7935 echo "$ac_t""no" 1>&6
7939 if test $ol_link_threads = no ; then
7940 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7941 echo "configure:7942: checking for cthread_fork with -all_load" >&5
7942 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7947 LIBS="-all_load $LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 #include <mach/cthreads.h>
7954 cthread_fork((void *)0, (void *)0);
7958 if { (eval echo configure:7959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7960 ol_cv_cthread_all_load=yes
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 ol_cv_cthread_all_load=no
7972 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7974 if test $ol_cv_cthread_all_load = yes ; then
7975 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7976 ol_link_threads=mach
7980 if test $ol_link_threads != no ; then
7981 : check for cthread specific functionality here
7982 cat >> confdefs.h <<\EOF
7983 #define HAVE_MACH_CTHREADS 1
7987 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7991 if test $ol_with_threads = mach ; then
7992 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7996 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7997 -o $ol_with_threads = lwp ; then
7999 for ac_hdr in thread.h synch.h
8001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8003 echo "configure:8004: checking for $ac_hdr" >&5
8004 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8005 echo $ac_n "(cached) $ac_c" 1>&6
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8013 { (eval echo configure:8014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8015 if test -z "$ac_err"; then
8017 eval "ac_cv_header_$ac_safe=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 eval "ac_cv_header_$ac_safe=no"
8027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8030 cat >> confdefs.h <<EOF
8031 #define $ac_tr_hdr 1
8035 echo "$ac_t""no" 1>&6
8039 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
8040 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
8041 echo "configure:8042: checking for thr_create in -lthread" >&5
8042 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
8043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 ac_save_LIBS="$LIBS"
8047 LIBS="-lthread $LIBS"
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062 eval "ac_cv_lib_$ac_lib_var=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_lib_$ac_lib_var=no"
8070 LIBS="$ac_save_LIBS"
8073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8077 echo "$ac_t""no" 1>&6
8082 if test $have_thr = yes ; then
8083 cat >> confdefs.h <<\EOF
8087 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
8090 if test $ol_with_yielding_select = auto ; then
8091 ol_with_yielding_select=yes
8095 thr_setconcurrency \
8096 thr_getconcurrency \
8099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8100 echo "configure:8101: checking for $ac_func" >&5
8101 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8107 /* System header to define __stub macros and hopefully few prototypes,
8108 which can conflict with char $ac_func(); below. */
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8118 /* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 eval "ac_cv_func_$ac_func=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8136 eval "ac_cv_func_$ac_func=no"
8141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8142 echo "$ac_t""yes" 1>&6
8143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8144 cat >> confdefs.h <<EOF
8145 #define $ac_tr_func 1
8149 echo "$ac_t""no" 1>&6
8156 for ac_hdr in lwp/lwp.h
8158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8160 echo "configure:8161: checking for $ac_hdr" >&5
8161 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8170 { (eval echo configure:8171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8172 if test -z "$ac_err"; then
8174 eval "ac_cv_header_$ac_safe=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 eval "ac_cv_header_$ac_safe=no"
8184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8187 cat >> confdefs.h <<EOF
8188 #define $ac_tr_hdr 1
8192 echo "$ac_t""no" 1>&6
8196 if test $ac_cv_header_lwp_lwp_h = yes ; then
8197 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
8198 echo "configure:8199: checking for lwp_create in -llwp" >&5
8199 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
8200 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8201 echo $ac_n "(cached) $ac_c" 1>&6
8203 ac_save_LIBS="$LIBS"
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8208 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8217 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8219 eval "ac_cv_lib_$ac_lib_var=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8224 eval "ac_cv_lib_$ac_lib_var=no"
8227 LIBS="$ac_save_LIBS"
8230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8231 echo "$ac_t""yes" 1>&6
8234 echo "$ac_t""no" 1>&6
8239 if test $have_lwp = yes ; then
8240 cat >> confdefs.h <<\EOF
8244 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
8247 if test $ol_with_yielding_select = auto ; then
8248 ol_with_yielding_select=no
8254 if test $ol_with_yielding_select = yes ; then
8255 cat >> confdefs.h <<\EOF
8256 #define HAVE_YIELDING_SELECT 1
8261 if test $ol_with_threads = manual ; then
8264 echo "configure: warning: thread defines and link options must be set manually" 1>&2
8266 for ac_hdr in pthread.h sched.h
8268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8270 echo "configure:8271: checking for $ac_hdr" >&5
8271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8282 if test -z "$ac_err"; then
8284 eval "ac_cv_header_$ac_safe=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_header_$ac_safe=no"
8294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_hdr 1
8302 echo "$ac_t""no" 1>&6
8306 for ac_func in sched_yield pthread_yield
8308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_func" >&5
8310 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func(); below. */
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340 eval "ac_cv_func_$ac_func=yes"
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8345 eval "ac_cv_func_$ac_func=no"
8350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8353 cat >> confdefs.h <<EOF
8354 #define $ac_tr_func 1
8358 echo "$ac_t""no" 1>&6
8363 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
8364 echo "configure:8365: checking for LinuxThreads pthread.h" >&5
8365 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 #include <pthread.h>
8373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
8376 ol_cv_header_linux_threads=yes
8379 ol_cv_header_linux_threads=no
8386 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
8387 if test $ol_cv_header_linux_threads = yes; then
8388 cat >> confdefs.h <<\EOF
8389 #define HAVE_LINUX_THREADS 1
8395 for ac_hdr in mach/cthreads.h
8397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8399 echo "configure:8400: checking for $ac_hdr" >&5
8400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8403 cat > conftest.$ac_ext <<EOF
8404 #line 8405 "configure"
8405 #include "confdefs.h"
8408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8409 { (eval echo configure:8410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8411 if test -z "$ac_err"; then
8413 eval "ac_cv_header_$ac_safe=yes"
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 eval "ac_cv_header_$ac_safe=no"
8423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8426 cat >> confdefs.h <<EOF
8427 #define $ac_tr_hdr 1
8431 echo "$ac_t""no" 1>&6
8435 for ac_hdr in lwp/lwp.h
8437 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8439 echo "configure:8440: checking for $ac_hdr" >&5
8440 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8449 { (eval echo configure:8450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8451 if test -z "$ac_err"; then
8453 eval "ac_cv_header_$ac_safe=yes"
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 eval "ac_cv_header_$ac_safe=no"
8463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8464 echo "$ac_t""yes" 1>&6
8465 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8466 cat >> confdefs.h <<EOF
8467 #define $ac_tr_hdr 1
8471 echo "$ac_t""no" 1>&6
8475 for ac_hdr in thread.h synch.h
8477 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8478 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8479 echo "configure:8480: checking for $ac_hdr" >&5
8480 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8489 { (eval echo configure:8490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8491 if test -z "$ac_err"; then
8493 eval "ac_cv_header_$ac_safe=yes"
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 eval "ac_cv_header_$ac_safe=no"
8503 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8504 echo "$ac_t""yes" 1>&6
8505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8506 cat >> confdefs.h <<EOF
8507 #define $ac_tr_hdr 1
8511 echo "$ac_t""no" 1>&6
8517 if test $ol_link_threads != no ; then
8518 cat >> confdefs.h <<\EOF
8522 cat >> confdefs.h <<\EOF
8523 #define _REENTRANT 1
8526 cat >> confdefs.h <<\EOF
8527 #define THREAD_SAFE 1
8530 cat >> confdefs.h <<\EOF
8531 #define _THREAD_SAFE 1
8534 cat >> confdefs.h <<\EOF
8535 #define THREADSAFE 1
8538 cat >> confdefs.h <<\EOF
8539 #define _THREADSAFE 1
8542 cat >> confdefs.h <<\EOF
8543 #define _SGI_MP_SOURCE 1
8547 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
8548 echo "configure:8549: checking for thread specific errno" >&5
8549 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8553 cat > conftest.$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8561 if { (eval echo configure:8562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8563 ol_cv_errno_thread_specific=yes
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 ol_cv_errno_thread_specific=no
8574 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
8576 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
8577 echo "configure:8578: checking for thread specific h_errno" >&5
8578 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8590 if { (eval echo configure:8591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 ol_cv_h_errno_thread_specific=yes
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 ol_cv_h_errno_thread_specific=no
8603 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
8605 if test $ol_cv_errno_thread_specific != yes \
8606 -o $ol_cv_h_errno_thread_specific != yes ; then
8607 LIBS="$LTHREAD_LIBS $LIBS"
8613 if test $ol_link_threads = no ; then
8614 if test $ol_with_threads = yes ; then
8615 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
8618 if test $ol_with_threads = auto ; then
8619 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
8623 cat >> confdefs.h <<\EOF
8624 #define NO_THREADS 1
8630 if test $ol_link_threads != no ; then
8631 cat >> confdefs.h <<\EOF
8632 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8639 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
8640 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
8641 echo "configure:8642: checking for DB2 library" >&5
8642 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8646 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
8647 echo "configure:8648: checking for db_open in -ldb" >&5
8648 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
8649 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8652 ac_save_LIBS="$LIBS"
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8666 if { (eval echo configure:8667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8668 eval "ac_cv_lib_$ac_lib_var=yes"
8670 echo "configure: failed program was:" >&5
8671 cat conftest.$ac_ext >&5
8673 eval "ac_cv_lib_$ac_lib_var=no"
8676 LIBS="$ac_save_LIBS"
8679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8683 echo "$ac_t""no" 1>&6
8691 echo "$ac_t""$ol_cv_lib_db2" 1>&6
8695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8697 echo "configure:8698: checking for $ac_hdr" >&5
8698 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8699 echo $ac_n "(cached) $ac_c" 1>&6
8701 cat > conftest.$ac_ext <<EOF
8702 #line 8703 "configure"
8703 #include "confdefs.h"
8706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8707 { (eval echo configure:8708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8709 if test -z "$ac_err"; then
8711 eval "ac_cv_header_$ac_safe=yes"
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 eval "ac_cv_header_$ac_safe=no"
8721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8722 echo "$ac_t""yes" 1>&6
8723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8724 cat >> confdefs.h <<EOF
8725 #define $ac_tr_hdr 1
8729 echo "$ac_t""no" 1>&6
8733 if test $ac_cv_header_db_h = yes ; then
8734 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
8735 echo "configure:8736: checking if db.h is DB2" >&5
8736 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
8737 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8745 /* this check could be improved */
8746 # ifdef DB_VERSION_MAJOR
8747 # if DB_VERSION_MAJOR == 2
8753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8754 egrep "__db_version_2" >/dev/null 2>&1; then
8756 ol_cv_header_db2=yes
8765 echo "$ac_t""$ol_cv_header_db2" 1>&6
8772 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8773 echo "configure:8774: checking for Berkeley DB2" >&5
8774 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
8775 echo $ac_n "(cached) $ac_c" 1>&6
8778 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8779 ol_cv_berkeley_db2=no
8781 ol_cv_berkeley_db2=yes
8786 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8787 if test $ol_cv_berkeley_db2 = yes ; then
8788 cat >> confdefs.h <<\EOF
8789 #define HAVE_BERKELEY_DB2 1
8795 if test $ol_cv_berkeley_db2 = yes ; then
8797 ol_with_ldbm_api=db2
8799 if test $ol_with_ldbm_type = hash ; then
8800 cat >> confdefs.h <<\EOF
8801 #define LDBM_USE_DBHASH 1
8805 cat >> confdefs.h <<\EOF
8806 #define LDBM_USE_DBBTREE 1
8811 if test $ol_cv_lib_db2 != yes ; then
8812 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8818 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8822 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8823 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8824 echo "configure:8825: checking for Berkeley DB library" >&5
8825 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8829 for ac_hdr in db1/db.h
8831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8833 echo "configure:8834: checking for $ac_hdr" >&5
8834 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8837 cat > conftest.$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8843 { (eval echo configure:8844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8845 if test -z "$ac_err"; then
8847 eval "ac_cv_header_$ac_safe=yes"
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 eval "ac_cv_header_$ac_safe=no"
8857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8858 echo "$ac_t""yes" 1>&6
8859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8860 cat >> confdefs.h <<EOF
8861 #define $ac_tr_hdr 1
8865 echo "$ac_t""no" 1>&6
8870 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8871 echo "configure:8872: checking for dbopen" >&5
8872 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 cat > conftest.$ac_ext <<EOF
8876 #line 8877 "configure"
8877 #include "confdefs.h"
8878 /* System header to define __stub macros and hopefully few prototypes,
8879 which can conflict with char dbopen(); below. */
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 eval "ac_cv_func_dbopen=yes"
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 eval "ac_cv_func_dbopen=no"
8912 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8913 echo "$ac_t""yes" 1>&6
8916 echo "$ac_t""no" 1>&6
8918 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8919 echo "configure:8920: checking for dbopen in -ldb1" >&5
8920 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
8921 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8924 ac_save_LIBS="$LIBS"
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 /* We use char because int might match the return type of a gcc2
8931 builtin and then its argument prototype would still apply. */
8938 if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 eval "ac_cv_lib_$ac_lib_var=yes"
8942 echo "configure: failed program was:" >&5
8943 cat conftest.$ac_ext >&5
8945 eval "ac_cv_lib_$ac_lib_var=no"
8948 LIBS="$ac_save_LIBS"
8951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8952 echo "$ac_t""yes" 1>&6
8955 echo "$ac_t""no" 1>&6
8957 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8958 echo "configure:8959: checking for dbopen in -ldb" >&5
8959 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
8960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8963 ac_save_LIBS="$LIBS"
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8979 eval "ac_cv_lib_$ac_lib_var=yes"
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 eval "ac_cv_lib_$ac_lib_var=no"
8987 LIBS="$ac_save_LIBS"
8990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8991 echo "$ac_t""yes" 1>&6
8994 echo "$ac_t""no" 1>&6
9008 echo "$ac_t""$ol_cv_lib_db" 1>&6
9011 for ac_hdr in db_185.h
9013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9015 echo "configure:9016: checking for $ac_hdr" >&5
9016 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9025 { (eval echo configure:9026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9027 if test -z "$ac_err"; then
9029 eval "ac_cv_header_$ac_safe=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_header_$ac_safe=no"
9039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9040 echo "$ac_t""yes" 1>&6
9041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9042 cat >> confdefs.h <<EOF
9043 #define $ac_tr_hdr 1
9047 echo "$ac_t""no" 1>&6
9051 if test "$ol_cv_header_db2" = yes ; then
9053 ol_cv_header_db=$ac_cv_header_db_185_h
9055 ol_cv_header_db=$ac_cv_header_db_h
9060 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
9061 echo "configure:9062: checking for Berkeley DB" >&5
9062 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9066 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
9067 ol_cv_berkeley_db=no
9069 ol_cv_berkeley_db=yes
9074 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
9075 if test $ol_cv_berkeley_db = yes ; then
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_BERKELEY_DB 1
9083 if test $ol_cv_berkeley_db = yes ; then
9087 if test $ol_with_ldbm_type = hash ; then
9088 cat >> confdefs.h <<\EOF
9089 #define LDBM_USE_DBHASH 1
9093 cat >> confdefs.h <<\EOF
9094 #define LDBM_USE_DBBTREE 1
9099 if test $ol_cv_lib_db != yes ; then
9100 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
9105 if test $ol_with_ldbm_api = manual ; then
9108 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
9110 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
9112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9114 echo "configure:9115: checking for $ac_hdr" >&5
9115 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9118 cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9124 { (eval echo configure:9125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9126 if test -z "$ac_err"; then
9128 eval "ac_cv_header_$ac_safe=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_header_$ac_safe=no"
9138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9139 echo "$ac_t""yes" 1>&6
9140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9141 cat >> confdefs.h <<EOF
9142 #define $ac_tr_hdr 1
9146 echo "$ac_t""no" 1>&6
9152 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
9153 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
9154 ol_with_ldbm_api=none
9157 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
9158 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
9159 echo "configure:9160: checking for MDBM library" >&5
9160 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9164 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
9165 echo "configure:9166: checking for mdbm_set_chain" >&5
9166 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9172 /* System header to define __stub macros and hopefully few prototypes,
9173 which can conflict with char mdbm_set_chain(); below. */
9175 /* Override any gcc2 internal prototype to avoid an error. */
9176 /* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9178 char mdbm_set_chain();
9183 /* The GNU C library defines this for functions which it implements
9184 to always fail with ENOSYS. Some functions are actually named
9185 something starting with __ and the normal name is an alias. */
9186 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196 eval "ac_cv_func_mdbm_set_chain=yes"
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9201 eval "ac_cv_func_mdbm_set_chain=no"
9206 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
9207 echo "$ac_t""yes" 1>&6
9210 echo "$ac_t""no" 1>&6
9212 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
9213 echo "configure:9214: checking for mdbm_set_chain in -lmdbm" >&5
9214 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
9215 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9218 ac_save_LIBS="$LIBS"
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char mdbm_set_chain();
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9234 eval "ac_cv_lib_$ac_lib_var=yes"
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9239 eval "ac_cv_lib_$ac_lib_var=no"
9242 LIBS="$ac_save_LIBS"
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9246 echo "$ac_t""yes" 1>&6
9247 ol_cv_lib_mdbm=-lmdbm
9249 echo "$ac_t""no" 1>&6
9260 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
9263 for ac_hdr in mdbm.h
9265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9267 echo "configure:9268: checking for $ac_hdr" >&5
9268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9277 { (eval echo configure:9278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9279 if test -z "$ac_err"; then
9281 eval "ac_cv_header_$ac_safe=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 eval "ac_cv_header_$ac_safe=no"
9291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9292 echo "$ac_t""yes" 1>&6
9293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9294 cat >> confdefs.h <<EOF
9295 #define $ac_tr_hdr 1
9299 echo "$ac_t""no" 1>&6
9303 echo $ac_n "checking for db""... $ac_c" 1>&6
9304 echo "configure:9305: checking for db" >&5
9305 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9309 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
9317 echo "$ac_t""$ol_cv_mdbm" 1>&6
9318 if test $ol_cv_mdbm = yes ; then
9319 cat >> confdefs.h <<\EOF
9326 if test $ol_cv_mdbm = yes ; then
9328 ol_with_ldbm_api=mdbm
9329 if test $ol_cv_lib_mdbm != yes ; then
9330 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
9335 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
9336 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
9337 echo "configure:9338: checking for GDBM library" >&5
9338 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
9339 echo $ac_n "(cached) $ac_c" 1>&6
9342 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
9343 echo "configure:9344: checking for gdbm_open" >&5
9344 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char gdbm_open(); below. */
9353 /* Override any gcc2 internal prototype to avoid an error. */
9354 /* We use char because int might match the return type of a gcc2
9355 builtin and then its argument prototype would still apply. */
9361 /* The GNU C library defines this for functions which it implements
9362 to always fail with ENOSYS. Some functions are actually named
9363 something starting with __ and the normal name is an alias. */
9364 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
9372 if { (eval echo configure:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9374 eval "ac_cv_func_gdbm_open=yes"
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9379 eval "ac_cv_func_gdbm_open=no"
9384 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
9385 echo "$ac_t""yes" 1>&6
9388 echo "$ac_t""no" 1>&6
9390 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
9391 echo "configure:9392: checking for gdbm_open in -lgdbm" >&5
9392 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
9393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9396 ac_save_LIBS="$LIBS"
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 /* Override any gcc2 internal prototype to avoid an error. */
9402 /* We use char because int might match the return type of a gcc2
9403 builtin and then its argument prototype would still apply. */
9410 if { (eval echo configure:9411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412 eval "ac_cv_lib_$ac_lib_var=yes"
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9417 eval "ac_cv_lib_$ac_lib_var=no"
9420 LIBS="$ac_save_LIBS"
9423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9424 echo "$ac_t""yes" 1>&6
9425 ol_cv_lib_gdbm=-lgdbm
9427 echo "$ac_t""no" 1>&6
9438 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
9441 for ac_hdr in gdbm.h
9443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9445 echo "configure:9446: checking for $ac_hdr" >&5
9446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9455 { (eval echo configure:9456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9457 if test -z "$ac_err"; then
9459 eval "ac_cv_header_$ac_safe=yes"
9462 echo "configure: failed program was:" >&5
9463 cat conftest.$ac_ext >&5
9465 eval "ac_cv_header_$ac_safe=no"
9469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9470 echo "$ac_t""yes" 1>&6
9471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9472 cat >> confdefs.h <<EOF
9473 #define $ac_tr_hdr 1
9477 echo "$ac_t""no" 1>&6
9481 echo $ac_n "checking for db""... $ac_c" 1>&6
9482 echo "configure:9483: checking for db" >&5
9483 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9487 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
9495 echo "$ac_t""$ol_cv_gdbm" 1>&6
9496 if test $ol_cv_gdbm = yes ; then
9497 cat >> confdefs.h <<\EOF
9504 if test $ol_cv_gdbm = yes ; then
9506 ol_with_ldbm_api=gdbm
9508 if test $ol_cv_lib_gdbm != yes ; then
9509 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
9514 if test $ol_with_ldbm_api = auto ; then
9515 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
9516 elif test $ol_with_ldbm_api = ndbm ; then
9517 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
9518 echo "configure:9519: checking for NDBM library" >&5
9519 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9523 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9524 echo "configure:9525: checking for dbm_open" >&5
9525 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9528 cat > conftest.$ac_ext <<EOF
9529 #line 9530 "configure"
9530 #include "confdefs.h"
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char dbm_open(); below. */
9534 /* Override any gcc2 internal prototype to avoid an error. */
9535 /* We use char because int might match the return type of a gcc2
9536 builtin and then its argument prototype would still apply. */
9542 /* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
9553 if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9555 eval "ac_cv_func_dbm_open=yes"
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9560 eval "ac_cv_func_dbm_open=no"
9565 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9569 echo "$ac_t""no" 1>&6
9571 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
9572 echo "configure:9573: checking for dbm_open in -lndbm" >&5
9573 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9575 echo $ac_n "(cached) $ac_c" 1>&6
9577 ac_save_LIBS="$LIBS"
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 /* Override any gcc2 internal prototype to avoid an error. */
9583 /* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9591 if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9593 eval "ac_cv_lib_$ac_lib_var=yes"
9595 echo "configure: failed program was:" >&5
9596 cat conftest.$ac_ext >&5
9598 eval "ac_cv_lib_$ac_lib_var=no"
9601 LIBS="$ac_save_LIBS"
9604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ol_cv_lib_ndbm=-lndbm
9608 echo "$ac_t""no" 1>&6
9610 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9611 echo "configure:9612: checking for dbm_open in -ldbm" >&5
9612 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
9613 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9616 ac_save_LIBS="$LIBS"
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9630 if { (eval echo configure:9631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9632 eval "ac_cv_lib_$ac_lib_var=yes"
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 eval "ac_cv_lib_$ac_lib_var=no"
9640 LIBS="$ac_save_LIBS"
9643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9644 echo "$ac_t""yes" 1>&6
9645 ol_cv_lib_ndbm=-ldbm
9647 echo "$ac_t""no" 1>&6
9660 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
9663 for ac_hdr in ndbm.h
9665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9667 echo "configure:9668: checking for $ac_hdr" >&5
9668 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9677 { (eval echo configure:9678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9679 if test -z "$ac_err"; then
9681 eval "ac_cv_header_$ac_safe=yes"
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 eval "ac_cv_header_$ac_safe=no"
9691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9692 echo "$ac_t""yes" 1>&6
9693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9694 cat >> confdefs.h <<EOF
9695 #define $ac_tr_hdr 1
9699 echo "$ac_t""no" 1>&6
9703 echo $ac_n "checking for db""... $ac_c" 1>&6
9704 echo "configure:9705: checking for db" >&5
9705 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9709 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
9717 echo "$ac_t""$ol_cv_ndbm" 1>&6
9718 if test $ol_cv_ndbm = yes ; then
9719 cat >> confdefs.h <<\EOF
9726 if test $ol_cv_ndbm = yes ; then
9728 ol_with_ldbm_api=ndbm
9730 if test $ol_cv_lib_ndbm != yes ; then
9731 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
9736 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
9737 echo "configure: warning: could not find suitable LDBM backend" 1>&2
9738 if test $ol_enable_ldbm = yes ; then
9739 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
9742 echo "configure: warning: disabling LDBM" 1>&2
9746 if test $ol_enable_wrappers != no ; then
9747 for ac_hdr in tcpd.h
9749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9751 echo "configure:9752: checking for $ac_hdr" >&5
9752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9761 { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9763 if test -z "$ac_err"; then
9765 eval "ac_cv_header_$ac_safe=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_header_$ac_safe=no"
9775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9778 cat >> confdefs.h <<EOF
9779 #define $ac_tr_hdr 1
9783 echo "$ac_t""no" 1>&6
9788 if test $ac_cv_header_tcpd_h != yes ; then
9791 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9792 echo "configure:9793: checking for main in -lwrap" >&5
9793 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
9794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9795 echo $ac_n "(cached) $ac_c" 1>&6
9797 ac_save_LIBS="$LIBS"
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 eval "ac_cv_lib_$ac_lib_var=no"
9817 LIBS="$ac_save_LIBS"
9820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9824 echo "$ac_t""no" 1>&6
9830 if test $have_wrappers = yes ; then
9831 cat >> confdefs.h <<\EOF
9835 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9837 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9838 echo "configure:9839: checking for main in -lnsl" >&5
9839 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9843 ac_save_LIBS="$LIBS"
9845 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure"
9847 #include "confdefs.h"
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 eval "ac_cv_lib_$ac_lib_var=yes"
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 eval "ac_cv_lib_$ac_lib_var=no"
9863 LIBS="$ac_save_LIBS"
9866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9867 echo "$ac_t""yes" 1>&6
9868 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9870 cat >> confdefs.h <<EOF
9871 #define $ac_tr_lib 1
9877 echo "$ac_t""no" 1>&6
9881 echo "configure: warning: could not find -lwrap" 1>&2
9882 if test $ol_enable_wrappers = yes ; then
9883 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9886 echo "configure: warning: disabling wrappers support" 1>&2
9887 ol_enable_wrappers=no
9891 if test $ol_enable_syslog != no ; then
9892 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9893 echo "configure:9894: checking for openlog" >&5
9894 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 /* System header to define __stub macros and hopefully few prototypes,
9901 which can conflict with char openlog(); below. */
9903 /* Override any gcc2 internal prototype to avoid an error. */
9904 /* We use char because int might match the return type of a gcc2
9905 builtin and then its argument prototype would still apply. */
9911 /* The GNU C library defines this for functions which it implements
9912 to always fail with ENOSYS. Some functions are actually named
9913 something starting with __ and the normal name is an alias. */
9914 #if defined (__stub_openlog) || defined (__stub___openlog)
9922 if { (eval echo configure:9923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9924 eval "ac_cv_func_openlog=yes"
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 eval "ac_cv_func_openlog=no"
9934 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9935 echo "$ac_t""yes" 1>&6
9938 echo "$ac_t""no" 1>&6
9941 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9942 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9944 ol_enable_syslog=$ac_cv_func_openlog
9947 if test $ol_enable_dmalloc != no ; then
9948 for ac_hdr in dmalloc.h
9950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9952 echo "configure:9953: checking for $ac_hdr" >&5
9953 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9954 echo $ac_n "(cached) $ac_c" 1>&6
9956 cat > conftest.$ac_ext <<EOF
9957 #line 9958 "configure"
9958 #include "confdefs.h"
9961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9962 { (eval echo configure:9963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9964 if test -z "$ac_err"; then
9966 eval "ac_cv_header_$ac_safe=yes"
9969 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9972 eval "ac_cv_header_$ac_safe=no"
9976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9977 echo "$ac_t""yes" 1>&6
9978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9979 cat >> confdefs.h <<EOF
9980 #define $ac_tr_hdr 1
9984 echo "$ac_t""no" 1>&6
9988 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9989 echo "configure:9990: checking for dmalloc_shutdown in -ldmalloc" >&5
9990 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
9991 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9994 ac_save_LIBS="$LIBS"
9995 LIBS="-ldmalloc $LIBS"
9996 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure"
9998 #include "confdefs.h"
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10002 char dmalloc_shutdown();
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10010 eval "ac_cv_lib_$ac_lib_var=yes"
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10015 eval "ac_cv_lib_$ac_lib_var=no"
10018 LIBS="$ac_save_LIBS"
10021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10022 echo "$ac_t""yes" 1>&6
10023 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10024 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10025 cat >> confdefs.h <<EOF
10026 #define $ac_tr_lib 1
10029 LIBS="-ldmalloc $LIBS"
10032 echo "$ac_t""no" 1>&6
10037 if test $ol_enable_tcl != no ; then
10038 for ac_hdr in tcl.h
10040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10042 echo "configure:10043: checking for $ac_hdr" >&5
10043 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10052 { (eval echo configure:10053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10054 if test -z "$ac_err"; then
10056 eval "ac_cv_header_$ac_safe=yes"
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 eval "ac_cv_header_$ac_safe=no"
10066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10067 echo "$ac_t""yes" 1>&6
10068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10069 cat >> confdefs.h <<EOF
10070 #define $ac_tr_hdr 1
10074 echo "$ac_t""no" 1>&6
10079 if test $ac_cv_header_tcl_h != yes ; then
10082 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
10083 echo "configure:10084: checking for main in -ltcl" >&5
10084 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
10085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10088 ac_save_LIBS="$LIBS"
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10098 if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10100 eval "ac_cv_lib_$ac_lib_var=yes"
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10105 eval "ac_cv_lib_$ac_lib_var=no"
10108 LIBS="$ac_save_LIBS"
10111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10112 echo "$ac_t""yes" 1>&6
10113 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
10115 echo "$ac_t""no" 1>&6
10120 if test $have_tcl != yes; then
10121 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
10122 echo "configure:10123: checking for main in -ltcl7.6" >&5
10123 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
10124 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10127 ac_save_LIBS="$LIBS"
10128 LIBS="-ltcl7.6 $LIBS"
10129 cat > conftest.$ac_ext <<EOF
10130 #line 10131 "configure"
10131 #include "confdefs.h"
10137 if { (eval echo configure:10138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10139 eval "ac_cv_lib_$ac_lib_var=yes"
10141 echo "configure: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10144 eval "ac_cv_lib_$ac_lib_var=no"
10147 LIBS="$ac_save_LIBS"
10150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10151 echo "$ac_t""yes" 1>&6
10152 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
10154 echo "$ac_t""no" 1>&6
10160 if test $have_tcl != yes; then
10161 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
10162 echo "configure:10163: checking for main in -ltcl8.0" >&5
10163 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
10164 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10167 ac_save_LIBS="$LIBS"
10168 LIBS="-ltcl8.0 $LIBS"
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10179 eval "ac_cv_lib_$ac_lib_var=yes"
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10184 eval "ac_cv_lib_$ac_lib_var=no"
10187 LIBS="$ac_save_LIBS"
10190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
10194 echo "$ac_t""no" 1>&6
10201 if test $have_tcl != yes ; then
10202 echo "configure: warning: could not find -ltcl" 1>&2
10203 if test $ol_enable_tcl = yes ; then
10204 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
10211 # ud needs termcap (should insert check here)
10213 for ac_hdr in termcap.h ncurses.h
10215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10217 echo "configure:10218: checking for $ac_hdr" >&5
10218 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10221 cat > conftest.$ac_ext <<EOF
10222 #line 10223 "configure"
10223 #include "confdefs.h"
10226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10227 { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10229 if test -z "$ac_err"; then
10231 eval "ac_cv_header_$ac_safe=yes"
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 eval "ac_cv_header_$ac_safe=no"
10241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
10243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10244 cat >> confdefs.h <<EOF
10245 #define $ac_tr_hdr 1
10249 echo "$ac_t""no" 1>&6
10254 if test $ol_link_termcap = no ; then
10255 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
10256 echo "configure:10257: checking for tputs in -ltermcap" >&5
10257 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
10258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10261 ac_save_LIBS="$LIBS"
10262 LIBS="-ltermcap $LIBS"
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10275 if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10277 eval "ac_cv_lib_$ac_lib_var=yes"
10279 echo "configure: failed program was:" >&5
10280 cat conftest.$ac_ext >&5
10282 eval "ac_cv_lib_$ac_lib_var=no"
10285 LIBS="$ac_save_LIBS"
10288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10292 echo "$ac_t""no" 1>&6
10296 if test $have_termcap = yes ; then
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_TERMCAP 1
10301 ol_link_termcap=yes
10302 TERMCAP_LIBS=-ltermcap
10306 if test $ol_link_termcap = no ; then
10307 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
10308 echo "configure:10309: checking for initscr in -lncurses" >&5
10309 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
10310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10313 ac_save_LIBS="$LIBS"
10314 LIBS="-lncurses $LIBS"
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 /* Override any gcc2 internal prototype to avoid an error. */
10319 /* We use char because int might match the return type of a gcc2
10320 builtin and then its argument prototype would still apply. */
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329 eval "ac_cv_lib_$ac_lib_var=yes"
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 eval "ac_cv_lib_$ac_lib_var=no"
10337 LIBS="$ac_save_LIBS"
10340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10341 echo "$ac_t""yes" 1>&6
10344 echo "$ac_t""no" 1>&6
10348 if test $have_ncurses = yes ; then
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_NCURSES 1
10353 ol_link_termcap=yes
10354 TERMCAP_LIBS=-lncurses
10358 if test $ol_link_termcap = no ; then
10359 cat >> confdefs.h <<\EOF
10360 #define NO_TERMCAP 1
10366 ol_link_readline=no
10367 if test $ol_with_readline != no ; then
10368 for ac_hdr in readline/readline.h readline/history.h
10370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10372 echo "configure:10373: checking for $ac_hdr" >&5
10373 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10374 echo $ac_n "(cached) $ac_c" 1>&6
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10382 { (eval echo configure:10383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10384 if test -z "$ac_err"; then
10386 eval "ac_cv_header_$ac_safe=yes"
10389 echo "configure: failed program was:" >&5
10390 cat conftest.$ac_ext >&5
10392 eval "ac_cv_header_$ac_safe=no"
10396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10397 echo "$ac_t""yes" 1>&6
10398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10399 cat >> confdefs.h <<EOF
10400 #define $ac_tr_hdr 1
10404 echo "$ac_t""no" 1>&6
10409 if test $ac_cv_header_readline_readline_h = yes ; then
10411 LIBS="$TERMCAP_LIBS $LIBS"
10412 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
10413 echo "configure:10414: checking for readline in -lreadline" >&5
10414 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
10415 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10418 ac_save_LIBS="$LIBS"
10419 LIBS="-lreadline $LIBS"
10420 cat > conftest.$ac_ext <<EOF
10421 #line 10422 "configure"
10422 #include "confdefs.h"
10423 /* Override any gcc2 internal prototype to avoid an error. */
10424 /* We use char because int might match the return type of a gcc2
10425 builtin and then its argument prototype would still apply. */
10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10434 eval "ac_cv_lib_$ac_lib_var=yes"
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 eval "ac_cv_lib_$ac_lib_var=no"
10442 LIBS="$ac_save_LIBS"
10445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10446 echo "$ac_t""yes" 1>&6
10449 echo "$ac_t""no" 1>&6
10455 if test $have_readline = yes ; then
10456 ol_with_readline=found
10457 ol_link_readline=yes
10459 READLINE_LIBS="-lreadline"
10464 if test $ol_link_readline = yes ; then
10465 cat >> confdefs.h <<\EOF
10466 #define HAVE_READLINE 1
10472 # FreeBSD (and others) have crypt(3) in -lcrypt
10473 if test $ol_enable_crypt != no ; then
10474 echo $ac_n "checking for crypt""... $ac_c" 1>&6
10475 echo "configure:10476: checking for crypt" >&5
10476 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char crypt(); below. */
10484 #include <assert.h>
10485 /* Override any gcc2 internal prototype to avoid an error. */
10486 /* We use char because int might match the return type of a gcc2
10487 builtin and then its argument prototype would still apply. */
10493 /* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
10496 #if defined (__stub_crypt) || defined (__stub___crypt)
10504 if { (eval echo configure:10505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10506 eval "ac_cv_func_crypt=yes"
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10511 eval "ac_cv_func_crypt=no"
10516 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
10517 echo "$ac_t""yes" 1>&6
10520 echo "$ac_t""no" 1>&6
10522 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10523 echo "configure:10524: checking for crypt in -lcrypt" >&5
10524 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
10525 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10528 ac_save_LIBS="$LIBS"
10529 LIBS="-lcrypt $LIBS"
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 /* Override any gcc2 internal prototype to avoid an error. */
10534 /* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10544 eval "ac_cv_lib_$ac_lib_var=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_lib_$ac_lib_var=no"
10552 LIBS="$ac_save_LIBS"
10555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10556 echo "$ac_t""yes" 1>&6
10557 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
10560 echo "$ac_t""no" 1>&6
10567 if test $have_crypt = yes ; then
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_CRYPT 1
10573 echo "configure: warning: could not find crypt" 1>&2
10574 if test $ol_enable_crypt = yes ; then
10575 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
10578 echo "configure: warning: disabling crypt support" 1>&2
10583 # FreeBSD (and others) have setproctitle(3) in -lutil
10584 if test $ol_enable_proctitle != no ; then
10585 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
10586 echo "configure:10587: checking for setproctitle" >&5
10587 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10590 cat > conftest.$ac_ext <<EOF
10591 #line 10592 "configure"
10592 #include "confdefs.h"
10593 /* System header to define __stub macros and hopefully few prototypes,
10594 which can conflict with char setproctitle(); below. */
10595 #include <assert.h>
10596 /* Override any gcc2 internal prototype to avoid an error. */
10597 /* We use char because int might match the return type of a gcc2
10598 builtin and then its argument prototype would still apply. */
10599 char setproctitle();
10604 /* The GNU C library defines this for functions which it implements
10605 to always fail with ENOSYS. Some functions are actually named
10606 something starting with __ and the normal name is an alias. */
10607 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10617 eval "ac_cv_func_setproctitle=yes"
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10622 eval "ac_cv_func_setproctitle=no"
10627 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10629 have_setproctitle=yes
10631 echo "$ac_t""no" 1>&6
10633 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
10634 echo "configure:10635: checking for setproctitle in -lutil" >&5
10635 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
10636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10639 ac_save_LIBS="$LIBS"
10640 LIBS="-lutil $LIBS"
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10644 /* Override any gcc2 internal prototype to avoid an error. */
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647 char setproctitle();
10653 if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10655 eval "ac_cv_lib_$ac_lib_var=yes"
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10660 eval "ac_cv_lib_$ac_lib_var=no"
10663 LIBS="$ac_save_LIBS"
10666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10667 echo "$ac_t""yes" 1>&6
10668 have_setproctitle=yes
10669 LUTIL_LIBS="$LUTIL_LIBS -lutil"
10671 echo "$ac_t""no" 1>&6
10672 have_setproctitle=no
10673 LIBOBJS="$LIBOBJS setproctitle.o"
10679 if test $have_setproctitle = yes ; then
10680 cat >> confdefs.h <<\EOF
10681 #define HAVE_SETPROCTITLE 1
10687 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10688 echo "configure:10689: checking for uid_t in sys/types.h" >&5
10689 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10692 cat > conftest.$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include <sys/types.h>
10697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10698 egrep "uid_t" >/dev/null 2>&1; then
10700 ac_cv_type_uid_t=yes
10703 ac_cv_type_uid_t=no
10709 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10710 if test $ac_cv_type_uid_t = no; then
10711 cat >> confdefs.h <<\EOF
10715 cat >> confdefs.h <<\EOF
10721 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10722 echo "configure:10723: checking type of array argument to getgroups" >&5
10723 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
10724 echo $ac_n "(cached) $ac_c" 1>&6
10726 if test "$cross_compiling" = yes; then
10727 ac_cv_type_getgroups=cross
10729 cat > conftest.$ac_ext <<EOF
10730 #line 10731 "configure"
10731 #include "confdefs.h"
10733 /* Thanks to Mike Rendell for this test. */
10734 #include <sys/types.h>
10737 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10740 gid_t gidset[NGID];
10742 union { gid_t gval; long lval; } val;
10745 for (i = 0; i < NGID; i++)
10746 gidset[i] = val.gval;
10747 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10749 /* Exit non-zero if getgroups seems to require an array of ints. This
10750 happens when gid_t is short but getgroups modifies an array of ints. */
10751 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10757 ac_cv_type_getgroups=gid_t
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10762 ac_cv_type_getgroups=int
10767 if test $ac_cv_type_getgroups = cross; then
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10771 #include <unistd.h>
10773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10774 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10776 ac_cv_type_getgroups=gid_t
10779 ac_cv_type_getgroups=int
10786 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10787 cat >> confdefs.h <<EOF
10788 #define GETGROUPS_T $ac_cv_type_getgroups
10791 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10792 echo "configure:10793: checking for ANSI C header files" >&5
10793 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10796 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10799 #include <stdlib.h>
10800 #include <stdarg.h>
10801 #include <string.h>
10804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10805 { (eval echo configure:10806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10807 if test -z "$ac_err"; then
10809 ac_cv_header_stdc=yes
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 ac_cv_header_stdc=no
10819 if test $ac_cv_header_stdc = yes; then
10820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 #include <string.h>
10826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10827 egrep "memchr" >/dev/null 2>&1; then
10831 ac_cv_header_stdc=no
10837 if test $ac_cv_header_stdc = yes; then
10838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 #include <stdlib.h>
10844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10845 egrep "free" >/dev/null 2>&1; then
10849 ac_cv_header_stdc=no
10855 if test $ac_cv_header_stdc = yes; then
10856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10857 if test "$cross_compiling" = yes; then
10860 cat > conftest.$ac_ext <<EOF
10861 #line 10862 "configure"
10862 #include "confdefs.h"
10864 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10865 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10867 int main () { int i; for (i = 0; i < 256; i++)
10868 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10879 ac_cv_header_stdc=no
10887 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10888 if test $ac_cv_header_stdc = yes; then
10889 cat >> confdefs.h <<\EOF
10890 #define STDC_HEADERS 1
10895 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10896 echo "configure:10897: checking for mode_t" >&5
10897 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 #include <sys/types.h>
10905 #include <stdlib.h>
10906 #include <stddef.h>
10909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10910 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10912 eval "ac_cv_type_mode_t=yes"
10915 eval "ac_cv_type_mode_t=no"
10920 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
10921 echo "$ac_t""yes" 1>&6
10923 echo "$ac_t""no" 1>&6
10924 cat >> confdefs.h <<EOF
10930 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10931 echo "configure:10932: checking for off_t" >&5
10932 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 #include <sys/types.h>
10940 #include <stdlib.h>
10941 #include <stddef.h>
10944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10945 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10947 eval "ac_cv_type_off_t=yes"
10950 eval "ac_cv_type_off_t=no"
10955 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
10956 echo "$ac_t""yes" 1>&6
10958 echo "$ac_t""no" 1>&6
10959 cat >> confdefs.h <<EOF
10965 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10966 echo "configure:10967: checking for pid_t" >&5
10967 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 #include <sys/types.h>
10975 #include <stdlib.h>
10976 #include <stddef.h>
10979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10980 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10982 eval "ac_cv_type_pid_t=yes"
10985 eval "ac_cv_type_pid_t=no"
10990 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
10991 echo "$ac_t""yes" 1>&6
10993 echo "$ac_t""no" 1>&6
10994 cat >> confdefs.h <<EOF
11000 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
11001 echo "configure:11002: checking for ptrdiff_t" >&5
11002 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11005 cat > conftest.$ac_ext <<EOF
11006 #line 11007 "configure"
11007 #include "confdefs.h"
11008 #include <stddef.h>
11013 if { (eval echo configure:11014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11015 am_cv_type_ptrdiff_t=yes
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11020 am_cv_type_ptrdiff_t=no
11025 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
11026 if test $am_cv_type_ptrdiff_t = yes; then
11027 cat >> confdefs.h <<\EOF
11028 #define HAVE_PTRDIFF_T 1
11033 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11034 echo "configure:11035: checking return type of signal handlers" >&5
11035 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11041 #include <sys/types.h>
11042 #include <signal.h>
11047 extern "C" void (*signal (int, void (*)(int)))(int);
11049 void (*signal ()) ();
11056 if { (eval echo configure:11057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11058 ac_cv_type_signal=void
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11063 ac_cv_type_signal=int
11068 echo "$ac_t""$ac_cv_type_signal" 1>&6
11069 cat >> confdefs.h <<EOF
11070 #define RETSIGTYPE $ac_cv_type_signal
11074 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
11075 echo "configure:11076: checking for sig_atomic_t" >&5
11076 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
11077 echo $ac_n "(cached) $ac_c" 1>&6
11079 cat > conftest.$ac_ext <<EOF
11080 #line 11081 "configure"
11081 #include "confdefs.h"
11082 #include <signal.h>
11084 sig_atomic_t atomic;
11087 if { (eval echo configure:11088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11089 ol_cv_type_sig_atomic_t=yes
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11094 ol_cv_type_sig_atomic_t=no
11099 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
11100 if test $ol_cv_type_sig_atomic_t = no; then
11101 cat >> confdefs.h <<\EOF
11102 #define sig_atomic_t int
11107 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11108 echo "configure:11109: checking for size_t" >&5
11109 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 #include <sys/types.h>
11117 #include <stdlib.h>
11118 #include <stddef.h>
11121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11122 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11124 eval "ac_cv_type_size_t=yes"
11127 eval "ac_cv_type_size_t=no"
11132 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11135 echo "$ac_t""no" 1>&6
11136 cat >> confdefs.h <<EOF
11137 #define size_t unsigned
11142 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11143 echo "configure:11144: checking for socklen_t" >&5
11144 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11151 #ifdef HAVE_SYS_TYPES_H
11152 #include <sys/types.h>
11154 #ifdef HAVE_SYS_SOCKET_H
11155 #include <sys/socket.h>
11162 if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11164 ol_cv_type_socklen_t=yes
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11169 ol_cv_type_socklen_t=no
11174 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
11175 if test $ol_cv_type_socklen_t = no; then
11176 cat >> confdefs.h <<\EOF
11177 #define socklen_t int
11182 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
11183 echo "configure:11184: checking for member st_blksize in aggregate type struct stat" >&5
11184 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11190 #include <sys/types.h>
11191 #include <sys/stat.h>
11193 struct stat foo; foo.st_blksize;
11196 if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11198 ac_cv_c_struct_member_st_blksize=yes
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 ac_cv_c_struct_member_st_blksize=no
11208 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
11209 st_blksize="$ac_cv_c_struct_member_st_blksize"
11210 if test $ac_cv_c_struct_member_st_blksize = yes; then
11211 cat >> confdefs.h <<\EOF
11212 #define HAVE_ST_BLKSIZE 1
11217 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11218 echo "configure:11219: checking whether time.h and sys/time.h may both be included" >&5
11219 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 #include <sys/types.h>
11226 #include <sys/time.h>
11232 if { (eval echo configure:11233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11234 ac_cv_header_time=yes
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11239 ac_cv_header_time=no
11244 echo "$ac_t""$ac_cv_header_time" 1>&6
11245 if test $ac_cv_header_time = yes; then
11246 cat >> confdefs.h <<\EOF
11247 #define TIME_WITH_SYS_TIME 1
11252 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
11253 echo "configure:11254: checking whether struct tm is in sys/time.h or time.h" >&5
11254 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 #include <sys/types.h>
11263 struct tm *tp; tp->tm_sec;
11266 if { (eval echo configure:11267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268 ac_cv_struct_tm=time.h
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11273 ac_cv_struct_tm=sys/time.h
11278 echo "$ac_t""$ac_cv_struct_tm" 1>&6
11279 if test $ac_cv_struct_tm = sys/time.h; then
11280 cat >> confdefs.h <<\EOF
11281 #define TM_IN_SYS_TIME 1
11286 # test for pw_gecos in struct passwd
11287 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
11288 echo "configure:11289: checking struct passwd for pw_gecos" >&5
11289 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
11290 echo $ac_n "(cached) $ac_c" 1>&6
11293 cat > conftest.$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11300 pwd.pw_gecos = pwd.pw_name;
11304 if { (eval echo configure:11305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11306 ol_cv_struct_passwd_pw_gecos=yes
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 ol_cv_struct_passwd_pw_gecos=no
11316 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11317 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11318 cat >> confdefs.h <<\EOF
11319 #define HAVE_PW_GECOS 1
11324 # test for pw_passwd in struct passwd
11325 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
11326 echo "configure:11327: checking struct passwd for pw_passwd" >&5
11327 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
11328 echo $ac_n "(cached) $ac_c" 1>&6
11331 cat > conftest.$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11338 pwd.pw_passwd = pwd.pw_name;
11342 if { (eval echo configure:11343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11344 ol_cv_struct_passwd_pw_passwd=yes
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11349 ol_cv_struct_passwd_pw_passwd=no
11354 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11355 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11356 cat >> confdefs.h <<\EOF
11357 #define HAVE_PW_PASSWD 1
11363 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11364 echo "configure:11365: checking if toupper() requires islower()" >&5
11365 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11369 if test "$cross_compiling" = yes; then
11370 ol_cv_c_upper_lower=safe
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11379 if ('C' == toupper('C'))
11385 if { (eval echo configure:11386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11387 ol_cv_c_upper_lower=no
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 ol_cv_c_upper_lower=yes
11399 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11400 if test $ol_cv_c_upper_lower != no ; then
11401 cat >> confdefs.h <<\EOF
11402 #define C_UPPER_LOWER 1
11407 echo $ac_n "checking for working const""... $ac_c" 1>&6
11408 echo "configure:11409: checking for working const" >&5
11409 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11410 echo $ac_n "(cached) $ac_c" 1>&6
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11418 /* Ultrix mips cc rejects this. */
11419 typedef int charset[2]; const charset x;
11420 /* SunOS 4.1.1 cc rejects this. */
11421 char const *const *ccp;
11423 /* NEC SVR4.0.2 mips cc rejects this. */
11424 struct point {int x, y;};
11425 static struct point const zero = {0,0};
11426 /* AIX XL C 1.02.0.0 rejects this.
11427 It does not let you subtract one const X* pointer from another in an arm
11428 of an if-expression whose if-part is not a constant expression */
11429 const char *g = "string";
11430 ccp = &g + (g ? g-g : 0);
11431 /* HPUX 7.0 cc rejects these. */
11434 ccp = (char const *const *) p;
11435 { /* SCO 3.2v4 cc rejects this. */
11437 char const *s = 0 ? (char *) 0 : (char const *) 0;
11441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11442 int x[] = {25, 17};
11443 const int *foo = &x[0];
11446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11447 typedef const int *iptr;
11451 { /* AIX XL C 1.02.0.0 rejects this saying
11452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11453 struct s { int j; const int *ap[3]; };
11454 struct s *b; b->j = 5;
11456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11457 const int foo = 10;
11462 if { (eval echo configure:11463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11474 echo "$ac_t""$ac_cv_c_const" 1>&6
11475 if test $ac_cv_c_const = no; then
11476 cat >> confdefs.h <<\EOF
11482 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11483 echo "configure:11484: checking if compiler understands volatile" >&5
11484 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 volatile int a; int * volatile b = x ? &y : &z;
11493 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11497 if { (eval echo configure:11498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11499 ol_cv_c_volatile=yes
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11504 ol_cv_c_volatile=no
11509 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11510 if test $ol_cv_c_volatile = yes; then
11513 cat >> confdefs.h <<\EOF
11520 if test $cross_compiling = yes ; then
11521 cat >> confdefs.h <<\EOF
11522 #define CROSS_COMPILING 1
11526 cat >> confdefs.h <<\EOF
11527 #define LBER_INT_T long
11530 cat >> confdefs.h <<\EOF
11531 #define LBER_TAG_T long
11534 cat >> confdefs.h <<\EOF
11535 #define LBER_SOCKET_T int
11540 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11541 echo "configure:11542: checking whether byte ordering is bigendian" >&5
11542 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11545 ac_cv_c_bigendian=unknown
11546 # See if sys/param.h defines the BYTE_ORDER macro.
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 #include <sys/types.h>
11551 #include <sys/param.h>
11554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11555 bogus endian macros
11559 if { (eval echo configure:11560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11561 # It does; now see whether it defined to BIG_ENDIAN or not.
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11565 #include <sys/types.h>
11566 #include <sys/param.h>
11569 #if BYTE_ORDER != BIG_ENDIAN
11574 if { (eval echo configure:11575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11576 ac_cv_c_bigendian=yes
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11581 ac_cv_c_bigendian=no
11585 echo "configure: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11589 if test $ac_cv_c_bigendian = unknown; then
11590 if test "$cross_compiling" = yes; then
11591 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11597 /* Are we little or big endian? From Harbison&Steele. */
11601 char c[sizeof (long)];
11604 exit (u.c[sizeof (long) - 1] == 1);
11607 if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11609 ac_cv_c_bigendian=no
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11614 ac_cv_c_bigendian=yes
11622 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11623 if test $ac_cv_c_bigendian = yes; then
11624 cat >> confdefs.h <<\EOF
11625 #define WORDS_BIGENDIAN 1
11630 echo $ac_n "checking size of short""... $ac_c" 1>&6
11631 echo "configure:11632: checking size of short" >&5
11632 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11635 if test "$cross_compiling" = yes; then
11636 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11644 FILE *f=fopen("conftestval", "w");
11646 fprintf(f, "%d\n", sizeof(short));
11650 if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11652 ac_cv_sizeof_short=`cat conftestval`
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11657 ac_cv_sizeof_short=0
11663 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11664 cat >> confdefs.h <<EOF
11665 #define SIZEOF_SHORT $ac_cv_sizeof_short
11669 echo $ac_n "checking size of int""... $ac_c" 1>&6
11670 echo "configure:11671: checking size of int" >&5
11671 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
11672 echo $ac_n "(cached) $ac_c" 1>&6
11674 if test "$cross_compiling" = yes; then
11675 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11677 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure"
11679 #include "confdefs.h"
11683 FILE *f=fopen("conftestval", "w");
11685 fprintf(f, "%d\n", sizeof(int));
11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11691 ac_cv_sizeof_int=`cat conftestval`
11693 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5
11702 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11703 cat >> confdefs.h <<EOF
11704 #define SIZEOF_INT $ac_cv_sizeof_int
11708 echo $ac_n "checking size of long""... $ac_c" 1>&6
11709 echo "configure:11710: checking size of long" >&5
11710 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
11711 echo $ac_n "(cached) $ac_c" 1>&6
11713 if test "$cross_compiling" = yes; then
11714 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11722 FILE *f=fopen("conftestval", "w");
11724 fprintf(f, "%d\n", sizeof(long));
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11730 ac_cv_sizeof_long=`cat conftestval`
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11735 ac_cv_sizeof_long=0
11741 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11742 cat >> confdefs.h <<EOF
11743 #define SIZEOF_LONG $ac_cv_sizeof_long
11748 if test "$ac_cv_sizeof_int" -lt 4 ; then
11749 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11751 cat >> confdefs.h <<\EOF
11752 #define LBER_INT_T long
11755 cat >> confdefs.h <<\EOF
11756 #define LBER_TAG_T long
11759 cat >> confdefs.h <<\EOF
11760 #define LBER_SOCKET_T int
11764 cat >> confdefs.h <<\EOF
11765 #define LBER_INT_T int
11768 cat >> confdefs.h <<\EOF
11769 #define LBER_TAG_T long
11772 cat >> confdefs.h <<\EOF
11773 #define LBER_SOCKET_T int
11779 cat >> confdefs.h <<\EOF
11780 #define LBER_LEN_T long
11784 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11785 echo "configure:11786: checking for 8-bit clean memcmp" >&5
11786 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11789 if test "$cross_compiling" = yes; then
11790 ac_cv_func_memcmp_clean=no
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11798 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11799 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11803 if { (eval echo configure:11804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11805 ac_cv_func_memcmp_clean=yes
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11810 ac_cv_func_memcmp_clean=no
11817 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11818 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11820 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11821 echo "configure:11822: checking for strftime" >&5
11822 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11825 cat > conftest.$ac_ext <<EOF
11826 #line 11827 "configure"
11827 #include "confdefs.h"
11828 /* System header to define __stub macros and hopefully few prototypes,
11829 which can conflict with char strftime(); below. */
11830 #include <assert.h>
11831 /* Override any gcc2 internal prototype to avoid an error. */
11832 /* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11839 /* The GNU C library defines this for functions which it implements
11840 to always fail with ENOSYS. Some functions are actually named
11841 something starting with __ and the normal name is an alias. */
11842 #if defined (__stub_strftime) || defined (__stub___strftime)
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11852 eval "ac_cv_func_strftime=yes"
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11857 eval "ac_cv_func_strftime=no"
11862 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11863 echo "$ac_t""yes" 1>&6
11864 cat >> confdefs.h <<\EOF
11865 #define HAVE_STRFTIME 1
11869 echo "$ac_t""no" 1>&6
11870 # strftime is in -lintl on SCO UNIX.
11871 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11872 echo "configure:11873: checking for strftime in -lintl" >&5
11873 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
11874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11875 echo $ac_n "(cached) $ac_c" 1>&6
11877 ac_save_LIBS="$LIBS"
11878 LIBS="-lintl $LIBS"
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11882 /* Override any gcc2 internal prototype to avoid an error. */
11883 /* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11891 if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11893 eval "ac_cv_lib_$ac_lib_var=yes"
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 eval "ac_cv_lib_$ac_lib_var=no"
11901 LIBS="$ac_save_LIBS"
11904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11905 echo "$ac_t""yes" 1>&6
11906 cat >> confdefs.h <<\EOF
11907 #define HAVE_STRFTIME 1
11910 LIBS="-lintl $LIBS"
11912 echo "$ac_t""no" 1>&6
11918 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11919 echo "configure:11920: checking for vprintf" >&5
11920 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11923 cat > conftest.$ac_ext <<EOF
11924 #line 11925 "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char vprintf(); below. */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11930 /* We use char because int might match the return type of a gcc2
11931 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11950 eval "ac_cv_func_vprintf=yes"
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 eval "ac_cv_func_vprintf=no"
11960 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
11962 cat >> confdefs.h <<\EOF
11963 #define HAVE_VPRINTF 1
11967 echo "$ac_t""no" 1>&6
11970 if test "$ac_cv_func_vprintf" != yes; then
11971 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11972 echo "configure:11973: checking for _doprnt" >&5
11973 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
11974 echo $ac_n "(cached) $ac_c" 1>&6
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11979 /* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char _doprnt(); below. */
11981 #include <assert.h>
11982 /* Override any gcc2 internal prototype to avoid an error. */
11983 /* We use char because int might match the return type of a gcc2
11984 builtin and then its argument prototype would still apply. */
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12001 if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12003 eval "ac_cv_func__doprnt=yes"
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12008 eval "ac_cv_func__doprnt=no"
12013 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
12015 cat >> confdefs.h <<\EOF
12016 #define HAVE_DOPRNT 1
12020 echo "$ac_t""no" 1>&6
12026 if test $ac_cv_func_vprintf = yes ; then
12027 for ac_func in vsnprintf vsprintf
12029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12030 echo "configure:12031: checking for $ac_func" >&5
12031 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12032 echo $ac_n "(cached) $ac_c" 1>&6
12034 cat > conftest.$ac_ext <<EOF
12035 #line 12036 "configure"
12036 #include "confdefs.h"
12037 /* System header to define __stub macros and hopefully few prototypes,
12038 which can conflict with char $ac_func(); below. */
12039 #include <assert.h>
12040 /* Override any gcc2 internal prototype to avoid an error. */
12041 /* We use char because int might match the return type of a gcc2
12042 builtin and then its argument prototype would still apply. */
12048 /* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12061 eval "ac_cv_func_$ac_func=yes"
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12066 eval "ac_cv_func_$ac_func=no"
12071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12072 echo "$ac_t""yes" 1>&6
12073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12074 cat >> confdefs.h <<EOF
12075 #define $ac_tr_func 1
12079 echo "$ac_t""no" 1>&6
12133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12134 echo "configure:12135: checking for $ac_func" >&5
12135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12136 echo $ac_n "(cached) $ac_c" 1>&6
12138 cat > conftest.$ac_ext <<EOF
12139 #line 12140 "configure"
12140 #include "confdefs.h"
12141 /* System header to define __stub macros and hopefully few prototypes,
12142 which can conflict with char $ac_func(); below. */
12143 #include <assert.h>
12144 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12152 /* The GNU C library defines this for functions which it implements
12153 to always fail with ENOSYS. Some functions are actually named
12154 something starting with __ and the normal name is an alias. */
12155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12165 eval "ac_cv_func_$ac_func=yes"
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12170 eval "ac_cv_func_$ac_func=no"
12175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12178 cat >> confdefs.h <<EOF
12179 #define $ac_tr_func 1
12183 echo "$ac_t""no" 1>&6
12188 for ac_func in getopt tempnam
12190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12191 echo "configure:12192: checking for $ac_func" >&5
12192 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12193 echo $ac_n "(cached) $ac_c" 1>&6
12195 cat > conftest.$ac_ext <<EOF
12196 #line 12197 "configure"
12197 #include "confdefs.h"
12198 /* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char $ac_func(); below. */
12200 #include <assert.h>
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12209 /* The GNU C library defines this for functions which it implements
12210 to always fail with ENOSYS. Some functions are actually named
12211 something starting with __ and the normal name is an alias. */
12212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12220 if { (eval echo configure:12221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12222 eval "ac_cv_func_$ac_func=yes"
12224 echo "configure: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12227 eval "ac_cv_func_$ac_func=no"
12232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12233 echo "$ac_t""yes" 1>&6
12234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12235 cat >> confdefs.h <<EOF
12236 #define $ac_tr_func 1
12240 echo "$ac_t""no" 1>&6
12241 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
12247 # Check Configuration
12248 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
12249 echo "configure:12250: checking declaration of sys_errlist" >&5
12250 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
12251 echo $ac_n "(cached) $ac_c" 1>&6
12254 cat > conftest.$ac_ext <<EOF
12255 #line 12256 "configure"
12256 #include "confdefs.h"
12259 #include <sys/types.h>
12262 char *c = (char *) *sys_errlist
12265 if { (eval echo configure:12266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12267 ol_cv_dcl_sys_errlist=yes
12268 ol_cv_have_sys_errlist=yes
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 ol_cv_dcl_sys_errlist=no
12278 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
12280 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
12281 if test $ol_cv_dcl_sys_errlist = no ; then
12282 cat >> confdefs.h <<\EOF
12283 #define DECL_SYS_ERRLIST 1
12287 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
12288 echo "configure:12289: checking existence of sys_errlist" >&5
12289 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
12290 echo $ac_n "(cached) $ac_c" 1>&6
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12298 char *c = (char *) *sys_errlist
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12303 ol_cv_have_sys_errlist=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 ol_cv_have_sys_errlist=no
12313 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
12315 if test $ol_cv_have_sys_errlist = yes ; then
12316 cat >> confdefs.h <<\EOF
12317 #define HAVE_SYS_ERRLIST 1
12324 if test "$ol_enable_debug" != no ; then
12325 cat >> confdefs.h <<\EOF
12326 #define LDAP_DEBUG 1
12330 if test "$ol_enable_syslog" = yes ; then
12331 cat >> confdefs.h <<\EOF
12332 #define LDAP_SYSLOG 1
12336 if test "$ol_enable_libui" = yes ; then
12337 cat >> confdefs.h <<\EOF
12338 #define LDAP_LIBUI 1
12342 if test "$ol_enable_cache" = no ; then
12343 cat >> confdefs.h <<\EOF
12344 #define LDAP_NOCACHE 1
12348 if test "$ol_enable_dns" != no ; then
12349 cat >> confdefs.h <<\EOF
12350 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12354 if test "$ol_enable_proctitle" != no ; then
12355 cat >> confdefs.h <<\EOF
12356 #define LDAP_PROCTITLE 1
12360 if test "$ol_enable_referrals" != no ; then
12361 cat >> confdefs.h <<\EOF
12362 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12366 if test "$ol_enable_cldap" != no ; then
12367 cat >> confdefs.h <<\EOF
12368 #define LDAP_CONNECTIONLESS 1
12373 if test "$ol_enable_crypt" != no ; then
12374 cat >> confdefs.h <<\EOF
12375 #define SLAPD_CRYPT 1
12379 if test "$ol_enable_cleartext" != no ; then
12380 cat >> confdefs.h <<\EOF
12381 #define SLAPD_CLEARTEXT 1
12385 if test "$ol_enable_phonetic" != no ; then
12386 cat >> confdefs.h <<\EOF
12387 #define SLAPD_PHONETIC 1
12391 if test "$ol_enable_rlookups" != no ; then
12392 cat >> confdefs.h <<\EOF
12393 #define SLAPD_RLOOKUPS 1
12398 if test "$ol_link_modules" != no ; then
12399 cat >> confdefs.h <<\EOF
12400 #define SLAPD_MODULES 1
12406 if test "$ol_link_bdb2" != no ; then
12407 cat >> confdefs.h <<\EOF
12408 #define SLAPD_BDB2 1
12413 if test "$ol_with_bdb2_module" != static ; then
12414 cat >> confdefs.h <<\EOF
12415 #define SLAPD_BDB2_DYNAMIC 1
12418 BUILD_BDB2_DYNAMIC=yes
12422 if test "$ol_enable_ldap" != no ; then
12423 cat >> confdefs.h <<\EOF
12424 #define SLAPD_LDAP 1
12429 if test "$ol_with_ldap_module" != static ; then
12430 cat >> confdefs.h <<\EOF
12431 #define SLAPD_LDAP_DYNAMIC 1
12434 BUILD_LDAP_DYNAMIC=yes
12438 if test "$ol_link_ldbm" != no ; then
12439 cat >> confdefs.h <<\EOF
12440 #define SLAPD_LDBM 1
12445 if test "$ol_with_ldbm_module" != static ; then
12446 cat >> confdefs.h <<\EOF
12447 #define SLAPD_LDBM_DYNAMIC 1
12450 BUILD_LDBM_DYNAMIC=yes
12454 if test "$ol_enable_passwd" != no ; then
12455 cat >> confdefs.h <<\EOF
12456 #define SLAPD_PASSWD 1
12461 if test "$ol_with_passwd_module" != static ; then
12462 cat >> confdefs.h <<\EOF
12463 #define SLAPD_PASSWD_DYNAMIC 1
12466 BUILD_PASSWD_DYNAMIC=yes
12470 if test "$ol_link_perl" != no ; then
12471 cat >> confdefs.h <<\EOF
12472 #define SLAPD_PERL 1
12477 if test "$ol_with_perl_module" != static ; then
12478 cat >> confdefs.h <<\EOF
12479 #define SLAPD_PERL_DYNAMIC 1
12482 BUILD_PERL_DYNAMIC=yes
12486 if test "$ol_enable_shell" != no ; then
12487 cat >> confdefs.h <<\EOF
12488 #define SLAPD_SHELL 1
12493 if test "$ol_with_shell_module" != static ; then
12494 cat >> confdefs.h <<\EOF
12495 #define SLAPD_SHELL_DYNAMIC 1
12498 BUILD_SHELL_DYNAMIC=yes
12502 if test "$ol_enable_tcl" != no ; then
12503 cat >> confdefs.h <<\EOF
12504 #define SLAPD_TCL 1
12509 if test "$ol_with_tcl_module" != static; then
12510 cat >> confdefs.h <<\EOF
12511 #define SLAPD_TCL_DYNAMIC 1
12514 BUILD_TCL_DYNAMIC=yes
12518 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12519 $BUILD_SLAPD = yes ; then
12523 if test "$ol_link_isode" != no ; then
12568 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12571 # Let make expand exec_prefix.
12572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12574 # Any assignment to VPATH causes Sun make to only execute
12575 # the first set of double-colon rules, so remove it if not needed.
12576 # If there is a colon in the path, we need to keep it.
12577 if test "x$srcdir" = x.; then
12578 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12581 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12583 DEFS=-DHAVE_CONFIG_H
12585 # Without the "./", some shells look in PATH for config.status.
12586 : ${CONFIG_STATUS=./config.status}
12588 echo creating $CONFIG_STATUS
12589 rm -f $CONFIG_STATUS
12590 cat > $CONFIG_STATUS <<EOF
12592 # Generated automatically by configure.
12593 # Run this file to recreate the current configuration.
12594 # This directory was configured as follows,
12595 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12597 # $0 $ac_configure_args
12599 # Compiler output produced by configure, useful for debugging
12600 # configure, is in ./config.log if it exists.
12602 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12605 case "\$ac_option" in
12606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12607 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12608 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12609 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12610 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
12612 -help | --help | --hel | --he | --h)
12613 echo "\$ac_cs_usage"; exit 0 ;;
12614 *) echo "\$ac_cs_usage"; exit 1 ;;
12618 ac_given_srcdir=$srcdir
12619 ac_given_INSTALL="$INSTALL"
12621 trap 'rm -fr `echo "\
12622 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12623 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12624 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12625 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12626 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12627 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12628 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12629 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12630 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12631 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12632 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12633 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12634 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12635 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12636 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12637 include/Makefile:build/top.mk:include/Makefile.in \
12638 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12639 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12640 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12641 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12642 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12643 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12644 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12645 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12646 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12647 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12648 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12649 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12650 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12651 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12652 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12653 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12654 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12655 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12656 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12657 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12658 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12659 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12660 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12661 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12662 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12663 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12664 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12666 cat >> $CONFIG_STATUS <<EOF
12668 # Protect against being on the right side of a sed subst in config.status.
12669 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12670 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12674 s%@CFLAGS@%$CFLAGS%g
12675 s%@CPPFLAGS@%$CPPFLAGS%g
12676 s%@CXXFLAGS@%$CXXFLAGS%g
12677 s%@FFLAGS@%$FFLAGS%g
12679 s%@LDFLAGS@%$LDFLAGS%g
12681 s%@exec_prefix@%$exec_prefix%g
12682 s%@prefix@%$prefix%g
12683 s%@program_transform_name@%$program_transform_name%g
12684 s%@bindir@%$bindir%g
12685 s%@sbindir@%$sbindir%g
12686 s%@libexecdir@%$libexecdir%g
12687 s%@datadir@%$datadir%g
12688 s%@sysconfdir@%$sysconfdir%g
12689 s%@sharedstatedir@%$sharedstatedir%g
12690 s%@localstatedir@%$localstatedir%g
12691 s%@libdir@%$libdir%g
12692 s%@includedir@%$includedir%g
12693 s%@oldincludedir@%$oldincludedir%g
12694 s%@infodir@%$infodir%g
12695 s%@mandir@%$mandir%g
12697 s%@host_alias@%$host_alias%g
12698 s%@host_cpu@%$host_cpu%g
12699 s%@host_vendor@%$host_vendor%g
12700 s%@host_os@%$host_os%g
12701 s%@target@%$target%g
12702 s%@target_alias@%$target_alias%g
12703 s%@target_cpu@%$target_cpu%g
12704 s%@target_vendor@%$target_vendor%g
12705 s%@target_os@%$target_os%g
12707 s%@build_alias@%$build_alias%g
12708 s%@build_cpu@%$build_cpu%g
12709 s%@build_vendor@%$build_vendor%g
12710 s%@build_os@%$build_os%g
12711 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12712 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12713 s%@INSTALL_DATA@%$INSTALL_DATA%g
12714 s%@PACKAGE@%$PACKAGE%g
12715 s%@VERSION@%$VERSION%g
12716 s%@ACLOCAL@%$ACLOCAL%g
12717 s%@AUTOCONF@%$AUTOCONF%g
12718 s%@AUTOMAKE@%$AUTOMAKE%g
12719 s%@AUTOHEADER@%$AUTOHEADER%g
12720 s%@MAKEINFO@%$MAKEINFO%g
12721 s%@install_sh@%$install_sh%g
12724 s%@AMTARFLAGS@%$AMTARFLAGS%g
12725 s%@SET_MAKE@%$SET_MAKE%g
12726 s%@top_builddir@%$top_builddir%g
12727 s%@ldap_subdir@%$ldap_subdir%g
12729 s%@RANLIB@%$RANLIB%g
12733 s%@LIBTOOL@%$LIBTOOL%g
12735 s%@SENDMAIL@%$SENDMAIL%g
12736 s%@EDITOR@%$EDITOR%g
12737 s%@FINGER@%$FINGER%g
12738 s%@PERLBIN@%$PERLBIN%g
12740 s%@EXEEXT@%$EXEEXT%g
12741 s%@OBJEXT@%$OBJEXT%g
12742 s%@OL_MKDEP@%$OL_MKDEP%g
12743 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12744 s%@GLIBCONFIG@%$GLIBCONFIG%g
12746 s%@LIBOBJS@%$LIBOBJS%g
12747 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12748 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12749 s%@BUILD_BDB2@%$BUILD_BDB2%g
12750 s%@BUILD_LDAP@%$BUILD_LDAP%g
12751 s%@BUILD_LDBM@%$BUILD_LDBM%g
12752 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12753 s%@BUILD_PERL@%$BUILD_PERL%g
12754 s%@BUILD_SHELL@%$BUILD_SHELL%g
12755 s%@BUILD_TCL@%$BUILD_TCL%g
12756 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12757 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12758 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12759 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12760 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12761 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12762 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12763 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12764 s%@LDAP_LIBS@%$LDAP_LIBS%g
12765 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12766 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12767 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12768 s%@LDBM_LIBS@%$LDBM_LIBS%g
12769 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12770 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12771 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12772 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12773 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12774 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12775 s%@KRB_LIBS@%$KRB_LIBS%g
12776 s%@READLINE_LIBS@%$READLINE_LIBS%g
12777 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12778 s%@TLS_LIBS@%$TLS_LIBS%g
12783 cat >> $CONFIG_STATUS <<\EOF
12785 # Split the substitutions into bite-sized pieces for seds with
12786 # small command number limits, like on Digital OSF/1 and HP-UX.
12787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12788 ac_file=1 # Number of current file.
12789 ac_beg=1 # First line for current file.
12790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12793 while $ac_more_lines; do
12794 if test $ac_beg -gt 1; then
12795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12799 if test ! -s conftest.s$ac_file; then
12800 ac_more_lines=false
12801 rm -f conftest.s$ac_file
12803 if test -z "$ac_sed_cmds"; then
12804 ac_sed_cmds="sed -f conftest.s$ac_file"
12806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12808 ac_file=`expr $ac_file + 1`
12810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12813 if test -z "$ac_sed_cmds"; then
12818 cat >> $CONFIG_STATUS <<EOF
12820 CONFIG_FILES=\${CONFIG_FILES-"\
12821 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12822 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12823 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12824 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12825 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12826 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12827 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12828 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12829 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12830 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12831 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12832 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12833 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12834 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12835 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12836 include/Makefile:build/top.mk:include/Makefile.in \
12837 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12838 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12839 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12840 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12841 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12842 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12843 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12844 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12845 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12846 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12847 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12848 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12849 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12850 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12851 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12852 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12853 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12854 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12855 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12856 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12857 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12858 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12859 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12860 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12861 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12862 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12865 cat >> $CONFIG_STATUS <<\EOF
12866 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12869 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12870 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12871 *) ac_file_in="${ac_file}.in" ;;
12874 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12876 # Remove last slash and all that follows it. Not all systems have dirname.
12877 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12878 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12879 # The file is in a subdirectory.
12880 test ! -d "$ac_dir" && mkdir "$ac_dir"
12881 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12882 # A "../" for each directory in $ac_dir_suffix.
12883 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12885 ac_dir_suffix= ac_dots=
12888 case "$ac_given_srcdir" in
12890 if test -z "$ac_dots"; then top_srcdir=.
12891 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12892 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12893 *) # Relative path.
12894 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12895 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12898 case "$ac_given_INSTALL" in
12899 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12900 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12903 echo creating "$ac_file"
12905 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12907 *Makefile*) ac_comsub="1i\\
12908 # $configure_input" ;;
12912 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12914 s%@configure_input@%$configure_input%g
12915 s%@srcdir@%$srcdir%g
12916 s%@top_srcdir@%$top_srcdir%g
12917 s%@INSTALL@%$INSTALL%g
12918 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12922 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12923 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12925 # ac_d sets the value in "#define NAME VALUE" lines.
12926 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12927 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12930 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12931 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12932 ac_uB='\([ ]\)%\1#\2define\3'
12935 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12936 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12937 ac_eB='$%\1#\2define\3'
12941 if test "${CONFIG_HEADERS+set}" != set; then
12943 cat >> $CONFIG_STATUS <<EOF
12944 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12946 cat >> $CONFIG_STATUS <<\EOF
12948 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12949 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12951 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12952 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12953 *) ac_file_in="${ac_file}.in" ;;
12956 echo creating $ac_file
12958 rm -f conftest.frag conftest.in conftest.out
12959 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12960 cat $ac_file_inputs > conftest.in
12964 # Transform confdefs.h into a sed script conftest.vals that substitutes
12965 # the proper values into config.h.in to produce config.h. And first:
12966 # Protect against being on the right side of a sed subst in config.status.
12967 # Protect against being in an unquoted here document in config.status.
12968 rm -f conftest.vals
12969 cat > conftest.hdr <<\EOF
12972 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12976 sed -n -f conftest.hdr confdefs.h > conftest.vals
12979 # This sed command replaces #undef with comments. This is necessary, for
12980 # example, in the case of _POSIX_SOURCE, which is predefined and required
12981 # on some systems where configure will not decide to define it.
12982 cat >> conftest.vals <<\EOF
12983 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12986 # Break up conftest.vals because some shells have a limit on
12987 # the size of here documents, and old seds have small limits too.
12989 rm -f conftest.tail
12992 ac_lines=`grep -c . conftest.vals`
12993 # grep -c gives empty output for an empty file on some AIX systems.
12994 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12995 # Write a limited-size here document to conftest.frag.
12996 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12997 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12999 sed -f conftest.frag conftest.in > conftest.out
13001 mv conftest.out conftest.in
13002 ' >> $CONFIG_STATUS
13003 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13004 rm -f conftest.vals
13005 mv conftest.tail conftest.vals
13007 rm -f conftest.vals
13009 cat >> $CONFIG_STATUS <<\EOF
13010 rm -f conftest.frag conftest.h
13011 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13012 cat conftest.in >> conftest.h
13014 if cmp -s $ac_file conftest.h 2>/dev/null; then
13015 echo "$ac_file is unchanged"
13018 # Remove last slash and all that follows it. Not all systems have dirname.
13019 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13020 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13021 # The file is in a subdirectory.
13022 test ! -d "$ac_dir" && mkdir "$ac_dir"
13025 mv conftest.h $ac_file
13030 cat >> $CONFIG_STATUS <<EOF
13033 cat >> $CONFIG_STATUS <<\EOF
13036 echo Please \"make depend\" to build dependencies
13040 chmod +x $CONFIG_STATUS
13041 rm -fr confdefs* $ac_clean_files
13042 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1