3 # from OpenLDAP: pkg/ldap/configure.in,v 1.330 2000/09/15 01:27:25 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (no)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable Kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-rlookups enable reverse lookups (auto)"
82 --enable-aci enable per-object ACIs (no)"
84 --enable-wrappers enable tcp wrapper support (no)"
86 --enable-dynamic enable linking built binaries with dynamic libs (no)"
88 --enable-bdb enable Berkeley DB backend (no)"
90 --with-bdb-module module type (static)"
92 --enable-dnssrv enable dnssrv backend (no)"
94 --with-dnssrv-module module type (static)"
96 --enable-ldap enable ldap backend (no)"
98 --with-ldap-module module type (static)"
100 --enable-ldbm enable ldbm backend (yes)"
102 --with-ldbm-api with LDBM API (auto)"
104 --with-ldbm-module module type (static)"
106 --with-ldbm-type use LDBM type (auto)"
108 --enable-passwd enable passwd backend (no)"
110 --with-passwd-module module type (static)"
112 --enable-perl enable perl backend (no)"
114 --with-perl-module module type (static)"
116 --enable-shell enable shell backend (no)"
118 --with-shell-module module type (static)"
120 --enable-sql enable sql backend (no)"
122 --with-sql-module module type (static)"
124 --enable-tcl enable tcl backend (no)"
126 --with-tcl-module module type (static)"
128 SLURPD (Replication Daemon) Options:"
130 --enable-slurpd enable building slurpd (auto)"
132 Library Generation & Linking Options"
134 --enable-static[=PKGS] build static libraries [default=yes]"
136 --enable-shared[=PKGS] build shared libraries [default=yes]"
138 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
140 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
142 --disable-libtool-lock avoid locking (might break parallel builds)"
144 # Initialize some variables set by options.
145 # The variables have the same names as the options, with
146 # dashes changed to underlines.
148 cache_file=./config.cache
157 program_transform_name=s,x,x,
165 bindir='${exec_prefix}/bin'
166 sbindir='${exec_prefix}/sbin'
167 libexecdir='${exec_prefix}/libexec'
168 datadir='${prefix}/share'
169 sysconfdir='${prefix}/etc'
170 sharedstatedir='${prefix}/com'
171 localstatedir='${prefix}/var'
172 libdir='${exec_prefix}/lib'
173 includedir='${prefix}/include'
174 oldincludedir='/usr/include'
175 infodir='${prefix}/info'
176 mandir='${prefix}/man'
178 # Initialize some other variables.
181 SHELL=${CONFIG_SHELL-/bin/sh}
182 # Maximum number of lines to put in a shell here document.
189 # If the previous option needs an argument, assign it.
190 if test -n "$ac_prev"; then
191 eval "$ac_prev=\$ac_option"
197 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
201 # Accept the important Cygnus configure options, so we can diagnose typos.
205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
208 bindir="$ac_optarg" ;;
210 -build | --build | --buil | --bui | --bu)
212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213 build="$ac_optarg" ;;
215 -cache-file | --cache-file | --cache-fil | --cache-fi \
216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217 ac_prev=cache_file ;;
218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
220 cache_file="$ac_optarg" ;;
222 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
224 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
226 datadir="$ac_optarg" ;;
228 -disable-* | --disable-*)
229 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
232 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
234 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}=no" ;;
237 -enable-* | --enable-*)
238 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
239 # Reject names that are not valid shell variable names.
240 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
241 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
243 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}='$ac_optarg'" ;;
250 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
251 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
252 | --exec | --exe | --ex)
253 ac_prev=exec_prefix ;;
254 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
255 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
256 | --exec=* | --exe=* | --ex=*)
257 exec_prefix="$ac_optarg" ;;
259 -gas | --gas | --ga | --g)
260 # Obsolete; use --with-gas.
263 -help | --help | --hel | --he)
264 # Omit some internal or obsolete options to make the list less imposing.
265 # This message is too long to be a string in the A/UX 3.1 sh.
267 Usage: configure [options] [host]
268 Options: [defaults in brackets after descriptions]
270 --cache-file=FILE cache test results in FILE
271 --help print this message
272 --no-create do not create output files
273 --quiet, --silent do not print \`checking...' messages
274 --version print the version of autoconf that created configure
275 Directory and file names:
276 --prefix=PREFIX install architecture-independent files in PREFIX
278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
280 --bindir=DIR user executables in DIR [EPREFIX/bin]
281 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
282 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
283 --datadir=DIR read-only architecture-independent data in DIR
285 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
286 --sharedstatedir=DIR modifiable architecture-independent data in DIR
288 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
289 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
290 --includedir=DIR C header files in DIR [PREFIX/include]
291 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
292 --infodir=DIR info documentation in DIR [PREFIX/info]
293 --mandir=DIR man documentation in DIR [PREFIX/man]
294 --srcdir=DIR find the sources in DIR [configure dir or ..]
295 --program-prefix=PREFIX prepend PREFIX to installed program names
296 --program-suffix=SUFFIX append SUFFIX to installed program names
297 --program-transform-name=PROGRAM
298 run sed PROGRAM on installed program names
302 --build=BUILD configure for building on BUILD [BUILD=HOST]
303 --host=HOST configure for HOST [guessed]
304 --target=TARGET configure for TARGET [TARGET=HOST]
305 Features and packages:
306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
310 --x-includes=DIR X include files are in DIR
311 --x-libraries=DIR X library files are in DIR
313 if test -n "$ac_help"; then
314 echo "--enable and --with options recognized:$ac_help"
318 -host | --host | --hos | --ho)
320 -host=* | --host=* | --hos=* | --ho=*)
323 -includedir | --includedir | --includedi | --included | --include \
324 | --includ | --inclu | --incl | --inc)
325 ac_prev=includedir ;;
326 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
327 | --includ=* | --inclu=* | --incl=* | --inc=*)
328 includedir="$ac_optarg" ;;
330 -infodir | --infodir | --infodi | --infod | --info | --inf)
332 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
333 infodir="$ac_optarg" ;;
335 -libdir | --libdir | --libdi | --libd)
337 -libdir=* | --libdir=* | --libdi=* | --libd=*)
338 libdir="$ac_optarg" ;;
340 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
341 | --libexe | --libex | --libe)
342 ac_prev=libexecdir ;;
343 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
344 | --libexe=* | --libex=* | --libe=*)
345 libexecdir="$ac_optarg" ;;
347 -localstatedir | --localstatedir | --localstatedi | --localstated \
348 | --localstate | --localstat | --localsta | --localst \
349 | --locals | --local | --loca | --loc | --lo)
350 ac_prev=localstatedir ;;
351 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
352 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
353 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
354 localstatedir="$ac_optarg" ;;
356 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
358 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
359 mandir="$ac_optarg" ;;
362 # Obsolete; use --without-fp.
365 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
369 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
370 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
373 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
374 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
375 | --oldin | --oldi | --old | --ol | --o)
376 ac_prev=oldincludedir ;;
377 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
378 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
379 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
380 oldincludedir="$ac_optarg" ;;
382 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
384 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
385 prefix="$ac_optarg" ;;
387 -program-prefix | --program-prefix | --program-prefi | --program-pref \
388 | --program-pre | --program-pr | --program-p)
389 ac_prev=program_prefix ;;
390 -program-prefix=* | --program-prefix=* | --program-prefi=* \
391 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
392 program_prefix="$ac_optarg" ;;
394 -program-suffix | --program-suffix | --program-suffi | --program-suff \
395 | --program-suf | --program-su | --program-s)
396 ac_prev=program_suffix ;;
397 -program-suffix=* | --program-suffix=* | --program-suffi=* \
398 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
399 program_suffix="$ac_optarg" ;;
401 -program-transform-name | --program-transform-name \
402 | --program-transform-nam | --program-transform-na \
403 | --program-transform-n | --program-transform- \
404 | --program-transform | --program-transfor \
405 | --program-transfo | --program-transf \
406 | --program-trans | --program-tran \
407 | --progr-tra | --program-tr | --program-t)
408 ac_prev=program_transform_name ;;
409 -program-transform-name=* | --program-transform-name=* \
410 | --program-transform-nam=* | --program-transform-na=* \
411 | --program-transform-n=* | --program-transform-=* \
412 | --program-transform=* | --program-transfor=* \
413 | --program-transfo=* | --program-transf=* \
414 | --program-trans=* | --program-tran=* \
415 | --progr-tra=* | --program-tr=* | --program-t=*)
416 program_transform_name="$ac_optarg" ;;
418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
419 | -silent | --silent | --silen | --sile | --sil)
422 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
424 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
426 sbindir="$ac_optarg" ;;
428 -sharedstatedir | --sharedstatedir | --sharedstatedi \
429 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
430 | --sharedst | --shareds | --shared | --share | --shar \
432 ac_prev=sharedstatedir ;;
433 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
434 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
435 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
437 sharedstatedir="$ac_optarg" ;;
439 -site | --site | --sit)
441 -site=* | --site=* | --sit=*)
444 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
446 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
447 srcdir="$ac_optarg" ;;
449 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
450 | --syscon | --sysco | --sysc | --sys | --sy)
451 ac_prev=sysconfdir ;;
452 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
453 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
454 sysconfdir="$ac_optarg" ;;
456 -target | --target | --targe | --targ | --tar | --ta | --t)
458 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
459 target="$ac_optarg" ;;
461 -v | -verbose | --verbose | --verbos | --verbo | --verb)
464 -version | --version | --versio | --versi | --vers)
465 echo "configure generated by autoconf version 2.13.1"
469 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
479 eval "with_${ac_package}='$ac_optarg'" ;;
481 -without-* | --without-*)
482 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
488 eval "with_${ac_package}=no" ;;
491 # Obsolete; use --with-x.
494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
495 | --x-incl | --x-inc | --x-in | --x-i)
496 ac_prev=x_includes ;;
497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
499 x_includes="$ac_optarg" ;;
501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
503 ac_prev=x_libraries ;;
504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
506 x_libraries="$ac_optarg" ;;
508 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
512 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
513 echo "configure: warning: $ac_option: invalid host type" 1>&2
515 if test "x$nonopt" != xNONE; then
516 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
524 if test -n "$ac_prev"; then
525 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
528 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
530 # File descriptor usage:
533 # 2 errors and warnings
534 # 3 some systems may open it to /dev/tty
535 # 4 used on the Kubota Titan
536 # 6 checking for... messages and results
537 # 5 compiler messages saved in config.log
538 if test "$silent" = yes; then
546 This file contains any messages produced by compilers while
547 running configure, to aid debugging if configure makes a mistake.
550 # Strip out --no-create and --no-recursion so they do not pile up.
551 # Also quote any args containing shell metacharacters.
556 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
557 | --no-cr | --no-c) ;;
558 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
559 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
560 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
561 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
562 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
567 # Only set these to C if already set. These must not be set unconditionally
568 # because not all systems understand e.g. LANG=C (notably SCO).
569 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
570 # Non-C LC_CTYPE values break the ctype check.
571 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
572 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
573 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
574 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
576 # confdefs.h avoids OS command line length limits that DEFS can exceed.
577 rm -rf conftest* confdefs.h
578 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
581 # A filename unique to this package, relative to the directory that
582 # configure is in, which we can look for to find out if srcdir is correct.
583 ac_unique_file=build/version.sh
585 # Find the source files, if location was not specified.
586 if test -z "$srcdir"; then
587 ac_srcdir_defaulted=yes
588 # Try the directory containing this script, then its parent.
590 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
591 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
593 if test ! -r $srcdir/$ac_unique_file; then
597 ac_srcdir_defaulted=no
599 if test ! -r $srcdir/$ac_unique_file; then
600 if test "$ac_srcdir_defaulted" = yes; then
601 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
603 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
606 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
608 # Prefer explicitly selected file to automatically selected ones.
609 if test -z "$CONFIG_SITE"; then
610 if test "x$prefix" != xNONE; then
611 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
613 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
616 for ac_site_file in $CONFIG_SITE; do
617 if test -r "$ac_site_file"; then
618 echo "loading site script $ac_site_file"
625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
626 ac_cpp='$CPP $CPPFLAGS'
627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
629 cross_compiling=$ac_cv_prog_cc_cross
633 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
634 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
635 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
642 ac_n= ac_c='\c' ac_t=
646 # set unset (borrowed from autoconf 2.14a)
647 if (unset FOO) >/dev/null 2>&1; then
653 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
656 for ac_dir in build $srcdir/build; do
657 if test -f $ac_dir/install-sh; then
659 ac_install_sh="$ac_aux_dir/install-sh -c"
661 elif test -f $ac_dir/install.sh; then
663 ac_install_sh="$ac_aux_dir/install.sh -c"
665 elif test -f $ac_dir/shtool; then
667 ac_install_sh="$ac_aux_dir/shtool install -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
676 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
678 eval `$ac_aux_dir/version.sh`
679 if test -z "$OL_STRING"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring $OL_STRING ..."
686 echo $ac_n "checking host system type""... $ac_c" 1>&6
687 echo "configure:688: checking host system type" >&5
688 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 ac_cv_host_alias=$host
696 case "$ac_cv_host_alias" in
700 if ac_cv_host_alias=`$ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) ac_cv_host_alias=$nonopt ;;
707 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
708 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo $ac_n "(cached) $ac_c" 1>&6
715 echo "$ac_t""$ac_cv_host" 1>&6
718 host_alias=$ac_cv_host_alias
719 host_cpu=$ac_cv_host_cpu
720 host_vendor=$ac_cv_host_vendor
721 host_os=$ac_cv_host_os
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
729 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
731 # Make sure we can run config.sub.
732 if $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 ac_cv_target_alias=$target
737 case "$ac_cv_target_alias" in
741 ac_cv_target_alias=$host_alias ;;
743 *) ac_cv_target_alias=$nonopt ;;
747 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
748 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo $ac_n "(cached) $ac_c" 1>&6
755 echo "$ac_t""$ac_cv_target" 1>&6
758 target_alias=$ac_cv_target_alias
759 target_cpu=$ac_cv_target_cpu
760 target_vendor=$ac_cv_target_vendor
761 target_os=$ac_cv_target_os
767 echo $ac_n "checking build system type""... $ac_c" 1>&6
768 echo "configure:769: checking build system type" >&5
769 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
771 # Make sure we can run config.sub.
772 if $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 ac_cv_build_alias=$build
777 case "$ac_cv_build_alias" in
781 ac_cv_build_alias=$host_alias ;;
783 *) ac_cv_build_alias=$nonopt ;;
787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
788 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo $ac_n "(cached) $ac_c" 1>&6
795 echo "$ac_t""$ac_cv_build" 1>&6
798 build_alias=$ac_cv_build_alias
799 build_cpu=$ac_cv_build_cpu
800 build_vendor=$ac_cv_build_vendor
801 build_os=$ac_cv_build_os
807 # Do some error checking and defaulting for the host and target type.
809 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
812 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # 2. Host defaults to nonopt.
815 # 3. If nonopt is not specified, then host defaults to the current host,
816 # as determined by config.guess.
817 # 4. Target and build default to nonopt.
818 # 5. If nonopt is not specified, then target and build default to host.
820 # The aliases save the names the user supplied, while $host etc.
821 # will get canonicalized.
822 case $host---$target---$nonopt in
823 NONE---*---* | *---NONE---* | *---*---NONE) ;;
824 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix=${target_alias}-
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
865 elif test $ac_prog = install &&
866 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # program-specific install script used by HP pwplus--don't use.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
902 echo "configure:903: checking whether build environment is sane" >&5
905 echo timestamp > conftestfile
906 # Do `set' in a subshell so we don't clobber the current shell's
907 # arguments. Must try -L first in case configure is actually a
908 # symlink; some systems play weird games with the mod time of symlinks
909 # (eg FreeBSD returns the mod time of the symlink's containing
912 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913 if test "$*" = "X"; then
915 set X `ls -t $srcdir/configure conftestfile`
917 if test "$*" != "X $srcdir/configure conftestfile" \
918 && test "$*" != "X conftestfile $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
925 alias in your environment" 1>&2; exit 1; }
928 test "$2" = conftestfile
934 { echo "configure: error: newly created file is older than distributed files!
935 Check your system clock" 1>&2; exit 1; }
938 echo "$ac_t""yes" 1>&6
939 if test "$program_transform_name" = s,x,x,; then
940 program_transform_name=
942 # Double any \ or $. echo might interpret backslashes.
943 cat <<\EOF_SED > conftestsed
944 s,\\,\\\\,g; s,\$,$$,g
946 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
949 test "$program_prefix" != NONE &&
950 program_transform_name="s,^,${program_prefix},;$program_transform_name"
951 # Use a double $ so make ignores it.
952 test "$program_suffix" != NONE &&
953 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
955 # sed with no file args requires a program.
956 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
958 for ac_prog in mawk gawk nawk awk
960 # Extract the first word of "$ac_prog", so it can be a program name with args.
961 set dummy $ac_prog; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$AWK"; then
968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_AWK="$ac_prog"
982 AWK="$ac_cv_prog_AWK"
983 if test -n "$AWK"; then
984 echo "$ac_t""$AWK" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$AWK" && break
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1025 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1026 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1031 missing_dir=`cd $ac_aux_dir && pwd`
1032 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working aclocal" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 ACLOCAL="$missing_dir/missing aclocal"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working autoconf" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOCONF="$missing_dir/missing autoconf"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working automake" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (automake --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOMAKE="$missing_dir/missing automake"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoheader" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1077 AUTOHEADER=autoheader
1078 echo "$ac_t""found" 1>&6
1080 AUTOHEADER="$missing_dir/missing autoheader"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working makeinfo" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 MAKEINFO="$missing_dir/missing makeinfo"
1094 echo "$ac_t""missing" 1>&6
1097 install_sh="$missing_dir/install-sh"
1098 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1100 for ac_prog in gnutar gtar tar
1102 # Extract the first word of "$ac_prog", so it can be a program name with args.
1103 set dummy $ac_prog; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AMTAR"; then
1110 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_AMTAR="$ac_prog"
1124 AMTAR="$ac_cv_prog_AMTAR"
1125 if test -n "$AMTAR"; then
1126 echo "$ac_t""$AMTAR" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 test -n "$AMTAR" && break
1136 if test -n "$AMTAR"; then
1137 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1153 cat >> confdefs.h <<EOF
1154 #define LDAP_VENDOR_VERSION $OL_API_INC
1157 cat >> confdefs.h <<EOF
1158 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1161 cat >> confdefs.h <<EOF
1162 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1165 cat >> confdefs.h <<EOF
1166 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1170 OPENLDAP_LIBVERSION=$OL_API_LIB
1175 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1176 echo "configure:1177: checking configure arguments" >&5
1181 ldap_subdir="/openldap"
1183 # Check whether --with-subdir or --without-subdir was given.
1184 if test "${with_subdir+set}" = set; then
1185 withval="$with_subdir"
1192 ldap_subdir="$withval"
1195 ldap_subdir="/$withval"
1202 # OpenLDAP --enable-debug
1203 # Check whether --enable-debug or --disable-debug was given.
1204 if test "${enable_debug+set}" = set; then
1205 enableval="$enable_debug"
1208 for ol_val in auto yes no ; do
1209 if test "$enableval" = "$ol_val" ; then
1213 if test "$ol_arg" = "invalid" ; then
1214 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1216 ol_enable_debug="$ol_arg"
1219 ol_enable_debug="yes"
1221 # end --enable-debug
1222 # OpenLDAP --enable-syslog
1223 # Check whether --enable-syslog or --disable-syslog was given.
1224 if test "${enable_syslog+set}" = set; then
1225 enableval="$enable_syslog"
1228 for ol_val in auto yes no ; do
1229 if test "$enableval" = "$ol_val" ; then
1233 if test "$ol_arg" = "invalid" ; then
1234 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1236 ol_enable_syslog="$ol_arg"
1239 ol_enable_syslog="auto"
1241 # end --enable-syslog
1242 # OpenLDAP --enable-proctitle
1243 # Check whether --enable-proctitle or --disable-proctitle was given.
1244 if test "${enable_proctitle+set}" = set; then
1245 enableval="$enable_proctitle"
1248 for ol_val in auto yes no ; do
1249 if test "$enableval" = "$ol_val" ; then
1253 if test "$ol_arg" = "invalid" ; then
1254 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1256 ol_enable_proctitle="$ol_arg"
1259 ol_enable_proctitle="yes"
1261 # end --enable-proctitle
1262 # OpenLDAP --enable-cache
1263 # Check whether --enable-cache or --disable-cache was given.
1264 if test "${enable_cache+set}" = set; then
1265 enableval="$enable_cache"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1276 ol_enable_cache="$ol_arg"
1279 ol_enable_cache="yes"
1281 # end --enable-cache
1282 # OpenLDAP --enable-referrals
1283 # Check whether --enable-referrals or --disable-referrals was given.
1284 if test "${enable_referrals+set}" = set; then
1285 enableval="$enable_referrals"
1288 for ol_val in auto yes no ; do
1289 if test "$enableval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1296 ol_enable_referrals="$ol_arg"
1299 ol_enable_referrals="yes"
1301 # end --enable-referrals
1302 # OpenLDAP --enable-kbind
1303 # Check whether --enable-kbind or --disable-kbind was given.
1304 if test "${enable_kbind+set}" = set; then
1305 enableval="$enable_kbind"
1308 for ol_val in auto yes no ; do
1309 if test "$enableval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1316 ol_enable_kbind="$ol_arg"
1319 ol_enable_kbind="no"
1321 # end --enable-kbind
1322 # OpenLDAP --enable-ipv6
1323 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1324 if test "${enable_ipv6+set}" = set; then
1325 enableval="$enable_ipv6"
1328 for ol_val in auto yes no ; do
1329 if test "$enableval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1336 ol_enable_ipv6="$ol_arg"
1339 ol_enable_ipv6="auto"
1342 # OpenLDAP --enable-local
1343 # Check whether --enable-local or --disable-local was given.
1344 if test "${enable_local+set}" = set; then
1345 enableval="$enable_local"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1356 ol_enable_local="$ol_arg"
1359 ol_enable_local="auto"
1361 # end --enable-local
1362 # OpenLDAP --enable-x_compile
1363 # Check whether --enable-x_compile or --disable-x_compile was given.
1364 if test "${enable_x_compile+set}" = set; then
1365 enableval="$enable_x_compile"
1368 for ol_val in yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1376 ol_enable_x_compile="$ol_arg"
1379 ol_enable_x_compile="no"
1381 # end --enable-x_compile
1384 # OpenLDAP --with-cyrus_sasl
1385 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1386 if test "${with_cyrus_sasl+set}" = set; then
1387 withval="$with_cyrus_sasl"
1390 for ol_val in auto yes no ; do
1391 if test "$withval" = "$ol_val" ; then
1395 if test "$ol_arg" = "invalid" ; then
1396 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1398 ol_with_cyrus_sasl="$ol_arg"
1401 ol_with_cyrus_sasl="auto"
1403 # end --with-cyrus_sasl
1405 # OpenLDAP --with-fetch
1406 # Check whether --with-fetch or --without-fetch was given.
1407 if test "${with_fetch+set}" = set; then
1408 withval="$with_fetch"
1411 for ol_val in auto yes no ; do
1412 if test "$withval" = "$ol_val" ; then
1416 if test "$ol_arg" = "invalid" ; then
1417 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1419 ol_with_fetch="$ol_arg"
1422 ol_with_fetch="auto"
1426 # OpenLDAP --with-kerberos
1427 # Check whether --with-kerberos or --without-kerberos was given.
1428 if test "${with_kerberos+set}" = set; then
1429 withval="$with_kerberos"
1432 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1433 if test "$withval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1440 ol_with_kerberos="$ol_arg"
1443 ol_with_kerberos="auto"
1445 # end --with-kerberos
1447 # OpenLDAP --with-readline
1448 # Check whether --with-readline or --without-readline was given.
1449 if test "${with_readline+set}" = set; then
1450 withval="$with_readline"
1453 for ol_val in auto yes no ; do
1454 if test "$withval" = "$ol_val" ; then
1458 if test "$ol_arg" = "invalid" ; then
1459 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1461 ol_with_readline="$ol_arg"
1464 ol_with_readline="auto"
1466 # end --with-readline
1468 # OpenLDAP --with-threads
1469 # Check whether --with-threads or --without-threads was given.
1470 if test "${with_threads+set}" = set; then
1471 withval="$with_threads"
1474 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1475 if test "$withval" = "$ol_val" ; then
1479 if test "$ol_arg" = "invalid" ; then
1480 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1482 ol_with_threads="$ol_arg"
1485 ol_with_threads="auto"
1487 # end --with-threads
1489 # OpenLDAP --with-tls
1490 # Check whether --with-tls or --without-tls was given.
1491 if test "${with_tls+set}" = set; then
1495 for ol_val in auto ssleay openssl yes no ; do
1496 if test "$withval" = "$ol_val" ; then
1500 if test "$ol_arg" = "invalid" ; then
1501 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1503 ol_with_tls="$ol_arg"
1510 # OpenLDAP --with-yielding_select
1511 # Check whether --with-yielding_select or --without-yielding_select was given.
1512 if test "${with_yielding_select+set}" = set; then
1513 withval="$with_yielding_select"
1516 for ol_val in auto yes no manual ; do
1517 if test "$withval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1524 ol_with_yielding_select="$ol_arg"
1527 ol_with_yielding_select="auto"
1529 # end --with-yielding_select
1533 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1534 if test "${with_xxslapdoptions+set}" = set; then
1535 withval="$with_xxslapdoptions"
1539 # OpenLDAP --enable-slapd
1540 # Check whether --enable-slapd or --disable-slapd was given.
1541 if test "${enable_slapd+set}" = set; then
1542 enableval="$enable_slapd"
1545 for ol_val in auto yes no ; do
1546 if test "$enableval" = "$ol_val" ; then
1550 if test "$ol_arg" = "invalid" ; then
1551 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1553 ol_enable_slapd="$ol_arg"
1556 ol_enable_slapd="yes"
1558 # end --enable-slapd
1559 # OpenLDAP --enable-cleartext
1560 # Check whether --enable-cleartext or --disable-cleartext was given.
1561 if test "${enable_cleartext+set}" = set; then
1562 enableval="$enable_cleartext"
1565 for ol_val in auto yes no ; do
1566 if test "$enableval" = "$ol_val" ; then
1570 if test "$ol_arg" = "invalid" ; then
1571 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1573 ol_enable_cleartext="$ol_arg"
1576 ol_enable_cleartext="yes"
1578 # end --enable-cleartext
1579 # OpenLDAP --enable-crypt
1580 # Check whether --enable-crypt or --disable-crypt was given.
1581 if test "${enable_crypt+set}" = set; then
1582 enableval="$enable_crypt"
1585 for ol_val in auto yes no ; do
1586 if test "$enableval" = "$ol_val" ; then
1590 if test "$ol_arg" = "invalid" ; then
1591 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1593 ol_enable_crypt="$ol_arg"
1596 ol_enable_crypt="auto"
1598 # end --enable-crypt
1599 # OpenLDAP --enable-kpasswd
1600 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1601 if test "${enable_kpasswd+set}" = set; then
1602 enableval="$enable_kpasswd"
1605 for ol_val in auto yes no ; do
1606 if test "$enableval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1613 ol_enable_kpasswd="$ol_arg"
1616 ol_enable_kpasswd="no"
1618 # end --enable-kpasswd
1619 # OpenLDAP --enable-spasswd
1620 # Check whether --enable-spasswd or --disable-spasswd was given.
1621 if test "${enable_spasswd+set}" = set; then
1622 enableval="$enable_spasswd"
1625 for ol_val in auto yes no ; do
1626 if test "$enableval" = "$ol_val" ; then
1630 if test "$ol_arg" = "invalid" ; then
1631 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1633 ol_enable_spasswd="$ol_arg"
1636 ol_enable_spasswd="no"
1638 # end --enable-spasswd
1639 # OpenLDAP --enable-modules
1640 # Check whether --enable-modules or --disable-modules was given.
1641 if test "${enable_modules+set}" = set; then
1642 enableval="$enable_modules"
1645 for ol_val in auto yes no ; do
1646 if test "$enableval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1653 ol_enable_modules="$ol_arg"
1656 ol_enable_modules="no"
1658 # end --enable-modules
1659 # OpenLDAP --enable-multimaster
1660 # Check whether --enable-multimaster or --disable-multimaster was given.
1661 if test "${enable_multimaster+set}" = set; then
1662 enableval="$enable_multimaster"
1665 for ol_val in auto yes no ; do
1666 if test "$enableval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1673 ol_enable_multimaster="$ol_arg"
1676 ol_enable_multimaster="no"
1678 # end --enable-multimaster
1679 # OpenLDAP --enable-phonetic
1680 # Check whether --enable-phonetic or --disable-phonetic was given.
1681 if test "${enable_phonetic+set}" = set; then
1682 enableval="$enable_phonetic"
1685 for ol_val in auto yes no ; do
1686 if test "$enableval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1693 ol_enable_phonetic="$ol_arg"
1696 ol_enable_phonetic="no"
1698 # end --enable-phonetic
1699 # OpenLDAP --enable-rlookups
1700 # Check whether --enable-rlookups or --disable-rlookups was given.
1701 if test "${enable_rlookups+set}" = set; then
1702 enableval="$enable_rlookups"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1713 ol_enable_rlookups="$ol_arg"
1716 ol_enable_rlookups="auto"
1718 # end --enable-rlookups
1719 # OpenLDAP --enable-aci
1720 # Check whether --enable-aci or --disable-aci was given.
1721 if test "${enable_aci+set}" = set; then
1722 enableval="$enable_aci"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1733 ol_enable_aci="$ol_arg"
1739 # OpenLDAP --enable-wrappers
1740 # Check whether --enable-wrappers or --disable-wrappers was given.
1741 if test "${enable_wrappers+set}" = set; then
1742 enableval="$enable_wrappers"
1745 for ol_val in auto yes no ; do
1746 if test "$enableval" = "$ol_val" ; then
1750 if test "$ol_arg" = "invalid" ; then
1751 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1753 ol_enable_wrappers="$ol_arg"
1756 ol_enable_wrappers="no"
1758 # end --enable-wrappers
1759 # OpenLDAP --enable-dynamic
1760 # Check whether --enable-dynamic or --disable-dynamic was given.
1761 if test "${enable_dynamic+set}" = set; then
1762 enableval="$enable_dynamic"
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-dynamic" 1>&2; exit 1; }
1773 ol_enable_dynamic="$ol_arg"
1776 ol_enable_dynamic="no"
1778 # end --enable-dynamic
1780 # OpenLDAP --enable-bdb
1781 # Check whether --enable-bdb or --disable-bdb was given.
1782 if test "${enable_bdb+set}" = set; then
1783 enableval="$enable_bdb"
1786 for ol_val in auto yes no ; do
1787 if test "$enableval" = "$ol_val" ; then
1791 if test "$ol_arg" = "invalid" ; then
1792 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1794 ol_enable_bdb="$ol_arg"
1800 # OpenLDAP --with-bdb_module
1801 # Check whether --with-bdb_module or --without-bdb_module was given.
1802 if test "${with_bdb_module+set}" = set; then
1803 withval="$with_bdb_module"
1806 for ol_val in static dynamic ; do
1807 if test "$withval" = "$ol_val" ; then
1811 if test "$ol_arg" = "invalid" ; then
1812 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1814 ol_with_bdb_module="$ol_arg"
1817 ol_with_bdb_module="static"
1819 # end --with-bdb_module
1821 # OpenLDAP --enable-dnssrv
1822 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1823 if test "${enable_dnssrv+set}" = set; then
1824 enableval="$enable_dnssrv"
1827 for ol_val in auto yes no ; do
1828 if test "$enableval" = "$ol_val" ; then
1832 if test "$ol_arg" = "invalid" ; then
1833 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1835 ol_enable_dnssrv="$ol_arg"
1838 ol_enable_dnssrv="no"
1840 # end --enable-dnssrv
1841 # OpenLDAP --with-dnssrv_module
1842 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1843 if test "${with_dnssrv_module+set}" = set; then
1844 withval="$with_dnssrv_module"
1847 for ol_val in static dynamic ; do
1848 if test "$withval" = "$ol_val" ; then
1852 if test "$ol_arg" = "invalid" ; then
1853 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1855 ol_with_dnssrv_module="$ol_arg"
1858 ol_with_dnssrv_module="static"
1860 # end --with-dnssrv_module
1862 # OpenLDAP --enable-ldap
1863 # Check whether --enable-ldap or --disable-ldap was given.
1864 if test "${enable_ldap+set}" = set; then
1865 enableval="$enable_ldap"
1868 for ol_val in auto yes no ; do
1869 if test "$enableval" = "$ol_val" ; then
1873 if test "$ol_arg" = "invalid" ; then
1874 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1876 ol_enable_ldap="$ol_arg"
1882 # OpenLDAP --with-ldap_module
1883 # Check whether --with-ldap_module or --without-ldap_module was given.
1884 if test "${with_ldap_module+set}" = set; then
1885 withval="$with_ldap_module"
1888 for ol_val in static dynamic ; do
1889 if test "$withval" = "$ol_val" ; then
1893 if test "$ol_arg" = "invalid" ; then
1894 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1896 ol_with_ldap_module="$ol_arg"
1899 ol_with_ldap_module="static"
1901 # end --with-ldap_module
1903 # OpenLDAP --enable-ldbm
1904 # Check whether --enable-ldbm or --disable-ldbm was given.
1905 if test "${enable_ldbm+set}" = set; then
1906 enableval="$enable_ldbm"
1909 for ol_val in auto yes no ; do
1910 if test "$enableval" = "$ol_val" ; then
1914 if test "$ol_arg" = "invalid" ; then
1915 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1917 ol_enable_ldbm="$ol_arg"
1920 ol_enable_ldbm="yes"
1923 # OpenLDAP --with-ldbm_api
1924 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1925 if test "${with_ldbm_api+set}" = set; then
1926 withval="$with_ldbm_api"
1929 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1930 if test "$withval" = "$ol_val" ; then
1934 if test "$ol_arg" = "invalid" ; then
1935 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1937 ol_with_ldbm_api="$ol_arg"
1940 ol_with_ldbm_api="auto"
1942 # end --with-ldbm_api
1944 # OpenLDAP --with-ldbm_module
1945 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1946 if test "${with_ldbm_module+set}" = set; then
1947 withval="$with_ldbm_module"
1950 for ol_val in static dynamic ; do
1951 if test "$withval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1958 ol_with_ldbm_module="$ol_arg"
1961 ol_with_ldbm_module="static"
1963 # end --with-ldbm_module
1965 # OpenLDAP --with-ldbm_type
1966 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1967 if test "${with_ldbm_type+set}" = set; then
1968 withval="$with_ldbm_type"
1971 for ol_val in auto btree hash ; do
1972 if test "$withval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1979 ol_with_ldbm_type="$ol_arg"
1982 ol_with_ldbm_type="auto"
1984 # end --with-ldbm_type
1986 # OpenLDAP --enable-passwd
1987 # Check whether --enable-passwd or --disable-passwd was given.
1988 if test "${enable_passwd+set}" = set; then
1989 enableval="$enable_passwd"
1992 for ol_val in auto yes no ; do
1993 if test "$enableval" = "$ol_val" ; then
1997 if test "$ol_arg" = "invalid" ; then
1998 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2000 ol_enable_passwd="$ol_arg"
2003 ol_enable_passwd="no"
2005 # end --enable-passwd
2006 # OpenLDAP --with-passwd_module
2007 # Check whether --with-passwd_module or --without-passwd_module was given.
2008 if test "${with_passwd_module+set}" = set; then
2009 withval="$with_passwd_module"
2012 for ol_val in static dynamic ; do
2013 if test "$withval" = "$ol_val" ; then
2017 if test "$ol_arg" = "invalid" ; then
2018 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2020 ol_with_passwd_module="$ol_arg"
2023 ol_with_passwd_module="static"
2025 # end --with-passwd_module
2027 # OpenLDAP --enable-perl
2028 # Check whether --enable-perl or --disable-perl was given.
2029 if test "${enable_perl+set}" = set; then
2030 enableval="$enable_perl"
2033 for ol_val in auto yes no ; do
2034 if test "$enableval" = "$ol_val" ; then
2038 if test "$ol_arg" = "invalid" ; then
2039 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2041 ol_enable_perl="$ol_arg"
2047 # OpenLDAP --with-perl_module
2048 # Check whether --with-perl_module or --without-perl_module was given.
2049 if test "${with_perl_module+set}" = set; then
2050 withval="$with_perl_module"
2053 for ol_val in static dynamic ; do
2054 if test "$withval" = "$ol_val" ; then
2058 if test "$ol_arg" = "invalid" ; then
2059 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2061 ol_with_perl_module="$ol_arg"
2064 ol_with_perl_module="static"
2066 # end --with-perl_module
2068 # OpenLDAP --enable-shell
2069 # Check whether --enable-shell or --disable-shell was given.
2070 if test "${enable_shell+set}" = set; then
2071 enableval="$enable_shell"
2074 for ol_val in auto yes no ; do
2075 if test "$enableval" = "$ol_val" ; then
2079 if test "$ol_arg" = "invalid" ; then
2080 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2082 ol_enable_shell="$ol_arg"
2085 ol_enable_shell="no"
2087 # end --enable-shell
2088 # OpenLDAP --with-shell_module
2089 # Check whether --with-shell_module or --without-shell_module was given.
2090 if test "${with_shell_module+set}" = set; then
2091 withval="$with_shell_module"
2094 for ol_val in static dynamic ; do
2095 if test "$withval" = "$ol_val" ; then
2099 if test "$ol_arg" = "invalid" ; then
2100 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2102 ol_with_shell_module="$ol_arg"
2105 ol_with_shell_module="static"
2107 # end --with-shell_module
2109 # OpenLDAP --enable-sql
2110 # Check whether --enable-sql or --disable-sql was given.
2111 if test "${enable_sql+set}" = set; then
2112 enableval="$enable_sql"
2115 for ol_val in auto yes no ; do
2116 if test "$enableval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2123 ol_enable_sql="$ol_arg"
2129 # OpenLDAP --with-sql_module
2130 # Check whether --with-sql_module or --without-sql_module was given.
2131 if test "${with_sql_module+set}" = set; then
2132 withval="$with_sql_module"
2135 for ol_val in static dynamic ; do
2136 if test "$withval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2143 ol_with_sql_module="$ol_arg"
2146 ol_with_sql_module="static"
2148 # end --with-sql_module
2150 # OpenLDAP --enable-tcl
2151 # Check whether --enable-tcl or --disable-tcl was given.
2152 if test "${enable_tcl+set}" = set; then
2153 enableval="$enable_tcl"
2156 for ol_val in auto yes no ; do
2157 if test "$enableval" = "$ol_val" ; then
2161 if test "$ol_arg" = "invalid" ; then
2162 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2164 ol_enable_tcl="$ol_arg"
2170 # OpenLDAP --with-tcl_module
2171 # Check whether --with-tcl_module or --without-tcl_module was given.
2172 if test "${with_tcl_module+set}" = set; then
2173 withval="$with_tcl_module"
2176 for ol_val in static dynamic ; do
2177 if test "$withval" = "$ol_val" ; then
2181 if test "$ol_arg" = "invalid" ; then
2182 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2184 ol_with_tcl_module="$ol_arg"
2187 ol_with_tcl_module="static"
2189 # end --with-tcl_module
2192 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2193 if test "${with_xxslurpdoptions+set}" = set; then
2194 withval="$with_xxslurpdoptions"
2198 # OpenLDAP --enable-slurpd
2199 # Check whether --enable-slurpd or --disable-slurpd was given.
2200 if test "${enable_slurpd+set}" = set; then
2201 enableval="$enable_slurpd"
2204 for ol_val in auto yes no ; do
2205 if test "$enableval" = "$ol_val" ; then
2209 if test "$ol_arg" = "invalid" ; then
2210 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2212 ol_enable_slurpd="$ol_arg"
2215 ol_enable_slurpd="auto"
2217 # end --enable-slurpd
2219 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2220 if test "${with_xxliboptions+set}" = set; then
2221 withval="$with_xxliboptions"
2225 # Check whether --enable-static or --disable-static was given.
2226 if test "${enable_static+set}" = set; then
2227 enableval="$enable_static"
2228 p=${PACKAGE-default}
2229 case "$enableval" in
2230 yes) enable_static=yes ;;
2231 no) enable_static=no ;;
2234 # Look at the argument we got. We use all the common list separators.
2235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2236 for pkg in $enableval; do
2237 if test "X$pkg" = "X$p"; then
2248 # Check whether --enable-shared or --disable-shared was given.
2249 if test "${enable_shared+set}" = set; then
2250 enableval="$enable_shared"
2251 p=${PACKAGE-default}
2252 case "$enableval" in
2253 yes) enable_shared=yes ;;
2254 no) enable_shared=no ;;
2257 # Look at the argument we got. We use all the common list separators.
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2259 for pkg in $enableval; do
2260 if test "X$pkg" = "X$p"; then
2274 if test $ol_enable_slapd = no ; then
2275 if test $ol_enable_bdb = yes ; then
2276 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2278 if test $ol_enable_dnssrv = yes ; then
2279 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2281 if test $ol_enable_ldap = yes ; then
2282 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2284 if test $ol_enable_ldbm = yes ; then
2285 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2287 if test $ol_enable_passwd = yes ; then
2288 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2290 if test $ol_enable_perl = yes ; then
2291 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2293 if test $ol_enable_shell = yes ; then
2294 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2296 if test $ol_enable_tcl = yes ; then
2297 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2299 if test $ol_enable_sql = yes ; then
2300 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2302 if test $ol_enable_modules = yes ; then
2303 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2305 if test $ol_enable_multimaster = yes ; then
2306 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2308 if test $ol_enable_wrappers = yes ; then
2309 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2311 if test $ol_enable_phonetic = yes ; then
2312 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2314 if test $ol_enable_rlookups = yes ; then
2315 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2317 if test $ol_enable_aci = yes ; then
2318 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2320 if test $ol_with_ldbm_api != auto ; then
2321 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2323 if test $ol_with_ldbm_type != auto ; then
2324 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2326 if test $ol_with_bdb_module != static ; then
2327 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2329 if test $ol_with_dnssrv_module != static ; then
2330 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2332 if test $ol_with_ldap_module != static ; then
2333 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2335 if test $ol_with_ldbm_module != static ; then
2336 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2338 if test $ol_with_passwd_module != static ; then
2339 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2341 if test $ol_with_perl_module != static ; then
2342 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2344 if test $ol_with_shell_module != static ; then
2345 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2347 if test $ol_with_tcl_module != static ; then
2348 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2350 if test $ol_with_sql_module != static ; then
2351 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2353 if test $ol_enable_slurpd = yes ; then
2354 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2357 # force settings to no
2368 ol_enable_modules=no
2369 ol_enable_multimaster=no
2370 ol_enable_phonetic=no
2371 ol_enable_rlookups=no
2373 ol_enable_wrappers=no
2374 ol_enable_dynamic=no
2377 ol_with_ldbm_type=no
2379 ol_with_bdb_module=static
2380 ol_with_dnssrv_module=static
2381 ol_with_ldap_module=static
2382 ol_with_ldbm_module=static
2383 ol_with_passwd_module=static
2384 ol_with_perl_module=static
2385 ol_with_shell_module=static
2386 ol_with_tcl_module=static
2387 ol_with_sql_module=static
2391 elif test $ol_enable_ldbm = no ; then
2393 if test $ol_with_ldbm_api != auto ; then
2394 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2397 if test $ol_with_ldbm_type != auto ; then
2398 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2401 if test $ol_with_ldbm_module != static ; then
2402 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2405 if test $ol_enable_modules != yes -a \
2406 $ol_enable_bdb = no -a \
2407 $ol_enable_dnssrv = no -a \
2408 $ol_enable_ldap = no -a \
2409 $ol_enable_passwd = no -a \
2410 $ol_enable_perl = no -a \
2411 $ol_enable_shell = no -a \
2412 $ol_enable_sql = no -a \
2413 $ol_enable_tcl = no ; then
2414 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2418 ol_with_ldbm_type=no
2419 ol_with_ldbm_module=static
2422 if test $ol_with_ldbm_api = gdbm -a \
2423 $ol_with_ldbm_type = btree ; then
2424 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2426 if test $ol_with_ldbm_api = mdbm -a \
2427 $ol_with_ldbm_type = btree ; then
2428 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2430 if test $ol_with_ldbm_api = ndbm -a \
2431 $ol_with_ldbm_type = btree ; then
2432 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2436 if test $ol_enable_slurpd = yes ; then
2437 if test $ol_with_threads = no ; then
2438 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2442 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2443 if test $ol_with_kerberos = no ; then
2444 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2446 ol_with_kerberos=yes
2447 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2448 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2449 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2454 if test $ol_enable_spasswd = yes ; then
2455 if test $ol_with_cyrus_sasl = no ; then
2456 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2461 echo "$ac_t""done" 1>&6
2487 BUILD_BDB_DYNAMIC=static
2488 BUILD_DNSSRV_DYNAMIC=static
2489 BUILD_LDAP_DYNAMIC=static
2490 BUILD_LDBM_DYNAMIC=static
2491 BUILD_PASSWD_DYNAMIC=static
2492 BUILD_PERL_DYNAMIC=static
2493 BUILD_SHELL_DYNAMIC=static
2494 BUILD_TCL_DYNAMIC=static
2495 BUILD_SQL_DYNAMIC=static
2497 SLAPD_MODULES_LDFLAGS=
2498 SLAPD_MODULES_CPPFLAGS=
2521 cat >> confdefs.h <<\EOF
2522 #define HAVE_MKVERSION 1
2530 *-*-aix*) if test -z "$CC" ; then
2531 case "$ol_with_threads" in
2532 auto | yes | posix) ol_aix_threads=yes ;;
2538 if test $ol_aix_threads = yes ; then
2539 if test -z "${CC}" ; then
2540 for ac_prog in cc_r xlc_r cc
2542 # Extract the first word of "$ac_prog", so it can be a program name with args.
2543 set dummy $ac_prog; ac_word=$2
2544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2545 echo "configure:2546: checking for $ac_word" >&5
2546 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2554 for ac_dir in $ac_dummy; do
2555 test -z "$ac_dir" && ac_dir=.
2556 if test -f $ac_dir/$ac_word; then
2557 ac_cv_prog_CC="$ac_prog"
2565 if test -n "$CC"; then
2566 echo "$ac_t""$CC" 1>&6
2568 echo "$ac_t""no" 1>&6
2571 test -n "$CC" && break
2575 if test "$CC" = cc ; then
2576 if test $ol_with_threads != auto ; then
2577 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2579 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2585 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2586 ol_with_threads=posix
2587 ol_cv_pthread_create=yes
2591 if test -z "${CC}"; then
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2597 echo "configure:2598: checking for $ac_word" >&5
2598 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2606 for ac_dir in $ac_dummy; do
2607 test -z "$ac_dir" && ac_dir=.
2608 if test -f $ac_dir/$ac_word; then
2609 ac_cv_prog_CC="$ac_prog"
2617 if test -n "$CC"; then
2618 echo "$ac_t""$CC" 1>&6
2620 echo "$ac_t""no" 1>&6
2623 test -n "$CC" && break
2631 # Check whether --enable-fast-install or --disable-fast-install was given.
2632 if test "${enable_fast_install+set}" = set; then
2633 enableval="$enable_fast_install"
2634 p=${PACKAGE-default}
2635 case "$enableval" in
2636 yes) enable_fast_install=yes ;;
2637 no) enable_fast_install=no ;;
2639 enable_fast_install=no
2640 # Look at the argument we got. We use all the common list separators.
2641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2642 for pkg in $enableval; do
2643 if test "X$pkg" = "X$p"; then
2644 enable_fast_install=yes
2651 enable_fast_install=yes
2654 # Extract the first word of "ranlib", so it can be a program name with args.
2655 set dummy ranlib; ac_word=$2
2656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_word" >&5
2658 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 if test -n "$RANLIB"; then
2662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2666 for ac_dir in $ac_dummy; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 ac_cv_prog_RANLIB="ranlib"
2674 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2677 RANLIB="$ac_cv_prog_RANLIB"
2678 if test -n "$RANLIB"; then
2679 echo "$ac_t""$RANLIB" 1>&6
2681 echo "$ac_t""no" 1>&6
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_word" >&5
2688 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2696 for ac_dir in $ac_dummy; do
2697 test -z "$ac_dir" && ac_dir=.
2698 if test -f $ac_dir/$ac_word; then
2707 if test -n "$CC"; then
2708 echo "$ac_t""$CC" 1>&6
2710 echo "$ac_t""no" 1>&6
2713 if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715 set dummy cc; ac_word=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2727 for ac_dir in $ac_dummy; do
2728 test -z "$ac_dir" && ac_dir=.
2729 if test -f $ac_dir/$ac_word; then
2730 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2731 ac_prog_rejected=yes
2739 if test $ac_prog_rejected = yes; then
2740 # We found a bogon in the path, so make sure we never use it.
2741 set dummy $ac_cv_prog_CC
2743 if test $# -gt 0; then
2744 # We chose a different compiler from the bogus one.
2745 # However, it has the same basename, so the bogon will be chosen
2746 # first if we set CC to just the basename; use the full file name.
2748 set dummy "$ac_dir/$ac_word" "$@"
2756 if test -n "$CC"; then
2757 echo "$ac_t""$CC" 1>&6
2759 echo "$ac_t""no" 1>&6
2762 if test -z "$CC"; then
2763 case "`uname -s`" in
2764 *win32* | *WIN32* | *CYGWIN*)
2765 # Extract the first word of "cl", so it can be a program name with args.
2766 set dummy cl; ac_word=$2
2767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2768 echo "configure:2769: checking for $ac_word" >&5
2769 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2777 for ac_dir in $ac_dummy; do
2778 test -z "$ac_dir" && ac_dir=.
2779 if test -f $ac_dir/$ac_word; then
2788 if test -n "$CC"; then
2789 echo "$ac_t""$CC" 1>&6
2791 echo "$ac_t""no" 1>&6
2796 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2800 echo "configure:2801: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2807 cross_compiling=$ac_cv_prog_cc_cross
2809 cat > conftest.$ac_ext << EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2817 ac_cv_prog_cc_works=yes
2818 # If we can't run a trivial program, we are probably using a cross compiler.
2819 if (./conftest; exit) 2>/dev/null; then
2820 ac_cv_prog_cc_cross=no
2822 ac_cv_prog_cc_cross=yes
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2827 ac_cv_prog_cc_works=no
2831 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2834 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2835 cross_compiling=$ac_cv_prog_cc_cross
2837 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2838 if test $ac_cv_prog_cc_works = no; then
2839 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2841 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2843 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2844 cross_compiling=$ac_cv_prog_cc_cross
2846 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2847 echo "configure:2848: checking whether we are using GNU C" >&5
2848 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.c <<EOF
2856 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2863 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2865 if test $ac_cv_prog_gcc = yes; then
2871 ac_test_CFLAGS="${CFLAGS+set}"
2872 ac_save_CFLAGS="$CFLAGS"
2874 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2875 echo "configure:2876: checking whether ${CC-cc} accepts -g" >&5
2876 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 echo 'void f(){}' > conftest.c
2880 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2889 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2890 if test "$ac_test_CFLAGS" = set; then
2891 CFLAGS="$ac_save_CFLAGS"
2892 elif test $ac_cv_prog_cc_g = yes; then
2893 if test "$GCC" = yes; then
2899 if test "$GCC" = yes; then
2906 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2907 if test "${with_gnu_ld+set}" = set; then
2908 withval="$with_gnu_ld"
2909 test "$withval" = no || with_gnu_ld=yes
2915 if test "$ac_cv_prog_gcc" = yes; then
2916 # Check if gcc -print-prog-name=ld gives a path.
2917 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2918 echo "configure:2919: checking for ld used by GCC" >&5
2919 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2921 # Accept absolute paths.
2922 [\\/]* | [A-Za-z]:[\\/]*)
2923 re_direlt='/[^/][^/]*/\.\./'
2924 # Canonicalize the path of ld
2925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2926 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2927 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2929 test -z "$LD" && LD="$ac_prog"
2932 # If it fails, then pretend we aren't using GCC.
2936 # If it is relative, then search for the first ld in PATH.
2940 elif test "$with_gnu_ld" = yes; then
2941 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2942 echo "configure:2943: checking for GNU ld" >&5
2944 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2945 echo "configure:2946: checking for non-GNU ld" >&5
2947 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 if test -z "$LD"; then
2951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2952 for ac_dir in $PATH; do
2953 test -z "$ac_dir" && ac_dir=.
2954 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2955 ac_cv_path_LD="$ac_dir/$ac_prog"
2956 # Check to see if the program is GNU ld. I'd rather use --version,
2957 # but apparently some GNU ld's only accept -v.
2958 # Break only if it was the GNU/non-GNU ld that we prefer.
2959 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2960 test "$with_gnu_ld" != no && break
2962 test "$with_gnu_ld" != yes && break
2968 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2973 if test -n "$LD"; then
2974 echo "$ac_t""$LD" 1>&6
2976 echo "$ac_t""no" 1>&6
2978 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2979 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2980 echo "configure:2981: checking if the linker ($LD) is GNU ld" >&5
2981 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2985 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2986 ac_cv_prog_gnu_ld=yes
2988 ac_cv_prog_gnu_ld=no
2992 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2995 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2996 echo "configure:2997: checking for BSD-compatible nm" >&5
2997 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 if test -n "$NM"; then
3001 # Let the user override the test.
3004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3005 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3008 # Check to see if the nm accepts a BSD-compat flag.
3009 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3010 # nm: unknown option "B" ignored
3011 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3012 ac_cv_path_NM="$ac_dir/nm -B"
3014 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3015 ac_cv_path_NM="$ac_dir/nm -p"
3018 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3019 continue # so that we can try to find one that supports BSD flags
3024 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3029 echo "$ac_t""$NM" 1>&6
3031 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3032 echo "configure:3033: checking whether ln -s works" >&5
3033 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3037 if ln -s X conftestdata 2>/dev/null
3040 ac_cv_prog_LN_S="ln -s"
3045 LN_S="$ac_cv_prog_LN_S"
3046 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3047 echo "$ac_t""yes" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 if test $host != $build; then
3053 ac_tool_prefix=${host_alias}-
3060 NONE) lt_target="$host" ;;
3061 *) lt_target="$target" ;;
3064 # Check for any special flags to pass to ltconfig.
3065 libtool_flags="--cache-file=$cache_file"
3066 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3067 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3068 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3069 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3070 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3071 libtool_flags="$libtool_flags --enable-dlopen"
3072 libtool_flags="$libtool_flags --enable-win32-dll"
3073 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3074 if test "${enable_libtool_lock+set}" = set; then
3075 enableval="$enable_libtool_lock"
3079 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3080 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3082 # Some flags need to be propagated to the compiler or linker for good
3084 case "$lt_target" in
3086 # Find out which ABI we are using.
3087 echo '#line 3088 "configure"' > conftest.$ac_ext
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3089 case "`/usr/bin/file conftest.o`" in
3105 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3106 SAVE_CFLAGS="$CFLAGS"
3107 CFLAGS="$CFLAGS -belf"
3108 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether the C compiler needs -belf" >&5
3110 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 lt_cv_cc_needs_belf=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 lt_cv_cc_needs_belf=no
3133 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3136 CFLAGS="$SAVE_CFLAGS"
3140 *-*-cygwin* | *-*-mingw*)
3141 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_word" >&5
3145 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 if test -n "$DLLTOOL"; then
3149 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3153 for ac_dir in $ac_dummy; do
3154 test -z "$ac_dir" && ac_dir=.
3155 if test -f $ac_dir/$ac_word; then
3156 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3163 DLLTOOL="$ac_cv_prog_DLLTOOL"
3164 if test -n "$DLLTOOL"; then
3165 echo "$ac_t""$DLLTOOL" 1>&6
3167 echo "$ac_t""no" 1>&6
3171 if test -z "$ac_cv_prog_DLLTOOL"; then
3172 if test -n "$ac_tool_prefix"; then
3173 # Extract the first word of "dlltool", so it can be a program name with args.
3174 set dummy dlltool; ac_word=$2
3175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3176 echo "configure:3177: checking for $ac_word" >&5
3177 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 if test -n "$DLLTOOL"; then
3181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3185 for ac_dir in $ac_dummy; do
3186 test -z "$ac_dir" && ac_dir=.
3187 if test -f $ac_dir/$ac_word; then
3188 ac_cv_prog_DLLTOOL="dlltool"
3193 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3196 DLLTOOL="$ac_cv_prog_DLLTOOL"
3197 if test -n "$DLLTOOL"; then
3198 echo "$ac_t""$DLLTOOL" 1>&6
3200 echo "$ac_t""no" 1>&6
3208 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}as; ac_word=$2
3210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3211 echo "configure:3212: checking for $ac_word" >&5
3212 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 if test -n "$AS"; then
3216 ac_cv_prog_AS="$AS" # Let the user override the test.
3218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3220 for ac_dir in $ac_dummy; do
3221 test -z "$ac_dir" && ac_dir=.
3222 if test -f $ac_dir/$ac_word; then
3223 ac_cv_prog_AS="${ac_tool_prefix}as"
3231 if test -n "$AS"; then
3232 echo "$ac_t""$AS" 1>&6
3234 echo "$ac_t""no" 1>&6
3238 if test -z "$ac_cv_prog_AS"; then
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "as", so it can be a program name with args.
3241 set dummy as; ac_word=$2
3242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_word" >&5
3244 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 if test -n "$AS"; then
3248 ac_cv_prog_AS="$AS" # Let the user override the test.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3252 for ac_dir in $ac_dummy; do
3253 test -z "$ac_dir" && ac_dir=.
3254 if test -f $ac_dir/$ac_word; then
3260 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3264 if test -n "$AS"; then
3265 echo "$ac_t""$AS" 1>&6
3267 echo "$ac_t""no" 1>&6
3275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3278 echo "configure:3279: checking for $ac_word" >&5
3279 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 if test -n "$OBJDUMP"; then
3283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/$ac_word; then
3290 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3297 OBJDUMP="$ac_cv_prog_OBJDUMP"
3298 if test -n "$OBJDUMP"; then
3299 echo "$ac_t""$OBJDUMP" 1>&6
3301 echo "$ac_t""no" 1>&6
3305 if test -z "$ac_cv_prog_OBJDUMP"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "objdump", so it can be a program name with args.
3308 set dummy objdump; ac_word=$2
3309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_word" >&5
3311 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 if test -n "$OBJDUMP"; then
3315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3319 for ac_dir in $ac_dummy; do
3320 test -z "$ac_dir" && ac_dir=.
3321 if test -f $ac_dir/$ac_word; then
3322 ac_cv_prog_OBJDUMP="objdump"
3327 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3330 OBJDUMP="$ac_cv_prog_OBJDUMP"
3331 if test -n "$OBJDUMP"; then
3332 echo "$ac_t""$OBJDUMP" 1>&6
3334 echo "$ac_t""no" 1>&6
3347 # Save cache, so that ltconfig can load it
3350 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3351 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3352 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3353 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3354 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3355 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3356 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3357 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3359 # Reload cache, that may have been modified by ltconfig
3362 # This can be used to rebuild libtool when needed
3363 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3365 # Always use our own libtool.
3366 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3368 # Redirect the config.log output again, so that the ltconfig log is not
3369 # clobbered by the next message.
3370 exec 5>>./config.log
3373 for ac_prog in mawk gawk nawk awk
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_word" >&5
3379 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 if test -n "$AWK"; then
3383 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3387 for ac_dir in $ac_dummy; do
3388 test -z "$ac_dir" && ac_dir=.
3389 if test -f $ac_dir/$ac_word; then
3390 ac_cv_prog_AWK="$ac_prog"
3397 AWK="$ac_cv_prog_AWK"
3398 if test -n "$AWK"; then
3399 echo "$ac_t""$AWK" 1>&6
3401 echo "$ac_t""no" 1>&6
3404 test -n "$AWK" && break
3407 # test for ln hardlink support
3408 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3409 echo "configure:3410: checking whether ln works" >&5
3410 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 rm -f conftest.src conftest.dst
3414 echo "conftest" > conftest.src
3415 if ln conftest.src conftest.dst 2>/dev/null
3417 ol_cv_prog_LN_H="ln"
3419 ol_cv_prog_LN_H="cp"
3421 rm -f conftest.src conftest.dst
3424 LN_H="$ol_cv_prog_LN_H"
3425 if test "$ol_cv_prog_LN_H" = "ln"; then
3426 echo "$ac_t""yes" 1>&6
3428 echo "$ac_t""no" 1>&6
3431 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3432 echo "configure:3433: checking whether ln -s works" >&5
3433 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3434 echo $ac_n "(cached) $ac_c" 1>&6
3437 if ln -s X conftestdata 2>/dev/null
3440 ac_cv_prog_LN_S="ln -s"
3445 LN_S="$ac_cv_prog_LN_S"
3446 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3447 echo "$ac_t""yes" 1>&6
3449 echo "$ac_t""no" 1>&6
3453 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3457 # Extract the first word of "sendmail", so it can be a program name with args.
3458 set dummy sendmail; ac_word=$2
3459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_word" >&5
3461 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3466 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3469 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3473 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3474 for ac_dir in $ac_dummy; do
3475 test -z "$ac_dir" && ac_dir=.
3476 if test -f $ac_dir/$ac_word; then
3477 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3482 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3486 SENDMAIL="$ac_cv_path_SENDMAIL"
3487 if test -n "$SENDMAIL"; then
3488 echo "$ac_t""$SENDMAIL" 1>&6
3490 echo "$ac_t""no" 1>&6
3493 # Extract the first word of "vi", so it can be a program name with args.
3494 set dummy vi; ac_word=$2
3495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_word" >&5
3497 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3502 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3505 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 ac_dummy="$PATH:/usr/ucb"
3510 for ac_dir in $ac_dummy; do
3511 test -z "$ac_dir" && ac_dir=.
3512 if test -f $ac_dir/$ac_word; then
3513 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3518 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3522 EDITOR="$ac_cv_path_EDITOR"
3523 if test -n "$EDITOR"; then
3524 echo "$ac_t""$EDITOR" 1>&6
3526 echo "$ac_t""no" 1>&6
3529 # Extract the first word of "finger", so it can be a program name with args.
3530 set dummy finger; ac_word=$2
3531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_word" >&5
3533 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3538 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3541 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3545 ac_dummy="$PATH:/usr/ucb"
3546 for ac_dir in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir=.
3548 if test -f $ac_dir/$ac_word; then
3549 ac_cv_path_FINGER="$ac_dir/$ac_word"
3554 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3558 FINGER="$ac_cv_path_FINGER"
3559 if test -n "$FINGER"; then
3560 echo "$ac_t""$FINGER" 1>&6
3562 echo "$ac_t""no" 1>&6
3567 if test $ol_enable_perl != no ; then
3568 # Extract the first word of "perl", so it can be a program name with args.
3569 set dummy perl; ac_word=$2
3570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_word" >&5
3572 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3577 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3580 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3585 for ac_dir in $ac_dummy; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f $ac_dir/$ac_word; then
3588 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3593 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3597 PERLBIN="$ac_cv_path_PERLBIN"
3598 if test -n "$PERLBIN"; then
3599 echo "$ac_t""$PERLBIN" 1>&6
3601 echo "$ac_t""no" 1>&6
3605 if test "no$PERLBIN" = "no" ; then
3606 if test $ol_enable_perl = yes ; then
3607 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3611 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3612 if test x"$ol_with_perl_module" = "xstatic" ; then
3613 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3615 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3621 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3622 echo "configure:3623: checking how to run the C preprocessor" >&5
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3627 if test -z "$CPP"; then
3628 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 # This must be in double quotes, not single quotes, because CPP may get
3632 # substituted into the Makefile and "${CC-cc}" will confuse make.
3634 # On the NeXT, cc -E runs the code through the compiler's parser,
3635 # not just through cpp.
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3643 { (eval echo configure:3644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3645 if test -z "$ac_err"; then
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 CPP="${CC-cc} -E -traditional-cpp"
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3660 { (eval echo configure:3661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3662 if test -z "$ac_err"; then
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3669 CPP="${CC-cc} -nologo -E"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3677 { (eval echo configure:3678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3679 if test -z "$ac_err"; then
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3693 ac_cv_prog_CPP="$CPP"
3695 CPP="$ac_cv_prog_CPP"
3697 ac_cv_prog_CPP="$CPP"
3699 echo "$ac_t""$CPP" 1>&6
3702 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3703 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3705 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3706 echo "configure: warning: programs compiled here do run here..." 1>&2
3707 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3709 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3710 echo "configure: warning: programs compiled here do not run here..." 1>&2
3711 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3714 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3715 echo "configure:3716: checking for AIX" >&5
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 egrep "yes" >/dev/null 2>&1; then
3727 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3728 #define _ALL_SOURCE 1
3733 echo "$ac_t""no" 1>&6
3738 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3739 echo "configure:3740: checking for POSIXized ISC" >&5
3740 if test -d /etc/conf/kconfig.d &&
3741 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3743 echo "$ac_t""yes" 1>&6
3744 ISC=yes # If later tests want to check for ISC.
3745 cat >> confdefs.h <<\EOF
3746 #define _POSIX_SOURCE 1
3749 if test "$GCC" = yes; then
3755 echo "$ac_t""no" 1>&6
3759 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3760 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3761 echo "configure:3762: checking for minix/config.h" >&5
3762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 #include <minix/config.h>
3770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3771 { (eval echo configure:3772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3773 if test -z "$ac_err"; then
3775 eval "ac_cv_header_$ac_safe=yes"
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3781 eval "ac_cv_header_$ac_safe=no"
3785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3789 echo "$ac_t""no" 1>&6
3793 if test "$MINIX" = yes; then
3794 cat >> confdefs.h <<\EOF
3795 #define _POSIX_SOURCE 1
3798 cat >> confdefs.h <<\EOF
3799 #define _POSIX_1_SOURCE 2
3802 cat >> confdefs.h <<\EOF
3809 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3810 echo "configure:3811: checking for Cygwin environment" >&5
3811 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3821 #define __CYGWIN__ __CYGWIN32__
3826 if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3838 echo "$ac_t""$ac_cv_cygwin" 1>&6
3840 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3841 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3842 echo "configure:3843: checking for mingw32 environment" >&5
3843 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3846 cat > conftest.$ac_ext <<EOF
3847 #line 3848 "configure"
3848 #include "confdefs.h"
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3866 echo "$ac_t""$ac_cv_mingw32" 1>&6
3868 test "$ac_cv_mingw32" = yes && MINGW32=yes
3869 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3870 echo "configure:3871: checking for EMX OS/2 environment" >&5
3871 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3894 echo "$ac_t""$ac_cv_emxos2" 1>&6
3896 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3900 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3901 echo "configure:3902: checking for executable suffix" >&5
3902 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3909 echo 'int main () { return 0; }' > conftest.$ac_ext
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3912 for file in conftest.*; do
3914 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3915 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3919 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3922 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3927 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3928 echo "$ac_t""${ac_cv_exeext}" 1>&6
3931 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3932 echo "configure:3933: checking for object suffix" >&5
3933 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3937 echo 'int i = 1;' > conftest.$ac_ext
3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 for ac_file in conftest.*; do
3942 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3946 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3951 echo "$ac_t""$ac_cv_objext" 1>&6
3952 OBJEXT=$ac_cv_objext
3953 ac_objext=$ac_cv_objext
3956 cat >> confdefs.h <<EOF
3957 #define EXEEXT "${EXEEXT}"
3961 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3962 echo "configure:3963: checking for be_app in -lbe" >&5
3963 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 ac_save_LIBS="$LIBS"
3968 LIBS="-lbe -lroot -lnet $LIBS"
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 eval "ac_cv_lib_$ac_lib_var=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 eval "ac_cv_lib_$ac_lib_var=no"
3991 LIBS="$ac_save_LIBS"
3994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 LIBS="$LIBS -lbe -lroot -lnet"
3998 echo "$ac_t""no" 1>&6
4006 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4007 echo "configure:4008: checking for ${CC-cc} option to accept ANSI C" >&5
4008 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 am_cv_prog_cc_stdc=no
4013 # Don't try gcc -ansi; that turns off useful extensions and
4014 # breaks some systems' header files.
4015 # AIX -qlanglvl=ansi
4016 # Ultrix and OSF/1 -std1
4017 # HP-UX 10.20 and later -Ae
4018 # HP-UX older versions -Aa -D_HPUX_SOURCE
4019 # SVR4 -Xc -D__EXTENSIONS__
4020 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4028 #include <sys/types.h>
4029 #include <sys/stat.h>
4030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4031 struct buf { int x; };
4032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033 static char *e (p, i)
4039 static char *f (char * (*g) (char **, int), char **p, ...)
4044 s = g (p, va_arg (v,int));
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4061 if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4063 am_cv_prog_cc_stdc="$ac_arg"; break
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4074 if test -z "$am_cv_prog_cc_stdc"; then
4075 echo "$ac_t""none needed" 1>&6
4077 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4079 case "x$am_cv_prog_cc_stdc" in
4081 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4084 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4085 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4088 # test for make depend flag
4091 if test -z "${MKDEP}"; then
4093 if test -z "${MKDEP_FLAGS}"; then
4094 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4095 echo "configure:4096: checking for ${OL_MKDEP} depend flag" >&5
4096 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4101 for flag in "-M" "-xM"; do
4102 cat > conftest.c <<EOF
4105 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4106 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4108 if test ! -f conftest."${ac_object}" ; then
4110 OL_MKDEP_FLAGS="$flag"
4119 echo "$ac_t""$ol_cv_mkdep" 1>&6
4122 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4127 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4132 if test "${ol_cv_mkdep}" = no ; then
4133 # this will soon become an error
4134 echo "configure: warning: do not know how to generate dependencies" 1>&2
4137 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4138 echo "configure:4139: checking for afopen in -ls" >&5
4139 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4140 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 ac_save_LIBS="$LIBS"
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_lib_$ac_lib_var=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_lib_$ac_lib_var=no"
4167 LIBS="$ac_save_LIBS"
4170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_AIX_SECURITY 1
4180 echo "$ac_t""no" 1>&6
4185 for ac_func in getaddrinfo
4187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4188 echo "configure:4189: checking for $ac_func" >&5
4189 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* System header to define __stub macros and hopefully few prototypes,
4196 which can conflict with char $ac_func(); below. */
4198 /* Override any gcc2 internal prototype to avoid an error. */
4199 /* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4206 /* The GNU C library defines this for functions which it implements
4207 to always fail with ENOSYS. Some functions are actually named
4208 something starting with __ and the normal name is an alias. */
4209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4217 if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 eval "ac_cv_func_$ac_func=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 eval "ac_cv_func_$ac_func=no"
4229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4230 echo "$ac_t""yes" 1>&6
4231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4232 cat >> confdefs.h <<EOF
4233 #define $ac_tr_func 1
4237 echo "$ac_t""no" 1>&6
4242 if test $ac_cv_func_getaddrinfo = no ; then
4243 if test $ol_enable_ipv6 = yes ; then
4244 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4249 if test $ol_enable_local != no ; then
4250 for ac_hdr in sys/un.h
4252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4254 echo "configure:4255: checking for $ac_hdr" >&5
4255 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4264 { (eval echo configure:4265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4266 if test -z "$ac_err"; then
4268 eval "ac_cv_header_$ac_safe=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_header_$ac_safe=no"
4278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4281 cat >> confdefs.h <<EOF
4282 #define $ac_tr_hdr 1
4286 echo "$ac_t""no" 1>&6
4291 if test $ol_enable_local = auto ; then
4292 ol_enable_local=$ac_cv_header_sys_un_h
4293 elif test $ac_cv_header_sys_un_h = no ; then
4294 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4299 if test $ol_enable_modules != no ; then
4300 for ac_hdr in ltdl.h
4302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_hdr" >&5
4305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4314 { (eval echo configure:4315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4316 if test -z "$ac_err"; then
4318 eval "ac_cv_header_$ac_safe=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_header_$ac_safe=no"
4328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4331 cat >> confdefs.h <<EOF
4332 #define $ac_tr_hdr 1
4336 echo "$ac_t""no" 1>&6
4341 if test $ac_cv_header_ltdl_h = no ; then
4342 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4345 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4346 echo "configure:4347: checking for lt_dlinit in -lltdl" >&5
4347 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4348 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 ac_save_LIBS="$LIBS"
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4382 cat >> confdefs.h <<\EOF
4383 #define HAVE_LIBLTDL 1
4388 echo "$ac_t""no" 1>&6
4392 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4393 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4397 ol_with_bdb_module=static
4398 ol_with_dnssrv_module=static
4399 ol_with_ldap_module=static
4400 ol_with_ldbm_module=static
4401 ol_with_passwd_module=static
4402 ol_with_perl_module=static
4403 ol_with_shell_module=static
4404 ol_with_tcl_module=static
4405 ol_with_sql_module=static
4409 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4410 echo "configure:4411: checking for EBCDIC" >&5
4411 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4420 #include <__ASCII__/generate_error.h>
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 ol_cv_cpp_ebcdic=yes
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4440 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4441 if test $ol_cv_cpp_ebcdic = yes ; then
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_EBCDIC 1
4448 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4449 echo "configure:4450: checking for ANSI C header files" >&5
4450 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4462 { (eval echo configure:4463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4464 if test -z "$ac_err"; then
4466 ol_cv_header_stdc=yes
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 ol_cv_header_stdc=no
4476 if test $ol_cv_header_stdc = yes; then
4477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 egrep "memchr" >/dev/null 2>&1; then
4488 ol_cv_header_stdc=no
4494 if test $ol_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 egrep "free" >/dev/null 2>&1; then
4506 ol_cv_header_stdc=no
4512 if test $ol_cv_header_stdc = yes; then
4513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4514 if test "$cross_compiling" = yes; then
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4525 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4526 || ('j' <= (c) && (c) <= 'r') \
4527 || ('s' <= (c) && (c) <= 'z'))
4528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4531 int main () { int i; for (i = 0; i < 256; i++)
4532 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 ol_cv_header_stdc=no
4551 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4552 if test $ol_cv_header_stdc = yes; then
4553 cat >> confdefs.h <<\EOF
4554 #define STDC_HEADERS 1
4558 ac_cv_header_stdc=disable
4561 if test $ol_cv_header_stdc != yes; then
4562 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4566 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4569 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4570 echo "configure:4571: checking for $ac_hdr that defines DIR" >&5
4571 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 cat > conftest.$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4577 #include <sys/types.h>
4583 if { (eval echo configure:4584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4585 eval "ac_cv_header_dirent_$ac_safe=yes"
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 eval "ac_cv_header_dirent_$ac_safe=no"
4594 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4597 cat >> confdefs.h <<EOF
4598 #define $ac_tr_hdr 1
4600 ac_header_dirent=$ac_hdr; break
4602 echo "$ac_t""no" 1>&6
4605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4606 if test $ac_header_dirent = dirent.h; then
4607 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4608 echo "configure:4609: checking for opendir in -ldir" >&5
4609 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4613 ac_save_LIBS="$LIBS"
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 /* Override any gcc2 internal prototype to avoid an error. */
4619 /* We use char because int might match the return type of a gcc2
4620 builtin and then its argument prototype would still apply. */
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4629 eval "ac_cv_lib_$ac_lib_var=yes"
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4634 eval "ac_cv_lib_$ac_lib_var=no"
4637 LIBS="$ac_save_LIBS"
4640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4641 echo "$ac_t""yes" 1>&6
4644 echo "$ac_t""no" 1>&6
4648 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4649 echo "configure:4650: checking for opendir in -lx" >&5
4650 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 ac_save_LIBS="$LIBS"
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 /* Override any gcc2 internal prototype to avoid an error. */
4660 /* We use char because int might match the return type of a gcc2
4661 builtin and then its argument prototype would still apply. */
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 eval "ac_cv_lib_$ac_lib_var=yes"
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 eval "ac_cv_lib_$ac_lib_var=no"
4678 LIBS="$ac_save_LIBS"
4681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4685 echo "$ac_t""no" 1>&6
4690 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4691 echo "configure:4692: checking for sys/wait.h that is POSIX.1 compatible" >&5
4692 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 #include <sys/types.h>
4699 #include <sys/wait.h>
4701 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4704 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4712 if { (eval echo configure:4713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4714 ac_cv_header_sys_wait_h=yes
4716 echo "configure: failed program was:" >&5
4717 cat conftest.$ac_ext >&5
4719 ac_cv_header_sys_wait_h=no
4724 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4725 if test $ac_cv_header_sys_wait_h = yes; then
4726 cat >> confdefs.h <<\EOF
4727 #define HAVE_SYS_WAIT_H 1
4732 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4733 echo "configure:4734: checking POSIX termios" >&5
4734 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 #include <sys/types.h>
4742 #include <termios.h>
4744 /* SunOS 4.0.3 has termios.h but not the library calls. */
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 am_cv_sys_posix_termios=yes
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 am_cv_sys_posix_termios=no
4760 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4763 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4764 echo "configure:4765: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4765 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4770 gwinsz_in_termios_h=no
4771 if test $am_cv_sys_posix_termios = yes; then
4772 cat > conftest.$ac_ext <<EOF
4773 #line 4774 "configure"
4774 #include "confdefs.h"
4775 #include <sys/types.h>
4776 # include <termios.h>
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 egrep "yes" >/dev/null 2>&1; then
4785 gwinsz_in_termios_h=yes
4791 if test $gwinsz_in_termios_h = no; then
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <sys/types.h>
4796 # include <sys/ioctl.h>
4802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4803 egrep "yes" >/dev/null 2>&1; then
4805 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4813 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4814 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4815 cat >> confdefs.h <<\EOF
4816 #define GWINSZ_IN_SYS_IOCTL 1
4821 if test $am_cv_sys_posix_termios = yes ; then
4822 cat >> confdefs.h <<\EOF
4823 #define HAVE_POSIX_TERMIOS 1
4874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4876 echo "configure:4877: checking for $ac_hdr" >&5
4877 if eval "test \"\${ac_cv_header_$ac_safe+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"
4885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4886 { (eval echo configure:4887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4888 if test -z "$ac_err"; then
4890 eval "ac_cv_header_$ac_safe=yes"
4893 echo "configure: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4896 eval "ac_cv_header_$ac_safe=no"
4900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4903 cat >> confdefs.h <<EOF
4904 #define $ac_tr_hdr 1
4908 echo "$ac_t""no" 1>&6
4915 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4916 echo "configure:4917: checking for sigset in -lV3" >&5
4917 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 ac_save_LIBS="$LIBS"
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 /* Override any gcc2 internal prototype to avoid an error. */
4927 /* We use char because int might match the return type of a gcc2
4928 builtin and then its argument prototype would still apply. */
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4937 eval "ac_cv_lib_$ac_lib_var=yes"
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 eval "ac_cv_lib_$ac_lib_var=no"
4945 LIBS="$ac_save_LIBS"
4948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4952 cat >> confdefs.h <<EOF
4953 #define $ac_tr_lib 1
4959 echo "$ac_t""no" 1>&6
4963 if test $ac_cv_header_winsock_h = yes; then
4964 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4965 echo "configure:4966: checking for winsock" >&5
4966 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4967 echo $ac_n "(cached) $ac_c" 1>&6
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4972 #include <winsock.h>
4976 select(0,NULL,NULL,NULL,NULL);
4978 gethostname(NULL,0);
4982 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4986 echo "configure: failed program was:" >&5
4987 cat conftest.$ac_ext >&5
4994 echo "$ac_t""$ol_cv_winsock" 1>&6
4996 if test $ol_cv_winsock = yes ; then
4997 cat >> confdefs.h <<\EOF
4998 #define HAVE_WINSOCK 1
5001 ac_cv_func_socket=yes
5002 ac_cv_func_select=yes
5003 ac_cv_func_closesocket=yes
5004 ac_cv_func_gethostname=yes
5009 echo $ac_n "checking for socket""... $ac_c" 1>&6
5010 echo "configure:5011: checking for socket" >&5
5011 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* System header to define __stub macros and hopefully few prototypes,
5018 which can conflict with char socket(); below. */
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5028 /* The GNU C library defines this for functions which it implements
5029 to always fail with ENOSYS. Some functions are actually named
5030 something starting with __ and the normal name is an alias. */
5031 #if defined (__stub_socket) || defined (__stub___socket)
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 eval "ac_cv_func_socket=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5046 eval "ac_cv_func_socket=no"
5051 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5055 echo "$ac_t""no" 1>&6
5057 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5058 echo "configure:5059: checking for main in -lsocket" >&5
5059 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 ac_save_LIBS="$LIBS"
5064 LIBS="-lsocket $LIBS"
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075 eval "ac_cv_lib_$ac_lib_var=yes"
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5080 eval "ac_cv_lib_$ac_lib_var=no"
5083 LIBS="$ac_save_LIBS"
5086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5087 echo "$ac_t""yes" 1>&6
5088 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5090 cat >> confdefs.h <<EOF
5091 #define $ac_tr_lib 1
5094 LIBS="-lsocket $LIBS"
5097 echo "$ac_t""no" 1>&6
5100 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5101 echo "configure:5102: checking for main in -lnet" >&5
5102 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5103 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5106 ac_save_LIBS="$LIBS"
5108 cat > conftest.$ac_ext <<EOF
5109 #line 5110 "configure"
5110 #include "confdefs.h"
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5118 eval "ac_cv_lib_$ac_lib_var=yes"
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 eval "ac_cv_lib_$ac_lib_var=no"
5126 LIBS="$ac_save_LIBS"
5129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5130 echo "$ac_t""yes" 1>&6
5131 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5133 cat >> confdefs.h <<EOF
5134 #define $ac_tr_lib 1
5140 echo "$ac_t""no" 1>&6
5143 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5144 echo "configure:5145: checking for main in -lnsl_s" >&5
5145 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5147 echo $ac_n "(cached) $ac_c" 1>&6
5149 ac_save_LIBS="$LIBS"
5150 LIBS="-lnsl_s $LIBS"
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5161 eval "ac_cv_lib_$ac_lib_var=yes"
5163 echo "configure: failed program was:" >&5
5164 cat conftest.$ac_ext >&5
5166 eval "ac_cv_lib_$ac_lib_var=no"
5169 LIBS="$ac_save_LIBS"
5172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5176 cat >> confdefs.h <<EOF
5177 #define $ac_tr_lib 1
5180 LIBS="-lnsl_s $LIBS"
5183 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5187 echo "configure:5188: checking for main in -lnsl" >&5
5188 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 ac_save_LIBS="$LIBS"
5194 cat > conftest.$ac_ext <<EOF
5195 #line 5196 "configure"
5196 #include "confdefs.h"
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5204 eval "ac_cv_lib_$ac_lib_var=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 eval "ac_cv_lib_$ac_lib_var=no"
5212 LIBS="$ac_save_LIBS"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5219 cat >> confdefs.h <<EOF
5220 #define $ac_tr_lib 1
5226 echo "$ac_t""no" 1>&6
5229 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5230 echo "configure:5231: checking for socket in -linet" >&5
5231 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5235 ac_save_LIBS="$LIBS"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5251 eval "ac_cv_lib_$ac_lib_var=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 eval "ac_cv_lib_$ac_lib_var=no"
5259 LIBS="$ac_save_LIBS"
5262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5263 echo "$ac_t""yes" 1>&6
5264 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5266 cat >> confdefs.h <<EOF
5267 #define $ac_tr_lib 1
5273 echo "$ac_t""no" 1>&6
5276 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5277 echo "configure:5278: checking for main in -lgen" >&5
5278 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5279 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 ac_save_LIBS="$LIBS"
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 eval "ac_cv_lib_$ac_lib_var=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 eval "ac_cv_lib_$ac_lib_var=no"
5302 LIBS="$ac_save_LIBS"
5305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5307 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5309 cat >> confdefs.h <<EOF
5310 #define $ac_tr_lib 1
5316 echo "$ac_t""no" 1>&6
5323 echo $ac_n "checking for select""... $ac_c" 1>&6
5324 echo "configure:5325: checking for select" >&5
5325 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 /* System header to define __stub macros and hopefully few prototypes,
5332 which can conflict with char select(); below. */
5334 /* Override any gcc2 internal prototype to avoid an error. */
5335 /* We use char because int might match the return type of a gcc2
5336 builtin and then its argument prototype would still apply. */
5342 /* The GNU C library defines this for functions which it implements
5343 to always fail with ENOSYS. Some functions are actually named
5344 something starting with __ and the normal name is an alias. */
5345 #if defined (__stub_select) || defined (__stub___select)
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5355 eval "ac_cv_func_select=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 eval "ac_cv_func_select=no"
5365 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5369 echo "$ac_t""no" 1>&6
5370 { echo "configure: error: select() required." 1>&2; exit 1; }
5374 if test "${ac_cv_header_winsock_h}" != yes; then
5375 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5376 echo "configure:5377: checking types of arguments for select()" >&5
5377 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5383 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5387 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5388 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 #ifdef HAVE_SYS_TYPES_H
5393 #include <sys/types.h>
5395 #ifdef HAVE_SYS_TIME_H
5396 #include <sys/time.h>
5398 #ifdef HAVE_SYS_SELECT_H
5399 #include <sys/select.h>
5401 #ifdef HAVE_SYS_SOCKET_H
5402 #include <sys/socket.h>
5404 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);
5409 if { (eval echo configure:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 ac_not_found=no ; break 3
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5428 if test "$ac_not_found" = yes; then
5429 ac_cv_func_select_arg1=int
5430 ac_cv_func_select_arg234='int *'
5431 ac_cv_func_select_arg5='struct timeval *'
5433 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5434 cat >> confdefs.h <<EOF
5435 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5438 cat >> confdefs.h <<EOF
5439 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5442 cat >> confdefs.h <<EOF
5443 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5450 for ac_hdr in regex.h
5452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_hdr" >&5
5455 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5464 { (eval echo configure:5465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5466 if test -z "$ac_err"; then
5468 eval "ac_cv_header_$ac_safe=yes"
5471 echo "configure: failed program was:" >&5
5472 cat conftest.$ac_ext >&5
5474 eval "ac_cv_header_$ac_safe=no"
5478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5479 echo "$ac_t""yes" 1>&6
5480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5481 cat >> confdefs.h <<EOF
5482 #define $ac_tr_hdr 1
5486 echo "$ac_t""no" 1>&6
5490 if test "$ac_cv_header_regex_h" != yes ; then
5491 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5493 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5494 echo "configure:5495: checking for regfree" >&5
5495 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5501 /* System header to define __stub macros and hopefully few prototypes,
5502 which can conflict with char regfree(); below. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_regfree) || defined (__stub___regfree)
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 eval "ac_cv_func_regfree=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 eval "ac_cv_func_regfree=no"
5535 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5539 echo "$ac_t""no" 1>&6
5540 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5545 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5546 echo "configure:5547: checking for compatible POSIX regex" >&5
5547 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6
5551 if test "$cross_compiling" = yes; then
5552 ol_cv_c_posix_regex=cross
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5558 #include <sys/types.h>
5560 static char *pattern, *string;
5568 if(regcomp(&re, pattern, 0)) {
5572 string = "ALL MATCH";
5574 rc = regexec(&re, string, 0, (void*)0, 0);
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5583 ol_cv_c_posix_regex=yes
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 ol_cv_c_posix_regex=no
5595 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5597 if test "$ol_cv_c_posix_regex" = no ; then
5598 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5602 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5603 echo "configure:5604: checking for res_query" >&5
5604 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 /* System header to define __stub macros and hopefully few prototypes,
5611 which can conflict with char res_query(); below. */
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5621 /* The GNU C library defines this for functions which it implements
5622 to always fail with ENOSYS. Some functions are actually named
5623 something starting with __ and the normal name is an alias. */
5624 #if defined (__stub_res_query) || defined (__stub___res_query)
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 eval "ac_cv_func_res_query=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 eval "ac_cv_func_res_query=no"
5644 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5648 echo "$ac_t""no" 1>&6
5651 if test $ac_cv_func_res_query = no ; then
5652 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5653 echo "configure:5654: checking for res_query in -lbind" >&5
5654 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5655 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5658 ac_save_LIBS="$LIBS"
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663 /* Override any gcc2 internal prototype to avoid an error. */
5664 /* We use char because int might match the return type of a gcc2
5665 builtin and then its argument prototype would still apply. */
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 eval "ac_cv_lib_$ac_lib_var=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 eval "ac_cv_lib_$ac_lib_var=no"
5682 LIBS="$ac_save_LIBS"
5685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5688 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5689 cat >> confdefs.h <<EOF
5690 #define $ac_tr_lib 1
5696 echo "$ac_t""no" 1>&6
5699 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5702 if test $ac_cv_func_res_query = no ; then
5703 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5704 echo "configure:5705: checking for __res_query in -lbind" >&5
5705 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5706 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 ac_save_LIBS="$LIBS"
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 eval "ac_cv_lib_$ac_lib_var=yes"
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 eval "ac_cv_lib_$ac_lib_var=no"
5733 LIBS="$ac_save_LIBS"
5736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5740 cat >> confdefs.h <<EOF
5741 #define $ac_tr_lib 1
5747 echo "$ac_t""no" 1>&6
5750 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5753 if test $ac_cv_func_res_query = no ; then
5754 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5755 echo "configure:5756: checking for res_query in -lresolv" >&5
5756 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5758 echo $ac_n "(cached) $ac_c" 1>&6
5760 ac_save_LIBS="$LIBS"
5761 LIBS="-lresolv $LIBS"
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5774 if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5776 eval "ac_cv_lib_$ac_lib_var=yes"
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 eval "ac_cv_lib_$ac_lib_var=no"
5784 LIBS="$ac_save_LIBS"
5787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5788 echo "$ac_t""yes" 1>&6
5789 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5791 cat >> confdefs.h <<EOF
5792 #define $ac_tr_lib 1
5795 LIBS="-lresolv $LIBS"
5798 echo "$ac_t""no" 1>&6
5801 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5804 if test "$ac_cv_func_res_query" = yes ; then
5805 cat >> confdefs.h <<\EOF
5806 #define HAVE_RES_QUERY 1
5810 if test $ol_enable_dnssrv != no ; then
5815 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5816 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5824 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5825 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5826 -o $ol_with_kerberos = k425 ; then
5828 for ac_hdr in krb5.h
5830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5832 echo "configure:5833: checking for $ac_hdr" >&5
5833 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5842 { (eval echo configure:5843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5844 if test -z "$ac_err"; then
5846 eval "ac_cv_header_$ac_safe=yes"
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 eval "ac_cv_header_$ac_safe=no"
5856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5857 echo "$ac_t""yes" 1>&6
5858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5859 cat >> confdefs.h <<EOF
5860 #define $ac_tr_hdr 1
5864 echo "$ac_t""no" 1>&6
5869 if test $ac_cv_header_krb5_h = yes ; then
5870 for ac_hdr in heim_err.h
5872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_hdr" >&5
5875 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5884 { (eval echo configure:5885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5886 if test -z "$ac_err"; then
5888 eval "ac_cv_header_$ac_safe=yes"
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 eval "ac_cv_header_$ac_safe=no"
5898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5899 echo "$ac_t""yes" 1>&6
5900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5901 cat >> confdefs.h <<EOF
5902 #define $ac_tr_hdr 1
5906 echo "$ac_t""no" 1>&6
5910 if test $ac_cv_header_heim_err_h = yes ; then
5916 if test $krb5_impl = mit; then
5917 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5918 echo "configure:5919: checking for main in -lkrb5" >&5
5919 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5920 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 ac_save_LIBS="$LIBS"
5924 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5933 if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5935 eval "ac_cv_lib_$ac_lib_var=yes"
5937 echo "configure: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5940 eval "ac_cv_lib_$ac_lib_var=no"
5943 LIBS="$ac_save_LIBS"
5946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5949 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5951 echo "$ac_t""no" 1>&6
5956 elif test $krb5_impl = heimdal; then
5957 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5958 echo "configure:5959: checking for main in -lkrb5" >&5
5959 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 ac_save_LIBS="$LIBS"
5964 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5973 if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5975 eval "ac_cv_lib_$ac_lib_var=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 eval "ac_cv_lib_$ac_lib_var=no"
5983 LIBS="$ac_save_LIBS"
5986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5987 echo "$ac_t""yes" 1>&6
5989 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5991 echo "$ac_t""no" 1>&6
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_HEIMDAL_KERBEROS 1
6002 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6005 if test $have_krb5 = yes ; then
6008 cat >> confdefs.h <<\EOF
6013 if test $ol_enable_kpasswd != no ; then
6014 ol_link_kpasswd=yes;
6017 if test $ol_with_kerberos = k5only ; then
6018 ol_with_kerberos=found
6021 elif test $ol_with_kerberos != auto ; then
6022 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6028 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6029 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6031 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_hdr" >&5
6036 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6047 if test -z "$ac_err"; then
6049 eval "ac_cv_header_$ac_safe=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_header_$ac_safe=no"
6059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_hdr 1
6067 echo "$ac_t""no" 1>&6
6072 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6073 if test $krb5_impl = mit; then
6074 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6075 echo "configure:6076: checking for main in -lkrb4" >&5
6076 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6078 echo $ac_n "(cached) $ac_c" 1>&6
6080 ac_save_LIBS="$LIBS"
6081 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6092 eval "ac_cv_lib_$ac_lib_var=yes"
6094 echo "configure: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 eval "ac_cv_lib_$ac_lib_var=no"
6100 LIBS="$ac_save_LIBS"
6103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6106 KRB4_LIBS="-lkrb4 -ldes425"
6108 echo "$ac_t""no" 1>&6
6113 elif test $krb5_impl = heimdal; then
6114 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6115 echo "configure:6116: checking for main in -lkrb4" >&5
6116 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6117 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 ac_save_LIBS="$LIBS"
6121 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6130 if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6132 eval "ac_cv_lib_$ac_lib_var=yes"
6134 echo "configure: failed program was:" >&5
6135 cat conftest.$ac_ext >&5
6137 eval "ac_cv_lib_$ac_lib_var=no"
6140 LIBS="$ac_save_LIBS"
6143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6148 echo "$ac_t""no" 1>&6
6155 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6158 if test $have_k425 = yes ; then
6159 ol_with_kerberos=found
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_KRB425 1
6166 cat >> confdefs.h <<\EOF
6171 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6172 echo "configure:6173: checking for des_debug in Kerberos libraries" >&5
6173 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6178 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6183 #include <kerberosIV/krb.h>
6184 #include <kerberosIV/des.h>
6185 extern int des_debug;
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 ol_cv_var_des_debug=yes
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 ol_cv_var_des_debug=no
6207 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6209 if test $ol_cv_var_des_debug = yes ; then
6210 cat >> confdefs.h <<\EOF
6211 #define HAVE_DES_DEBUG 1
6221 if test $ol_link_krb5 = yes ; then
6222 ol_with_kerberos=found
6225 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6226 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6228 for ac_hdr in krb.h des.h krb-archaeology.h
6230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6232 echo "configure:6233: checking for $ac_hdr" >&5
6233 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6234 echo $ac_n "(cached) $ac_c" 1>&6
6236 cat > conftest.$ac_ext <<EOF
6237 #line 6238 "configure"
6238 #include "confdefs.h"
6241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6242 { (eval echo configure:6243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6244 if test -z "$ac_err"; then
6246 eval "ac_cv_header_$ac_safe=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6252 eval "ac_cv_header_$ac_safe=no"
6256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_hdr 1
6264 echo "$ac_t""no" 1>&6
6269 if test $ac_cv_header_krb_h = yes ; then
6270 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6271 echo "configure:6272: checking for main in -lkrb" >&5
6272 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6273 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 ac_save_LIBS="$LIBS"
6277 LIBS="-lkrb -ldes $LIBS"
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 eval "ac_cv_lib_$ac_lib_var=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_lib_$ac_lib_var=no"
6296 LIBS="$ac_save_LIBS"
6299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6303 echo "$ac_t""no" 1>&6
6308 if test $have_k4 = yes ; then
6309 ol_with_kerberos=found
6312 cat >> confdefs.h <<\EOF
6317 KRB4_LIBS="-lkrb -ldes"
6319 if test $ac_cv_header_krb_archaeology_h = yes ; then
6320 cat >> confdefs.h <<\EOF
6321 #define HAVE_KTH_KERBEROS 1
6329 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6333 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6336 elif test $ol_enable_kbind = yes ; then
6337 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6340 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6341 cat >> confdefs.h <<\EOF
6342 #define HAVE_KERBEROS 1
6346 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6347 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6351 if test $ol_with_tls != no ; then
6352 for ac_hdr in openssl/ssl.h ssl.h
6354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6356 echo "configure:6357: checking for $ac_hdr" >&5
6357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6366 { (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6368 if test -z "$ac_err"; then
6370 eval "ac_cv_header_$ac_safe=yes"
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 eval "ac_cv_header_$ac_safe=no"
6380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6383 cat >> confdefs.h <<EOF
6384 #define $ac_tr_hdr 1
6388 echo "$ac_t""no" 1>&6
6393 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6394 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6395 echo "configure:6396: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6396 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6400 ac_save_LIBS="$LIBS"
6401 LIBS="-lssl -lcrypto $LIBS"
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char SSLeay_add_ssl_algorithms();
6411 SSLeay_add_ssl_algorithms()
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6416 eval "ac_cv_lib_$ac_lib_var=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6421 eval "ac_cv_lib_$ac_lib_var=no"
6424 LIBS="$ac_save_LIBS"
6427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6432 echo "$ac_t""no" 1>&6
6437 if test $have_ssleay = no ; then
6438 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6439 echo "configure:6440: checking for SSL_library_init in -lssl" >&5
6440 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6441 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 ac_save_LIBS="$LIBS"
6445 LIBS="-lssl -lcrypto $LIBS"
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452 char SSL_library_init();
6458 if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6460 eval "ac_cv_lib_$ac_lib_var=yes"
6462 echo "configure: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6465 eval "ac_cv_lib_$ac_lib_var=no"
6468 LIBS="$ac_save_LIBS"
6471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6476 echo "$ac_t""no" 1>&6
6482 if test $have_ssleay = no ; then
6483 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6484 echo "configure:6485: checking for ssl3_accept in -lssl" >&5
6485 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6490 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6513 LIBS="$ac_save_LIBS"
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6521 echo "$ac_t""no" 1>&6
6527 if test $have_ssleay = yes ; then
6531 cat >> confdefs.h <<\EOF
6532 #define HAVE_SSLEAY 1
6536 if test $need_rsaref = yes; then
6537 cat >> confdefs.h <<\EOF
6538 #define HAVE_RSAREF 1
6542 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6544 TLS_LIBS="-lssl -lcrypto"
6550 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6553 if test $ol_link_tls = yes ; then
6554 cat >> confdefs.h <<\EOF
6559 elif test $ol_with_tls = auto ; then
6560 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6561 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6563 elif test $ol_with_tls != no ; then
6564 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6569 gethostbyname_r gethostbyaddr_r \
6572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6573 echo "configure:6574: checking for $ac_func" >&5
6574 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6591 /* The GNU C library defines this for functions which it implements
6592 to always fail with ENOSYS. Some functions are actually named
6593 something starting with __ and the normal name is an alias. */
6594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 eval "ac_cv_func_$ac_func=yes"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 eval "ac_cv_func_$ac_func=no"
6614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6615 echo "$ac_t""yes" 1>&6
6616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6617 cat >> confdefs.h <<EOF
6618 #define $ac_tr_func 1
6622 echo "$ac_t""no" 1>&6
6627 if test "$ac_cv_func_ctime_r" = no ; then
6628 ol_cv_func_ctime_r_nargs=0
6630 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6631 echo "configure:6632: checking number of arguments of ctime_r" >&5
6632 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6640 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6643 if { (eval echo configure:6644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6645 ol_cv_func_ctime_r_nargs3=yes
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 ol_cv_func_ctime_r_nargs3=no
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6659 time_t ti; char *buffer; ctime_r(&ti,buffer);
6662 if { (eval echo configure:6663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6664 ol_cv_func_ctime_r_nargs2=yes
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 ol_cv_func_ctime_r_nargs2=no
6673 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6674 $ol_cv_func_ctime_r_nargs2 = no ; then
6676 ol_cv_func_ctime_r_nargs=3
6678 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6679 $ol_cv_func_ctime_r_nargs2 = yes ; then
6681 ol_cv_func_ctime_r_nargs=2
6684 ol_cv_func_ctime_r_nargs=0
6689 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6691 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6692 cat >> confdefs.h <<EOF
6693 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6700 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6701 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6702 echo "configure:6703: checking number of arguments of gethostbyname_r" >&5
6703 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 #include <sys/types.h>
6710 #include <sys/socket.h>
6711 #include <netinet/in.h>
6713 #define BUFSIZE (sizeof(struct hostent)+10)
6715 struct hostent hent; char buffer[BUFSIZE];
6716 int bufsize=BUFSIZE;int h_errno;
6717 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6718 buffer, bufsize, &h_errno);
6721 if { (eval echo configure:6722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6723 ol_cv_func_gethostbyname_r_nargs5=yes
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 ol_cv_func_gethostbyname_r_nargs5=no
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <sys/types.h>
6736 #include <sys/socket.h>
6737 #include <netinet/in.h>
6739 #define BUFSIZE (sizeof(struct hostent)+10)
6741 struct hostent hent;struct hostent *rhent;
6742 char buffer[BUFSIZE];
6743 int bufsize=BUFSIZE;int h_errno;
6744 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6748 if { (eval echo configure:6749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6750 ol_cv_func_gethostbyname_r_nargs6=yes
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 ol_cv_func_gethostbyname_r_nargs6=no
6759 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6760 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6762 ol_cv_func_gethostbyname_r_nargs=5
6764 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6765 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6767 ol_cv_func_gethostbyname_r_nargs=6
6770 ol_cv_func_gethostbyname_r_nargs=0
6775 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6776 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6777 cat >> confdefs.h <<EOF
6778 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6784 ol_cv_func_gethostbyname_r_nargs=0
6787 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6788 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6789 echo "configure:6790: checking number of arguments of gethostbyaddr_r" >&5
6790 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796 #include <sys/types.h>
6797 #include <sys/socket.h>
6798 #include <netinet/in.h>
6800 #define BUFSIZE (sizeof(struct hostent)+10)
6802 struct hostent hent; char buffer[BUFSIZE];
6804 size_t alen=sizeof(struct in_addr);
6805 int bufsize=BUFSIZE;int h_errno;
6806 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6807 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6810 if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6812 ol_cv_func_gethostbyaddr_r_nargs7=yes
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 ol_cv_func_gethostbyaddr_r_nargs7=no
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 #include <sys/types.h>
6825 #include <sys/socket.h>
6826 #include <netinet/in.h>
6828 #define BUFSIZE (sizeof(struct hostent)+10)
6830 struct hostent hent;
6831 struct hostent *rhent; char buffer[BUFSIZE];
6833 size_t alen=sizeof(struct in_addr);
6834 int bufsize=BUFSIZE;int h_errno;
6835 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6836 alen, AF_INET, &hent, buffer, bufsize,
6840 if { (eval echo configure:6841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6842 ol_cv_func_gethostbyaddr_r_nargs8=yes
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 ol_cv_func_gethostbyaddr_r_nargs8=no
6851 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6852 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6854 ol_cv_func_gethostbyaddr_r_nargs=7
6856 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6857 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6859 ol_cv_func_gethostbyaddr_r_nargs=8
6862 ol_cv_func_gethostbyaddr_r_nargs=0
6867 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6868 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6869 cat >> confdefs.h <<EOF
6870 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6876 ol_cv_func_gethostbyaddr_r_nargs=0
6879 if test "$ac_cv_func_ctime_r" = yes \
6880 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6881 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6882 -a "$ac_cv_func_gethostbyname_r" = yes \
6883 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6884 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6885 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6886 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6887 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6890 cat >> confdefs.h <<\EOF
6891 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6898 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6899 -o $ol_with_threads = nt ; then
6902 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6903 echo "configure:6904: checking for NT Threads" >&5
6904 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6908 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6909 echo "configure:6910: checking for _beginthread" >&5
6910 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6911 echo $ac_n "(cached) $ac_c" 1>&6
6913 cat > conftest.$ac_ext <<EOF
6914 #line 6915 "configure"
6915 #include "confdefs.h"
6916 /* System header to define __stub macros and hopefully few prototypes,
6917 which can conflict with char _beginthread(); below. */
6919 /* Override any gcc2 internal prototype to avoid an error. */
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6922 char _beginthread();
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 eval "ac_cv_func__beginthread=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_func__beginthread=no"
6950 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ol_cv_nt_threads=yes
6954 echo "$ac_t""no" 1>&6
6961 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6963 if test $ol_cv_nt_threads = yes ; then
6964 cat >> confdefs.h <<\EOF
6965 #define HAVE_NT_THREADS 1
6971 if test "$ol_cv_nt_threads" = yes ; then
6973 ol_with_threads=found
6974 ol_with_yielding_select=yes
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_NT_SERVICE_MANAGER 1
6980 cat >> confdefs.h <<\EOF
6981 #define HAVE_NT_EVENT_LOG 1
6986 if test $ol_with_threads = nt ; then
6987 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6991 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6992 -o $ol_with_threads = posix ; then
6994 for ac_hdr in pthread.h
6996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6998 echo "configure:6999: checking for $ac_hdr" >&5
6999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure"
7004 #include "confdefs.h"
7007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7008 { (eval echo configure:7009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7010 if test -z "$ac_err"; then
7012 eval "ac_cv_header_$ac_safe=yes"
7015 echo "configure: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7018 eval "ac_cv_header_$ac_safe=no"
7022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7025 cat >> confdefs.h <<EOF
7026 #define $ac_tr_hdr 1
7030 echo "$ac_t""no" 1>&6
7035 if test $ac_cv_header_pthread_h = yes ; then
7036 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7037 echo "configure:7038: checking POSIX thread version" >&5
7038 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7046 # include <pthread.h>
7047 /* this check could be improved */
7048 # ifdef PTHREAD_ONCE_INIT
7049 pthread_version_final;
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 egrep "pthread_version_final" >/dev/null 2>&1; then
7056 ol_pthread_final=yes
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7068 # include <pthread.h>
7069 /* this check could be improved */
7070 # ifdef pthread_once_init
7071 pthread_version_draft4;
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7078 ol_pthread_draft4=yes
7081 ol_pthread_draft4=no
7086 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7087 ol_cv_pthread_version=final
7088 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7089 ol_cv_pthread_version=draft4
7091 ol_cv_pthread_version=unknown
7096 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7099 if test $ol_cv_pthread_version = final ; then
7100 cat >> confdefs.h <<\EOF
7101 #define HAVE_PTHREADS_FINAL 1
7104 elif test $ol_cv_pthread_version = draft4 ; then
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_PTHREADS_D4 1
7110 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7113 # consider threads found
7114 ol_with_threads=found
7117 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7118 echo "configure:7119: checking for LinuxThreads pthread.h" >&5
7119 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 #include <pthread.h>
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7130 ol_cv_header_linux_threads=yes
7133 ol_cv_header_linux_threads=no
7140 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7141 if test $ol_cv_header_linux_threads = yes; then
7142 cat >> confdefs.h <<\EOF
7143 #define HAVE_LINUX_THREADS 1
7149 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7150 echo "configure:7151: checking for GNU Pth pthread.h" >&5
7151 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 cat > conftest.$ac_ext <<EOF
7155 #line 7156 "configure"
7156 #include "confdefs.h"
7157 #include <pthread.h>
7158 #ifdef _POSIX_THREAD_IS_GNU_PTH
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 egrep "__gnu_pth__" >/dev/null 2>&1; then
7166 ol_cv_header_gnu_pth_pthread_h=yes
7169 ol_cv_header_gnu_pth_pthread_h=no
7176 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7179 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7180 for ac_hdr in sched.h
7182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7184 echo "configure:7185: checking for $ac_hdr" >&5
7185 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7186 echo $ac_n "(cached) $ac_c" 1>&6
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7194 { (eval echo configure:7195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7196 if test -z "$ac_err"; then
7198 eval "ac_cv_header_$ac_safe=yes"
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7204 eval "ac_cv_header_$ac_safe=no"
7208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7209 echo "$ac_t""yes" 1>&6
7210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7211 cat >> confdefs.h <<EOF
7212 #define $ac_tr_hdr 1
7216 echo "$ac_t""no" 1>&6
7223 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7224 echo "configure:7225: checking for pthread_create in default libraries" >&5
7225 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7229 if test "$cross_compiling" = yes; then
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 /* pthread test headers */
7234 #include <pthread.h>
7236 #define NULL (void*)0
7239 static void *task(p)
7242 return (void *) (p == NULL);
7247 /* pthread test function */
7250 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7251 /* This system (e.g. AIX) defaults detached; must override */
7252 pthread_attr_t attr;
7254 status = pthread_attr_init(&attr);
7255 if( status ) exit( status );
7257 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7258 if( status ) exit( status );
7262 #if HAVE_PTHREADS_D4
7263 #define ATTR pthread_attr_default
7268 /* make sure pthread_create() isn't just a stub */
7269 status = pthread_create(&t, ATTR, task, NULL);
7270 if( status ) exit( status );
7272 /* make sure pthread_detach() isn't just a stub */
7273 #if HAVE_PTHREADS_D4
7274 status = pthread_detach( &t );
7276 status = pthread_detach( t );
7279 #ifdef HAVE_LINUX_THREADS
7280 pthread_kill_other_threads_np();
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7289 ol_cv_pthread_create=yes
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 ol_cv_pthread_create=no
7298 cat > conftest.$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* pthread test headers */
7302 #include <pthread.h>
7304 #define NULL (void*)0
7307 static void *task(p)
7310 return (void *) (p == NULL);
7314 int main(argc, argv)
7319 /* pthread test function */
7322 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7323 /* This system (e.g. AIX) defaults detached; must override */
7324 pthread_attr_t attr;
7326 status = pthread_attr_init(&attr);
7327 if( status ) exit( status );
7329 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7330 if( status ) exit( status );
7334 #if HAVE_PTHREADS_D4
7335 #define ATTR pthread_attr_default
7340 /* make sure pthread_create() isn't just a stub */
7341 status = pthread_create(&t, ATTR, task, NULL);
7342 if( status ) exit( status );
7344 /* make sure pthread_detach() isn't just a stub */
7345 #if HAVE_PTHREADS_D4
7346 status = pthread_detach( &t );
7348 status = pthread_detach( t );
7351 #ifdef HAVE_LINUX_THREADS
7352 pthread_kill_other_threads_np();
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7362 ol_cv_pthread_create=yes
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 ol_cv_pthread_create=no
7374 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7376 if test $ol_cv_pthread_create != no ; then
7377 ol_link_threads=posix
7381 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7382 if test "$ol_link_threads" = no ; then
7384 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7385 echo "configure:7386: checking for pthread link with -kthread" >&5
7386 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7387 echo $ac_n "(cached) $ac_c" 1>&6
7392 LIBS="-kthread $LIBS"
7394 if test "$cross_compiling" = yes; then
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* pthread test headers */
7399 #include <pthread.h>
7401 #define NULL (void*)0
7404 static void *task(p)
7407 return (void *) (p == NULL);
7412 /* pthread test function */
7415 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7416 /* This system (e.g. AIX) defaults detached; must override */
7417 pthread_attr_t attr;
7419 status = pthread_attr_init(&attr);
7420 if( status ) exit( status );
7422 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7423 if( status ) exit( status );
7427 #if HAVE_PTHREADS_D4
7428 #define ATTR pthread_attr_default
7433 /* make sure pthread_create() isn't just a stub */
7434 status = pthread_create(&t, ATTR, task, NULL);
7435 if( status ) exit( status );
7437 /* make sure pthread_detach() isn't just a stub */
7438 #if HAVE_PTHREADS_D4
7439 status = pthread_detach( &t );
7441 status = pthread_detach( t );
7444 #ifdef HAVE_LINUX_THREADS
7445 pthread_kill_other_threads_np();
7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7454 ol_cv_pthread_kthread=yes
7456 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5
7459 ol_cv_pthread_kthread=no
7463 cat > conftest.$ac_ext <<EOF
7464 #line 7465 "configure"
7465 #include "confdefs.h"
7466 /* pthread test headers */
7467 #include <pthread.h>
7469 #define NULL (void*)0
7472 static void *task(p)
7475 return (void *) (p == NULL);
7479 int main(argc, argv)
7484 /* pthread test function */
7487 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7488 /* This system (e.g. AIX) defaults detached; must override */
7489 pthread_attr_t attr;
7491 status = pthread_attr_init(&attr);
7492 if( status ) exit( status );
7494 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7495 if( status ) exit( status );
7499 #if HAVE_PTHREADS_D4
7500 #define ATTR pthread_attr_default
7505 /* make sure pthread_create() isn't just a stub */
7506 status = pthread_create(&t, ATTR, task, NULL);
7507 if( status ) exit( status );
7509 /* make sure pthread_detach() isn't just a stub */
7510 #if HAVE_PTHREADS_D4
7511 status = pthread_detach( &t );
7513 status = pthread_detach( t );
7516 #ifdef HAVE_LINUX_THREADS
7517 pthread_kill_other_threads_np();
7525 if { (eval echo configure:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7527 ol_cv_pthread_kthread=yes
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7532 ol_cv_pthread_kthread=no
7543 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7545 if test $ol_cv_pthread_kthread = yes ; then
7546 ol_link_pthreads="-kthread"
7547 ol_link_threads=posix
7551 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7552 if test "$ol_link_threads" = no ; then
7554 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7555 echo "configure:7556: checking for pthread link with -pthread" >&5
7556 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7562 LIBS="-pthread $LIBS"
7564 if test "$cross_compiling" = yes; then
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* pthread test headers */
7569 #include <pthread.h>
7571 #define NULL (void*)0
7574 static void *task(p)
7577 return (void *) (p == NULL);
7582 /* pthread test function */
7585 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7586 /* This system (e.g. AIX) defaults detached; must override */
7587 pthread_attr_t attr;
7589 status = pthread_attr_init(&attr);
7590 if( status ) exit( status );
7592 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7593 if( status ) exit( status );
7597 #if HAVE_PTHREADS_D4
7598 #define ATTR pthread_attr_default
7603 /* make sure pthread_create() isn't just a stub */
7604 status = pthread_create(&t, ATTR, task, NULL);
7605 if( status ) exit( status );
7607 /* make sure pthread_detach() isn't just a stub */
7608 #if HAVE_PTHREADS_D4
7609 status = pthread_detach( &t );
7611 status = pthread_detach( t );
7614 #ifdef HAVE_LINUX_THREADS
7615 pthread_kill_other_threads_np();
7622 if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7624 ol_cv_pthread_pthread=yes
7626 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7629 ol_cv_pthread_pthread=no
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* pthread test headers */
7637 #include <pthread.h>
7639 #define NULL (void*)0
7642 static void *task(p)
7645 return (void *) (p == NULL);
7649 int main(argc, argv)
7654 /* pthread test function */
7657 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7658 /* This system (e.g. AIX) defaults detached; must override */
7659 pthread_attr_t attr;
7661 status = pthread_attr_init(&attr);
7662 if( status ) exit( status );
7664 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7665 if( status ) exit( status );
7669 #if HAVE_PTHREADS_D4
7670 #define ATTR pthread_attr_default
7675 /* make sure pthread_create() isn't just a stub */
7676 status = pthread_create(&t, ATTR, task, NULL);
7677 if( status ) exit( status );
7679 /* make sure pthread_detach() isn't just a stub */
7680 #if HAVE_PTHREADS_D4
7681 status = pthread_detach( &t );
7683 status = pthread_detach( t );
7686 #ifdef HAVE_LINUX_THREADS
7687 pthread_kill_other_threads_np();
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7697 ol_cv_pthread_pthread=yes
7699 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7702 ol_cv_pthread_pthread=no
7713 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7715 if test $ol_cv_pthread_pthread = yes ; then
7716 ol_link_pthreads="-pthread"
7717 ol_link_threads=posix
7721 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7722 if test "$ol_link_threads" = no ; then
7724 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7725 echo "configure:7726: checking for pthread link with -pthreads" >&5
7726 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7732 LIBS="-pthreads $LIBS"
7734 if test "$cross_compiling" = yes; then
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* pthread test headers */
7739 #include <pthread.h>
7741 #define NULL (void*)0
7744 static void *task(p)
7747 return (void *) (p == NULL);
7752 /* pthread test function */
7755 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7756 /* This system (e.g. AIX) defaults detached; must override */
7757 pthread_attr_t attr;
7759 status = pthread_attr_init(&attr);
7760 if( status ) exit( status );
7762 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7763 if( status ) exit( status );
7767 #if HAVE_PTHREADS_D4
7768 #define ATTR pthread_attr_default
7773 /* make sure pthread_create() isn't just a stub */
7774 status = pthread_create(&t, ATTR, task, NULL);
7775 if( status ) exit( status );
7777 /* make sure pthread_detach() isn't just a stub */
7778 #if HAVE_PTHREADS_D4
7779 status = pthread_detach( &t );
7781 status = pthread_detach( t );
7784 #ifdef HAVE_LINUX_THREADS
7785 pthread_kill_other_threads_np();
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7794 ol_cv_pthread_pthreads=yes
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7799 ol_cv_pthread_pthreads=no
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7806 /* pthread test headers */
7807 #include <pthread.h>
7809 #define NULL (void*)0
7812 static void *task(p)
7815 return (void *) (p == NULL);
7819 int main(argc, argv)
7824 /* pthread test function */
7827 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7828 /* This system (e.g. AIX) defaults detached; must override */
7829 pthread_attr_t attr;
7831 status = pthread_attr_init(&attr);
7832 if( status ) exit( status );
7834 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7835 if( status ) exit( status );
7839 #if HAVE_PTHREADS_D4
7840 #define ATTR pthread_attr_default
7845 /* make sure pthread_create() isn't just a stub */
7846 status = pthread_create(&t, ATTR, task, NULL);
7847 if( status ) exit( status );
7849 /* make sure pthread_detach() isn't just a stub */
7850 #if HAVE_PTHREADS_D4
7851 status = pthread_detach( &t );
7853 status = pthread_detach( t );
7856 #ifdef HAVE_LINUX_THREADS
7857 pthread_kill_other_threads_np();
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7867 ol_cv_pthread_pthreads=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 ol_cv_pthread_pthreads=no
7883 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7885 if test $ol_cv_pthread_pthreads = yes ; then
7886 ol_link_pthreads="-pthreads"
7887 ol_link_threads=posix
7891 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7892 if test "$ol_link_threads" = no ; then
7894 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7895 echo "configure:7896: checking for pthread link with -mthreads" >&5
7896 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7902 LIBS="-mthreads $LIBS"
7904 if test "$cross_compiling" = yes; then
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7908 /* pthread test headers */
7909 #include <pthread.h>
7911 #define NULL (void*)0
7914 static void *task(p)
7917 return (void *) (p == NULL);
7922 /* pthread test function */
7925 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7926 /* This system (e.g. AIX) defaults detached; must override */
7927 pthread_attr_t attr;
7929 status = pthread_attr_init(&attr);
7930 if( status ) exit( status );
7932 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7933 if( status ) exit( status );
7937 #if HAVE_PTHREADS_D4
7938 #define ATTR pthread_attr_default
7943 /* make sure pthread_create() isn't just a stub */
7944 status = pthread_create(&t, ATTR, task, NULL);
7945 if( status ) exit( status );
7947 /* make sure pthread_detach() isn't just a stub */
7948 #if HAVE_PTHREADS_D4
7949 status = pthread_detach( &t );
7951 status = pthread_detach( t );
7954 #ifdef HAVE_LINUX_THREADS
7955 pthread_kill_other_threads_np();
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 ol_cv_pthread_mthreads=yes
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 ol_cv_pthread_mthreads=no
7973 cat > conftest.$ac_ext <<EOF
7974 #line 7975 "configure"
7975 #include "confdefs.h"
7976 /* pthread test headers */
7977 #include <pthread.h>
7979 #define NULL (void*)0
7982 static void *task(p)
7985 return (void *) (p == NULL);
7989 int main(argc, argv)
7994 /* pthread test function */
7997 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7998 /* This system (e.g. AIX) defaults detached; must override */
7999 pthread_attr_t attr;
8001 status = pthread_attr_init(&attr);
8002 if( status ) exit( status );
8004 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8005 if( status ) exit( status );
8009 #if HAVE_PTHREADS_D4
8010 #define ATTR pthread_attr_default
8015 /* make sure pthread_create() isn't just a stub */
8016 status = pthread_create(&t, ATTR, task, NULL);
8017 if( status ) exit( status );
8019 /* make sure pthread_detach() isn't just a stub */
8020 #if HAVE_PTHREADS_D4
8021 status = pthread_detach( &t );
8023 status = pthread_detach( t );
8026 #ifdef HAVE_LINUX_THREADS
8027 pthread_kill_other_threads_np();
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8037 ol_cv_pthread_mthreads=yes
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8042 ol_cv_pthread_mthreads=no
8053 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8055 if test $ol_cv_pthread_mthreads = yes ; then
8056 ol_link_pthreads="-mthreads"
8057 ol_link_threads=posix
8061 # Pthread try link: -thread (ol_cv_pthread_thread)
8062 if test "$ol_link_threads" = no ; then
8064 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8065 echo "configure:8066: checking for pthread link with -thread" >&5
8066 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8072 LIBS="-thread $LIBS"
8074 if test "$cross_compiling" = yes; then
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 /* pthread test headers */
8079 #include <pthread.h>
8081 #define NULL (void*)0
8084 static void *task(p)
8087 return (void *) (p == NULL);
8092 /* pthread test function */
8095 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8096 /* This system (e.g. AIX) defaults detached; must override */
8097 pthread_attr_t attr;
8099 status = pthread_attr_init(&attr);
8100 if( status ) exit( status );
8102 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8103 if( status ) exit( status );
8107 #if HAVE_PTHREADS_D4
8108 #define ATTR pthread_attr_default
8113 /* make sure pthread_create() isn't just a stub */
8114 status = pthread_create(&t, ATTR, task, NULL);
8115 if( status ) exit( status );
8117 /* make sure pthread_detach() isn't just a stub */
8118 #if HAVE_PTHREADS_D4
8119 status = pthread_detach( &t );
8121 status = pthread_detach( t );
8124 #ifdef HAVE_LINUX_THREADS
8125 pthread_kill_other_threads_np();
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8134 ol_cv_pthread_thread=yes
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8139 ol_cv_pthread_thread=no
8143 cat > conftest.$ac_ext <<EOF
8144 #line 8145 "configure"
8145 #include "confdefs.h"
8146 /* pthread test headers */
8147 #include <pthread.h>
8149 #define NULL (void*)0
8152 static void *task(p)
8155 return (void *) (p == NULL);
8159 int main(argc, argv)
8164 /* pthread test function */
8167 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8168 /* This system (e.g. AIX) defaults detached; must override */
8169 pthread_attr_t attr;
8171 status = pthread_attr_init(&attr);
8172 if( status ) exit( status );
8174 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8175 if( status ) exit( status );
8179 #if HAVE_PTHREADS_D4
8180 #define ATTR pthread_attr_default
8185 /* make sure pthread_create() isn't just a stub */
8186 status = pthread_create(&t, ATTR, task, NULL);
8187 if( status ) exit( status );
8189 /* make sure pthread_detach() isn't just a stub */
8190 #if HAVE_PTHREADS_D4
8191 status = pthread_detach( &t );
8193 status = pthread_detach( t );
8196 #ifdef HAVE_LINUX_THREADS
8197 pthread_kill_other_threads_np();
8205 if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8207 ol_cv_pthread_thread=yes
8209 echo "configure: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 ol_cv_pthread_thread=no
8223 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8225 if test $ol_cv_pthread_thread = yes ; then
8226 ol_link_pthreads="-thread"
8227 ol_link_threads=posix
8232 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8233 if test "$ol_link_threads" = no ; then
8234 # try -lpthread -lmach -lexc -lc_r
8235 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8236 echo "configure:8237: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8237 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8243 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8245 if test "$cross_compiling" = yes; then
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* pthread test headers */
8250 #include <pthread.h>
8252 #define NULL (void*)0
8255 static void *task(p)
8258 return (void *) (p == NULL);
8263 /* pthread test function */
8266 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8267 /* This system (e.g. AIX) defaults detached; must override */
8268 pthread_attr_t attr;
8270 status = pthread_attr_init(&attr);
8271 if( status ) exit( status );
8273 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8274 if( status ) exit( status );
8278 #if HAVE_PTHREADS_D4
8279 #define ATTR pthread_attr_default
8284 /* make sure pthread_create() isn't just a stub */
8285 status = pthread_create(&t, ATTR, task, NULL);
8286 if( status ) exit( status );
8288 /* make sure pthread_detach() isn't just a stub */
8289 #if HAVE_PTHREADS_D4
8290 status = pthread_detach( &t );
8292 status = pthread_detach( t );
8295 #ifdef HAVE_LINUX_THREADS
8296 pthread_kill_other_threads_np();
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* pthread test headers */
8318 #include <pthread.h>
8320 #define NULL (void*)0
8323 static void *task(p)
8326 return (void *) (p == NULL);
8330 int main(argc, argv)
8335 /* pthread test function */
8338 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8339 /* This system (e.g. AIX) defaults detached; must override */
8340 pthread_attr_t attr;
8342 status = pthread_attr_init(&attr);
8343 if( status ) exit( status );
8345 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8346 if( status ) exit( status );
8350 #if HAVE_PTHREADS_D4
8351 #define ATTR pthread_attr_default
8356 /* make sure pthread_create() isn't just a stub */
8357 status = pthread_create(&t, ATTR, task, NULL);
8358 if( status ) exit( status );
8360 /* make sure pthread_detach() isn't just a stub */
8361 #if HAVE_PTHREADS_D4
8362 status = pthread_detach( &t );
8364 status = pthread_detach( t );
8367 #ifdef HAVE_LINUX_THREADS
8368 pthread_kill_other_threads_np();
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8378 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8383 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8394 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8396 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8397 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8398 ol_link_threads=posix
8402 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8403 if test "$ol_link_threads" = no ; then
8404 # try -lpthread -lmach -lexc
8405 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8406 echo "configure:8407: checking for pthread link with -lpthread -lmach -lexc" >&5
8407 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8413 LIBS="-lpthread -lmach -lexc $LIBS"
8415 if test "$cross_compiling" = yes; then
8416 cat > conftest.$ac_ext <<EOF
8417 #line 8418 "configure"
8418 #include "confdefs.h"
8419 /* pthread test headers */
8420 #include <pthread.h>
8422 #define NULL (void*)0
8425 static void *task(p)
8428 return (void *) (p == NULL);
8433 /* pthread test function */
8436 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8437 /* This system (e.g. AIX) defaults detached; must override */
8438 pthread_attr_t attr;
8440 status = pthread_attr_init(&attr);
8441 if( status ) exit( status );
8443 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8444 if( status ) exit( status );
8448 #if HAVE_PTHREADS_D4
8449 #define ATTR pthread_attr_default
8454 /* make sure pthread_create() isn't just a stub */
8455 status = pthread_create(&t, ATTR, task, NULL);
8456 if( status ) exit( status );
8458 /* make sure pthread_detach() isn't just a stub */
8459 #if HAVE_PTHREADS_D4
8460 status = pthread_detach( &t );
8462 status = pthread_detach( t );
8465 #ifdef HAVE_LINUX_THREADS
8466 pthread_kill_other_threads_np();
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 ol_cv_pthread_lpthread_lmach_lexc=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 ol_cv_pthread_lpthread_lmach_lexc=no
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* pthread test headers */
8488 #include <pthread.h>
8490 #define NULL (void*)0
8493 static void *task(p)
8496 return (void *) (p == NULL);
8500 int main(argc, argv)
8505 /* pthread test function */
8508 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8509 /* This system (e.g. AIX) defaults detached; must override */
8510 pthread_attr_t attr;
8512 status = pthread_attr_init(&attr);
8513 if( status ) exit( status );
8515 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8516 if( status ) exit( status );
8520 #if HAVE_PTHREADS_D4
8521 #define ATTR pthread_attr_default
8526 /* make sure pthread_create() isn't just a stub */
8527 status = pthread_create(&t, ATTR, task, NULL);
8528 if( status ) exit( status );
8530 /* make sure pthread_detach() isn't just a stub */
8531 #if HAVE_PTHREADS_D4
8532 status = pthread_detach( &t );
8534 status = pthread_detach( t );
8537 #ifdef HAVE_LINUX_THREADS
8538 pthread_kill_other_threads_np();
8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8548 ol_cv_pthread_lpthread_lmach_lexc=yes
8550 echo "configure: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8553 ol_cv_pthread_lpthread_lmach_lexc=no
8564 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8566 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8567 ol_link_pthreads="-lpthread -lmach -lexc"
8568 ol_link_threads=posix
8573 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8574 if test "$ol_link_threads" = no ; then
8575 # try -lpthread -Wl,-woff,85
8576 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8577 echo "configure:8578: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8578 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8584 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8586 if test "$cross_compiling" = yes; then
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 /* pthread test headers */
8591 #include <pthread.h>
8593 #define NULL (void*)0
8596 static void *task(p)
8599 return (void *) (p == NULL);
8604 /* pthread test function */
8607 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8608 /* This system (e.g. AIX) defaults detached; must override */
8609 pthread_attr_t attr;
8611 status = pthread_attr_init(&attr);
8612 if( status ) exit( status );
8614 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8615 if( status ) exit( status );
8619 #if HAVE_PTHREADS_D4
8620 #define ATTR pthread_attr_default
8625 /* make sure pthread_create() isn't just a stub */
8626 status = pthread_create(&t, ATTR, task, NULL);
8627 if( status ) exit( status );
8629 /* make sure pthread_detach() isn't just a stub */
8630 #if HAVE_PTHREADS_D4
8631 status = pthread_detach( &t );
8633 status = pthread_detach( t );
8636 #ifdef HAVE_LINUX_THREADS
8637 pthread_kill_other_threads_np();
8644 if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8646 ol_cv_pthread_lib_lpthread_woff=yes
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8651 ol_cv_pthread_lib_lpthread_woff=no
8655 cat > conftest.$ac_ext <<EOF
8656 #line 8657 "configure"
8657 #include "confdefs.h"
8658 /* pthread test headers */
8659 #include <pthread.h>
8661 #define NULL (void*)0
8664 static void *task(p)
8667 return (void *) (p == NULL);
8671 int main(argc, argv)
8676 /* pthread test function */
8679 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8680 /* This system (e.g. AIX) defaults detached; must override */
8681 pthread_attr_t attr;
8683 status = pthread_attr_init(&attr);
8684 if( status ) exit( status );
8686 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8687 if( status ) exit( status );
8691 #if HAVE_PTHREADS_D4
8692 #define ATTR pthread_attr_default
8697 /* make sure pthread_create() isn't just a stub */
8698 status = pthread_create(&t, ATTR, task, NULL);
8699 if( status ) exit( status );
8701 /* make sure pthread_detach() isn't just a stub */
8702 #if HAVE_PTHREADS_D4
8703 status = pthread_detach( &t );
8705 status = pthread_detach( t );
8708 #ifdef HAVE_LINUX_THREADS
8709 pthread_kill_other_threads_np();
8717 if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8719 ol_cv_pthread_lib_lpthread_woff=yes
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8724 ol_cv_pthread_lib_lpthread_woff=no
8735 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8737 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8738 ol_link_pthreads="-lpthread -Wl,-woff,85"
8739 ol_link_threads=posix
8744 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8745 if test "$ol_link_threads" = no ; then
8747 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8748 echo "configure:8749: checking for pthread link with -lpthread" >&5
8749 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8750 echo $ac_n "(cached) $ac_c" 1>&6
8755 LIBS="-lpthread $LIBS"
8757 if test "$cross_compiling" = yes; then
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 /* pthread test headers */
8762 #include <pthread.h>
8764 #define NULL (void*)0
8767 static void *task(p)
8770 return (void *) (p == NULL);
8775 /* pthread test function */
8778 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8779 /* This system (e.g. AIX) defaults detached; must override */
8780 pthread_attr_t attr;
8782 status = pthread_attr_init(&attr);
8783 if( status ) exit( status );
8785 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8786 if( status ) exit( status );
8790 #if HAVE_PTHREADS_D4
8791 #define ATTR pthread_attr_default
8796 /* make sure pthread_create() isn't just a stub */
8797 status = pthread_create(&t, ATTR, task, NULL);
8798 if( status ) exit( status );
8800 /* make sure pthread_detach() isn't just a stub */
8801 #if HAVE_PTHREADS_D4
8802 status = pthread_detach( &t );
8804 status = pthread_detach( t );
8807 #ifdef HAVE_LINUX_THREADS
8808 pthread_kill_other_threads_np();
8815 if { (eval echo configure:8816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8817 ol_cv_pthread_lpthread=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8822 ol_cv_pthread_lpthread=no
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8829 /* pthread test headers */
8830 #include <pthread.h>
8832 #define NULL (void*)0
8835 static void *task(p)
8838 return (void *) (p == NULL);
8842 int main(argc, argv)
8847 /* pthread test function */
8850 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8851 /* This system (e.g. AIX) defaults detached; must override */
8852 pthread_attr_t attr;
8854 status = pthread_attr_init(&attr);
8855 if( status ) exit( status );
8857 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8858 if( status ) exit( status );
8862 #if HAVE_PTHREADS_D4
8863 #define ATTR pthread_attr_default
8868 /* make sure pthread_create() isn't just a stub */
8869 status = pthread_create(&t, ATTR, task, NULL);
8870 if( status ) exit( status );
8872 /* make sure pthread_detach() isn't just a stub */
8873 #if HAVE_PTHREADS_D4
8874 status = pthread_detach( &t );
8876 status = pthread_detach( t );
8879 #ifdef HAVE_LINUX_THREADS
8880 pthread_kill_other_threads_np();
8888 if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8890 ol_cv_pthread_lpthread=yes
8892 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8895 ol_cv_pthread_lpthread=no
8906 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8908 if test $ol_cv_pthread_lpthread = yes ; then
8909 ol_link_pthreads="-lpthread"
8910 ol_link_threads=posix
8914 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8915 if test "$ol_link_threads" = no ; then
8917 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8918 echo "configure:8919: checking for pthread link with -lc_r" >&5
8919 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8927 if test "$cross_compiling" = yes; then
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 /* pthread test headers */
8932 #include <pthread.h>
8934 #define NULL (void*)0
8937 static void *task(p)
8940 return (void *) (p == NULL);
8945 /* pthread test function */
8948 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8949 /* This system (e.g. AIX) defaults detached; must override */
8950 pthread_attr_t attr;
8952 status = pthread_attr_init(&attr);
8953 if( status ) exit( status );
8955 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8956 if( status ) exit( status );
8960 #if HAVE_PTHREADS_D4
8961 #define ATTR pthread_attr_default
8966 /* make sure pthread_create() isn't just a stub */
8967 status = pthread_create(&t, ATTR, task, NULL);
8968 if( status ) exit( status );
8970 /* make sure pthread_detach() isn't just a stub */
8971 #if HAVE_PTHREADS_D4
8972 status = pthread_detach( &t );
8974 status = pthread_detach( t );
8977 #ifdef HAVE_LINUX_THREADS
8978 pthread_kill_other_threads_np();
8985 if { (eval echo configure:8986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8987 ol_cv_pthread_lc_r=yes
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 ol_cv_pthread_lc_r=no
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
8999 /* pthread test headers */
9000 #include <pthread.h>
9002 #define NULL (void*)0
9005 static void *task(p)
9008 return (void *) (p == NULL);
9012 int main(argc, argv)
9017 /* pthread test function */
9020 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9021 /* This system (e.g. AIX) defaults detached; must override */
9022 pthread_attr_t attr;
9024 status = pthread_attr_init(&attr);
9025 if( status ) exit( status );
9027 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9028 if( status ) exit( status );
9032 #if HAVE_PTHREADS_D4
9033 #define ATTR pthread_attr_default
9038 /* make sure pthread_create() isn't just a stub */
9039 status = pthread_create(&t, ATTR, task, NULL);
9040 if( status ) exit( status );
9042 /* make sure pthread_detach() isn't just a stub */
9043 #if HAVE_PTHREADS_D4
9044 status = pthread_detach( &t );
9046 status = pthread_detach( t );
9049 #ifdef HAVE_LINUX_THREADS
9050 pthread_kill_other_threads_np();
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9060 ol_cv_pthread_lc_r=yes
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9065 ol_cv_pthread_lc_r=no
9076 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9078 if test $ol_cv_pthread_lc_r = yes ; then
9079 ol_link_pthreads="-lc_r"
9080 ol_link_threads=posix
9085 # Pthread try link: -threads (ol_cv_pthread_threads)
9086 if test "$ol_link_threads" = no ; then
9088 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9089 echo "configure:9090: checking for pthread link with -threads" >&5
9090 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9096 LIBS="-threads $LIBS"
9098 if test "$cross_compiling" = yes; then
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9102 /* pthread test headers */
9103 #include <pthread.h>
9105 #define NULL (void*)0
9108 static void *task(p)
9111 return (void *) (p == NULL);
9116 /* pthread test function */
9119 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9120 /* This system (e.g. AIX) defaults detached; must override */
9121 pthread_attr_t attr;
9123 status = pthread_attr_init(&attr);
9124 if( status ) exit( status );
9126 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9127 if( status ) exit( status );
9131 #if HAVE_PTHREADS_D4
9132 #define ATTR pthread_attr_default
9137 /* make sure pthread_create() isn't just a stub */
9138 status = pthread_create(&t, ATTR, task, NULL);
9139 if( status ) exit( status );
9141 /* make sure pthread_detach() isn't just a stub */
9142 #if HAVE_PTHREADS_D4
9143 status = pthread_detach( &t );
9145 status = pthread_detach( t );
9148 #ifdef HAVE_LINUX_THREADS
9149 pthread_kill_other_threads_np();
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9158 ol_cv_pthread_threads=yes
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 ol_cv_pthread_threads=no
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 /* pthread test headers */
9171 #include <pthread.h>
9173 #define NULL (void*)0
9176 static void *task(p)
9179 return (void *) (p == NULL);
9183 int main(argc, argv)
9188 /* pthread test function */
9191 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9192 /* This system (e.g. AIX) defaults detached; must override */
9193 pthread_attr_t attr;
9195 status = pthread_attr_init(&attr);
9196 if( status ) exit( status );
9198 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9199 if( status ) exit( status );
9203 #if HAVE_PTHREADS_D4
9204 #define ATTR pthread_attr_default
9209 /* make sure pthread_create() isn't just a stub */
9210 status = pthread_create(&t, ATTR, task, NULL);
9211 if( status ) exit( status );
9213 /* make sure pthread_detach() isn't just a stub */
9214 #if HAVE_PTHREADS_D4
9215 status = pthread_detach( &t );
9217 status = pthread_detach( t );
9220 #ifdef HAVE_LINUX_THREADS
9221 pthread_kill_other_threads_np();
9229 if { (eval echo configure:9230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9231 ol_cv_pthread_threads=yes
9233 echo "configure: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9236 ol_cv_pthread_threads=no
9247 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9249 if test $ol_cv_pthread_threads = yes ; then
9250 ol_link_pthreads="-threads"
9251 ol_link_threads=posix
9256 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9257 if test "$ol_link_threads" = no ; then
9258 # try -lpthreads -lmach -lexc -lc_r
9259 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9260 echo "configure:9261: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9261 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9267 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9269 if test "$cross_compiling" = yes; then
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 /* pthread test headers */
9274 #include <pthread.h>
9276 #define NULL (void*)0
9279 static void *task(p)
9282 return (void *) (p == NULL);
9287 /* pthread test function */
9290 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9291 /* This system (e.g. AIX) defaults detached; must override */
9292 pthread_attr_t attr;
9294 status = pthread_attr_init(&attr);
9295 if( status ) exit( status );
9297 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9298 if( status ) exit( status );
9302 #if HAVE_PTHREADS_D4
9303 #define ATTR pthread_attr_default
9308 /* make sure pthread_create() isn't just a stub */
9309 status = pthread_create(&t, ATTR, task, NULL);
9310 if( status ) exit( status );
9312 /* make sure pthread_detach() isn't just a stub */
9313 #if HAVE_PTHREADS_D4
9314 status = pthread_detach( &t );
9316 status = pthread_detach( t );
9319 #ifdef HAVE_LINUX_THREADS
9320 pthread_kill_other_threads_np();
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341 /* pthread test headers */
9342 #include <pthread.h>
9344 #define NULL (void*)0
9347 static void *task(p)
9350 return (void *) (p == NULL);
9354 int main(argc, argv)
9359 /* pthread test function */
9362 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9363 /* This system (e.g. AIX) defaults detached; must override */
9364 pthread_attr_t attr;
9366 status = pthread_attr_init(&attr);
9367 if( status ) exit( status );
9369 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9370 if( status ) exit( status );
9374 #if HAVE_PTHREADS_D4
9375 #define ATTR pthread_attr_default
9380 /* make sure pthread_create() isn't just a stub */
9381 status = pthread_create(&t, ATTR, task, NULL);
9382 if( status ) exit( status );
9384 /* make sure pthread_detach() isn't just a stub */
9385 #if HAVE_PTHREADS_D4
9386 status = pthread_detach( &t );
9388 status = pthread_detach( t );
9391 #ifdef HAVE_LINUX_THREADS
9392 pthread_kill_other_threads_np();
9400 if { (eval echo configure:9401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9402 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9407 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9418 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9420 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9421 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9422 ol_link_threads=posix
9426 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9427 if test "$ol_link_threads" = no ; then
9428 # try -lpthreads -lmach -lexc
9429 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9430 echo "configure:9431: checking for pthread link with -lpthreads -lmach -lexc" >&5
9431 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9437 LIBS="-lpthreads -lmach -lexc $LIBS"
9439 if test "$cross_compiling" = yes; then
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9443 /* pthread test headers */
9444 #include <pthread.h>
9446 #define NULL (void*)0
9449 static void *task(p)
9452 return (void *) (p == NULL);
9457 /* pthread test function */
9460 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9461 /* This system (e.g. AIX) defaults detached; must override */
9462 pthread_attr_t attr;
9464 status = pthread_attr_init(&attr);
9465 if( status ) exit( status );
9467 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9468 if( status ) exit( status );
9472 #if HAVE_PTHREADS_D4
9473 #define ATTR pthread_attr_default
9478 /* make sure pthread_create() isn't just a stub */
9479 status = pthread_create(&t, ATTR, task, NULL);
9480 if( status ) exit( status );
9482 /* make sure pthread_detach() isn't just a stub */
9483 #if HAVE_PTHREADS_D4
9484 status = pthread_detach( &t );
9486 status = pthread_detach( t );
9489 #ifdef HAVE_LINUX_THREADS
9490 pthread_kill_other_threads_np();
9497 if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9499 ol_cv_pthread_lpthreads_lmach_lexc=yes
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 ol_cv_pthread_lpthreads_lmach_lexc=no
9508 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure"
9510 #include "confdefs.h"
9511 /* pthread test headers */
9512 #include <pthread.h>
9514 #define NULL (void*)0
9517 static void *task(p)
9520 return (void *) (p == NULL);
9524 int main(argc, argv)
9529 /* pthread test function */
9532 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9533 /* This system (e.g. AIX) defaults detached; must override */
9534 pthread_attr_t attr;
9536 status = pthread_attr_init(&attr);
9537 if( status ) exit( status );
9539 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9540 if( status ) exit( status );
9544 #if HAVE_PTHREADS_D4
9545 #define ATTR pthread_attr_default
9550 /* make sure pthread_create() isn't just a stub */
9551 status = pthread_create(&t, ATTR, task, NULL);
9552 if( status ) exit( status );
9554 /* make sure pthread_detach() isn't just a stub */
9555 #if HAVE_PTHREADS_D4
9556 status = pthread_detach( &t );
9558 status = pthread_detach( t );
9561 #ifdef HAVE_LINUX_THREADS
9562 pthread_kill_other_threads_np();
9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9572 ol_cv_pthread_lpthreads_lmach_lexc=yes
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9577 ol_cv_pthread_lpthreads_lmach_lexc=no
9588 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9590 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9591 ol_link_pthreads="-lpthreads -lmach -lexc"
9592 ol_link_threads=posix
9596 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9597 if test "$ol_link_threads" = no ; then
9598 # try -lpthreads -lexc
9599 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9600 echo "configure:9601: checking for pthread link with -lpthreads -lexc" >&5
9601 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9607 LIBS="-lpthreads -lexc $LIBS"
9609 if test "$cross_compiling" = yes; then
9610 cat > conftest.$ac_ext <<EOF
9611 #line 9612 "configure"
9612 #include "confdefs.h"
9613 /* pthread test headers */
9614 #include <pthread.h>
9616 #define NULL (void*)0
9619 static void *task(p)
9622 return (void *) (p == NULL);
9627 /* pthread test function */
9630 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9631 /* This system (e.g. AIX) defaults detached; must override */
9632 pthread_attr_t attr;
9634 status = pthread_attr_init(&attr);
9635 if( status ) exit( status );
9637 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9638 if( status ) exit( status );
9642 #if HAVE_PTHREADS_D4
9643 #define ATTR pthread_attr_default
9648 /* make sure pthread_create() isn't just a stub */
9649 status = pthread_create(&t, ATTR, task, NULL);
9650 if( status ) exit( status );
9652 /* make sure pthread_detach() isn't just a stub */
9653 #if HAVE_PTHREADS_D4
9654 status = pthread_detach( &t );
9656 status = pthread_detach( t );
9659 #ifdef HAVE_LINUX_THREADS
9660 pthread_kill_other_threads_np();
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9669 ol_cv_pthread_lpthreads_lexc=yes
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9674 ol_cv_pthread_lpthreads_lexc=no
9678 cat > conftest.$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9681 /* pthread test headers */
9682 #include <pthread.h>
9684 #define NULL (void*)0
9687 static void *task(p)
9690 return (void *) (p == NULL);
9694 int main(argc, argv)
9699 /* pthread test function */
9702 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9703 /* This system (e.g. AIX) defaults detached; must override */
9704 pthread_attr_t attr;
9706 status = pthread_attr_init(&attr);
9707 if( status ) exit( status );
9709 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9710 if( status ) exit( status );
9714 #if HAVE_PTHREADS_D4
9715 #define ATTR pthread_attr_default
9720 /* make sure pthread_create() isn't just a stub */
9721 status = pthread_create(&t, ATTR, task, NULL);
9722 if( status ) exit( status );
9724 /* make sure pthread_detach() isn't just a stub */
9725 #if HAVE_PTHREADS_D4
9726 status = pthread_detach( &t );
9728 status = pthread_detach( t );
9731 #ifdef HAVE_LINUX_THREADS
9732 pthread_kill_other_threads_np();
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9742 ol_cv_pthread_lpthreads_lexc=yes
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9747 ol_cv_pthread_lpthreads_lexc=no
9758 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9760 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9761 ol_link_pthreads="-lpthreads -lexc"
9762 ol_link_threads=posix
9767 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9768 if test "$ol_link_threads" = no ; then
9770 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9771 echo "configure:9772: checking for pthread link with -lpthreads" >&5
9772 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9773 echo $ac_n "(cached) $ac_c" 1>&6
9778 LIBS="-lpthreads $LIBS"
9780 if test "$cross_compiling" = yes; then
9781 cat > conftest.$ac_ext <<EOF
9782 #line 9783 "configure"
9783 #include "confdefs.h"
9784 /* pthread test headers */
9785 #include <pthread.h>
9787 #define NULL (void*)0
9790 static void *task(p)
9793 return (void *) (p == NULL);
9798 /* pthread test function */
9801 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9802 /* This system (e.g. AIX) defaults detached; must override */
9803 pthread_attr_t attr;
9805 status = pthread_attr_init(&attr);
9806 if( status ) exit( status );
9808 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9809 if( status ) exit( status );
9813 #if HAVE_PTHREADS_D4
9814 #define ATTR pthread_attr_default
9819 /* make sure pthread_create() isn't just a stub */
9820 status = pthread_create(&t, ATTR, task, NULL);
9821 if( status ) exit( status );
9823 /* make sure pthread_detach() isn't just a stub */
9824 #if HAVE_PTHREADS_D4
9825 status = pthread_detach( &t );
9827 status = pthread_detach( t );
9830 #ifdef HAVE_LINUX_THREADS
9831 pthread_kill_other_threads_np();
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 ol_cv_pthread_lib_lpthreads=yes
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9845 ol_cv_pthread_lib_lpthreads=no
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 /* pthread test headers */
9853 #include <pthread.h>
9855 #define NULL (void*)0
9858 static void *task(p)
9861 return (void *) (p == NULL);
9865 int main(argc, argv)
9870 /* pthread test function */
9873 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9874 /* This system (e.g. AIX) defaults detached; must override */
9875 pthread_attr_t attr;
9877 status = pthread_attr_init(&attr);
9878 if( status ) exit( status );
9880 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9881 if( status ) exit( status );
9885 #if HAVE_PTHREADS_D4
9886 #define ATTR pthread_attr_default
9891 /* make sure pthread_create() isn't just a stub */
9892 status = pthread_create(&t, ATTR, task, NULL);
9893 if( status ) exit( status );
9895 /* make sure pthread_detach() isn't just a stub */
9896 #if HAVE_PTHREADS_D4
9897 status = pthread_detach( &t );
9899 status = pthread_detach( t );
9902 #ifdef HAVE_LINUX_THREADS
9903 pthread_kill_other_threads_np();
9911 if { (eval echo configure:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9913 ol_cv_pthread_lib_lpthreads=yes
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9918 ol_cv_pthread_lib_lpthreads=no
9929 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9931 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9932 ol_link_pthreads="-lpthreads"
9933 ol_link_threads=posix
9938 if test $ol_link_threads != no ; then
9939 cat >> confdefs.h <<\EOF
9940 #define HAVE_PTHREADS 1
9944 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9946 save_CPPFLAGS="$CPPFLAGS"
9948 LIBS="$LTHREAD_LIBS $LIBS"
9950 for ac_func in sched_yield pthread_yield
9952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9953 echo "configure:9954: checking for $ac_func" >&5
9954 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func(); below. */
9963 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9971 /* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9982 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9984 eval "ac_cv_func_$ac_func=yes"
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9989 eval "ac_cv_func_$ac_func=no"
9994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9997 cat >> confdefs.h <<EOF
9998 #define $ac_tr_func 1
10002 echo "$ac_t""no" 1>&6
10007 if test $ac_cv_func_sched_yield = no -a \
10008 $ac_cv_func_pthread_yield = no ; then
10009 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10010 echo "configure:10011: checking for sched_yield in -lrt" >&5
10011 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10012 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10015 ac_save_LIBS="$LIBS"
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 /* Override any gcc2 internal prototype to avoid an error. */
10021 /* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023 char sched_yield();
10029 if { (eval echo configure:10030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10031 eval "ac_cv_lib_$ac_lib_var=yes"
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10036 eval "ac_cv_lib_$ac_lib_var=no"
10039 LIBS="$ac_save_LIBS"
10042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10043 echo "$ac_t""yes" 1>&6
10044 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_SCHED_YIELD 1
10049 ac_cv_func_sched_yield=yes
10051 echo "$ac_t""no" 1>&6
10052 ac_cv_func_sched_yield=no
10056 if test $ac_cv_func_sched_yield = no -a \
10057 $ac_cv_func_pthread_yield = no ; then
10058 for ac_func in thr_yield
10060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10061 echo "configure:10062: checking for $ac_func" >&5
10062 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func(); below. */
10070 #include <assert.h>
10071 /* Override any gcc2 internal prototype to avoid an error. */
10072 /* We use char because int might match the return type of a gcc2
10073 builtin and then its argument prototype would still apply. */
10079 /* The GNU C library defines this for functions which it implements
10080 to always fail with ENOSYS. Some functions are actually named
10081 something starting with __ and the normal name is an alias. */
10082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10090 if { (eval echo configure:10091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10092 eval "ac_cv_func_$ac_func=yes"
10094 echo "configure: failed program was:" >&5
10095 cat conftest.$ac_ext >&5
10097 eval "ac_cv_func_$ac_func=no"
10102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10103 echo "$ac_t""yes" 1>&6
10104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10105 cat >> confdefs.h <<EOF
10106 #define $ac_tr_func 1
10110 echo "$ac_t""no" 1>&6
10115 if test $ac_cv_func_sched_yield = no -a \
10116 $ac_cv_func_pthread_yield = no -a \
10117 "$ac_cv_func_thr_yield" = no ; then
10118 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10121 for ac_func in pthread_kill pthread_rwlock_destroy
10123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10124 echo "configure:10125: checking for $ac_func" >&5
10125 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func(); below. */
10133 #include <assert.h>
10134 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10153 if { (eval echo configure:10154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10155 eval "ac_cv_func_$ac_func=yes"
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10160 eval "ac_cv_func_$ac_func=no"
10165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10168 cat >> confdefs.h <<EOF
10169 #define $ac_tr_func 1
10173 echo "$ac_t""no" 1>&6
10178 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10179 echo "configure:10180: checking for pthread_detach with <pthread.h>" >&5
10180 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10188 #include <pthread.h>
10190 #define NULL (void*)0
10194 pthread_detach(NULL);
10197 if { (eval echo configure:10198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10199 ol_cv_func_pthread_detach=yes
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10204 ol_cv_func_pthread_detach=no
10210 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10212 if test $ol_cv_func_pthread_detach = no ; then
10213 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10216 cat >> confdefs.h <<\EOF
10217 #define HAVE_PTHREAD_DETACH 1
10222 pthread_setconcurrency \
10223 pthread_getconcurrency \
10224 thr_setconcurrency \
10225 thr_getconcurrency \
10228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10229 echo "configure:10230: checking for $ac_func" >&5
10230 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 /* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func(); below. */
10238 #include <assert.h>
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10247 /* The GNU C library defines this for functions which it implements
10248 to always fail with ENOSYS. Some functions are actually named
10249 something starting with __ and the normal name is an alias. */
10250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10258 if { (eval echo configure:10259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10260 eval "ac_cv_func_$ac_func=yes"
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10265 eval "ac_cv_func_$ac_func=no"
10270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10271 echo "$ac_t""yes" 1>&6
10272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10273 cat >> confdefs.h <<EOF
10274 #define $ac_tr_func 1
10278 echo "$ac_t""no" 1>&6
10284 for ac_func in pthread_kill_other_threads_np
10286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10287 echo "configure:10288: checking for $ac_func" >&5
10288 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 /* System header to define __stub macros and hopefully few prototypes,
10295 which can conflict with char $ac_func(); below. */
10296 #include <assert.h>
10297 /* Override any gcc2 internal prototype to avoid an error. */
10298 /* We use char because int might match the return type of a gcc2
10299 builtin and then its argument prototype would still apply. */
10305 /* The GNU C library defines this for functions which it implements
10306 to always fail with ENOSYS. Some functions are actually named
10307 something starting with __ and the normal name is an alias. */
10308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10316 if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10318 eval "ac_cv_func_$ac_func=yes"
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10323 eval "ac_cv_func_$ac_func=no"
10328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10329 echo "$ac_t""yes" 1>&6
10330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10331 cat >> confdefs.h <<EOF
10332 #define $ac_tr_func 1
10336 echo "$ac_t""no" 1>&6
10340 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10341 echo "configure:10342: checking for LinuxThreads implementation" >&5
10342 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10345 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10348 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10353 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10354 echo "configure:10355: checking for LinuxThreads consistency" >&5
10355 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10359 if test $ol_cv_header_linux_threads = yes -a \
10360 $ol_cv_sys_linux_threads = yes; then
10361 ol_cv_linux_threads=yes
10362 elif test $ol_cv_header_linux_threads = no -a \
10363 $ol_cv_sys_linux_threads = no; then
10364 ol_cv_linux_threads=no
10366 ol_cv_linux_threads=error
10371 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10374 if test $ol_cv_linux_threads = error; then
10375 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10378 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10379 echo "configure:10380: checking if pthread_create() works" >&5
10380 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10384 if test "$cross_compiling" = yes; then
10385 ol_cv_pthread_create_works=yes
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390 /* pthread test headers */
10391 #include <pthread.h>
10393 #define NULL (void*)0
10396 static void *task(p)
10399 return (void *) (p == NULL);
10403 int main(argc, argv)
10408 /* pthread test function */
10411 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10412 /* This system (e.g. AIX) defaults detached; must override */
10413 pthread_attr_t attr;
10415 status = pthread_attr_init(&attr);
10416 if( status ) exit( status );
10418 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10419 if( status ) exit( status );
10423 #if HAVE_PTHREADS_D4
10424 #define ATTR pthread_attr_default
10429 /* make sure pthread_create() isn't just a stub */
10430 status = pthread_create(&t, ATTR, task, NULL);
10431 if( status ) exit( status );
10433 /* make sure pthread_detach() isn't just a stub */
10434 #if HAVE_PTHREADS_D4
10435 status = pthread_detach( &t );
10437 status = pthread_detach( t );
10440 #ifdef HAVE_LINUX_THREADS
10441 pthread_kill_other_threads_np();
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10451 ol_cv_pthread_create_works=yes
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 ol_cv_pthread_create_works=no
10463 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10465 if test $ol_cv_pthread_create_works = no ; then
10466 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10469 if test $ol_with_yielding_select = auto ; then
10470 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10471 echo "configure:10472: checking if select yields when using pthreads" >&5
10472 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10476 if test "$cross_compiling" = yes; then
10477 ol_cv_pthread_select_yields=cross
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10483 #include <sys/types.h>
10484 #include <sys/time.h>
10485 #include <unistd.h>
10486 #include <pthread.h>
10488 #define NULL (void*) 0
10491 static int fildes[2];
10493 static void *task(p)
10505 FD_SET(fildes[0], &rfds);
10507 /* we're not interested in any fds */
10508 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10515 exit(0); /* if we exit here, the select blocked the whole process */
10518 int main(argc, argv)
10524 /* create a pipe to select */
10525 if(pipe(&fildes[0])) {
10530 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10531 (void) pthread_setconcurrency(2);
10533 #ifdef HAVE_THR_SETCONCURRENCY
10534 /* Set Solaris LWP concurrency to 2 */
10535 thr_setconcurrency(2);
10539 #if HAVE_PTHREADS_D4
10540 pthread_create(&t, pthread_attr_default, task, NULL);
10542 pthread_create(&t, NULL, task, NULL);
10545 #if HAVE_SCHED_YIELD
10546 sched_yield(); /* make sure task runs first */
10548 #ifdef HAVE_PTHREAD_YIELD
10549 pthread_yield(); /* make sure task runs first */
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10558 ol_cv_pthread_select_yields=no
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 ol_cv_pthread_select_yields=yes
10570 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10572 if test $ol_cv_pthread_select_yields = cross ; then
10573 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10576 if test $ol_cv_pthread_select_yields = yes ; then
10577 ol_with_yielding_select=yes
10581 CPPFLAGS="$save_CPPFLAGS"
10584 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10588 if test $ol_with_threads = posix ; then
10589 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10593 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10594 -o $ol_with_threads = mach ; then
10596 for ac_hdr in mach/cthreads.h
10598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10600 echo "configure:10601: checking for $ac_hdr" >&5
10601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10610 { (eval echo configure:10611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10612 if test -z "$ac_err"; then
10614 eval "ac_cv_header_$ac_safe=yes"
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 eval "ac_cv_header_$ac_safe=no"
10624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10627 cat >> confdefs.h <<EOF
10628 #define $ac_tr_hdr 1
10632 echo "$ac_t""no" 1>&6
10636 if test $ac_cv_header_mach_cthreads_h = yes ; then
10637 ol_with_threads=found
10639 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10640 echo "configure:10641: checking for cthread_fork" >&5
10641 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char cthread_fork(); below. */
10649 #include <assert.h>
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653 char cthread_fork();
10658 /* The GNU C library defines this for functions which it implements
10659 to always fail with ENOSYS. Some functions are actually named
10660 something starting with __ and the normal name is an alias. */
10661 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_func_cthread_fork=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_func_cthread_fork=no"
10681 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10682 echo "$ac_t""yes" 1>&6
10683 ol_link_threads=yes
10685 echo "$ac_t""no" 1>&6
10689 if test $ol_link_threads = no ; then
10690 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10691 echo "configure:10692: checking for cthread_fork with -all_load" >&5
10692 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10697 LIBS="-all_load $LIBS"
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10701 #include <mach/cthreads.h>
10704 cthread_fork((void *)0, (void *)0);
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 ol_cv_cthread_all_load=yes
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 ol_cv_cthread_all_load=no
10722 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10724 if test $ol_cv_cthread_all_load = yes ; then
10725 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10726 ol_link_threads=mach
10730 if test $ol_link_threads != no ; then
10731 : check for cthread specific functionality here
10732 cat >> confdefs.h <<\EOF
10733 #define HAVE_MACH_CTHREADS 1
10737 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10741 if test $ol_with_threads = mach ; then
10742 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10746 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10747 -o $ol_with_threads = pth ; then
10749 for ac_hdr in pth.h
10751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10753 echo "configure:10754: checking for $ac_hdr" >&5
10754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10763 { (eval echo configure:10764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10765 if test -z "$ac_err"; then
10767 eval "ac_cv_header_$ac_safe=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_header_$ac_safe=no"
10777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10778 echo "$ac_t""yes" 1>&6
10779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10780 cat >> confdefs.h <<EOF
10781 #define $ac_tr_hdr 1
10785 echo "$ac_t""no" 1>&6
10790 if test $ac_cv_header_pth_h = yes ; then
10791 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10792 echo "configure:10793: checking for pth_version in -lpth" >&5
10793 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10797 ac_save_LIBS="$LIBS"
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 /* Override any gcc2 internal prototype to avoid an error. */
10803 /* We use char because int might match the return type of a gcc2
10804 builtin and then its argument prototype would still apply. */
10805 char pth_version();
10811 if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10813 eval "ac_cv_lib_$ac_lib_var=yes"
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10818 eval "ac_cv_lib_$ac_lib_var=no"
10821 LIBS="$ac_save_LIBS"
10824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10828 echo "$ac_t""no" 1>&6
10833 if test $have_pth = yes ; then
10834 cat >> confdefs.h <<\EOF
10835 #define HAVE_GNU_PTH 1
10838 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10839 ol_link_threads=pth
10841 if test $ol_with_yielding_select = auto ; then
10842 ol_with_yielding_select=yes
10848 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10849 -o $ol_with_threads = lwp ; then
10851 for ac_hdr in thread.h synch.h
10853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10855 echo "configure:10856: checking for $ac_hdr" >&5
10856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10859 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10865 { (eval echo configure:10866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10867 if test -z "$ac_err"; then
10869 eval "ac_cv_header_$ac_safe=yes"
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10875 eval "ac_cv_header_$ac_safe=no"
10879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10882 cat >> confdefs.h <<EOF
10883 #define $ac_tr_hdr 1
10887 echo "$ac_t""no" 1>&6
10891 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10892 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10893 echo "configure:10894: checking for thr_create in -lthread" >&5
10894 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10898 ac_save_LIBS="$LIBS"
10899 LIBS="-lthread $LIBS"
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_lib_$ac_lib_var=no"
10922 LIBS="$ac_save_LIBS"
10925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10929 echo "$ac_t""no" 1>&6
10934 if test $have_thr = yes ; then
10935 cat >> confdefs.h <<\EOF
10939 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10940 ol_link_threads=thr
10942 if test $ol_with_yielding_select = auto ; then
10943 ol_with_yielding_select=yes
10947 thr_setconcurrency \
10948 thr_getconcurrency \
10951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10952 echo "configure:10953: checking for $ac_func" >&5
10953 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10956 cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func(); below. */
10961 #include <assert.h>
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10981 if { (eval echo configure:10982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10983 eval "ac_cv_func_$ac_func=yes"
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10988 eval "ac_cv_func_$ac_func=no"
10993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10994 echo "$ac_t""yes" 1>&6
10995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10996 cat >> confdefs.h <<EOF
10997 #define $ac_tr_func 1
11001 echo "$ac_t""no" 1>&6
11008 for ac_hdr in lwp/lwp.h
11010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11012 echo "configure:11013: checking for $ac_hdr" >&5
11013 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11039 cat >> confdefs.h <<EOF
11040 #define $ac_tr_hdr 1
11044 echo "$ac_t""no" 1>&6
11048 if test $ac_cv_header_lwp_lwp_h = yes ; then
11049 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11050 echo "configure:11051: checking for lwp_create in -llwp" >&5
11051 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11055 ac_save_LIBS="$LIBS"
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11060 /* Override any gcc2 internal prototype to avoid an error. */
11061 /* We use char because int might match the return type of a gcc2
11062 builtin and then its argument prototype would still apply. */
11069 if { (eval echo configure:11070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11071 eval "ac_cv_lib_$ac_lib_var=yes"
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11076 eval "ac_cv_lib_$ac_lib_var=no"
11079 LIBS="$ac_save_LIBS"
11082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11083 echo "$ac_t""yes" 1>&6
11086 echo "$ac_t""no" 1>&6
11091 if test $have_lwp = yes ; then
11092 cat >> confdefs.h <<\EOF
11096 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11097 ol_link_threads=lwp
11099 if test $ol_with_yielding_select = auto ; then
11100 ol_with_yielding_select=no
11106 if test $ol_with_yielding_select = yes ; then
11107 cat >> confdefs.h <<\EOF
11108 #define HAVE_YIELDING_SELECT 1
11113 if test $ol_with_threads = manual ; then
11114 ol_link_threads=yes
11116 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11118 for ac_hdr in pthread.h sched.h
11120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11122 echo "configure:11123: checking for $ac_hdr" >&5
11123 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134 if test -z "$ac_err"; then
11136 eval "ac_cv_header_$ac_safe=yes"
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 eval "ac_cv_header_$ac_safe=no"
11146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11149 cat >> confdefs.h <<EOF
11150 #define $ac_tr_hdr 1
11154 echo "$ac_t""no" 1>&6
11158 for ac_func in sched_yield pthread_yield
11160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11161 echo "configure:11162: checking for $ac_func" >&5
11162 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11163 echo $ac_n "(cached) $ac_c" 1>&6
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 /* System header to define __stub macros and hopefully few prototypes,
11169 which can conflict with char $ac_func(); below. */
11170 #include <assert.h>
11171 /* Override any gcc2 internal prototype to avoid an error. */
11172 /* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11192 eval "ac_cv_func_$ac_func=yes"
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 eval "ac_cv_func_$ac_func=no"
11202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11203 echo "$ac_t""yes" 1>&6
11204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11205 cat >> confdefs.h <<EOF
11206 #define $ac_tr_func 1
11210 echo "$ac_t""no" 1>&6
11215 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11216 echo "configure:11217: checking for LinuxThreads pthread.h" >&5
11217 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <pthread.h>
11225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11226 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11228 ol_cv_header_linux_threads=yes
11231 ol_cv_header_linux_threads=no
11238 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11239 if test $ol_cv_header_linux_threads = yes; then
11240 cat >> confdefs.h <<\EOF
11241 #define HAVE_LINUX_THREADS 1
11247 for ac_hdr in mach/cthreads.h
11249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_hdr" >&5
11252 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11261 { (eval echo configure:11262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11263 if test -z "$ac_err"; then
11265 eval "ac_cv_header_$ac_safe=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 eval "ac_cv_header_$ac_safe=no"
11275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11276 echo "$ac_t""yes" 1>&6
11277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11278 cat >> confdefs.h <<EOF
11279 #define $ac_tr_hdr 1
11283 echo "$ac_t""no" 1>&6
11287 for ac_hdr in lwp/lwp.h
11289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11291 echo "configure:11292: checking for $ac_hdr" >&5
11292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11301 { (eval echo configure:11302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11303 if test -z "$ac_err"; then
11305 eval "ac_cv_header_$ac_safe=yes"
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 eval "ac_cv_header_$ac_safe=no"
11315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11318 cat >> confdefs.h <<EOF
11319 #define $ac_tr_hdr 1
11323 echo "$ac_t""no" 1>&6
11327 for ac_hdr in thread.h synch.h
11329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11331 echo "configure:11332: checking for $ac_hdr" >&5
11332 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11341 { (eval echo configure:11342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11343 if test -z "$ac_err"; then
11345 eval "ac_cv_header_$ac_safe=yes"
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11351 eval "ac_cv_header_$ac_safe=no"
11355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11356 echo "$ac_t""yes" 1>&6
11357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11358 cat >> confdefs.h <<EOF
11359 #define $ac_tr_hdr 1
11363 echo "$ac_t""no" 1>&6
11369 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11370 cat >> confdefs.h <<\EOF
11371 #define REENTRANT 1
11374 cat >> confdefs.h <<\EOF
11375 #define _REENTRANT 1
11378 cat >> confdefs.h <<\EOF
11379 #define THREAD_SAFE 1
11382 cat >> confdefs.h <<\EOF
11383 #define _THREAD_SAFE 1
11386 cat >> confdefs.h <<\EOF
11387 #define THREADSAFE 1
11390 cat >> confdefs.h <<\EOF
11391 #define _THREADSAFE 1
11394 cat >> confdefs.h <<\EOF
11395 #define _SGI_MP_SOURCE 1
11399 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11400 echo "configure:11401: checking for thread specific errno" >&5
11401 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 ol_cv_errno_thread_specific=yes
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11420 ol_cv_errno_thread_specific=no
11426 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11428 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11429 echo "configure:11430: checking for thread specific h_errno" >&5
11430 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11444 ol_cv_h_errno_thread_specific=yes
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11449 ol_cv_h_errno_thread_specific=no
11455 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11457 if test $ol_cv_errno_thread_specific != yes \
11458 -o $ol_cv_h_errno_thread_specific != yes ; then
11459 LIBS="$LTHREAD_LIBS $LIBS"
11465 if test $ol_link_threads = no ; then
11466 if test $ol_with_threads = yes ; then
11467 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11470 if test $ol_with_threads = auto ; then
11471 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11475 cat >> confdefs.h <<\EOF
11476 #define NO_THREADS 1
11482 if test $ol_link_threads != no ; then
11483 cat >> confdefs.h <<\EOF
11484 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11491 if test $ol_with_ldbm_api = auto \
11492 -o $ol_with_ldbm_api = berkeley \
11493 -o $ol_with_ldbm_api = bcompat ; then
11495 if test $ol_with_ldbm_api = bcompat; then \
11496 ol_cv_berkeley_db=no
11497 for ac_hdr in db_185.h db.h
11499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_hdr" >&5
11502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11511 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513 if test -z "$ac_err"; then
11515 eval "ac_cv_header_$ac_safe=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_header_$ac_safe=no"
11525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11537 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11538 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11539 echo "configure:11540: checking if Berkeley DB header compatibility" >&5
11540 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11549 # include <db_185.h>
11554 /* this check could be improved */
11555 #ifndef DB_VERSION_MAJOR
11556 # define DB_VERSION_MAJOR 1
11559 #if DB_VERSION_MAJOR == 1
11564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11565 egrep "__db_version_1" >/dev/null 2>&1; then
11567 ol_cv_header_db1=yes
11570 ol_cv_header_db1=no
11576 echo "$ac_t""$ol_cv_header_db1" 1>&6
11578 if test ol_cv_header_db1=yes ; then
11580 if test $ol_cv_lib_db = no ; then
11581 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11582 echo "configure:11583: checking for Berkeley DB link (default)" >&5
11583 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11589 LIBS="$ol_DB_LIB $LIBS"
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11595 #ifdef HAVE_DB_185_H
11596 # include <db_185.h>
11601 #ifndef DB_VERSION_MAJOR
11602 # define DB_VERSION_MAJOR 1
11606 #define NULL ((void*)0)
11611 #if DB_VERSION_MAJOR > 2
11612 db_env_create( NULL, 0 );
11613 #elif DB_VERSION_MAJOR > 1
11614 db_appexit( NULL );
11616 (void) dbopen( NULL, 0, 0, 0, NULL);
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11636 echo "$ac_t""$ol_cv_db_none" 1>&6
11638 if test $ol_cv_db_none = yes ; then
11643 if test $ol_cv_lib_db = no ; then
11644 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11645 echo "configure:11646: checking for Berkeley DB link (-ldb)" >&5
11646 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11652 LIBS="$ol_DB_LIB $LIBS"
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11658 #ifdef HAVE_DB_185_H
11659 # include <db_185.h>
11664 #ifndef DB_VERSION_MAJOR
11665 # define DB_VERSION_MAJOR 1
11669 #define NULL ((void*)0)
11674 #if DB_VERSION_MAJOR > 2
11675 db_env_create( NULL, 0 );
11676 #elif DB_VERSION_MAJOR > 1
11677 db_appexit( NULL );
11679 (void) dbopen( NULL, 0, 0, 0, NULL);
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11699 echo "$ac_t""$ol_cv_db_db" 1>&6
11701 if test $ol_cv_db_db = yes ; then
11706 if test $ol_cv_lib_db = no ; then
11707 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11708 echo "configure:11709: checking for Berkeley DB link (-ldb3)" >&5
11709 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11715 LIBS="$ol_DB_LIB $LIBS"
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11721 #ifdef HAVE_DB_185_H
11722 # include <db_185.h>
11727 #ifndef DB_VERSION_MAJOR
11728 # define DB_VERSION_MAJOR 1
11732 #define NULL ((void*)0)
11737 #if DB_VERSION_MAJOR > 2
11738 db_env_create( NULL, 0 );
11739 #elif DB_VERSION_MAJOR > 1
11740 db_appexit( NULL );
11742 (void) dbopen( NULL, 0, 0, 0, NULL);
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11762 echo "$ac_t""$ol_cv_db_db3" 1>&6
11764 if test $ol_cv_db_db3 = yes ; then
11769 if test $ol_cv_lib_db = no ; then
11770 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11771 echo "configure:11772: checking for Berkeley DB link (-ldb2)" >&5
11772 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11778 LIBS="$ol_DB_LIB $LIBS"
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11784 #ifdef HAVE_DB_185_H
11785 # include <db_185.h>
11790 #ifndef DB_VERSION_MAJOR
11791 # define DB_VERSION_MAJOR 1
11795 #define NULL ((void*)0)
11800 #if DB_VERSION_MAJOR > 2
11801 db_env_create( NULL, 0 );
11802 #elif DB_VERSION_MAJOR > 1
11803 db_appexit( NULL );
11805 (void) dbopen( NULL, 0, 0, 0, NULL);
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11825 echo "$ac_t""$ol_cv_db_db2" 1>&6
11827 if test $ol_cv_db_db2 = yes ; then
11832 if test $ol_cv_lib_db = no ; then
11833 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11834 echo "configure:11835: checking for Berkeley DB link (-ldb1)" >&5
11835 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11841 LIBS="$ol_DB_LIB $LIBS"
11843 cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11847 #ifdef HAVE_DB_185_H
11848 # include <db_185.h>
11853 #ifndef DB_VERSION_MAJOR
11854 # define DB_VERSION_MAJOR 1
11858 #define NULL ((void*)0)
11863 #if DB_VERSION_MAJOR > 2
11864 db_env_create( NULL, 0 );
11865 #elif DB_VERSION_MAJOR > 1
11866 db_appexit( NULL );
11868 (void) dbopen( NULL, 0, 0, 0, NULL);
11873 if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11888 echo "$ac_t""$ol_cv_db_db1" 1>&6
11890 if test $ol_cv_db_db1 = yes ; then
11896 if test "$ol_cv_lib_db" != no ; then
11897 ol_cv_berkeley_db=yes
11903 ol_cv_berkeley_db=no
11906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11908 echo "configure:11909: checking for $ac_hdr" >&5
11909 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11918 { (eval echo configure:11919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11920 if test -z "$ac_err"; then
11922 eval "ac_cv_header_$ac_safe=yes"
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11928 eval "ac_cv_header_$ac_safe=no"
11932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11933 echo "$ac_t""yes" 1>&6
11934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11935 cat >> confdefs.h <<EOF
11936 #define $ac_tr_hdr 1
11940 echo "$ac_t""no" 1>&6
11944 if test $ac_cv_header_db_h = yes; then
11946 if test $ol_cv_lib_db = no ; then
11947 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11948 echo "configure:11949: checking for Berkeley DB link (default)" >&5
11949 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11950 echo $ac_n "(cached) $ac_c" 1>&6
11955 LIBS="$ol_DB_LIB $LIBS"
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11961 #ifdef HAVE_DB_185_H
11962 # include <db_185.h>
11967 #ifndef DB_VERSION_MAJOR
11968 # define DB_VERSION_MAJOR 1
11972 #define NULL ((void*)0)
11977 #if DB_VERSION_MAJOR > 2
11978 db_env_create( NULL, 0 );
11979 #elif DB_VERSION_MAJOR > 1
11980 db_appexit( NULL );
11982 (void) dbopen( NULL, 0, 0, 0, NULL);
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
12002 echo "$ac_t""$ol_cv_db_none" 1>&6
12004 if test $ol_cv_db_none = yes ; then
12009 if test $ol_cv_lib_db = no ; then
12010 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for Berkeley DB link (-ldb)" >&5
12012 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12018 LIBS="$ol_DB_LIB $LIBS"
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12024 #ifdef HAVE_DB_185_H
12025 # include <db_185.h>
12030 #ifndef DB_VERSION_MAJOR
12031 # define DB_VERSION_MAJOR 1
12035 #define NULL ((void*)0)
12040 #if DB_VERSION_MAJOR > 2
12041 db_env_create( NULL, 0 );
12042 #elif DB_VERSION_MAJOR > 1
12043 db_appexit( NULL );
12045 (void) dbopen( NULL, 0, 0, 0, NULL);
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12065 echo "$ac_t""$ol_cv_db_db" 1>&6
12067 if test $ol_cv_db_db = yes ; then
12072 if test $ol_cv_lib_db = no ; then
12073 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12074 echo "configure:12075: checking for Berkeley DB link (-ldb3)" >&5
12075 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12081 LIBS="$ol_DB_LIB $LIBS"
12083 cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12087 #ifdef HAVE_DB_185_H
12088 # include <db_185.h>
12093 #ifndef DB_VERSION_MAJOR
12094 # define DB_VERSION_MAJOR 1
12098 #define NULL ((void*)0)
12103 #if DB_VERSION_MAJOR > 2
12104 db_env_create( NULL, 0 );
12105 #elif DB_VERSION_MAJOR > 1
12106 db_appexit( NULL );
12108 (void) dbopen( NULL, 0, 0, 0, NULL);
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12128 echo "$ac_t""$ol_cv_db_db3" 1>&6
12130 if test $ol_cv_db_db3 = yes ; then
12135 if test $ol_cv_lib_db = no ; then
12136 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12137 echo "configure:12138: checking for Berkeley DB link (-ldb2)" >&5
12138 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12144 LIBS="$ol_DB_LIB $LIBS"
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12150 #ifdef HAVE_DB_185_H
12151 # include <db_185.h>
12156 #ifndef DB_VERSION_MAJOR
12157 # define DB_VERSION_MAJOR 1
12161 #define NULL ((void*)0)
12166 #if DB_VERSION_MAJOR > 2
12167 db_env_create( NULL, 0 );
12168 #elif DB_VERSION_MAJOR > 1
12169 db_appexit( NULL );
12171 (void) dbopen( NULL, 0, 0, 0, NULL);
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12191 echo "$ac_t""$ol_cv_db_db2" 1>&6
12193 if test $ol_cv_db_db2 = yes ; then
12198 if test $ol_cv_lib_db = no ; then
12199 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12200 echo "configure:12201: checking for Berkeley DB link (-ldb1)" >&5
12201 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12207 LIBS="$ol_DB_LIB $LIBS"
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12213 #ifdef HAVE_DB_185_H
12214 # include <db_185.h>
12219 #ifndef DB_VERSION_MAJOR
12220 # define DB_VERSION_MAJOR 1
12224 #define NULL ((void*)0)
12229 #if DB_VERSION_MAJOR > 2
12230 db_env_create( NULL, 0 );
12231 #elif DB_VERSION_MAJOR > 1
12232 db_appexit( NULL );
12234 (void) dbopen( NULL, 0, 0, 0, NULL);
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12254 echo "$ac_t""$ol_cv_db_db1" 1>&6
12256 if test $ol_cv_db_db1 = yes ; then
12262 if test "$ol_cv_lib_db" != no ; then
12263 ol_cv_berkeley_db=yes
12264 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12265 echo "configure:12266: checking for Berkeley DB thread support" >&5
12266 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12271 if test $ol_cv_lib_db != yes ; then
12272 LIBS="$ol_cv_lib_db"
12275 if test "$cross_compiling" = yes; then
12276 ol_cv_berkeley_db_thread=cross
12278 cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12282 #ifdef HAVE_DB_185_H
12288 #define NULL ((void *)0)
12293 u_int32_t flags = DB_CREATE | DB_THREAD;
12295 #if DB_VERSION_MAJOR > 2
12296 DB_ENV *env = NULL;
12298 rc = db_env_create( &env, 0 );
12301 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12302 rc = env->open( env, NULL, flags, 0 );
12304 rc = env->open( env, NULL, NULL, flags, 0 );
12310 memset( &env, '\0', sizeof(env) );
12312 rc = db_appinit( NULL, NULL, &env, flags );
12315 db_appexit( &env );
12318 #if DB_VERSION_MAJOR > 2
12319 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12320 env->remove( env, NULL, DB_FORCE);
12322 env->remove( env, NULL, NULL, DB_FORCE);
12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12331 ol_cv_berkeley_db_thread=yes
12333 echo "configure: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12336 ol_cv_berkeley_db_thread=no
12344 if test $ol_cv_berkeley_db_thread != no ; then
12345 cat >> confdefs.h <<\EOF
12346 #define HAVE_BERKELEY_DB_THREAD 1
12353 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12359 if test $ol_cv_berkeley_db != no ; then
12360 cat >> confdefs.h <<\EOF
12361 #define HAVE_BERKELEY_DB 1
12365 ol_link_ldbm=berkeley
12366 ol_with_ldbm_api=db
12368 if test $ol_with_ldbm_type = hash ; then
12369 cat >> confdefs.h <<\EOF
12370 #define LDBM_USE_DBHASH 1
12374 cat >> confdefs.h <<\EOF
12375 #define LDBM_USE_DBBTREE 1
12380 if test $ol_cv_lib_db != yes ; then
12381 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12386 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12387 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12388 ol_with_ldbm_api=none
12391 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12392 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12393 echo "configure:12394: checking for MDBM library" >&5
12394 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12395 echo $ac_n "(cached) $ac_c" 1>&6
12398 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12399 echo "configure:12400: checking for mdbm_set_chain" >&5
12400 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* System header to define __stub macros and hopefully few prototypes,
12407 which can conflict with char mdbm_set_chain(); below. */
12408 #include <assert.h>
12409 /* Override any gcc2 internal prototype to avoid an error. */
12410 /* We use char because int might match the return type of a gcc2
12411 builtin and then its argument prototype would still apply. */
12412 char mdbm_set_chain();
12417 /* The GNU C library defines this for functions which it implements
12418 to always fail with ENOSYS. Some functions are actually named
12419 something starting with __ and the normal name is an alias. */
12420 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12423 f = mdbm_set_chain;
12428 if { (eval echo configure:12429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12430 eval "ac_cv_func_mdbm_set_chain=yes"
12432 echo "configure: failed program was:" >&5
12433 cat conftest.$ac_ext >&5
12435 eval "ac_cv_func_mdbm_set_chain=no"
12440 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12441 echo "$ac_t""yes" 1>&6
12444 echo "$ac_t""no" 1>&6
12446 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12447 echo "configure:12448: checking for mdbm_set_chain in -lmdbm" >&5
12448 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12452 ac_save_LIBS="$LIBS"
12453 LIBS="-lmdbm $LIBS"
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12460 char mdbm_set_chain();
12466 if { (eval echo configure:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12468 eval "ac_cv_lib_$ac_lib_var=yes"
12470 echo "configure: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12473 eval "ac_cv_lib_$ac_lib_var=no"
12476 LIBS="$ac_save_LIBS"
12479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12480 echo "$ac_t""yes" 1>&6
12481 ol_cv_lib_mdbm=-lmdbm
12483 echo "$ac_t""no" 1>&6
12494 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12497 for ac_hdr in mdbm.h
12499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12501 echo "configure:12502: checking for $ac_hdr" >&5
12502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12505 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure"
12507 #include "confdefs.h"
12510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12511 { (eval echo configure:12512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12513 if test -z "$ac_err"; then
12515 eval "ac_cv_header_$ac_safe=yes"
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12521 eval "ac_cv_header_$ac_safe=no"
12525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12528 cat >> confdefs.h <<EOF
12529 #define $ac_tr_hdr 1
12533 echo "$ac_t""no" 1>&6
12537 echo $ac_n "checking for db""... $ac_c" 1>&6
12538 echo "configure:12539: checking for db" >&5
12539 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12543 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12551 echo "$ac_t""$ol_cv_mdbm" 1>&6
12552 if test $ol_cv_mdbm = yes ; then
12553 cat >> confdefs.h <<\EOF
12554 #define HAVE_MDBM 1
12560 if test $ol_cv_mdbm = yes ; then
12562 ol_with_ldbm_api=mdbm
12563 if test $ol_cv_lib_mdbm != yes ; then
12564 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12569 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12570 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12571 echo "configure:12572: checking for GDBM library" >&5
12572 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12573 echo $ac_n "(cached) $ac_c" 1>&6
12576 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12577 echo "configure:12578: checking for gdbm_open" >&5
12578 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
12581 cat > conftest.$ac_ext <<EOF
12582 #line 12583 "configure"
12583 #include "confdefs.h"
12584 /* System header to define __stub macros and hopefully few prototypes,
12585 which can conflict with char gdbm_open(); below. */
12586 #include <assert.h>
12587 /* Override any gcc2 internal prototype to avoid an error. */
12588 /* We use char because int might match the return type of a gcc2
12589 builtin and then its argument prototype would still apply. */
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12606 if { (eval echo configure:12607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12608 eval "ac_cv_func_gdbm_open=yes"
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12613 eval "ac_cv_func_gdbm_open=no"
12618 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12619 echo "$ac_t""yes" 1>&6
12622 echo "$ac_t""no" 1>&6
12624 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12625 echo "configure:12626: checking for gdbm_open in -lgdbm" >&5
12626 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12627 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12628 echo $ac_n "(cached) $ac_c" 1>&6
12630 ac_save_LIBS="$LIBS"
12631 LIBS="-lgdbm $LIBS"
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12635 /* Override any gcc2 internal prototype to avoid an error. */
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12644 if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12646 eval "ac_cv_lib_$ac_lib_var=yes"
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12651 eval "ac_cv_lib_$ac_lib_var=no"
12654 LIBS="$ac_save_LIBS"
12657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12658 echo "$ac_t""yes" 1>&6
12659 ol_cv_lib_gdbm=-lgdbm
12661 echo "$ac_t""no" 1>&6
12672 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12675 for ac_hdr in gdbm.h
12677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12679 echo "configure:12680: checking for $ac_hdr" >&5
12680 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12681 echo $ac_n "(cached) $ac_c" 1>&6
12683 cat > conftest.$ac_ext <<EOF
12684 #line 12685 "configure"
12685 #include "confdefs.h"
12688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12689 { (eval echo configure:12690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12691 if test -z "$ac_err"; then
12693 eval "ac_cv_header_$ac_safe=yes"
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12699 eval "ac_cv_header_$ac_safe=no"
12703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12706 cat >> confdefs.h <<EOF
12707 #define $ac_tr_hdr 1
12711 echo "$ac_t""no" 1>&6
12715 echo $ac_n "checking for db""... $ac_c" 1>&6
12716 echo "configure:12717: checking for db" >&5
12717 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12718 echo $ac_n "(cached) $ac_c" 1>&6
12721 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12729 echo "$ac_t""$ol_cv_gdbm" 1>&6
12730 if test $ol_cv_gdbm = yes ; then
12731 cat >> confdefs.h <<\EOF
12732 #define HAVE_GDBM 1
12738 if test $ol_cv_gdbm = yes ; then
12740 ol_with_ldbm_api=gdbm
12742 if test $ol_cv_lib_gdbm != yes ; then
12743 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12748 if test $ol_with_ldbm_api = ndbm ; then
12749 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12750 echo "configure:12751: checking for NDBM library" >&5
12751 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12755 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12756 echo "configure:12757: checking for dbm_open" >&5
12757 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12760 cat > conftest.$ac_ext <<EOF
12761 #line 12762 "configure"
12762 #include "confdefs.h"
12763 /* System header to define __stub macros and hopefully few prototypes,
12764 which can conflict with char dbm_open(); below. */
12765 #include <assert.h>
12766 /* Override any gcc2 internal prototype to avoid an error. */
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12774 /* The GNU C library defines this for functions which it implements
12775 to always fail with ENOSYS. Some functions are actually named
12776 something starting with __ and the normal name is an alias. */
12777 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12785 if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12787 eval "ac_cv_func_dbm_open=yes"
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12792 eval "ac_cv_func_dbm_open=no"
12797 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12798 echo "$ac_t""yes" 1>&6
12801 echo "$ac_t""no" 1>&6
12803 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12804 echo "configure:12805: checking for dbm_open in -lndbm" >&5
12805 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12806 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12807 echo $ac_n "(cached) $ac_c" 1>&6
12809 ac_save_LIBS="$LIBS"
12810 LIBS="-lndbm $LIBS"
12811 cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 /* Override any gcc2 internal prototype to avoid an error. */
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12823 if { (eval echo configure:12824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12825 eval "ac_cv_lib_$ac_lib_var=yes"
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12830 eval "ac_cv_lib_$ac_lib_var=no"
12833 LIBS="$ac_save_LIBS"
12836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12837 echo "$ac_t""yes" 1>&6
12838 ol_cv_lib_ndbm=-lndbm
12840 echo "$ac_t""no" 1>&6
12842 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12843 echo "configure:12844: checking for dbm_open in -ldbm" >&5
12844 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12845 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12846 echo $ac_n "(cached) $ac_c" 1>&6
12848 ac_save_LIBS="$LIBS"
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12862 if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12864 eval "ac_cv_lib_$ac_lib_var=yes"
12866 echo "configure: failed program was:" >&5
12867 cat conftest.$ac_ext >&5
12869 eval "ac_cv_lib_$ac_lib_var=no"
12872 LIBS="$ac_save_LIBS"
12875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12876 echo "$ac_t""yes" 1>&6
12877 ol_cv_lib_ndbm=-ldbm
12879 echo "$ac_t""no" 1>&6
12892 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12895 for ac_hdr in ndbm.h
12897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12899 echo "configure:12900: checking for $ac_hdr" >&5
12900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12901 echo $ac_n "(cached) $ac_c" 1>&6
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12909 { (eval echo configure:12910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12911 if test -z "$ac_err"; then
12913 eval "ac_cv_header_$ac_safe=yes"
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12919 eval "ac_cv_header_$ac_safe=no"
12923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12924 echo "$ac_t""yes" 1>&6
12925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12926 cat >> confdefs.h <<EOF
12927 #define $ac_tr_hdr 1
12931 echo "$ac_t""no" 1>&6
12935 echo $ac_n "checking for db""... $ac_c" 1>&6
12936 echo "configure:12937: checking for db" >&5
12937 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12938 echo $ac_n "(cached) $ac_c" 1>&6
12941 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12949 echo "$ac_t""$ol_cv_ndbm" 1>&6
12950 if test $ol_cv_ndbm = yes ; then
12951 cat >> confdefs.h <<\EOF
12952 #define HAVE_NDBM 1
12958 if test $ol_cv_ndbm = yes ; then
12960 ol_with_ldbm_api=ndbm
12962 if test $ol_cv_lib_ndbm != yes ; then
12963 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12968 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12969 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12970 if test $ol_enable_ldbm = yes ; then
12971 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12974 echo "configure: warning: disabling LDBM" 1>&2
12978 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12979 LINK_BINS_DYNAMIC="yes"
12981 LINK_BINS_DYNAMIC="no"
12984 if test $ol_enable_wrappers != no ; then
12985 for ac_hdr in tcpd.h
12987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12989 echo "configure:12990: checking for $ac_hdr" >&5
12990 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12991 echo $ac_n "(cached) $ac_c" 1>&6
12993 cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12999 { (eval echo configure:13000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13001 if test -z "$ac_err"; then
13003 eval "ac_cv_header_$ac_safe=yes"
13006 echo "configure: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13009 eval "ac_cv_header_$ac_safe=no"
13013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13014 echo "$ac_t""yes" 1>&6
13015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13016 cat >> confdefs.h <<EOF
13017 #define $ac_tr_hdr 1
13021 echo "$ac_t""no" 1>&6
13026 if test $ac_cv_header_tcpd_h != yes ; then
13029 cat > conftest.$ac_ext <<EOF
13030 #line 13031 "configure"
13031 #include "confdefs.h"
13033 int allow_severity = 0;
13034 int deny_severity = 0;
13040 if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13044 echo "configure: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13052 if test $have_wrappers = yes ; then
13053 cat >> confdefs.h <<\EOF
13054 #define HAVE_TCPD 1
13059 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13060 echo "configure:13061: checking for main in -lnsl" >&5
13061 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13062 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13063 echo $ac_n "(cached) $ac_c" 1>&6
13065 ac_save_LIBS="$LIBS"
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13075 if { (eval echo configure:13076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13077 eval "ac_cv_lib_$ac_lib_var=yes"
13079 echo "configure: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13082 eval "ac_cv_lib_$ac_lib_var=no"
13085 LIBS="$ac_save_LIBS"
13088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13089 echo "$ac_t""yes" 1>&6
13090 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13092 cat >> confdefs.h <<EOF
13093 #define $ac_tr_lib 1
13099 echo "$ac_t""no" 1>&6
13103 echo "configure: warning: could not find -lwrap" 1>&2
13104 if test $ol_enable_wrappers = yes ; then
13105 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13108 echo "configure: warning: disabling wrappers support" 1>&2
13109 ol_enable_wrappers=no
13114 if test $ol_enable_syslog != no ; then
13115 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13116 echo "configure:13117: checking for openlog" >&5
13117 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13120 cat > conftest.$ac_ext <<EOF
13121 #line 13122 "configure"
13122 #include "confdefs.h"
13123 /* System header to define __stub macros and hopefully few prototypes,
13124 which can conflict with char openlog(); below. */
13125 #include <assert.h>
13126 /* Override any gcc2 internal prototype to avoid an error. */
13127 /* We use char because int might match the return type of a gcc2
13128 builtin and then its argument prototype would still apply. */
13134 /* The GNU C library defines this for functions which it implements
13135 to always fail with ENOSYS. Some functions are actually named
13136 something starting with __ and the normal name is an alias. */
13137 #if defined (__stub_openlog) || defined (__stub___openlog)
13145 if { (eval echo configure:13146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13147 eval "ac_cv_func_openlog=yes"
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13152 eval "ac_cv_func_openlog=no"
13157 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13158 echo "$ac_t""yes" 1>&6
13161 echo "$ac_t""no" 1>&6
13164 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13165 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13167 ol_enable_syslog=$ac_cv_func_openlog
13172 if test $ol_enable_sql != no ; then
13173 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13174 echo "configure:13175: checking for SQLDriverConnect in -liodbc" >&5
13175 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13177 echo $ac_n "(cached) $ac_c" 1>&6
13179 ac_save_LIBS="$LIBS"
13180 LIBS="-liodbc $LIBS"
13181 cat > conftest.$ac_ext <<EOF
13182 #line 13183 "configure"
13183 #include "confdefs.h"
13184 /* Override any gcc2 internal prototype to avoid an error. */
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char SQLDriverConnect();
13193 if { (eval echo configure:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13195 eval "ac_cv_lib_$ac_lib_var=yes"
13197 echo "configure: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13200 eval "ac_cv_lib_$ac_lib_var=no"
13203 LIBS="$ac_save_LIBS"
13206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13207 echo "$ac_t""yes" 1>&6
13210 echo "$ac_t""no" 1>&6
13214 if test $have_iodbc = yes ; then
13215 ol_link_sql="-liodbc"
13217 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13218 echo "configure:13219: checking for SQLDriverConnect in -lodbc" >&5
13219 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13220 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13221 echo $ac_n "(cached) $ac_c" 1>&6
13223 ac_save_LIBS="$LIBS"
13224 LIBS="-lodbc $LIBS"
13225 cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 /* Override any gcc2 internal prototype to avoid an error. */
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13231 char SQLDriverConnect();
13237 if { (eval echo configure:13238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13239 eval "ac_cv_lib_$ac_lib_var=yes"
13241 echo "configure: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 eval "ac_cv_lib_$ac_lib_var=no"
13247 LIBS="$ac_save_LIBS"
13250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13251 echo "$ac_t""yes" 1>&6
13254 echo "$ac_t""no" 1>&6
13258 if test $have_odbc = yes ; then
13259 ol_link_sql="-lodbc"
13263 if test $ol_link_sql != no ; then
13264 SLAPD_SQL_LIBS="$ol_link_sql"
13266 elif test $ol_enable_sql != auto ; then
13267 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13271 if test $ol_enable_tcl != no ; then
13272 for ac_hdr in tcl.h
13274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13276 echo "configure:13277: checking for $ac_hdr" >&5
13277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13278 echo $ac_n "(cached) $ac_c" 1>&6
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13286 { (eval echo configure:13287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13288 if test -z "$ac_err"; then
13290 eval "ac_cv_header_$ac_safe=yes"
13293 echo "configure: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
13296 eval "ac_cv_header_$ac_safe=no"
13300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13301 echo "$ac_t""yes" 1>&6
13302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13303 cat >> confdefs.h <<EOF
13304 #define $ac_tr_hdr 1
13308 echo "$ac_t""no" 1>&6
13313 if test $ac_cv_header_tcl_h != yes ; then
13316 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13317 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13318 echo "configure:13319: checking for main in -l$lib" >&5
13319 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13323 ac_save_LIBS="$LIBS"
13324 LIBS="-l$lib $LIBS"
13325 cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13333 if { (eval echo configure:13334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13335 eval "ac_cv_lib_$ac_lib_var=yes"
13337 echo "configure: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13340 eval "ac_cv_lib_$ac_lib_var=no"
13343 LIBS="$ac_save_LIBS"
13346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13347 echo "$ac_t""yes" 1>&6
13349 if test x"$ol_with_tcl_module" = "xstatic" ; then
13350 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13352 MOD_TCL_LIB="-l${lib}"
13355 echo "$ac_t""no" 1>&6
13362 if test $have_tcl != yes ; then
13363 echo "configure: warning: could not find -ltcl" 1>&2
13364 if test $ol_enable_tcl = yes ; then
13365 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13373 for ac_hdr in termcap.h ncurses.h
13375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13377 echo "configure:13378: checking for $ac_hdr" >&5
13378 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13379 echo $ac_n "(cached) $ac_c" 1>&6
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13387 { (eval echo configure:13388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13389 if test -z "$ac_err"; then
13391 eval "ac_cv_header_$ac_safe=yes"
13394 echo "configure: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13397 eval "ac_cv_header_$ac_safe=no"
13401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13402 echo "$ac_t""yes" 1>&6
13403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13404 cat >> confdefs.h <<EOF
13405 #define $ac_tr_hdr 1
13409 echo "$ac_t""no" 1>&6
13414 if test $ol_link_termcap = no ; then
13415 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13416 echo "configure:13417: checking for tputs in -ltermcap" >&5
13417 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13419 echo $ac_n "(cached) $ac_c" 1>&6
13421 ac_save_LIBS="$LIBS"
13422 LIBS="-ltermcap $LIBS"
13423 cat > conftest.$ac_ext <<EOF
13424 #line 13425 "configure"
13425 #include "confdefs.h"
13426 /* Override any gcc2 internal prototype to avoid an error. */
13427 /* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13437 eval "ac_cv_lib_$ac_lib_var=yes"
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13442 eval "ac_cv_lib_$ac_lib_var=no"
13445 LIBS="$ac_save_LIBS"
13448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6
13452 echo "$ac_t""no" 1>&6
13456 if test $have_termcap = yes ; then
13457 cat >> confdefs.h <<\EOF
13458 #define HAVE_TERMCAP 1
13461 ol_link_termcap=yes
13462 TERMCAP_LIBS=-ltermcap
13466 if test $ol_link_termcap = no ; then
13467 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13468 echo "configure:13469: checking for initscr in -lncurses" >&5
13469 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13470 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13473 ac_save_LIBS="$LIBS"
13474 LIBS="-lncurses $LIBS"
13475 cat > conftest.$ac_ext <<EOF
13476 #line 13477 "configure"
13477 #include "confdefs.h"
13478 /* Override any gcc2 internal prototype to avoid an error. */
13479 /* We use char because int might match the return type of a gcc2
13480 builtin and then its argument prototype would still apply. */
13487 if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13489 eval "ac_cv_lib_$ac_lib_var=yes"
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13494 eval "ac_cv_lib_$ac_lib_var=no"
13497 LIBS="$ac_save_LIBS"
13500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13501 echo "$ac_t""yes" 1>&6
13504 echo "$ac_t""no" 1>&6
13508 if test $have_ncurses = yes ; then
13509 cat >> confdefs.h <<\EOF
13510 #define HAVE_NCURSES 1
13513 ol_link_termcap=yes
13514 TERMCAP_LIBS=-lncurses
13518 if test $ol_link_termcap = no ; then
13519 cat >> confdefs.h <<\EOF
13520 #define NO_TERMCAP 1
13528 if test $ol_with_cyrus_sasl != no ; then
13529 for ac_hdr in sasl.h
13531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13533 echo "configure:13534: checking for $ac_hdr" >&5
13534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13535 echo $ac_n "(cached) $ac_c" 1>&6
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13543 { (eval echo configure:13544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13545 if test -z "$ac_err"; then
13547 eval "ac_cv_header_$ac_safe=yes"
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13553 eval "ac_cv_header_$ac_safe=no"
13557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13560 cat >> confdefs.h <<EOF
13561 #define $ac_tr_hdr 1
13565 echo "$ac_t""no" 1>&6
13570 if test $ac_cv_header_sasl_h = yes ; then
13571 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13572 echo "configure:13573: checking for sasl_client_init in -lsasl" >&5
13573 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
13577 ac_save_LIBS="$LIBS"
13578 LIBS="-lsasl $LIBS"
13579 cat > conftest.$ac_ext <<EOF
13580 #line 13581 "configure"
13581 #include "confdefs.h"
13582 /* Override any gcc2 internal prototype to avoid an error. */
13583 /* We use char because int might match the return type of a gcc2
13584 builtin and then its argument prototype would still apply. */
13585 char sasl_client_init();
13591 if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13593 eval "ac_cv_lib_$ac_lib_var=yes"
13595 echo "configure: failed program was:" >&5
13596 cat conftest.$ac_ext >&5
13598 eval "ac_cv_lib_$ac_lib_var=no"
13601 LIBS="$ac_save_LIBS"
13604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13605 echo "$ac_t""yes" 1>&6
13606 have_cyrus_sasl=yes
13608 echo "$ac_t""no" 1>&6
13613 if test $have_cyrus_sasl != no ; then
13615 cat >> confdefs.h <<\EOF
13616 #define HAVE_CYRUS_SASL 1
13623 if test $ol_link_sasl = no ; then
13624 if test $ol_with_cyrus_sasl != auto ; then
13625 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13627 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13628 echo "configure: warning: SASL authentication not supported!" 1>&2
13629 if test $ol_link_tls = no ; then
13630 echo "configure: warning: Strong authentication not supported!" 1>&2
13635 echo "configure: warning: SASL authentication not supported!" 1>&2
13636 if test $ol_link_tls = no ; then
13637 echo "configure: warning: Strong authentication not supported!" 1>&2
13641 if test $cross_compiling != yes ; then
13643 if test -r /dev/urandom ; then
13644 dev="/dev/urandom";
13645 elif test -r /idev/urandom ; then
13646 dev="/idev/urandom";
13647 elif test -r /dev/srandom ; then
13648 dev="/dev/srandom";
13649 elif test -r /dev/random ; then
13651 elif test -r /idev/random ; then
13652 dev="/idev/random";
13655 if test $dev != no ; then
13656 cat >> confdefs.h <<EOF
13657 #define URANDOM_DEVICE "$dev"
13664 if test $ol_with_fetch != no ; then
13666 LIBS="-lfetch -lcom_err $LIBS"
13667 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13668 echo "configure:13669: checking fetch(3) library" >&5
13669 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13673 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13677 #include <sys/param.h>
13681 struct url *u = fetchParseURL("file:///");
13684 if { (eval echo configure:13685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13686 ol_cv_lib_fetch=yes
13688 echo "configure: failed program was:" >&5
13689 cat conftest.$ac_ext >&5
13696 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13698 if test $ol_cv_lib_fetch != no ; then
13699 ol_link_fetch="-lfetch -lcom_err"
13700 cat >> confdefs.h <<\EOF
13701 #define HAVE_FETCH 1
13707 if test $ol_cv_lib_fetch != no ; then
13708 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13709 ol_link_fetch=freebsd
13711 elif test $ol_with_fetch != auto ; then
13712 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13716 ol_link_readline=no
13717 if test $ol_with_readline != no ; then
13718 for ac_hdr in readline/readline.h readline/history.h
13720 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13721 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13722 echo "configure:13723: checking for $ac_hdr" >&5
13723 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13726 cat > conftest.$ac_ext <<EOF
13727 #line 13728 "configure"
13728 #include "confdefs.h"
13731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13732 { (eval echo configure:13733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13734 if test -z "$ac_err"; then
13736 eval "ac_cv_header_$ac_safe=yes"
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13742 eval "ac_cv_header_$ac_safe=no"
13746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13747 echo "$ac_t""yes" 1>&6
13748 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13749 cat >> confdefs.h <<EOF
13750 #define $ac_tr_hdr 1
13754 echo "$ac_t""no" 1>&6
13759 if test $ac_cv_header_readline_readline_h = yes ; then
13761 LIBS="$TERMCAP_LIBS $LIBS"
13762 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13763 echo "configure:13764: checking for readline in -lreadline" >&5
13764 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13765 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13766 echo $ac_n "(cached) $ac_c" 1>&6
13768 ac_save_LIBS="$LIBS"
13769 LIBS="-lreadline $LIBS"
13770 cat > conftest.$ac_ext <<EOF
13771 #line 13772 "configure"
13772 #include "confdefs.h"
13773 /* Override any gcc2 internal prototype to avoid an error. */
13774 /* We use char because int might match the return type of a gcc2
13775 builtin and then its argument prototype would still apply. */
13782 if { (eval echo configure:13783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 eval "ac_cv_lib_$ac_lib_var=yes"
13786 echo "configure: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13789 eval "ac_cv_lib_$ac_lib_var=no"
13792 LIBS="$ac_save_LIBS"
13795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13799 echo "$ac_t""no" 1>&6
13805 if test $have_readline = yes ; then
13806 ol_with_readline=found
13807 ol_link_readline=yes
13809 READLINE_LIBS="-lreadline"
13814 if test $ol_link_readline = yes ; then
13815 cat >> confdefs.h <<\EOF
13816 #define HAVE_READLINE 1
13822 if test $ol_enable_crypt != no ; then
13823 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13824 echo "configure:13825: checking for crypt" >&5
13825 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13826 echo $ac_n "(cached) $ac_c" 1>&6
13828 cat > conftest.$ac_ext <<EOF
13829 #line 13830 "configure"
13830 #include "confdefs.h"
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char crypt(); below. */
13833 #include <assert.h>
13834 /* Override any gcc2 internal prototype to avoid an error. */
13835 /* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13842 /* The GNU C library defines this for functions which it implements
13843 to always fail with ENOSYS. Some functions are actually named
13844 something starting with __ and the normal name is an alias. */
13845 #if defined (__stub_crypt) || defined (__stub___crypt)
13853 if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13855 eval "ac_cv_func_crypt=yes"
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13860 eval "ac_cv_func_crypt=no"
13865 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13866 echo "$ac_t""yes" 1>&6
13869 echo "$ac_t""no" 1>&6
13871 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13872 echo "configure:13873: checking for crypt in -lcrypt" >&5
13873 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13875 echo $ac_n "(cached) $ac_c" 1>&6
13877 ac_save_LIBS="$LIBS"
13878 LIBS="-lcrypt $LIBS"
13879 cat > conftest.$ac_ext <<EOF
13880 #line 13881 "configure"
13881 #include "confdefs.h"
13882 /* Override any gcc2 internal prototype to avoid an error. */
13883 /* We use char because int might match the return type of a gcc2
13884 builtin and then its argument prototype would still apply. */
13891 if { (eval echo configure:13892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13893 eval "ac_cv_lib_$ac_lib_var=yes"
13895 echo "configure: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13898 eval "ac_cv_lib_$ac_lib_var=no"
13901 LIBS="$ac_save_LIBS"
13904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13909 echo "$ac_t""no" 1>&6
13916 if test $have_crypt = yes ; then
13917 cat >> confdefs.h <<\EOF
13918 #define HAVE_CRYPT 1
13922 echo "configure: warning: could not find crypt" 1>&2
13923 if test $ol_enable_crypt = yes ; then
13924 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13927 echo "configure: warning: disabling crypt support" 1>&2
13932 if test $ol_enable_proctitle != no ; then
13933 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13934 echo "configure:13935: checking for setproctitle" >&5
13935 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13940 "configure"
13940 #include "confdefs.h"
13941 /* System header to define __stub macros and hopefully few prototypes,
13942 which can conflict with char setproctitle(); below. */
13943 #include <assert.h>
13944 /* Override any gcc2 internal prototype to avoid an error. */
13945 /* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947 char setproctitle();
13952 /* The GNU C library defines this for functions which it implements
13953 to always fail with ENOSYS. Some functions are actually named
13954 something starting with __ and the normal name is an alias. */
13955 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13965 eval "ac_cv_func_setproctitle=yes"
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13970 eval "ac_cv_func_setproctitle=no"
13975 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13976 echo "$ac_t""yes" 1>&6
13977 have_setproctitle=yes
13979 echo "$ac_t""no" 1>&6
13981 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13982 echo "configure:13983: checking for setproctitle in -lutil" >&5
13983 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13985 echo $ac_n "(cached) $ac_c" 1>&6
13987 ac_save_LIBS="$LIBS"
13988 LIBS="-lutil $LIBS"
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 /* Override any gcc2 internal prototype to avoid an error. */
13993 /* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */
13995 char setproctitle();
14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14003 eval "ac_cv_lib_$ac_lib_var=yes"
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14008 eval "ac_cv_lib_$ac_lib_var=no"
14011 LIBS="$ac_save_LIBS"
14014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14015 echo "$ac_t""yes" 1>&6
14016 have_setproctitle=yes
14017 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14019 echo "$ac_t""no" 1>&6
14020 have_setproctitle=no
14021 LIBOBJS="$LIBOBJS setproctitle.o"
14022 LIBSRCS="$LIBSRCS setproctitle.c"
14028 if test $have_setproctitle = yes ; then
14029 cat >> confdefs.h <<\EOF
14030 #define HAVE_SETPROCTITLE 1
14036 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14037 echo "configure:14038: checking for ANSI C header files" >&5
14038 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14039 echo $ac_n "(cached) $ac_c" 1>&6
14041 cat > conftest.$ac_ext <<EOF
14042 #line 14043 "configure"
14043 #include "confdefs.h"
14044 #include <stdlib.h>
14045 #include <stdarg.h>
14046 #include <string.h>
14049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14050 { (eval echo configure:14051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14052 if test -z "$ac_err"; then
14054 ac_cv_header_stdc=yes
14057 echo "configure: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14060 ac_cv_header_stdc=no
14064 if test $ac_cv_header_stdc = yes; then
14065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14066 cat > conftest.$ac_ext <<EOF
14067 #line 14068 "configure"
14068 #include "confdefs.h"
14069 #include <string.h>
14071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14072 egrep "memchr" >/dev/null 2>&1; then
14076 ac_cv_header_stdc=no
14082 if test $ac_cv_header_stdc = yes; then
14083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14084 cat > conftest.$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14087 #include <stdlib.h>
14089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "free" >/dev/null 2>&1; then
14094 ac_cv_header_stdc=no
14100 if test $ac_cv_header_stdc = yes; then
14101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14102 if test "$cross_compiling" = yes; then
14105 cat > conftest.$ac_ext <<EOF
14106 #line 14107 "configure"
14107 #include "confdefs.h"
14109 #if ((' ' & 0x0FF) == 0x020)
14110 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14111 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14113 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14114 || ('j' <= (c) && (c) <= 'r') \
14115 || ('s' <= (c) && (c) <= 'z'))
14116 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14119 int main () { int i; for (i = 0; i < 256; i++)
14120 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14124 if { (eval echo configure:14125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14128 echo "configure: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14131 ac_cv_header_stdc=no
14139 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14140 if test $ac_cv_header_stdc = yes; then
14141 cat >> confdefs.h <<\EOF
14142 #define STDC_HEADERS 1
14147 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14148 echo "configure:14149: checking for mode_t" >&5
14149 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14150 echo $ac_n "(cached) $ac_c" 1>&6
14152 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure"
14154 #include "confdefs.h"
14155 #include <sys/types.h>
14157 #include <stdlib.h>
14158 #include <stddef.h>
14162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14163 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14165 eval "ac_cv_type_mode_t=yes"
14168 eval "ac_cv_type_mode_t=no"
14173 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14174 echo "$ac_t""yes" 1>&6
14176 echo "$ac_t""no" 1>&6
14177 cat >> confdefs.h <<EOF
14183 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14184 echo "configure:14185: checking for off_t" >&5
14185 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14188 cat > conftest.$ac_ext <<EOF
14189 #line 14190 "configure"
14190 #include "confdefs.h"
14191 #include <sys/types.h>
14193 #include <stdlib.h>
14194 #include <stddef.h>
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14201 eval "ac_cv_type_off_t=yes"
14204 eval "ac_cv_type_off_t=no"
14209 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14210 echo "$ac_t""yes" 1>&6
14212 echo "$ac_t""no" 1>&6
14213 cat >> confdefs.h <<EOF
14219 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14220 echo "configure:14221: checking for pid_t" >&5
14221 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14222 echo $ac_n "(cached) $ac_c" 1>&6
14224 cat > conftest.$ac_ext <<EOF
14225 #line 14226 "configure"
14226 #include "confdefs.h"
14227 #include <sys/types.h>
14229 #include <stdlib.h>
14230 #include <stddef.h>
14234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14235 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14237 eval "ac_cv_type_pid_t=yes"
14240 eval "ac_cv_type_pid_t=no"
14245 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14246 echo "$ac_t""yes" 1>&6
14248 echo "$ac_t""no" 1>&6
14249 cat >> confdefs.h <<EOF
14255 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14256 echo "configure:14257: checking for ptrdiff_t" >&5
14257 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14258 echo $ac_n "(cached) $ac_c" 1>&6
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263 #include <stddef.h>
14268 if { (eval echo configure:14269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14270 am_cv_type_ptrdiff_t=yes
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14275 am_cv_type_ptrdiff_t=no
14280 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14281 if test $am_cv_type_ptrdiff_t = yes; then
14282 cat >> confdefs.h <<\EOF
14283 #define HAVE_PTRDIFF_T 1
14288 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14289 echo "configure:14290: checking return type of signal handlers" >&5
14290 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14291 echo $ac_n "(cached) $ac_c" 1>&6
14293 cat > conftest.$ac_ext <<EOF
14294 #line 14295 "configure"
14295 #include "confdefs.h"
14296 #include <sys/types.h>
14297 #include <signal.h>
14302 extern "C" void (*signal (int, void (*)(int)))(int);
14304 void (*signal ()) ();
14311 if { (eval echo configure:14312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14313 ac_cv_type_signal=void
14315 echo "configure: failed program was:" >&5
14316 cat conftest.$ac_ext >&5
14318 ac_cv_type_signal=int
14323 echo "$ac_t""$ac_cv_type_signal" 1>&6
14324 cat >> confdefs.h <<EOF
14325 #define RETSIGTYPE $ac_cv_type_signal
14329 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14330 echo "configure:14331: checking for size_t" >&5
14331 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14332 echo $ac_n "(cached) $ac_c" 1>&6
14334 cat > conftest.$ac_ext <<EOF
14335 #line 14336 "configure"
14336 #include "confdefs.h"
14337 #include <sys/types.h>
14339 #include <stdlib.h>
14340 #include <stddef.h>
14344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14345 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14347 eval "ac_cv_type_size_t=yes"
14350 eval "ac_cv_type_size_t=no"
14355 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14356 echo "$ac_t""yes" 1>&6
14358 echo "$ac_t""no" 1>&6
14359 cat >> confdefs.h <<EOF
14360 #define size_t unsigned
14366 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14367 echo "configure:14368: checking for ssize_t" >&5
14368 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14369 echo $ac_n "(cached) $ac_c" 1>&6
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 #include <sys/types.h>
14376 #include <stdlib.h>
14377 #include <stddef.h>
14381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14382 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14384 eval "ac_cv_type_ssize_t=yes"
14387 eval "ac_cv_type_ssize_t=no"
14392 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14395 echo "$ac_t""no" 1>&6
14396 cat >> confdefs.h <<EOF
14397 #define ssize_t signed int
14402 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14403 echo "configure:14404: checking for caddr_t" >&5
14404 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14405 echo $ac_n "(cached) $ac_c" 1>&6
14407 cat > conftest.$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14410 #include <sys/types.h>
14412 #include <stdlib.h>
14413 #include <stddef.h>
14417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14418 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14420 eval "ac_cv_type_caddr_t=yes"
14423 eval "ac_cv_type_caddr_t=no"
14428 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14429 echo "$ac_t""yes" 1>&6
14431 echo "$ac_t""no" 1>&6
14432 cat >> confdefs.h <<EOF
14433 #define caddr_t char *
14439 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14440 echo "configure:14441: checking for socklen_t" >&5
14441 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14442 echo $ac_n "(cached) $ac_c" 1>&6
14444 cat > conftest.$ac_ext <<EOF
14445 #line 14446 "configure"
14446 #include "confdefs.h"
14448 #ifdef HAVE_SYS_TYPES_H
14449 #include <sys/types.h>
14451 #ifdef HAVE_SYS_SOCKET_H
14452 #include <sys/socket.h>
14459 if { (eval echo configure:14460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14461 ol_cv_type_socklen_t=yes
14463 echo "configure: failed program was:" >&5
14464 cat conftest.$ac_ext >&5
14466 ol_cv_type_socklen_t=no
14471 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14472 if test $ol_cv_type_socklen_t = no; then
14473 cat >> confdefs.h <<\EOF
14474 #define socklen_t int
14479 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14480 echo "configure:14481: checking for member st_blksize in aggregate type struct stat" >&5
14481 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14482 echo $ac_n "(cached) $ac_c" 1>&6
14484 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure"
14486 #include "confdefs.h"
14487 #include <sys/types.h>
14488 #include <sys/stat.h>
14490 struct stat foo; foo.st_blksize;
14493 if { (eval echo configure:14494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14495 ac_cv_c_struct_member_st_blksize=yes
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14500 ac_cv_c_struct_member_st_blksize=no
14505 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14506 st_blksize="$ac_cv_c_struct_member_st_blksize"
14507 if test $ac_cv_c_struct_member_st_blksize = yes; then
14508 cat >> confdefs.h <<\EOF
14509 #define HAVE_ST_BLKSIZE 1
14514 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14515 echo "configure:14516: checking whether time.h and sys/time.h may both be included" >&5
14516 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
14519 cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 #include <sys/types.h>
14523 #include <sys/time.h>
14529 if { (eval echo configure:14530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14531 ac_cv_header_time=yes
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14536 ac_cv_header_time=no
14541 echo "$ac_t""$ac_cv_header_time" 1>&6
14542 if test $ac_cv_header_time = yes; then
14543 cat >> confdefs.h <<\EOF
14544 #define TIME_WITH_SYS_TIME 1
14549 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14550 echo "configure:14551: checking whether struct tm is in sys/time.h or time.h" >&5
14551 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14554 cat > conftest.$ac_ext <<EOF
14555 #line 14556 "configure"
14556 #include "confdefs.h"
14557 #include <sys/types.h>
14560 struct tm *tp; tp->tm_sec;
14563 if { (eval echo configure:14564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14565 ac_cv_struct_tm=time.h
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14570 ac_cv_struct_tm=sys/time.h
14575 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14576 if test $ac_cv_struct_tm = sys/time.h; then
14577 cat >> confdefs.h <<\EOF
14578 #define TM_IN_SYS_TIME 1
14583 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14584 echo "configure:14585: checking for uid_t in sys/types.h" >&5
14585 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14590 "configure"
14590 #include "confdefs.h"
14591 #include <sys/types.h>
14593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14594 egrep "uid_t" >/dev/null 2>&1; then
14596 ac_cv_type_uid_t=yes
14599 ac_cv_type_uid_t=no
14605 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14606 if test $ac_cv_type_uid_t = no; then
14607 cat >> confdefs.h <<\EOF
14611 cat >> confdefs.h <<\EOF
14617 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14618 echo "configure:14619: checking for sig_atomic_t" >&5
14619 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14620 echo $ac_n "(cached) $ac_c" 1>&6
14622 cat > conftest.$ac_ext <<EOF
14623 #line 14624 "configure"
14624 #include "confdefs.h"
14625 #include <signal.h>
14627 sig_atomic_t atomic;
14630 if { (eval echo configure:14631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14632 ol_cv_type_sig_atomic_t=yes
14634 echo "configure: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14637 ol_cv_type_sig_atomic_t=no
14642 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14643 if test $ol_cv_type_sig_atomic_t = no; then
14644 cat >> confdefs.h <<\EOF
14645 #define sig_atomic_t int
14652 # test for pw_gecos in struct passwd
14653 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14654 echo "configure:14655: checking struct passwd for pw_gecos" >&5
14655 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14656 echo $ac_n "(cached) $ac_c" 1>&6
14659 cat > conftest.$ac_ext <<EOF
14660 #line 14661 "configure"
14661 #include "confdefs.h"
14666 pwd.pw_gecos = pwd.pw_name;
14670 if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14672 ol_cv_struct_passwd_pw_gecos=yes
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14677 ol_cv_struct_passwd_pw_gecos=no
14682 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14683 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14684 cat >> confdefs.h <<\EOF
14685 #define HAVE_PW_GECOS 1
14690 # test for pw_passwd in struct passwd
14691 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14692 echo "configure:14693: checking struct passwd for pw_passwd" >&5
14693 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14697 cat > conftest.$ac_ext <<EOF
14698 #line 14699 "configure"
14699 #include "confdefs.h"
14704 pwd.pw_passwd = pwd.pw_name;
14708 if { (eval echo configure:14709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14710 ol_cv_struct_passwd_pw_passwd=yes
14712 echo "configure: failed program was:" >&5
14713 cat conftest.$ac_ext >&5
14715 ol_cv_struct_passwd_pw_passwd=no
14720 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14721 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14722 cat >> confdefs.h <<\EOF
14723 #define HAVE_PW_PASSWD 1
14729 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14730 echo "configure:14731: checking if toupper() requires islower()" >&5
14731 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14732 echo $ac_n "(cached) $ac_c" 1>&6
14735 if test "$cross_compiling" = yes; then
14736 ol_cv_c_upper_lower=safe
14738 cat > conftest.$ac_ext <<EOF
14739 #line 14740 "configure"
14740 #include "confdefs.h"
14745 if ('C' == toupper('C'))
14751 if { (eval echo configure:14752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14753 ol_cv_c_upper_lower=no
14755 echo "configure: failed program was:" >&5
14756 cat conftest.$ac_ext >&5
14758 ol_cv_c_upper_lower=yes
14765 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14766 if test $ol_cv_c_upper_lower != no ; then
14767 cat >> confdefs.h <<\EOF
14768 #define C_UPPER_LOWER 1
14773 echo $ac_n "checking for working const""... $ac_c" 1>&6
14774 echo "configure:14775: checking for working const" >&5
14775 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14776 echo $ac_n "(cached) $ac_c" 1>&6
14778 cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14784 /* Ultrix mips cc rejects this. */
14785 typedef int charset[2]; const charset x;
14786 /* SunOS 4.1.1 cc rejects this. */
14787 char const *const *ccp;
14789 /* NEC SVR4.0.2 mips cc rejects this. */
14790 struct point {int x, y;};
14791 static struct point const zero = {0,0};
14792 /* AIX XL C 1.02.0.0 rejects this.
14793 It does not let you subtract one const X* pointer from another in an arm
14794 of an if-expression whose if-part is not a constant expression */
14795 const char *g = "string";
14796 ccp = &g + (g ? g-g : 0);
14797 /* HPUX 7.0 cc rejects these. */
14800 ccp = (char const *const *) p;
14801 { /* SCO 3.2v4 cc rejects this. */
14803 char const *s = 0 ? (char *) 0 : (char const *) 0;
14807 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14808 int x[] = {25, 17};
14809 const int *foo = &x[0];
14812 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14813 typedef const int *iptr;
14817 { /* AIX XL C 1.02.0.0 rejects this saying
14818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14819 struct s { int j; const int *ap[3]; };
14820 struct s *b; b->j = 5;
14822 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14823 const int foo = 10;
14828 if { (eval echo configure:14829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14840 echo "$ac_t""$ac_cv_c_const" 1>&6
14841 if test $ac_cv_c_const = no; then
14842 cat >> confdefs.h <<\EOF
14848 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14849 echo "configure:14850: checking if compiler understands volatile" >&5
14850 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14853 cat > conftest.$ac_ext <<EOF
14854 #line 14855 "configure"
14855 #include "confdefs.h"
14858 volatile int a; int * volatile b = x ? &y : &z;
14859 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14865 ol_cv_c_volatile=yes
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14870 ol_cv_c_volatile=no
14875 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14876 if test $ol_cv_c_volatile = yes; then
14879 cat >> confdefs.h <<\EOF
14886 if test $cross_compiling = yes ; then
14887 cat >> confdefs.h <<\EOF
14888 #define CROSS_COMPILING 1
14892 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14893 echo "configure:14894: checking whether byte ordering is bigendian" >&5
14894 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14895 echo $ac_n "(cached) $ac_c" 1>&6
14897 ac_cv_c_bigendian=unknown
14898 # See if sys/param.h defines the BYTE_ORDER macro.
14899 cat > conftest.$ac_ext <<EOF
14900 #line 14901 "configure"
14901 #include "confdefs.h"
14902 #include <sys/types.h>
14903 #include <sys/param.h>
14906 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14907 bogus endian macros
14911 if { (eval echo configure:14912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14913 # It does; now see whether it defined to BIG_ENDIAN or not.
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 #include <sys/types.h>
14918 #include <sys/param.h>
14921 #if BYTE_ORDER != BIG_ENDIAN
14926 if { (eval echo configure:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14928 ac_cv_c_bigendian=yes
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14933 ac_cv_c_bigendian=no
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14941 if test $ac_cv_c_bigendian = unknown; then
14942 if test "$cross_compiling" = yes; then
14943 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14945 cat > conftest.$ac_ext <<EOF
14946 #line 14947 "configure"
14947 #include "confdefs.h"
14949 /* Are we little or big endian? From Harbison&Steele. */
14953 char c[sizeof (long)];
14956 exit (u.c[sizeof (long) - 1] == 1);
14959 if { (eval echo configure:14960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14961 ac_cv_c_bigendian=no
14963 echo "configure: failed program was:" >&5
14964 cat conftest.$ac_ext >&5
14966 ac_cv_c_bigendian=yes
14974 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14975 if test $ac_cv_c_bigendian = yes; then
14976 cat >> confdefs.h <<\EOF
14977 #define WORDS_BIGENDIAN 1
14984 echo $ac_n "checking size of short""... $ac_c" 1>&6
14985 echo "configure:14986: checking size of short" >&5
14986 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14989 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14990 cat > conftest.$ac_ext <<EOF
14991 #line 14992 "configure"
14992 #include "confdefs.h"
14993 #include "confdefs.h"
14994 #include <sys/types.h>
14998 switch (0) case 0: case (sizeof (short) == $ac_size):;
15001 if { (eval echo configure:15002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15003 ac_cv_sizeof_short=$ac_size
15005 echo "configure: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15009 if test x$ac_cv_sizeof_short != x ; then break; fi
15014 if test x$ac_cv_sizeof_short = x ; then
15015 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15017 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15018 cat >> confdefs.h <<EOF
15019 #define SIZEOF_SHORT $ac_cv_sizeof_short
15023 echo $ac_n "checking size of int""... $ac_c" 1>&6
15024 echo "configure:15025: checking size of int" >&5
15025 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15026 echo $ac_n "(cached) $ac_c" 1>&6
15028 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15029 cat > conftest.$ac_ext <<EOF
15030 #line 15031 "configure"
15031 #include "confdefs.h"
15032 #include "confdefs.h"
15033 #include <sys/types.h>
15037 switch (0) case 0: case (sizeof (int) == $ac_size):;
15040 if { (eval echo configure:15041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15042 ac_cv_sizeof_int=$ac_size
15044 echo "configure: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15048 if test x$ac_cv_sizeof_int != x ; then break; fi
15053 if test x$ac_cv_sizeof_int = x ; then
15054 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15056 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15057 cat >> confdefs.h <<EOF
15058 #define SIZEOF_INT $ac_cv_sizeof_int
15062 echo $ac_n "checking size of long""... $ac_c" 1>&6
15063 echo "configure:15064: checking size of long" >&5
15064 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15065 echo $ac_n "(cached) $ac_c" 1>&6
15067 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15068 cat > conftest.$ac_ext <<EOF
15069 #line 15070 "configure"
15070 #include "confdefs.h"
15071 #include "confdefs.h"
15072 #include <sys/types.h>
15076 switch (0) case 0: case (sizeof (long) == $ac_size):;
15079 if { (eval echo configure:15080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15081 ac_cv_sizeof_long=$ac_size
15083 echo "configure: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15087 if test x$ac_cv_sizeof_long != x ; then break; fi
15092 if test x$ac_cv_sizeof_long = x ; then
15093 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15095 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15096 cat >> confdefs.h <<EOF
15097 #define SIZEOF_LONG $ac_cv_sizeof_long
15102 if test "$ac_cv_sizeof_int" -lt 4 ; then
15103 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15105 cat >> confdefs.h <<\EOF
15106 #define LBER_INT_T long
15110 cat >> confdefs.h <<\EOF
15111 #define LBER_INT_T int
15116 cat >> confdefs.h <<\EOF
15117 #define LBER_LEN_T long
15120 cat >> confdefs.h <<\EOF
15121 #define LBER_SOCKET_T int
15124 cat >> confdefs.h <<\EOF
15125 #define LBER_TAG_T long
15129 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15130 echo "configure:15131: checking for 8-bit clean memcmp" >&5
15131 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15132 echo $ac_n "(cached) $ac_c" 1>&6
15134 if test "$cross_compiling" = yes; then
15135 ac_cv_func_memcmp_clean=no
15137 cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15143 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15144 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15148 if { (eval echo configure:15149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15150 ac_cv_func_memcmp_clean=yes
15152 echo "configure: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15155 ac_cv_func_memcmp_clean=no
15162 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15163 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15165 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15166 echo "configure:15167: checking for strftime" >&5
15167 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15168 echo $ac_n "(cached) $ac_c" 1>&6
15170 cat > conftest.$ac_ext <<EOF
15171 #line 15172 "configure"
15172 #include "confdefs.h"
15173 /* System header to define __stub macros and hopefully few prototypes,
15174 which can conflict with char strftime(); below. */
15175 #include <assert.h>
15176 /* Override any gcc2 internal prototype to avoid an error. */
15177 /* We use char because int might match the return type of a gcc2
15178 builtin and then its argument prototype would still apply. */
15184 /* The GNU C library defines this for functions which it implements
15185 to always fail with ENOSYS. Some functions are actually named
15186 something starting with __ and the normal name is an alias. */
15187 #if defined (__stub_strftime) || defined (__stub___strftime)
15195 if { (eval echo configure:15196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15197 eval "ac_cv_func_strftime=yes"
15199 echo "configure: failed program was:" >&5
15200 cat conftest.$ac_ext >&5
15202 eval "ac_cv_func_strftime=no"
15207 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15208 echo "$ac_t""yes" 1>&6
15209 cat >> confdefs.h <<\EOF
15210 #define HAVE_STRFTIME 1
15214 echo "$ac_t""no" 1>&6
15215 # strftime is in -lintl on SCO UNIX.
15216 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15217 echo "configure:15218: checking for strftime in -lintl" >&5
15218 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15220 echo $ac_n "(cached) $ac_c" 1>&6
15222 ac_save_LIBS="$LIBS"
15223 LIBS="-lintl $LIBS"
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 /* Override any gcc2 internal prototype to avoid an error. */
15228 /* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15236 if { (eval echo configure:15237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 eval "ac_cv_lib_$ac_lib_var=yes"
15240 echo "configure: failed program was:" >&5
15241 cat conftest.$ac_ext >&5
15243 eval "ac_cv_lib_$ac_lib_var=no"
15246 LIBS="$ac_save_LIBS"
15249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15250 echo "$ac_t""yes" 1>&6
15251 cat >> confdefs.h <<\EOF
15252 #define HAVE_STRFTIME 1
15255 LIBS="-lintl $LIBS"
15257 echo "$ac_t""no" 1>&6
15263 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15264 echo "configure:15265: checking for inet_aton()" >&5
15265 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15268 cat > conftest.$ac_ext <<EOF
15269 #line 15270 "configure"
15270 #include "confdefs.h"
15272 #ifdef HAVE_SYS_TYPES_H
15273 # include <sys/types.h>
15275 #ifdef HAVE_SYS_SOCKET_H
15276 # include <sys/socket.h>
15277 # ifdef HAVE_SYS_SELECT_H
15278 # include <sys/select.h>
15280 # include <netinet/in.h>
15281 # ifdef HAVE_ARPA_INET_H
15282 # include <arpa/inet.h>
15288 int rc = inet_aton( "255.255.255.255", &in );
15291 if { (eval echo configure:15292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15293 ol_cv_func_inet_aton=yes
15295 echo "configure: failed program was:" >&5
15296 cat conftest.$ac_ext >&5
15298 ol_cv_func_inet_aton=no
15303 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15304 if test $ol_cv_func_inet_aton != no; then
15305 cat >> confdefs.h <<\EOF
15306 #define HAVE_INET_ATON 1
15312 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15313 echo "configure:15314: checking for _spawnlp" >&5
15314 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15315 echo $ac_n "(cached) $ac_c" 1>&6
15317 cat > conftest.$ac_ext <<EOF
15318 #line 15319 "configure"
15319 #include "confdefs.h"
15320 /* System header to define __stub macros and hopefully few prototypes,
15321 which can conflict with char _spawnlp(); below. */
15322 #include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error. */
15324 /* We use char because int might match the return type of a gcc2
15325 builtin and then its argument prototype would still apply. */
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 eval "ac_cv_func__spawnlp=yes"
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15349 eval "ac_cv_func__spawnlp=no"
15354 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15355 echo "$ac_t""yes" 1>&6
15356 cat >> confdefs.h <<\EOF
15357 #define HAVE_SPAWNLP 1
15361 echo "$ac_t""no" 1>&6
15365 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15366 echo "configure:15367: checking for _snprintf" >&5
15367 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15368 echo $ac_n "(cached) $ac_c" 1>&6
15370 cat > conftest.$ac_ext <<EOF
15371 #line 15372 "configure"
15372 #include "confdefs.h"
15373 /* System header to define __stub macros and hopefully few prototypes,
15374 which can conflict with char _snprintf(); below. */
15375 #include <assert.h>
15376 /* Override any gcc2 internal prototype to avoid an error. */
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15384 /* The GNU C library defines this for functions which it implements
15385 to always fail with ENOSYS. Some functions are actually named
15386 something starting with __ and the normal name is an alias. */
15387 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15395 if { (eval echo configure:15396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15397 eval "ac_cv_func__snprintf=yes"
15399 echo "configure: failed program was:" >&5
15400 cat conftest.$ac_ext >&5
15402 eval "ac_cv_func__snprintf=no"
15407 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15408 echo "$ac_t""yes" 1>&6
15409 ac_cv_func_snprintf=yes
15410 cat >> confdefs.h <<\EOF
15411 #define snprintf _snprintf
15416 echo "$ac_t""no" 1>&6
15420 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15421 echo "configure:15422: checking for _vsnprintf" >&5
15422 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15423 echo $ac_n "(cached) $ac_c" 1>&6
15425 cat > conftest.$ac_ext <<EOF
15426 #line 15427 "configure"
15427 #include "confdefs.h"
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char _vsnprintf(); below. */
15430 #include <assert.h>
15431 /* Override any gcc2 internal prototype to avoid an error. */
15432 /* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15450 if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15452 eval "ac_cv_func__vsnprintf=yes"
15454 echo "configure: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15457 eval "ac_cv_func__vsnprintf=no"
15462 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15463 echo "$ac_t""yes" 1>&6
15464 ac_cv_func_vsnprintf=yes
15465 cat >> confdefs.h <<\EOF
15466 #define vsnprintf _vsnprintf
15471 echo "$ac_t""no" 1>&6
15475 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15476 echo "configure:15477: checking for vprintf" >&5
15477 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
15480 cat > conftest.$ac_ext <<EOF
15481 #line 15482 "configure"
15482 #include "confdefs.h"
15483 /* System header to define __stub macros and hopefully few prototypes,
15484 which can conflict with char vprintf(); below. */
15485 #include <assert.h>
15486 /* Override any gcc2 internal prototype to avoid an error. */
15487 /* We use char because int might match the return type of a gcc2
15488 builtin and then its argument prototype would still apply. */
15494 /* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15505 if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15507 eval "ac_cv_func_vprintf=yes"
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15512 eval "ac_cv_func_vprintf=no"
15517 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15518 echo "$ac_t""yes" 1>&6
15519 cat >> confdefs.h <<\EOF
15520 #define HAVE_VPRINTF 1
15524 echo "$ac_t""no" 1>&6
15527 if test "$ac_cv_func_vprintf" != yes; then
15528 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15529 echo "configure:15530: checking for _doprnt" >&5
15530 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15531 echo $ac_n "(cached) $ac_c" 1>&6
15533 cat > conftest.$ac_ext <<EOF
15534 #line 15535 "configure"
15535 #include "confdefs.h"
15536 /* System header to define __stub macros and hopefully few prototypes,
15537 which can conflict with char _doprnt(); below. */
15538 #include <assert.h>
15539 /* Override any gcc2 internal prototype to avoid an error. */
15540 /* We use char because int might match the return type of a gcc2
15541 builtin and then its argument prototype would still apply. */
15547 /* The GNU C library defines this for functions which it implements
15548 to always fail with ENOSYS. Some functions are actually named
15549 something starting with __ and the normal name is an alias. */
15550 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15558 if { (eval echo configure:15559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15560 eval "ac_cv_func__doprnt=yes"
15562 echo "configure: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15565 eval "ac_cv_func__doprnt=no"
15570 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15571 echo "$ac_t""yes" 1>&6
15572 cat >> confdefs.h <<\EOF
15573 #define HAVE_DOPRNT 1
15577 echo "$ac_t""no" 1>&6
15583 if test $ac_cv_func_vprintf = yes ; then
15584 for ac_func in vsnprintf vsprintf
15586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15587 echo "configure:15588: checking for $ac_func" >&5
15588 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15591 cat > conftest.$ac_ext <<EOF
15592 #line 15593 "configure"
15593 #include "confdefs.h"
15594 /* System header to define __stub macros and hopefully few prototypes,
15595 which can conflict with char $ac_func(); below. */
15596 #include <assert.h>
15597 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15605 /* The GNU C library defines this for functions which it implements
15606 to always fail with ENOSYS. Some functions are actually named
15607 something starting with __ and the normal name is an alias. */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 if { (eval echo configure:15617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15618 eval "ac_cv_func_$ac_func=yes"
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15623 eval "ac_cv_func_$ac_func=no"
15628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15629 echo "$ac_t""yes" 1>&6
15630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15631 cat >> confdefs.h <<EOF
15632 #define $ac_tr_func 1
15636 echo "$ac_t""no" 1>&6
15694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_func" >&5
15696 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15713 /* The GNU C library defines this for functions which it implements
15714 to always fail with ENOSYS. Some functions are actually named
15715 something starting with __ and the normal name is an alias. */
15716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15726 eval "ac_cv_func_$ac_func=yes"
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15731 eval "ac_cv_func_$ac_func=no"
15736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15737 echo "$ac_t""yes" 1>&6
15738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15739 cat >> confdefs.h <<EOF
15740 #define $ac_tr_func 1
15744 echo "$ac_t""no" 1>&6
15749 for ac_func in getopt tempnam
15751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15752 echo "configure:15753: checking for $ac_func" >&5
15753 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15754 echo $ac_n "(cached) $ac_c" 1>&6
15756 cat > conftest.$ac_ext <<EOF
15757 #line 15758 "configure"
15758 #include "confdefs.h"
15759 /* System header to define __stub macros and hopefully few prototypes,
15760 which can conflict with char $ac_func(); below. */
15761 #include <assert.h>
15762 /* Override any gcc2 internal prototype to avoid an error. */
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15770 /* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15781 if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15783 eval "ac_cv_func_$ac_func=yes"
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15788 eval "ac_cv_func_$ac_func=no"
15793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15794 echo "$ac_t""yes" 1>&6
15795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15796 cat >> confdefs.h <<EOF
15797 #define $ac_tr_func 1
15801 echo "$ac_t""no" 1>&6
15802 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15808 if test "$ac_cv_func_getopt" != yes; then
15809 LIBSRCS="$LIBSRCS getopt.c"
15812 if test "$ac_cv_func_tempnam" != yes; then
15813 LIBSRCS="$LIBSRCS tempnam.c"
15816 # Check Configuration
15817 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15818 echo "configure:15819: checking declaration of sys_errlist" >&5
15819 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15820 echo $ac_n "(cached) $ac_c" 1>&6
15823 cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure"
15825 #include "confdefs.h"
15828 #include <sys/types.h>
15831 #include <stdlib.h>
15834 char *c = (char *) *sys_errlist
15837 if { (eval echo configure:15838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15839 ol_cv_dcl_sys_errlist=yes
15840 ol_cv_have_sys_errlist=yes
15842 echo "configure: failed program was:" >&5
15843 cat conftest.$ac_ext >&5
15845 ol_cv_dcl_sys_errlist=no
15850 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15852 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15853 if test $ol_cv_dcl_sys_errlist = no ; then
15854 cat >> confdefs.h <<\EOF
15855 #define DECL_SYS_ERRLIST 1
15859 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15860 echo "configure:15861: checking existence of sys_errlist" >&5
15861 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15862 echo $ac_n "(cached) $ac_c" 1>&6
15865 cat > conftest.$ac_ext <<EOF
15866 #line 15867 "configure"
15867 #include "confdefs.h"
15870 char *c = (char *) *sys_errlist
15873 if { (eval echo configure:15874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15875 ol_cv_have_sys_errlist=yes
15877 echo "configure: failed program was:" >&5
15878 cat conftest.$ac_ext >&5
15880 ol_cv_have_sys_errlist=no
15885 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15887 if test $ol_cv_have_sys_errlist = yes ; then
15888 cat >> confdefs.h <<\EOF
15889 #define HAVE_SYS_ERRLIST 1
15896 if test "$ol_enable_debug" != no ; then
15897 cat >> confdefs.h <<\EOF
15898 #define LDAP_DEBUG 1
15902 if test "$ol_enable_syslog" = yes ; then
15903 cat >> confdefs.h <<\EOF
15904 #define LDAP_SYSLOG 1
15908 if test "$ol_enable_cache" = no ; then
15909 cat >> confdefs.h <<\EOF
15910 #define LDAP_NOCACHE 1
15914 if test "$ol_link_kbind" != no ; then
15915 cat >> confdefs.h <<\EOF
15916 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15920 if test "$ol_enable_proctitle" != no ; then
15921 cat >> confdefs.h <<\EOF
15922 #define LDAP_PROCTITLE 1
15926 if test "$ol_enable_referrals" != no ; then
15927 cat >> confdefs.h <<\EOF
15928 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15932 if test "$ol_enable_local" != no; then
15933 cat >> confdefs.h <<\EOF
15934 #define LDAP_PF_LOCAL 1
15938 if test "$ol_enable_ipv6" != no; then
15939 cat >> confdefs.h <<\EOF
15940 #define LDAP_PF_INET6 1
15944 if test "$ol_enable_cleartext" != no ; then
15945 cat >> confdefs.h <<\EOF
15946 #define SLAPD_CLEARTEXT 1
15950 if test "$ol_enable_crypt" != no ; then
15951 cat >> confdefs.h <<\EOF
15952 #define SLAPD_CRYPT 1
15956 if test "$ol_link_kpasswd" != no ; then
15957 cat >> confdefs.h <<\EOF
15958 #define SLAPD_KPASSWD 1
15962 if test "$ol_link_spasswd" != no ; then
15963 cat >> confdefs.h <<\EOF
15964 #define SLAPD_SPASSWD 1
15968 if test "$ol_enable_multimaster" != no ; then
15969 cat >> confdefs.h <<\EOF
15970 #define SLAPD_MULTIMASTER 1
15974 if test "$ol_enable_phonetic" != no ; then
15975 cat >> confdefs.h <<\EOF
15976 #define SLAPD_PHONETIC 1
15980 if test "$ol_enable_rlookups" != no ; then
15981 cat >> confdefs.h <<\EOF
15982 #define SLAPD_RLOOKUPS 1
15986 if test "$ol_enable_aci" != no ; then
15987 cat >> confdefs.h <<\EOF
15988 #define SLAPD_ACI_ENABLED 1
15993 if test "$ol_link_modules" != no ; then
15994 cat >> confdefs.h <<\EOF
15995 #define SLAPD_MODULES 1
15999 SLAPD_MODULES_LDFLAGS="-dlopen self"
16002 if test "$ol_enable_bdb" != no ; then
16003 cat >> confdefs.h <<\EOF
16004 #define SLAPD_BDB 1
16009 if test "$ol_with_bdb_module" != static ; then
16010 cat >> confdefs.h <<\EOF
16011 #define SLAPD_BDB_DYNAMIC 1
16015 BUILD_BDB_DYNAMIC=shared
16016 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16020 if test "$ol_link_dnssrv" != no ; then
16021 cat >> confdefs.h <<\EOF
16022 #define SLAPD_DNSSRV 1
16027 if test "$ol_with_dnssrv_module" != static ; then
16028 cat >> confdefs.h <<\EOF
16029 #define SLAPD_DNSSRV_DYNAMIC 1
16033 BUILD_DNSSRV_DYNAMIC=shared
16034 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16038 if test "$ol_enable_ldap" != no ; then
16039 cat >> confdefs.h <<\EOF
16040 #define SLAPD_LDAP 1
16045 if test "$ol_with_ldap_module" != static ; then
16046 cat >> confdefs.h <<\EOF
16047 #define SLAPD_LDAP_DYNAMIC 1
16051 BUILD_LDAP_DYNAMIC=shared
16052 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16056 if test "$ol_link_ldbm" != no ; then
16057 cat >> confdefs.h <<\EOF
16058 #define SLAPD_LDBM 1
16063 if test "$ol_with_ldbm_module" != static ; then
16064 cat >> confdefs.h <<\EOF
16065 #define SLAPD_LDBM_DYNAMIC 1
16069 BUILD_LDBM_DYNAMIC=shared
16070 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16074 if test "$ol_enable_passwd" != no ; then
16075 cat >> confdefs.h <<\EOF
16076 #define SLAPD_PASSWD 1
16081 if test "$ol_with_passwd_module" != static ; then
16082 cat >> confdefs.h <<\EOF
16083 #define SLAPD_PASSWD_DYNAMIC 1
16087 BUILD_PASSWD_DYNAMIC=shared
16088 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16092 if test "$ol_link_perl" != no ; then
16093 cat >> confdefs.h <<\EOF
16094 #define SLAPD_PERL 1
16099 if test "$ol_with_perl_module" != static ; then
16100 cat >> confdefs.h <<\EOF
16101 #define SLAPD_PERL_DYNAMIC 1
16105 BUILD_PERL_DYNAMIC=shared
16106 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16110 if test "$ol_enable_shell" != no ; then
16111 cat >> confdefs.h <<\EOF
16112 #define SLAPD_SHELL 1
16117 if test "$ol_with_shell_module" != static ; then
16118 cat >> confdefs.h <<\EOF
16119 #define SLAPD_SHELL_DYNAMIC 1
16123 BUILD_SHELL_DYNAMIC=shared
16124 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16128 if test "$ol_enable_tcl" != no ; then
16129 cat >> confdefs.h <<\EOF
16130 #define SLAPD_TCL 1
16135 if test "$ol_with_tcl_module" != static; then
16136 cat >> confdefs.h <<\EOF
16137 #define SLAPD_TCL_DYNAMIC 1
16141 BUILD_TCL_DYNAMIC=shared
16142 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16146 if test "$ol_link_sql" != no ; then
16147 cat >> confdefs.h <<\EOF
16148 #define SLAPD_SQL 1
16153 if test "$ol_with_sql_module" != static; then
16154 cat >> confdefs.h <<\EOF
16155 #define SLAPD_SQL_DYNAMIC 1
16159 BUILD_SQL_DYNAMIC=shared
16160 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16164 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16165 $BUILD_SLAPD = yes ; then
16170 if test "$LINK_BINS_DYNAMIC" = yes; then
16172 LT_LIB_LINKAGE=shared
16175 LT_LIB_LINKAGE=static
16178 if test "$ac_cv_mingw32" = yes ; then
16248 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16251 # Let make expand exec_prefix.
16252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16254 # Any assignment to VPATH causes Sun make to only execute
16255 # the first set of double-colon rules, so remove it if not needed.
16256 # If there is a colon in the path, we need to keep it.
16257 if test "x$srcdir" = x.; then
16258 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16261 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16263 DEFS=-DHAVE_CONFIG_H
16265 # Without the "./", some shells look in PATH for config.status.
16266 : ${CONFIG_STATUS=./config.status}
16268 echo creating $CONFIG_STATUS
16269 rm -f $CONFIG_STATUS
16270 cat > $CONFIG_STATUS <<EOF
16272 # Generated automatically by configure.
16273 # Run this file to recreate the current configuration.
16274 # This directory was configured as follows,
16275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16277 # $0 $ac_configure_args
16279 # Compiler output produced by configure, useful for debugging
16280 # configure, is in ./config.log if it exists.
16282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16285 case "\$ac_option" in
16286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16290 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16292 -help | --help | --hel | --he | --h)
16293 echo "\$ac_cs_usage"; exit 0 ;;
16294 *) echo "\$ac_cs_usage"; exit 1 ;;
16298 ac_given_srcdir=$srcdir
16299 ac_given_INSTALL="$INSTALL"
16301 trap 'rm -fr `echo "\
16302 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16303 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16304 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16305 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16306 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16307 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16308 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16309 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16310 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16311 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16312 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16313 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16314 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16315 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16316 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16317 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16318 include/Makefile:build/top.mk:include/Makefile.in \
16319 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16320 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16321 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16322 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16323 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16324 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16325 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16326 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16327 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16328 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16329 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16330 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16331 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16332 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16333 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16334 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16335 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16336 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16337 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16338 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16339 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16340 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16341 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16342 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16343 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16344 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16345 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16346 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16347 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16349 cat >> $CONFIG_STATUS <<EOF
16351 # Protect against being on the right side of a sed subst in config.status.
16352 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16353 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16357 s%@CFLAGS@%$CFLAGS%g
16358 s%@CPPFLAGS@%$CPPFLAGS%g
16359 s%@CXXFLAGS@%$CXXFLAGS%g
16360 s%@FFLAGS@%$FFLAGS%g
16362 s%@LDFLAGS@%$LDFLAGS%g
16364 s%@exec_prefix@%$exec_prefix%g
16365 s%@prefix@%$prefix%g
16366 s%@program_transform_name@%$program_transform_name%g
16367 s%@bindir@%$bindir%g
16368 s%@sbindir@%$sbindir%g
16369 s%@libexecdir@%$libexecdir%g
16370 s%@datadir@%$datadir%g
16371 s%@sysconfdir@%$sysconfdir%g
16372 s%@sharedstatedir@%$sharedstatedir%g
16373 s%@localstatedir@%$localstatedir%g
16374 s%@libdir@%$libdir%g
16375 s%@includedir@%$includedir%g
16376 s%@oldincludedir@%$oldincludedir%g
16377 s%@infodir@%$infodir%g
16378 s%@mandir@%$mandir%g
16380 s%@host_alias@%$host_alias%g
16381 s%@host_cpu@%$host_cpu%g
16382 s%@host_vendor@%$host_vendor%g
16383 s%@host_os@%$host_os%g
16384 s%@target@%$target%g
16385 s%@target_alias@%$target_alias%g
16386 s%@target_cpu@%$target_cpu%g
16387 s%@target_vendor@%$target_vendor%g
16388 s%@target_os@%$target_os%g
16390 s%@build_alias@%$build_alias%g
16391 s%@build_cpu@%$build_cpu%g
16392 s%@build_vendor@%$build_vendor%g
16393 s%@build_os@%$build_os%g
16394 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16395 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16396 s%@INSTALL_DATA@%$INSTALL_DATA%g
16397 s%@PACKAGE@%$PACKAGE%g
16398 s%@VERSION@%$VERSION%g
16399 s%@ACLOCAL@%$ACLOCAL%g
16400 s%@AUTOCONF@%$AUTOCONF%g
16401 s%@AUTOMAKE@%$AUTOMAKE%g
16402 s%@AUTOHEADER@%$AUTOHEADER%g
16403 s%@MAKEINFO@%$MAKEINFO%g
16404 s%@install_sh@%$install_sh%g
16407 s%@AMTARFLAGS@%$AMTARFLAGS%g
16408 s%@SET_MAKE@%$SET_MAKE%g
16409 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16410 s%@top_builddir@%$top_builddir%g
16411 s%@ldap_subdir@%$ldap_subdir%g
16413 s%@RANLIB@%$RANLIB%g
16415 s%@DLLTOOL@%$DLLTOOL%g
16417 s%@OBJDUMP@%$OBJDUMP%g
16418 s%@LIBTOOL@%$LIBTOOL%g
16420 s%@SENDMAIL@%$SENDMAIL%g
16421 s%@EDITOR@%$EDITOR%g
16422 s%@FINGER@%$FINGER%g
16423 s%@PERLBIN@%$PERLBIN%g
16425 s%@EXEEXT@%$EXEEXT%g
16426 s%@OBJEXT@%$OBJEXT%g
16427 s%@OL_MKDEP@%$OL_MKDEP%g
16428 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16429 s%@LIBOBJS@%$LIBOBJS%g
16430 s%@LIBSRCS@%$LIBSRCS%g
16432 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16433 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16434 s%@DYN_EXT@%$DYN_EXT%g
16435 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16436 s%@BUILD_BDB@%$BUILD_BDB%g
16437 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16438 s%@BUILD_LDAP@%$BUILD_LDAP%g
16439 s%@BUILD_LDBM@%$BUILD_LDBM%g
16440 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16441 s%@BUILD_PERL@%$BUILD_PERL%g
16442 s%@BUILD_SHELL@%$BUILD_SHELL%g
16443 s%@BUILD_SQL@%$BUILD_SQL%g
16444 s%@BUILD_TCL@%$BUILD_TCL%g
16445 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16446 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16447 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16448 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16449 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16450 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16451 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16452 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16453 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16454 s%@LDAP_LIBS@%$LDAP_LIBS%g
16455 s%@LDIF_LIBS@%$LDIF_LIBS%g
16456 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16457 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16458 s%@LDBM_LIBS@%$LDBM_LIBS%g
16459 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16460 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16461 s%@WRAP_LIBS@%$WRAP_LIBS%g
16462 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16463 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16464 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16465 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16466 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16467 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16468 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16469 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16470 s%@KRB4_LIBS@%$KRB4_LIBS%g
16471 s%@KRB5_LIBS@%$KRB5_LIBS%g
16472 s%@READLINE_LIBS@%$READLINE_LIBS%g
16473 s%@SASL_LIBS@%$SASL_LIBS%g
16474 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16475 s%@TLS_LIBS@%$TLS_LIBS%g
16476 s%@MODULES_LIBS@%$MODULES_LIBS%g
16477 s%@AUTH_LIBS@%$AUTH_LIBS%g
16478 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16479 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16480 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16485 cat >> $CONFIG_STATUS <<\EOF
16487 # Split the substitutions into bite-sized pieces for seds with
16488 # small command number limits, like on Digital OSF/1 and HP-UX.
16489 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16490 ac_file=1 # Number of current file.
16491 ac_beg=1 # First line for current file.
16492 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16495 while $ac_more_lines; do
16496 if test $ac_beg -gt 1; then
16497 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16499 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16501 if test ! -s conftest.s$ac_file; then
16502 ac_more_lines=false
16503 rm -f conftest.s$ac_file
16505 if test -z "$ac_sed_cmds"; then
16506 ac_sed_cmds="sed -f conftest.s$ac_file"
16508 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16510 ac_file=`expr $ac_file + 1`
16512 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16515 if test -z "$ac_sed_cmds"; then
16520 cat >> $CONFIG_STATUS <<EOF
16522 CONFIG_FILES=\${CONFIG_FILES-"\
16523 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16524 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16525 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16526 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16527 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16528 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16529 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16530 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16531 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16532 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16533 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16534 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16535 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16536 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16537 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16538 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16539 include/Makefile:build/top.mk:include/Makefile.in \
16540 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16541 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16542 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16543 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16544 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16545 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16546 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16547 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16548 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16549 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16550 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16551 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16552 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16553 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16554 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16555 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16556 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16557 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16558 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16559 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16560 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16561 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16562 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16563 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16564 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16565 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16566 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16567 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16570 cat >> $CONFIG_STATUS <<\EOF
16571 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16576 *) ac_file_in="${ac_file}.in" ;;
16579 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16581 # Remove last slash and all that follows it. Not all systems have dirname.
16582 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16583 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16584 # The file is in a subdirectory.
16585 test ! -d "$ac_dir" && mkdir "$ac_dir"
16586 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16587 # A "../" for each directory in $ac_dir_suffix.
16588 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16590 ac_dir_suffix= ac_dots=
16593 case "$ac_given_srcdir" in
16595 if test -z "$ac_dots"; then top_srcdir=.
16596 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16597 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16598 *) # Relative path.
16599 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16600 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16603 case "$ac_given_INSTALL" in
16604 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16605 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16608 echo creating "$ac_file"
16610 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16612 *[Mm]akefile*) ac_comsub="1i\\
16613 # $configure_input" ;;
16617 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16619 s%@configure_input@%$configure_input%g
16620 s%@srcdir@%$srcdir%g
16621 s%@top_srcdir@%$top_srcdir%g
16622 s%@INSTALL@%$INSTALL%g
16623 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16627 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16628 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16630 # ac_d sets the value in "#define NAME VALUE" lines.
16631 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16632 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16635 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16636 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16637 ac_uB='\([ ]\)%\1#\2define\3'
16640 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16641 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16642 ac_eB='$%\1#\2define\3'
16646 if test "${CONFIG_HEADERS+set}" != set; then
16648 cat >> $CONFIG_STATUS <<EOF
16649 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16651 cat >> $CONFIG_STATUS <<\EOF
16653 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16656 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16657 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16658 *) ac_file_in="${ac_file}.in" ;;
16661 echo creating $ac_file
16663 rm -f conftest.frag conftest.in conftest.out
16664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16665 cat $ac_file_inputs > conftest.in
16669 # Transform confdefs.h into a sed script conftest.vals that substitutes
16670 # the proper values into config.h.in to produce config.h. And first:
16671 # Protect against being on the right side of a sed subst in config.status.
16672 # Protect against being in an unquoted here document in config.status.
16673 rm -f conftest.vals
16674 cat > conftest.hdr <<\EOF
16677 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16681 sed -n -f conftest.hdr confdefs.h > conftest.vals
16684 # This sed command replaces #undef with comments. This is necessary, for
16685 # example, in the case of _POSIX_SOURCE, which is predefined and required
16686 # on some systems where configure will not decide to define it.
16687 cat >> conftest.vals <<\EOF
16688 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16691 # Break up conftest.vals because some shells have a limit on
16692 # the size of here documents, and old seds have small limits too.
16694 rm -f conftest.tail
16697 ac_lines=`grep -c . conftest.vals`
16698 # grep -c gives empty output for an empty file on some AIX systems.
16699 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16700 # Write a limited-size here document to conftest.frag.
16701 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16702 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16704 sed -f conftest.frag conftest.in > conftest.out
16706 mv conftest.out conftest.in
16707 ' >> $CONFIG_STATUS
16708 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16709 rm -f conftest.vals
16710 mv conftest.tail conftest.vals
16712 rm -f conftest.vals
16714 cat >> $CONFIG_STATUS <<\EOF
16715 rm -f conftest.frag conftest.h
16716 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16717 cat conftest.in >> conftest.h
16719 if cmp -s $ac_file conftest.h 2>/dev/null; then
16720 echo "$ac_file is unchanged"
16723 # Remove last slash and all that follows it. Not all systems have dirname.
16724 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16726 # The file is in a subdirectory.
16727 test ! -d "$ac_dir" && mkdir "$ac_dir"
16730 mv conftest.h $ac_file
16735 cat >> $CONFIG_STATUS <<EOF
16738 cat >> $CONFIG_STATUS <<\EOF
16741 echo Please \"make depend\" to build dependencies
16745 chmod +x $CONFIG_STATUS
16746 rm -fr confdefs* $ac_clean_files
16747 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1