5 # Copyright 1998-2001 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-2001 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-phonetic enable phonetic/soundex [no]"
78 --enable-rlookups enable reverse lookups [no]"
80 --enable-aci enable per-object ACIs [no]"
82 --enable-wrappers enable tcp wrapper support [no]"
84 --enable-dynamic enable linking built binaries with dynamic libs [no]"
86 --enable-dnssrv enable dnssrv backend [no]"
88 --with-dnssrv-module module type [static]"
90 --enable-ldap enable ldap backend [no]"
92 --with-ldap-module module type [static]"
94 --enable-ldbm enable ldbm backend [yes]"
96 --with-ldbm-api with LDBM API [auto]"
98 --with-ldbm-module module type [static]"
100 --with-ldbm-type use LDBM type [auto]"
102 --enable-passwd enable passwd backend [no]"
104 --with-passwd-module module type [static]"
106 --enable-shell enable shell backend [no]"
108 --with-shell-module module type [static]"
110 --enable-sql enable sql backend [no]"
112 --with-sql-module module type [static]"
114 SLURPD (Replication Daemon) Options:"
116 --enable-slurpd enable building slurpd [auto]"
118 Library Generation & Linking Options"
120 --enable-static[=PKGS] build static libraries [default=yes]"
122 --enable-shared[=PKGS] build shared libraries [default=yes]"
124 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
126 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
128 --disable-libtool-lock avoid locking (might break parallel builds)"
130 # Initialize some variables set by options.
131 # The variables have the same names as the options, with
132 # dashes changed to underlines.
134 cache_file=./config.cache
143 program_transform_name=s,x,x,
151 bindir='${exec_prefix}/bin'
152 sbindir='${exec_prefix}/sbin'
153 libexecdir='${exec_prefix}/libexec'
154 datadir='${prefix}/share'
155 sysconfdir='${prefix}/etc'
156 sharedstatedir='${prefix}/com'
157 localstatedir='${prefix}/var'
158 libdir='${exec_prefix}/lib'
159 includedir='${prefix}/include'
160 oldincludedir='/usr/include'
161 infodir='${prefix}/info'
162 mandir='${prefix}/man'
164 # Initialize some other variables.
167 SHELL=${CONFIG_SHELL-/bin/sh}
168 # Maximum number of lines to put in a shell here document.
175 # If the previous option needs an argument, assign it.
176 if test -n "$ac_prev"; then
177 eval "$ac_prev=\$ac_option"
183 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
187 # Accept the important Cygnus configure options, so we can diagnose typos.
191 -bindir | --bindir | --bindi | --bind | --bin | --bi)
193 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
194 bindir="$ac_optarg" ;;
196 -build | --build | --buil | --bui | --bu)
198 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
199 build="$ac_optarg" ;;
201 -cache-file | --cache-file | --cache-fil | --cache-fi \
202 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
203 ac_prev=cache_file ;;
204 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
205 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
206 cache_file="$ac_optarg" ;;
208 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
210 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
212 datadir="$ac_optarg" ;;
214 -disable-* | --disable-*)
215 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
216 # Reject names that are not valid shell variable names.
217 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
218 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
220 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
221 eval "enable_${ac_feature}=no" ;;
223 -enable-* | --enable-*)
224 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
225 # Reject names that are not valid shell variable names.
226 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
227 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
229 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
234 eval "enable_${ac_feature}='$ac_optarg'" ;;
236 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
237 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
238 | --exec | --exe | --ex)
239 ac_prev=exec_prefix ;;
240 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
241 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
242 | --exec=* | --exe=* | --ex=*)
243 exec_prefix="$ac_optarg" ;;
245 -gas | --gas | --ga | --g)
246 # Obsolete; use --with-gas.
249 -help | --help | --hel | --he)
250 # Omit some internal or obsolete options to make the list less imposing.
251 # This message is too long to be a string in the A/UX 3.1 sh.
253 Usage: configure [options] [host]
254 Options: [defaults in brackets after descriptions]
256 --cache-file=FILE cache test results in FILE
257 --help print this message
258 --no-create do not create output files
259 --quiet, --silent do not print \`checking...' messages
260 --version print the version of autoconf that created configure
261 Directory and file names:
262 --prefix=PREFIX install architecture-independent files in PREFIX
264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
266 --bindir=DIR user executables in DIR [EPREFIX/bin]
267 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
268 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
269 --datadir=DIR read-only architecture-independent data in DIR
271 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
272 --sharedstatedir=DIR modifiable architecture-independent data in DIR
274 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
275 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
276 --includedir=DIR C header files in DIR [PREFIX/include]
277 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
278 --infodir=DIR info documentation in DIR [PREFIX/info]
279 --mandir=DIR man documentation in DIR [PREFIX/man]
280 --srcdir=DIR find the sources in DIR [configure dir or ..]
281 --program-prefix=PREFIX prepend PREFIX to installed program names
282 --program-suffix=SUFFIX append SUFFIX to installed program names
283 --program-transform-name=PROGRAM
284 run sed PROGRAM on installed program names
288 --build=BUILD configure for building on BUILD [BUILD=HOST]
289 --host=HOST configure for HOST [guessed]
290 --target=TARGET configure for TARGET [TARGET=HOST]
291 Features and packages:
292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
296 --x-includes=DIR X include files are in DIR
297 --x-libraries=DIR X library files are in DIR
299 if test -n "$ac_help"; then
300 echo "--enable and --with options recognized:$ac_help"
304 -host | --host | --hos | --ho)
306 -host=* | --host=* | --hos=* | --ho=*)
309 -includedir | --includedir | --includedi | --included | --include \
310 | --includ | --inclu | --incl | --inc)
311 ac_prev=includedir ;;
312 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
313 | --includ=* | --inclu=* | --incl=* | --inc=*)
314 includedir="$ac_optarg" ;;
316 -infodir | --infodir | --infodi | --infod | --info | --inf)
318 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
319 infodir="$ac_optarg" ;;
321 -libdir | --libdir | --libdi | --libd)
323 -libdir=* | --libdir=* | --libdi=* | --libd=*)
324 libdir="$ac_optarg" ;;
326 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
327 | --libexe | --libex | --libe)
328 ac_prev=libexecdir ;;
329 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
330 | --libexe=* | --libex=* | --libe=*)
331 libexecdir="$ac_optarg" ;;
333 -localstatedir | --localstatedir | --localstatedi | --localstated \
334 | --localstate | --localstat | --localsta | --localst \
335 | --locals | --local | --loca | --loc | --lo)
336 ac_prev=localstatedir ;;
337 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
338 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
339 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
340 localstatedir="$ac_optarg" ;;
342 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
344 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
345 mandir="$ac_optarg" ;;
348 # Obsolete; use --without-fp.
351 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
355 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
356 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
359 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
360 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
361 | --oldin | --oldi | --old | --ol | --o)
362 ac_prev=oldincludedir ;;
363 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
364 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
365 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
366 oldincludedir="$ac_optarg" ;;
368 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
370 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
371 prefix="$ac_optarg" ;;
373 -program-prefix | --program-prefix | --program-prefi | --program-pref \
374 | --program-pre | --program-pr | --program-p)
375 ac_prev=program_prefix ;;
376 -program-prefix=* | --program-prefix=* | --program-prefi=* \
377 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
378 program_prefix="$ac_optarg" ;;
380 -program-suffix | --program-suffix | --program-suffi | --program-suff \
381 | --program-suf | --program-su | --program-s)
382 ac_prev=program_suffix ;;
383 -program-suffix=* | --program-suffix=* | --program-suffi=* \
384 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
385 program_suffix="$ac_optarg" ;;
387 -program-transform-name | --program-transform-name \
388 | --program-transform-nam | --program-transform-na \
389 | --program-transform-n | --program-transform- \
390 | --program-transform | --program-transfor \
391 | --program-transfo | --program-transf \
392 | --program-trans | --program-tran \
393 | --progr-tra | --program-tr | --program-t)
394 ac_prev=program_transform_name ;;
395 -program-transform-name=* | --program-transform-name=* \
396 | --program-transform-nam=* | --program-transform-na=* \
397 | --program-transform-n=* | --program-transform-=* \
398 | --program-transform=* | --program-transfor=* \
399 | --program-transfo=* | --program-transf=* \
400 | --program-trans=* | --program-tran=* \
401 | --progr-tra=* | --program-tr=* | --program-t=*)
402 program_transform_name="$ac_optarg" ;;
404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
405 | -silent | --silent | --silen | --sile | --sil)
408 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
410 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
412 sbindir="$ac_optarg" ;;
414 -sharedstatedir | --sharedstatedir | --sharedstatedi \
415 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
416 | --sharedst | --shareds | --shared | --share | --shar \
418 ac_prev=sharedstatedir ;;
419 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
420 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
421 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
423 sharedstatedir="$ac_optarg" ;;
425 -site | --site | --sit)
427 -site=* | --site=* | --sit=*)
430 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
432 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
433 srcdir="$ac_optarg" ;;
435 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
436 | --syscon | --sysco | --sysc | --sys | --sy)
437 ac_prev=sysconfdir ;;
438 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
439 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
440 sysconfdir="$ac_optarg" ;;
442 -target | --target | --targe | --targ | --tar | --ta | --t)
444 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
445 target="$ac_optarg" ;;
447 -v | -verbose | --verbose | --verbos | --verbo | --verb)
450 -version | --version | --versio | --versi | --vers)
451 echo "configure generated by autoconf version 2.13.1"
455 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
456 # Reject names that are not valid shell variable names.
457 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
460 ac_package=`echo $ac_package| sed 's/-/_/g'`
465 eval "with_${ac_package}='$ac_optarg'" ;;
467 -without-* | --without-*)
468 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
473 ac_package=`echo $ac_package| sed 's/-/_/g'`
474 eval "with_${ac_package}=no" ;;
477 # Obsolete; use --with-x.
480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
481 | --x-incl | --x-inc | --x-in | --x-i)
482 ac_prev=x_includes ;;
483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
485 x_includes="$ac_optarg" ;;
487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
489 ac_prev=x_libraries ;;
490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
492 x_libraries="$ac_optarg" ;;
494 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
498 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
499 echo "configure: warning: $ac_option: invalid host type" 1>&2
501 if test "x$nonopt" != xNONE; then
502 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
510 if test -n "$ac_prev"; then
511 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
514 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
516 # File descriptor usage:
519 # 2 errors and warnings
520 # 3 some systems may open it to /dev/tty
521 # 4 used on the Kubota Titan
522 # 6 checking for... messages and results
523 # 5 compiler messages saved in config.log
524 if test "$silent" = yes; then
532 This file contains any messages produced by compilers while
533 running configure, to aid debugging if configure makes a mistake.
536 # Strip out --no-create and --no-recursion so they do not pile up.
537 # Also quote any args containing shell metacharacters.
542 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 | --no-cr | --no-c) ;;
544 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
545 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
546 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
547 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
548 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
553 # Only set these to C if already set. These must not be set unconditionally
554 # because not all systems understand e.g. LANG=C (notably SCO).
555 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
556 # Non-C LC_CTYPE values break the ctype check.
557 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
558 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
559 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
560 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
562 # confdefs.h avoids OS command line length limits that DEFS can exceed.
563 rm -rf conftest* confdefs.h
564 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
567 # A filename unique to this package, relative to the directory that
568 # configure is in, which we can look for to find out if srcdir is correct.
569 ac_unique_file=build/version
571 # Find the source files, if location was not specified.
572 if test -z "$srcdir"; then
573 ac_srcdir_defaulted=yes
574 # Try the directory containing this script, then its parent.
576 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
577 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
579 if test ! -r $srcdir/$ac_unique_file; then
583 ac_srcdir_defaulted=no
585 if test ! -r $srcdir/$ac_unique_file; then
586 if test "$ac_srcdir_defaulted" = yes; then
587 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
589 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
592 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
594 # Prefer explicitly selected file to automatically selected ones.
595 if test -z "$CONFIG_SITE"; then
596 if test "x$prefix" != xNONE; then
597 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
599 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
602 for ac_site_file in $CONFIG_SITE; do
603 if test -r "$ac_site_file"; then
604 echo "loading site script $ac_site_file"
611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
612 ac_cpp='$CPP $CPPFLAGS'
613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
615 cross_compiling=$ac_cv_prog_cc_cross
619 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
620 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
621 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
628 ac_n= ac_c='\c' ac_t=
632 # set unset (borrowed from autoconf 2.49c)
633 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
639 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
642 for ac_dir in build $srcdir/build; do
643 if test -f $ac_dir/install-sh; then
645 ac_install_sh="$ac_aux_dir/install-sh -c"
647 elif test -f $ac_dir/install.sh; then
649 ac_install_sh="$ac_aux_dir/install.sh -c"
651 elif test -f $ac_dir/shtool; then
653 ac_install_sh="$ac_aux_dir/shtool install -c"
657 if test -z "$ac_aux_dir"; then
658 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
660 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
661 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
662 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
664 OL_VERSION=`cat $ac_aux_dir/version`
665 if test -z "$OL_VERSION"; then
666 { echo "configure: error: could not determine version" 1>&2; exit 1; }
669 echo "Configuring OpenLDAP $OL_VERSION ..."
672 echo $ac_n "checking host system type""... $ac_c" 1>&6
673 echo "configure:674: checking host system type" >&5
674 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
676 # Make sure we can run config.sub.
677 if $ac_config_sub sun4 >/dev/null 2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 ac_cv_host_alias=$host
682 case "$ac_cv_host_alias" in
686 if ac_cv_host_alias=`$ac_config_guess`; then :
687 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
689 *) ac_cv_host_alias=$nonopt ;;
693 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
694 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
698 echo $ac_n "(cached) $ac_c" 1>&6
701 echo "$ac_t""$ac_cv_host" 1>&6
704 host_alias=$ac_cv_host_alias
705 host_cpu=$ac_cv_host_cpu
706 host_vendor=$ac_cv_host_vendor
707 host_os=$ac_cv_host_os
713 echo $ac_n "checking target system type""... $ac_c" 1>&6
714 echo "configure:715: checking target system type" >&5
715 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
717 # Make sure we can run config.sub.
718 if $ac_config_sub sun4 >/dev/null 2>&1; then :
719 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 ac_cv_target_alias=$target
723 case "$ac_cv_target_alias" in
727 ac_cv_target_alias=$host_alias ;;
729 *) ac_cv_target_alias=$nonopt ;;
733 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
734 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
735 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
736 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
738 echo $ac_n "(cached) $ac_c" 1>&6
741 echo "$ac_t""$ac_cv_target" 1>&6
744 target_alias=$ac_cv_target_alias
745 target_cpu=$ac_cv_target_cpu
746 target_vendor=$ac_cv_target_vendor
747 target_os=$ac_cv_target_os
753 echo $ac_n "checking build system type""... $ac_c" 1>&6
754 echo "configure:755: checking build system type" >&5
755 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
757 # Make sure we can run config.sub.
758 if $ac_config_sub sun4 >/dev/null 2>&1; then :
759 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
762 ac_cv_build_alias=$build
763 case "$ac_cv_build_alias" in
767 ac_cv_build_alias=$host_alias ;;
769 *) ac_cv_build_alias=$nonopt ;;
773 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
774 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo $ac_n "(cached) $ac_c" 1>&6
781 echo "$ac_t""$ac_cv_build" 1>&6
784 build_alias=$ac_cv_build_alias
785 build_cpu=$ac_cv_build_cpu
786 build_vendor=$ac_cv_build_vendor
787 build_os=$ac_cv_build_os
793 # Do some error checking and defaulting for the host and target type.
795 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
798 # 1. You are not allowed to specify --host, --target, and nonopt at the
800 # 2. Host defaults to nonopt.
801 # 3. If nonopt is not specified, then host defaults to the current host,
802 # as determined by config.guess.
803 # 4. Target and build default to nonopt.
804 # 5. If nonopt is not specified, then target and build default to host.
806 # The aliases save the names the user supplied, while $host etc.
807 # will get canonicalized.
808 case $host---$target---$nonopt in
809 NONE---*---* | *---NONE---* | *---*---NONE) ;;
810 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
813 test "$host_alias" != "$target_alias" &&
814 test "$program_prefix$program_suffix$program_transform_name" = \
816 program_prefix=${target_alias}-
819 # Find a good install program. We prefer a C program (faster),
820 # so one script is as good as another. But avoid the broken or
821 # incompatible versions:
822 # SysV /etc/install, /usr/sbin/install
823 # SunOS /usr/etc/install
826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
829 # ./install, which can be erroneously created by make from ./install.sh.
830 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
831 echo "configure:832: checking for a BSD compatible install" >&5
832 if test -z "$INSTALL"; then
833 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
837 for ac_dir in $PATH; do
838 # Account for people who put trailing slashes in PATH elements.
840 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
842 # OSF1 and SCO ODT 3.0 have their own names for install.
843 # Don't use installbsd from OSF since it installs stuff as root
845 for ac_prog in ginstall scoinst install; do
846 if test -f $ac_dir/$ac_prog; then
847 if test $ac_prog = install &&
848 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
849 # AIX install. It has an incompatible calling convention.
851 elif test $ac_prog = install &&
852 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
853 # program-specific install script used by HP pwplus--don't use.
856 ac_cv_path_install="$ac_dir/$ac_prog -c"
867 if test "${ac_cv_path_install+set}" = set; then
868 INSTALL="$ac_cv_path_install"
870 # As a last resort, use the slow shell script. We don't cache a
871 # path for INSTALL within a source directory, because that will
872 # break other packages using the cache if that directory is
873 # removed, or if the path is relative.
874 INSTALL="$ac_install_sh"
877 echo "$ac_t""$INSTALL" 1>&6
879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
880 # It thinks the first close brace ends the variable substitution.
881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
887 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
888 echo "configure:889: checking whether build environment is sane" >&5
891 echo timestamp > conftestfile
892 # Do `set' in a subshell so we don't clobber the current shell's
893 # arguments. Must try -L first in case configure is actually a
894 # symlink; some systems play weird games with the mod time of symlinks
895 # (eg FreeBSD returns the mod time of the symlink's containing
898 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
899 if test "$*" = "X"; then
901 set X `ls -t $srcdir/configure conftestfile`
903 if test "$*" != "X $srcdir/configure conftestfile" \
904 && test "$*" != "X conftestfile $srcdir/configure"; then
906 # If neither matched, then we have a broken ls. This can happen
907 # if, for instance, CONFIG_SHELL is bash and it inherits a
908 # broken ls alias from the environment. This has actually
909 # happened. Such a system could not be considered "sane".
910 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
911 alias in your environment" 1>&2; exit 1; }
914 test "$2" = conftestfile
920 { echo "configure: error: newly created file is older than distributed files!
921 Check your system clock" 1>&2; exit 1; }
924 echo "$ac_t""yes" 1>&6
925 if test "$program_transform_name" = s,x,x,; then
926 program_transform_name=
928 # Double any \ or $. echo might interpret backslashes.
929 cat <<\EOF_SED > conftestsed
930 s,\\,\\\\,g; s,\$,$$,g
932 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
935 test "$program_prefix" != NONE &&
936 program_transform_name="s,^,${program_prefix},;$program_transform_name"
937 # Use a double $ so make ignores it.
938 test "$program_suffix" != NONE &&
939 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
941 # sed with no file args requires a program.
942 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
944 for ac_prog in mawk gawk nawk awk
946 # Extract the first word of "$ac_prog", so it can be a program name with args.
947 set dummy $ac_prog; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 if test -n "$AWK"; then
954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 for ac_dir in $ac_dummy; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
961 ac_cv_prog_AWK="$ac_prog"
968 AWK="$ac_cv_prog_AWK"
969 if test -n "$AWK"; then
970 echo "$ac_t""$AWK" 1>&6
972 echo "$ac_t""no" 1>&6
975 test -n "$AWK" && break
978 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
979 echo "configure:980: checking whether ${MAKE-make} sets \${MAKE}" >&5
980 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
981 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 cat > conftestmake <<\EOF
986 @echo 'ac_maketemp="${MAKE}"'
988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
989 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
990 if test -n "$ac_maketemp"; then
991 eval ac_cv_prog_make_${ac_make}_set=yes
993 eval ac_cv_prog_make_${ac_make}_set=no
997 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
998 echo "$ac_t""yes" 1>&6
1001 echo "$ac_t""no" 1>&6
1002 SET_MAKE="MAKE=${MAKE-make}"
1011 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1012 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1017 missing_dir=`cd $ac_aux_dir && pwd`
1018 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1019 echo "configure:1020: checking for working aclocal" >&5
1020 # Run test in a subshell; some versions of sh will print an error if
1021 # an executable is not found, even if stderr is redirected.
1022 # Redirect stdin to placate older versions of autoconf. Sigh.
1023 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1025 echo "$ac_t""found" 1>&6
1027 ACLOCAL="$missing_dir/missing aclocal"
1028 echo "$ac_t""missing" 1>&6
1031 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1032 echo "configure:1033: checking for working autoconf" >&5
1033 # Run test in a subshell; some versions of sh will print an error if
1034 # an executable is not found, even if stderr is redirected.
1035 # Redirect stdin to placate older versions of autoconf. Sigh.
1036 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1038 echo "$ac_t""found" 1>&6
1040 AUTOCONF="$missing_dir/missing autoconf"
1041 echo "$ac_t""missing" 1>&6
1044 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1045 echo "configure:1046: checking for working automake" >&5
1046 # Run test in a subshell; some versions of sh will print an error if
1047 # an executable is not found, even if stderr is redirected.
1048 # Redirect stdin to placate older versions of autoconf. Sigh.
1049 if (automake --version) < /dev/null > /dev/null 2>&1; then
1051 echo "$ac_t""found" 1>&6
1053 AUTOMAKE="$missing_dir/missing automake"
1054 echo "$ac_t""missing" 1>&6
1057 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1058 echo "configure:1059: checking for working autoheader" >&5
1059 # Run test in a subshell; some versions of sh will print an error if
1060 # an executable is not found, even if stderr is redirected.
1061 # Redirect stdin to placate older versions of autoconf. Sigh.
1062 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1063 AUTOHEADER=autoheader
1064 echo "$ac_t""found" 1>&6
1066 AUTOHEADER="$missing_dir/missing autoheader"
1067 echo "$ac_t""missing" 1>&6
1070 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1071 echo "configure:1072: checking for working makeinfo" >&5
1072 # Run test in a subshell; some versions of sh will print an error if
1073 # an executable is not found, even if stderr is redirected.
1074 # Redirect stdin to placate older versions of autoconf. Sigh.
1075 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1077 echo "$ac_t""found" 1>&6
1079 MAKEINFO="$missing_dir/missing makeinfo"
1080 echo "$ac_t""missing" 1>&6
1083 install_sh="$missing_dir/install-sh"
1084 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1086 for ac_prog in gnutar gtar tar
1088 # Extract the first word of "$ac_prog", so it can be a program name with args.
1089 set dummy $ac_prog; ac_word=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$AMTAR"; then
1096 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_prog_AMTAR="$ac_prog"
1110 AMTAR="$ac_cv_prog_AMTAR"
1111 if test -n "$AMTAR"; then
1112 echo "$ac_t""$AMTAR" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 test -n "$AMTAR" && break
1122 if test -n "$AMTAR"; then
1123 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1128 cat >> confdefs.h <<EOF
1129 #define OPENLDAP_PACKAGE "$PACKAGE"
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_VERSION "$VERSION"
1139 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1140 echo "configure:1141: checking configure arguments" >&5
1145 ldap_subdir="/openldap"
1147 # Check whether --with-subdir or --without-subdir was given.
1148 if test "${with_subdir+set}" = set; then
1149 withval="$with_subdir"
1156 ldap_subdir="$withval"
1159 ldap_subdir="/$withval"
1166 # OpenLDAP --enable-debug
1167 # Check whether --enable-debug or --disable-debug was given.
1168 if test "${enable_debug+set}" = set; then
1169 enableval="$enable_debug"
1172 for ol_val in auto yes no ; do
1173 if test "$enableval" = "$ol_val" ; then
1177 if test "$ol_arg" = "invalid" ; then
1178 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1180 ol_enable_debug="$ol_arg"
1183 ol_enable_debug="yes"
1185 # end --enable-debug
1186 # OpenLDAP --enable-syslog
1187 # Check whether --enable-syslog or --disable-syslog was given.
1188 if test "${enable_syslog+set}" = set; then
1189 enableval="$enable_syslog"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1200 ol_enable_syslog="$ol_arg"
1203 ol_enable_syslog="auto"
1205 # end --enable-syslog
1206 # OpenLDAP --enable-proctitle
1207 # Check whether --enable-proctitle or --disable-proctitle was given.
1208 if test "${enable_proctitle+set}" = set; then
1209 enableval="$enable_proctitle"
1212 for ol_val in auto yes no ; do
1213 if test "$enableval" = "$ol_val" ; then
1217 if test "$ol_arg" = "invalid" ; then
1218 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1220 ol_enable_proctitle="$ol_arg"
1223 ol_enable_proctitle="yes"
1225 # end --enable-proctitle
1226 # OpenLDAP --enable-cache
1227 # Check whether --enable-cache or --disable-cache was given.
1228 if test "${enable_cache+set}" = set; then
1229 enableval="$enable_cache"
1232 for ol_val in auto yes no ; do
1233 if test "$enableval" = "$ol_val" ; then
1237 if test "$ol_arg" = "invalid" ; then
1238 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1240 ol_enable_cache="$ol_arg"
1243 ol_enable_cache="yes"
1245 # end --enable-cache
1246 # OpenLDAP --enable-referrals
1247 # Check whether --enable-referrals or --disable-referrals was given.
1248 if test "${enable_referrals+set}" = set; then
1249 enableval="$enable_referrals"
1252 for ol_val in auto yes no ; do
1253 if test "$enableval" = "$ol_val" ; then
1257 if test "$ol_arg" = "invalid" ; then
1258 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1260 ol_enable_referrals="$ol_arg"
1263 ol_enable_referrals="yes"
1265 # end --enable-referrals
1266 # OpenLDAP --enable-kbind
1267 # Check whether --enable-kbind or --disable-kbind was given.
1268 if test "${enable_kbind+set}" = set; then
1269 enableval="$enable_kbind"
1272 for ol_val in auto yes no ; do
1273 if test "$enableval" = "$ol_val" ; then
1277 if test "$ol_arg" = "invalid" ; then
1278 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1280 ol_enable_kbind="$ol_arg"
1283 ol_enable_kbind="no"
1285 # end --enable-kbind
1286 # OpenLDAP --enable-ipv6
1287 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1288 if test "${enable_ipv6+set}" = set; then
1289 enableval="$enable_ipv6"
1292 for ol_val in auto yes no ; do
1293 if test "$enableval" = "$ol_val" ; then
1297 if test "$ol_arg" = "invalid" ; then
1298 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1300 ol_enable_ipv6="$ol_arg"
1303 ol_enable_ipv6="auto"
1306 # OpenLDAP --enable-local
1307 # Check whether --enable-local or --disable-local was given.
1308 if test "${enable_local+set}" = set; then
1309 enableval="$enable_local"
1312 for ol_val in auto yes no ; do
1313 if test "$enableval" = "$ol_val" ; then
1317 if test "$ol_arg" = "invalid" ; then
1318 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1320 ol_enable_local="$ol_arg"
1323 ol_enable_local="auto"
1325 # end --enable-local
1326 # OpenLDAP --enable-x_compile
1327 # Check whether --enable-x_compile or --disable-x_compile was given.
1328 if test "${enable_x_compile+set}" = set; then
1329 enableval="$enable_x_compile"
1332 for ol_val in yes no ; do
1333 if test "$enableval" = "$ol_val" ; then
1337 if test "$ol_arg" = "invalid" ; then
1338 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1340 ol_enable_x_compile="$ol_arg"
1343 ol_enable_x_compile="no"
1345 # end --enable-x_compile
1348 # OpenLDAP --with-cyrus_sasl
1349 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1350 if test "${with_cyrus_sasl+set}" = set; then
1351 withval="$with_cyrus_sasl"
1354 for ol_val in auto yes no ; do
1355 if test "$withval" = "$ol_val" ; then
1359 if test "$ol_arg" = "invalid" ; then
1360 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1362 ol_with_cyrus_sasl="$ol_arg"
1365 ol_with_cyrus_sasl="auto"
1367 # end --with-cyrus_sasl
1369 # OpenLDAP --with-fetch
1370 # Check whether --with-fetch or --without-fetch was given.
1371 if test "${with_fetch+set}" = set; then
1372 withval="$with_fetch"
1375 for ol_val in auto yes no ; do
1376 if test "$withval" = "$ol_val" ; then
1380 if test "$ol_arg" = "invalid" ; then
1381 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1383 ol_with_fetch="$ol_arg"
1386 ol_with_fetch="auto"
1390 # OpenLDAP --with-kerberos
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1396 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1397 if test "$withval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1404 ol_with_kerberos="$ol_arg"
1407 ol_with_kerberos="auto"
1409 # end --with-kerberos
1411 # OpenLDAP --with-readline
1412 # Check whether --with-readline or --without-readline was given.
1413 if test "${with_readline+set}" = set; then
1414 withval="$with_readline"
1417 for ol_val in auto yes no ; do
1418 if test "$withval" = "$ol_val" ; then
1422 if test "$ol_arg" = "invalid" ; then
1423 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1425 ol_with_readline="$ol_arg"
1428 ol_with_readline="auto"
1430 # end --with-readline
1432 # OpenLDAP --with-threads
1433 # Check whether --with-threads or --without-threads was given.
1434 if test "${with_threads+set}" = set; then
1435 withval="$with_threads"
1438 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1439 if test "$withval" = "$ol_val" ; then
1443 if test "$ol_arg" = "invalid" ; then
1444 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1446 ol_with_threads="$ol_arg"
1449 ol_with_threads="auto"
1451 # end --with-threads
1453 # OpenLDAP --with-tls
1454 # Check whether --with-tls or --without-tls was given.
1455 if test "${with_tls+set}" = set; then
1459 for ol_val in auto ssleay openssl yes no ; do
1460 if test "$withval" = "$ol_val" ; then
1464 if test "$ol_arg" = "invalid" ; then
1465 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1467 ol_with_tls="$ol_arg"
1474 # OpenLDAP --with-yielding_select
1475 # Check whether --with-yielding_select or --without-yielding_select was given.
1476 if test "${with_yielding_select+set}" = set; then
1477 withval="$with_yielding_select"
1480 for ol_val in auto yes no manual ; do
1481 if test "$withval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1488 ol_with_yielding_select="$ol_arg"
1491 ol_with_yielding_select="auto"
1493 # end --with-yielding_select
1497 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1498 if test "${with_xxslapdoptions+set}" = set; then
1499 withval="$with_xxslapdoptions"
1503 # OpenLDAP --enable-slapd
1504 # Check whether --enable-slapd or --disable-slapd was given.
1505 if test "${enable_slapd+set}" = set; then
1506 enableval="$enable_slapd"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1517 ol_enable_slapd="$ol_arg"
1520 ol_enable_slapd="yes"
1522 # end --enable-slapd
1523 # OpenLDAP --enable-cleartext
1524 # Check whether --enable-cleartext or --disable-cleartext was given.
1525 if test "${enable_cleartext+set}" = set; then
1526 enableval="$enable_cleartext"
1529 for ol_val in auto yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1537 ol_enable_cleartext="$ol_arg"
1540 ol_enable_cleartext="yes"
1542 # end --enable-cleartext
1543 # OpenLDAP --enable-crypt
1544 # Check whether --enable-crypt or --disable-crypt was given.
1545 if test "${enable_crypt+set}" = set; then
1546 enableval="$enable_crypt"
1549 for ol_val in auto yes no ; do
1550 if test "$enableval" = "$ol_val" ; then
1554 if test "$ol_arg" = "invalid" ; then
1555 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1557 ol_enable_crypt="$ol_arg"
1560 ol_enable_crypt="auto"
1562 # end --enable-crypt
1563 # OpenLDAP --enable-kpasswd
1564 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1565 if test "${enable_kpasswd+set}" = set; then
1566 enableval="$enable_kpasswd"
1569 for ol_val in auto yes no ; do
1570 if test "$enableval" = "$ol_val" ; then
1574 if test "$ol_arg" = "invalid" ; then
1575 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1577 ol_enable_kpasswd="$ol_arg"
1580 ol_enable_kpasswd="no"
1582 # end --enable-kpasswd
1583 # OpenLDAP --enable-spasswd
1584 # Check whether --enable-spasswd or --disable-spasswd was given.
1585 if test "${enable_spasswd+set}" = set; then
1586 enableval="$enable_spasswd"
1589 for ol_val in auto yes no ; do
1590 if test "$enableval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1597 ol_enable_spasswd="$ol_arg"
1600 ol_enable_spasswd="no"
1602 # end --enable-spasswd
1603 # OpenLDAP --enable-modules
1604 # Check whether --enable-modules or --disable-modules was given.
1605 if test "${enable_modules+set}" = set; then
1606 enableval="$enable_modules"
1609 for ol_val in auto yes no ; do
1610 if test "$enableval" = "$ol_val" ; then
1614 if test "$ol_arg" = "invalid" ; then
1615 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1617 ol_enable_modules="$ol_arg"
1620 ol_enable_modules="no"
1622 # end --enable-modules
1623 # OpenLDAP --enable-phonetic
1624 # Check whether --enable-phonetic or --disable-phonetic was given.
1625 if test "${enable_phonetic+set}" = set; then
1626 enableval="$enable_phonetic"
1629 for ol_val in auto yes no ; do
1630 if test "$enableval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1637 ol_enable_phonetic="$ol_arg"
1640 ol_enable_phonetic="no"
1642 # end --enable-phonetic
1643 # OpenLDAP --enable-rlookups
1644 # Check whether --enable-rlookups or --disable-rlookups was given.
1645 if test "${enable_rlookups+set}" = set; then
1646 enableval="$enable_rlookups"
1649 for ol_val in auto yes no ; do
1650 if test "$enableval" = "$ol_val" ; then
1654 if test "$ol_arg" = "invalid" ; then
1655 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1657 ol_enable_rlookups="$ol_arg"
1660 ol_enable_rlookups="no"
1662 # end --enable-rlookups
1663 # OpenLDAP --enable-aci
1664 # Check whether --enable-aci or --disable-aci was given.
1665 if test "${enable_aci+set}" = set; then
1666 enableval="$enable_aci"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1677 ol_enable_aci="$ol_arg"
1683 # OpenLDAP --enable-wrappers
1684 # Check whether --enable-wrappers or --disable-wrappers was given.
1685 if test "${enable_wrappers+set}" = set; then
1686 enableval="$enable_wrappers"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1697 ol_enable_wrappers="$ol_arg"
1700 ol_enable_wrappers="no"
1702 # end --enable-wrappers
1703 # OpenLDAP --enable-dynamic
1704 # Check whether --enable-dynamic or --disable-dynamic was given.
1705 if test "${enable_dynamic+set}" = set; then
1706 enableval="$enable_dynamic"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1717 ol_enable_dynamic="$ol_arg"
1720 ol_enable_dynamic="no"
1722 # end --enable-dynamic
1724 # OpenLDAP --enable-dnssrv
1725 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1726 if test "${enable_dnssrv+set}" = set; then
1727 enableval="$enable_dnssrv"
1730 for ol_val in auto yes no ; do
1731 if test "$enableval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1738 ol_enable_dnssrv="$ol_arg"
1741 ol_enable_dnssrv="no"
1743 # end --enable-dnssrv
1744 # OpenLDAP --with-dnssrv_module
1745 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1746 if test "${with_dnssrv_module+set}" = set; then
1747 withval="$with_dnssrv_module"
1750 for ol_val in static dynamic ; do
1751 if test "$withval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1758 ol_with_dnssrv_module="$ol_arg"
1761 ol_with_dnssrv_module="static"
1763 # end --with-dnssrv_module
1765 # OpenLDAP --enable-ldap
1766 # Check whether --enable-ldap or --disable-ldap was given.
1767 if test "${enable_ldap+set}" = set; then
1768 enableval="$enable_ldap"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1779 ol_enable_ldap="$ol_arg"
1785 # OpenLDAP --with-ldap_module
1786 # Check whether --with-ldap_module or --without-ldap_module was given.
1787 if test "${with_ldap_module+set}" = set; then
1788 withval="$with_ldap_module"
1791 for ol_val in static dynamic ; do
1792 if test "$withval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1799 ol_with_ldap_module="$ol_arg"
1802 ol_with_ldap_module="static"
1804 # end --with-ldap_module
1806 # OpenLDAP --enable-ldbm
1807 # Check whether --enable-ldbm or --disable-ldbm was given.
1808 if test "${enable_ldbm+set}" = set; then
1809 enableval="$enable_ldbm"
1812 for ol_val in auto yes no ; do
1813 if test "$enableval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1820 ol_enable_ldbm="$ol_arg"
1823 ol_enable_ldbm="yes"
1826 # OpenLDAP --with-ldbm_api
1827 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1828 if test "${with_ldbm_api+set}" = set; then
1829 withval="$with_ldbm_api"
1832 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1833 if test "$withval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1840 ol_with_ldbm_api="$ol_arg"
1843 ol_with_ldbm_api="auto"
1845 # end --with-ldbm_api
1847 # OpenLDAP --with-ldbm_module
1848 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1849 if test "${with_ldbm_module+set}" = set; then
1850 withval="$with_ldbm_module"
1853 for ol_val in static dynamic ; do
1854 if test "$withval" = "$ol_val" ; then
1858 if test "$ol_arg" = "invalid" ; then
1859 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1861 ol_with_ldbm_module="$ol_arg"
1864 ol_with_ldbm_module="static"
1866 # end --with-ldbm_module
1868 # OpenLDAP --with-ldbm_type
1869 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1870 if test "${with_ldbm_type+set}" = set; then
1871 withval="$with_ldbm_type"
1874 for ol_val in auto btree hash ; do
1875 if test "$withval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1882 ol_with_ldbm_type="$ol_arg"
1885 ol_with_ldbm_type="auto"
1887 # end --with-ldbm_type
1889 # OpenLDAP --enable-passwd
1890 # Check whether --enable-passwd or --disable-passwd was given.
1891 if test "${enable_passwd+set}" = set; then
1892 enableval="$enable_passwd"
1895 for ol_val in auto yes no ; do
1896 if test "$enableval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1903 ol_enable_passwd="$ol_arg"
1906 ol_enable_passwd="no"
1908 # end --enable-passwd
1909 # OpenLDAP --with-passwd_module
1910 # Check whether --with-passwd_module or --without-passwd_module was given.
1911 if test "${with_passwd_module+set}" = set; then
1912 withval="$with_passwd_module"
1915 for ol_val in static dynamic ; do
1916 if test "$withval" = "$ol_val" ; then
1920 if test "$ol_arg" = "invalid" ; then
1921 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1923 ol_with_passwd_module="$ol_arg"
1926 ol_with_passwd_module="static"
1928 # end --with-passwd_module
1930 # OpenLDAP --enable-shell
1931 # Check whether --enable-shell or --disable-shell was given.
1932 if test "${enable_shell+set}" = set; then
1933 enableval="$enable_shell"
1936 for ol_val in auto yes no ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1944 ol_enable_shell="$ol_arg"
1947 ol_enable_shell="no"
1949 # end --enable-shell
1950 # OpenLDAP --with-shell_module
1951 # Check whether --with-shell_module or --without-shell_module was given.
1952 if test "${with_shell_module+set}" = set; then
1953 withval="$with_shell_module"
1956 for ol_val in static dynamic ; do
1957 if test "$withval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1964 ol_with_shell_module="$ol_arg"
1967 ol_with_shell_module="static"
1969 # end --with-shell_module
1971 # OpenLDAP --enable-sql
1972 # Check whether --enable-sql or --disable-sql was given.
1973 if test "${enable_sql+set}" = set; then
1974 enableval="$enable_sql"
1977 for ol_val in auto yes no ; do
1978 if test "$enableval" = "$ol_val" ; then
1982 if test "$ol_arg" = "invalid" ; then
1983 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1985 ol_enable_sql="$ol_arg"
1991 # OpenLDAP --with-sql_module
1992 # Check whether --with-sql_module or --without-sql_module was given.
1993 if test "${with_sql_module+set}" = set; then
1994 withval="$with_sql_module"
1997 for ol_val in static dynamic ; do
1998 if test "$withval" = "$ol_val" ; then
2002 if test "$ol_arg" = "invalid" ; then
2003 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2005 ol_with_sql_module="$ol_arg"
2008 ol_with_sql_module="static"
2010 # end --with-sql_module
2013 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2014 if test "${with_xxslurpdoptions+set}" = set; then
2015 withval="$with_xxslurpdoptions"
2019 # OpenLDAP --enable-slurpd
2020 # Check whether --enable-slurpd or --disable-slurpd was given.
2021 if test "${enable_slurpd+set}" = set; then
2022 enableval="$enable_slurpd"
2025 for ol_val in auto yes no ; do
2026 if test "$enableval" = "$ol_val" ; then
2030 if test "$ol_arg" = "invalid" ; then
2031 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2033 ol_enable_slurpd="$ol_arg"
2036 ol_enable_slurpd="auto"
2038 # end --enable-slurpd
2040 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2041 if test "${with_xxliboptions+set}" = set; then
2042 withval="$with_xxliboptions"
2046 # Check whether --enable-static or --disable-static was given.
2047 if test "${enable_static+set}" = set; then
2048 enableval="$enable_static"
2049 p=${PACKAGE-default}
2050 case "$enableval" in
2051 yes) enable_static=yes ;;
2052 no) enable_static=no ;;
2055 # Look at the argument we got. We use all the common list separators.
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2057 for pkg in $enableval; do
2058 if test "X$pkg" = "X$p"; then
2069 # Check whether --enable-shared or --disable-shared was given.
2070 if test "${enable_shared+set}" = set; then
2071 enableval="$enable_shared"
2072 p=${PACKAGE-default}
2073 case "$enableval" in
2074 yes) enable_shared=yes ;;
2075 no) enable_shared=no ;;
2078 # Look at the argument we got. We use all the common list separators.
2079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2080 for pkg in $enableval; do
2081 if test "X$pkg" = "X$p"; then
2095 if test $ol_enable_slapd = no ; then
2096 if test $ol_enable_dnssrv = yes ; then
2097 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2099 if test $ol_enable_ldap = yes ; then
2100 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2102 if test $ol_enable_ldbm = yes ; then
2103 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2105 if test $ol_enable_passwd = yes ; then
2106 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2108 if test $ol_enable_shell = yes ; then
2109 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2111 if test $ol_enable_sql = yes ; then
2112 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2114 if test $ol_enable_modules = yes ; then
2115 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2117 if test $ol_enable_multimaster = yes ; then
2118 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2120 if test $ol_enable_wrappers = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2123 if test $ol_enable_phonetic = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2126 if test $ol_enable_rlookups = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2129 if test $ol_enable_aci = yes ; then
2130 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2132 if test $ol_with_ldbm_api != auto ; then
2133 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2135 if test $ol_with_ldbm_type != auto ; then
2136 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2138 if test $ol_with_dnssrv_module != static ; then
2139 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2141 if test $ol_with_ldap_module != static ; then
2142 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2144 if test $ol_with_ldbm_module != static ; then
2145 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2147 if test $ol_with_passwd_module != static ; then
2148 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2150 if test $ol_with_shell_module != static ; then
2151 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2153 if test $ol_with_sql_module != static ; then
2154 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2156 if test $ol_enable_slurpd = yes ; then
2157 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2160 # force settings to no
2168 ol_enable_modules=no
2169 ol_enable_phonetic=no
2170 ol_enable_rlookups=no
2172 ol_enable_wrappers=no
2173 ol_enable_dynamic=no
2176 ol_with_ldbm_type=no
2178 ol_with_dnssrv_module=static
2179 ol_with_ldap_module=static
2180 ol_with_ldbm_module=static
2181 ol_with_passwd_module=static
2182 ol_with_shell_module=static
2183 ol_with_sql_module=static
2187 elif test $ol_enable_ldbm = no ; then
2189 if test $ol_with_ldbm_api != auto ; then
2190 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2193 if test $ol_with_ldbm_type != auto ; then
2194 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2197 if test $ol_with_ldbm_module != static ; then
2198 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2201 if test $ol_enable_modules != yes -a \
2202 $ol_enable_dnssrv = no -a \
2203 $ol_enable_ldap = no -a \
2204 $ol_enable_passwd = no -a \
2205 $ol_enable_shell = no -a \
2206 $ol_enable_sql = no ; then
2207 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2211 ol_with_ldbm_type=no
2212 ol_with_ldbm_module=static
2215 if test $ol_with_ldbm_api = gdbm -a \
2216 $ol_with_ldbm_type = btree ; then
2217 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2219 if test $ol_with_ldbm_api = mdbm -a \
2220 $ol_with_ldbm_type = btree ; then
2221 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2223 if test $ol_with_ldbm_api = ndbm -a \
2224 $ol_with_ldbm_type = btree ; then
2225 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2229 if test $ol_enable_slurpd = yes ; then
2230 if test $ol_with_threads = no ; then
2231 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2235 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2236 if test $ol_with_kerberos = no ; then
2237 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2239 ol_with_kerberos=yes
2240 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2241 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2242 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2247 if test $ol_enable_spasswd = yes ; then
2248 if test $ol_with_cyrus_sasl = no ; then
2249 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2251 ol_with_cyrus_sasl=yes
2254 echo "$ac_t""done" 1>&6
2277 BUILD_DNSSRV_DYNAMIC=static
2278 BUILD_LDAP_DYNAMIC=static
2279 BUILD_LDBM_DYNAMIC=static
2280 BUILD_PASSWD_DYNAMIC=static
2281 BUILD_SHELL_DYNAMIC=static
2282 BUILD_SQL_DYNAMIC=static
2284 SLAPD_MODULES_LDFLAGS=
2285 SLAPD_MODULES_CPPFLAGS=
2303 cat >> confdefs.h <<\EOF
2304 #define HAVE_MKVERSION 1
2312 *-*-aix*) if test -z "$CC" ; then
2313 case "$ol_with_threads" in
2314 auto | yes | posix) ol_aix_threads=yes ;;
2320 if test $ol_aix_threads = yes ; then
2321 if test -z "${CC}" ; then
2322 for ac_prog in cc_r xlc_r cc
2324 # Extract the first word of "$ac_prog", so it can be a program name with args.
2325 set dummy $ac_prog; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_CC="$ac_prog"
2347 if test -n "$CC"; then
2348 echo "$ac_t""$CC" 1>&6
2350 echo "$ac_t""no" 1>&6
2353 test -n "$CC" && break
2357 if test "$CC" = cc ; then
2358 if test $ol_with_threads != auto ; then
2359 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2361 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2367 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2368 ol_with_threads=posix
2369 ol_cv_pthread_create=yes
2373 if test -z "${CC}"; then
2376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2377 set dummy $ac_prog; ac_word=$2
2378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2379 echo "configure:2380: checking for $ac_word" >&5
2380 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2388 for ac_dir in $ac_dummy; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_prog_CC="$ac_prog"
2399 if test -n "$CC"; then
2400 echo "$ac_t""$CC" 1>&6
2402 echo "$ac_t""no" 1>&6
2405 test -n "$CC" && break
2413 # Check whether --enable-fast-install or --disable-fast-install was given.
2414 if test "${enable_fast_install+set}" = set; then
2415 enableval="$enable_fast_install"
2416 p=${PACKAGE-default}
2417 case "$enableval" in
2418 yes) enable_fast_install=yes ;;
2419 no) enable_fast_install=no ;;
2421 enable_fast_install=no
2422 # Look at the argument we got. We use all the common list separators.
2423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2424 for pkg in $enableval; do
2425 if test "X$pkg" = "X$p"; then
2426 enable_fast_install=yes
2433 enable_fast_install=yes
2436 # Extract the first word of "ranlib", so it can be a program name with args.
2437 set dummy ranlib; ac_word=$2
2438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2439 echo "configure:2440: checking for $ac_word" >&5
2440 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 if test -n "$RANLIB"; then
2444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2448 for ac_dir in $ac_dummy; do
2449 test -z "$ac_dir" && ac_dir=.
2450 if test -f $ac_dir/$ac_word; then
2451 ac_cv_prog_RANLIB="ranlib"
2456 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2459 RANLIB="$ac_cv_prog_RANLIB"
2460 if test -n "$RANLIB"; then
2461 echo "$ac_t""$RANLIB" 1>&6
2463 echo "$ac_t""no" 1>&6
2466 # Extract the first word of "gcc", so it can be a program name with args.
2467 set dummy gcc; ac_word=$2
2468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_word" >&5
2470 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2489 if test -n "$CC"; then
2490 echo "$ac_t""$CC" 1>&6
2492 echo "$ac_t""no" 1>&6
2495 if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2499 echo "configure:2500: checking for $ac_word" >&5
2500 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2509 for ac_dir in $ac_dummy; do
2510 test -z "$ac_dir" && ac_dir=.
2511 if test -f $ac_dir/$ac_word; then
2512 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2513 ac_prog_rejected=yes
2521 if test $ac_prog_rejected = yes; then
2522 # We found a bogon in the path, so make sure we never use it.
2523 set dummy $ac_cv_prog_CC
2525 if test $# -gt 0; then
2526 # We chose a different compiler from the bogus one.
2527 # However, it has the same basename, so the bogon will be chosen
2528 # first if we set CC to just the basename; use the full file name.
2530 set dummy "$ac_dir/$ac_word" "$@"
2538 if test -n "$CC"; then
2539 echo "$ac_t""$CC" 1>&6
2541 echo "$ac_t""no" 1>&6
2544 if test -z "$CC"; then
2545 case "`uname -s`" in
2546 *win32* | *WIN32* | *CYGWIN*)
2547 # Extract the first word of "cl", so it can be a program name with args.
2548 set dummy cl; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2559 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2570 if test -n "$CC"; then
2571 echo "$ac_t""$CC" 1>&6
2573 echo "$ac_t""no" 1>&6
2578 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2581 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2582 echo "configure:2583: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2589 cross_compiling=$ac_cv_prog_cc_cross
2591 cat > conftest.$ac_ext << EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 ac_cv_prog_cc_works=yes
2600 # If we can't run a trivial program, we are probably using a cross compiler.
2601 if (./conftest; exit) 2>/dev/null; then
2602 ac_cv_prog_cc_cross=no
2604 ac_cv_prog_cc_cross=yes
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2609 ac_cv_prog_cc_works=no
2613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2617 cross_compiling=$ac_cv_prog_cc_cross
2619 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2620 if test $ac_cv_prog_cc_works = no; then
2621 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2623 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2624 echo "configure:2625: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2625 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2626 cross_compiling=$ac_cv_prog_cc_cross
2628 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2629 echo "configure:2630: checking whether we are using GNU C" >&5
2630 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.c <<EOF
2638 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2645 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2647 if test $ac_cv_prog_gcc = yes; then
2653 ac_test_CFLAGS="${CFLAGS+set}"
2654 ac_save_CFLAGS="$CFLAGS"
2656 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2657 echo "configure:2658: checking whether ${CC-cc} accepts -g" >&5
2658 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 echo 'void f(){}' > conftest.c
2662 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2671 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2672 if test "$ac_test_CFLAGS" = set; then
2673 CFLAGS="$ac_save_CFLAGS"
2674 elif test $ac_cv_prog_cc_g = yes; then
2675 if test "$GCC" = yes; then
2681 if test "$GCC" = yes; then
2688 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2689 if test "${with_gnu_ld+set}" = set; then
2690 withval="$with_gnu_ld"
2691 test "$withval" = no || with_gnu_ld=yes
2697 if test "$ac_cv_prog_gcc" = yes; then
2698 # Check if gcc -print-prog-name=ld gives a path.
2699 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2700 echo "configure:2701: checking for ld used by GCC" >&5
2701 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2703 # Accept absolute paths.
2704 [\\/]* | [A-Za-z]:[\\/]*)
2705 re_direlt='/[^/][^/]*/\.\./'
2706 # Canonicalize the path of ld
2707 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2709 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2711 test -z "$LD" && LD="$ac_prog"
2714 # If it fails, then pretend we aren't using GCC.
2718 # If it is relative, then search for the first ld in PATH.
2722 elif test "$with_gnu_ld" = yes; then
2723 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2724 echo "configure:2725: checking for GNU ld" >&5
2726 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2727 echo "configure:2728: checking for non-GNU ld" >&5
2729 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 if test -z "$LD"; then
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2734 for ac_dir in $PATH; do
2735 test -z "$ac_dir" && ac_dir=.
2736 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2737 ac_cv_path_LD="$ac_dir/$ac_prog"
2738 # Check to see if the program is GNU ld. I'd rather use --version,
2739 # but apparently some GNU ld's only accept -v.
2740 # Break only if it was the GNU/non-GNU ld that we prefer.
2741 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2742 test "$with_gnu_ld" != no && break
2744 test "$with_gnu_ld" != yes && break
2750 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2755 if test -n "$LD"; then
2756 echo "$ac_t""$LD" 1>&6
2758 echo "$ac_t""no" 1>&6
2760 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2761 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2762 echo "configure:2763: checking if the linker ($LD) is GNU ld" >&5
2763 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2767 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2768 ac_cv_prog_gnu_ld=yes
2770 ac_cv_prog_gnu_ld=no
2774 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2777 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2778 echo "configure:2779: checking for BSD-compatible nm" >&5
2779 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 if test -n "$NM"; then
2783 # Let the user override the test.
2786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2787 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2788 test -z "$ac_dir" && ac_dir=.
2789 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2790 # Check to see if the nm accepts a BSD-compat flag.
2791 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2792 # nm: unknown option "B" ignored
2793 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2794 ac_cv_path_NM="$ac_dir/nm -B"
2796 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2797 ac_cv_path_NM="$ac_dir/nm -p"
2800 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2801 continue # so that we can try to find one that supports BSD flags
2806 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2811 echo "$ac_t""$NM" 1>&6
2813 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2814 echo "configure:2815: checking whether ln -s works" >&5
2815 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2819 if ln -s X conftestdata 2>/dev/null
2822 ac_cv_prog_LN_S="ln -s"
2827 LN_S="$ac_cv_prog_LN_S"
2828 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2829 echo "$ac_t""yes" 1>&6
2831 echo "$ac_t""no" 1>&6
2834 if test $host != $build; then
2835 ac_tool_prefix=${host_alias}-
2842 NONE) lt_target="$host" ;;
2843 *) lt_target="$target" ;;
2846 # Check for any special flags to pass to ltconfig.
2847 libtool_flags="--cache-file=$cache_file"
2848 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2849 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2850 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2851 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2852 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2853 libtool_flags="$libtool_flags --enable-dlopen"
2854 libtool_flags="$libtool_flags --enable-win32-dll"
2855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2856 if test "${enable_libtool_lock+set}" = set; then
2857 enableval="$enable_libtool_lock"
2861 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2862 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2864 # Some flags need to be propagated to the compiler or linker for good
2866 case "$lt_target" in
2868 # Find out which ABI we are using.
2869 echo '#line 2870 "configure"' > conftest.$ac_ext
2870 if { (eval echo configure:2871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2871 case "`/usr/bin/file conftest.o`" in
2887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2888 SAVE_CFLAGS="$CFLAGS"
2889 CFLAGS="$CFLAGS -belf"
2890 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2891 echo "configure:2892: checking whether the C compiler needs -belf" >&5
2892 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2893 echo $ac_n "(cached) $ac_c" 1>&6
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2905 lt_cv_cc_needs_belf=yes
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 lt_cv_cc_needs_belf=no
2915 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2918 CFLAGS="$SAVE_CFLAGS"
2922 *-*-cygwin* | *-*-mingw*)
2923 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_word" >&5
2927 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 if test -n "$DLLTOOL"; then
2931 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2945 DLLTOOL="$ac_cv_prog_DLLTOOL"
2946 if test -n "$DLLTOOL"; then
2947 echo "$ac_t""$DLLTOOL" 1>&6
2949 echo "$ac_t""no" 1>&6
2953 if test -z "$ac_cv_prog_DLLTOOL"; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "dlltool", so it can be a program name with args.
2956 set dummy dlltool; ac_word=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test -n "$DLLTOOL"; then
2963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2967 for ac_dir in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_DLLTOOL="dlltool"
2975 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2978 DLLTOOL="$ac_cv_prog_DLLTOOL"
2979 if test -n "$DLLTOOL"; then
2980 echo "$ac_t""$DLLTOOL" 1>&6
2982 echo "$ac_t""no" 1>&6
2990 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}as; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$AS"; then
2998 ac_cv_prog_AS="$AS" # Let the user override the test.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_AS="${ac_tool_prefix}as"
3013 if test -n "$AS"; then
3014 echo "$ac_t""$AS" 1>&6
3016 echo "$ac_t""no" 1>&6
3020 if test -z "$ac_cv_prog_AS"; then
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "as", so it can be a program name with args.
3023 set dummy as; ac_word=$2
3024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_word" >&5
3026 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 if test -n "$AS"; then
3030 ac_cv_prog_AS="$AS" # Let the user override the test.
3032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3034 for ac_dir in $ac_dummy; do
3035 test -z "$ac_dir" && ac_dir=.
3036 if test -f $ac_dir/$ac_word; then
3042 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3046 if test -n "$AS"; then
3047 echo "$ac_t""$AS" 1>&6
3049 echo "$ac_t""no" 1>&6
3057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3060 echo "configure:3061: checking for $ac_word" >&5
3061 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 if test -n "$OBJDUMP"; then
3065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3069 for ac_dir in $ac_dummy; do
3070 test -z "$ac_dir" && ac_dir=.
3071 if test -f $ac_dir/$ac_word; then
3072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3079 OBJDUMP="$ac_cv_prog_OBJDUMP"
3080 if test -n "$OBJDUMP"; then
3081 echo "$ac_t""$OBJDUMP" 1>&6
3083 echo "$ac_t""no" 1>&6
3087 if test -z "$ac_cv_prog_OBJDUMP"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "objdump", so it can be a program name with args.
3090 set dummy objdump; ac_word=$2
3091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3092 echo "configure:3093: checking for $ac_word" >&5
3093 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 if test -n "$OBJDUMP"; then
3097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3101 for ac_dir in $ac_dummy; do
3102 test -z "$ac_dir" && ac_dir=.
3103 if test -f $ac_dir/$ac_word; then
3104 ac_cv_prog_OBJDUMP="objdump"
3109 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3112 OBJDUMP="$ac_cv_prog_OBJDUMP"
3113 if test -n "$OBJDUMP"; then
3114 echo "$ac_t""$OBJDUMP" 1>&6
3116 echo "$ac_t""no" 1>&6
3129 # Save cache, so that ltconfig can load it
3132 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3133 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3134 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3135 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3136 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3137 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3138 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3139 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3141 # Reload cache, that may have been modified by ltconfig
3144 # This can be used to rebuild libtool when needed
3145 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3147 # Always use our own libtool.
3148 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3150 # Redirect the config.log output again, so that the ltconfig log is not
3151 # clobbered by the next message.
3152 exec 5>>./config.log
3155 for ac_prog in mawk gawk nawk awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_word" >&5
3161 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3169 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 if test -f $ac_dir/$ac_word; then
3172 ac_cv_prog_AWK="$ac_prog"
3179 AWK="$ac_cv_prog_AWK"
3180 if test -n "$AWK"; then
3181 echo "$ac_t""$AWK" 1>&6
3183 echo "$ac_t""no" 1>&6
3186 test -n "$AWK" && break
3189 # test for ln hardlink support
3190 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3191 echo "configure:3192: checking whether ln works" >&5
3192 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 rm -f conftest.src conftest.dst
3196 echo "conftest" > conftest.src
3197 if ln conftest.src conftest.dst 2>/dev/null
3199 ol_cv_prog_LN_H="ln"
3201 ol_cv_prog_LN_H="cp"
3203 rm -f conftest.src conftest.dst
3206 LN_H="$ol_cv_prog_LN_H"
3207 if test "$ol_cv_prog_LN_H" = "ln"; then
3208 echo "$ac_t""yes" 1>&6
3210 echo "$ac_t""no" 1>&6
3213 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3214 echo "configure:3215: checking whether ln -s works" >&5
3215 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3219 if ln -s X conftestdata 2>/dev/null
3222 ac_cv_prog_LN_S="ln -s"
3227 LN_S="$ac_cv_prog_LN_S"
3228 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3229 echo "$ac_t""yes" 1>&6
3231 echo "$ac_t""no" 1>&6
3235 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3239 # Extract the first word of "sendmail", so it can be a program name with args.
3240 set dummy sendmail; ac_word=$2
3241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_word" >&5
3243 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3248 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3251 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3255 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3256 for ac_dir in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f $ac_dir/$ac_word; then
3259 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3264 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3268 SENDMAIL="$ac_cv_path_SENDMAIL"
3269 if test -n "$SENDMAIL"; then
3270 echo "$ac_t""$SENDMAIL" 1>&6
3272 echo "$ac_t""no" 1>&6
3275 # Extract the first word of "vi", so it can be a program name with args.
3276 set dummy vi; 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_path_EDITOR+set}\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3284 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3287 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3291 ac_dummy="$PATH:/usr/ucb"
3292 for ac_dir in $ac_dummy; do
3293 test -z "$ac_dir" && ac_dir=.
3294 if test -f $ac_dir/$ac_word; then
3295 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3300 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3304 EDITOR="$ac_cv_path_EDITOR"
3305 if test -n "$EDITOR"; then
3306 echo "$ac_t""$EDITOR" 1>&6
3308 echo "$ac_t""no" 1>&6
3311 # Extract the first word of "finger", so it can be a program name with args.
3312 set dummy finger; ac_word=$2
3313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_word" >&5
3315 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3320 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3323 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3327 ac_dummy="$PATH:/usr/ucb"
3328 for ac_dir in $ac_dummy; do
3329 test -z "$ac_dir" && ac_dir=.
3330 if test -f $ac_dir/$ac_word; then
3331 ac_cv_path_FINGER="$ac_dir/$ac_word"
3336 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3340 FINGER="$ac_cv_path_FINGER"
3341 if test -n "$FINGER"; then
3342 echo "$ac_t""$FINGER" 1>&6
3344 echo "$ac_t""no" 1>&6
3348 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3349 echo "configure:3350: checking how to run the C preprocessor" >&5
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3354 if test -z "$CPP"; then
3355 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 # This must be in double quotes, not single quotes, because CPP may get
3359 # substituted into the Makefile and "${CC-cc}" will confuse make.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp.
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3370 { (eval echo configure:3371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3372 if test -z "$ac_err"; then
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 CPP="${CC-cc} -E -traditional-cpp"
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3387 { (eval echo configure:3388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3389 if test -z "$ac_err"; then
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 CPP="${CC-cc} -nologo -E"
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3404 { (eval echo configure:3405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3406 if test -z "$ac_err"; then
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3420 ac_cv_prog_CPP="$CPP"
3422 CPP="$ac_cv_prog_CPP"
3424 ac_cv_prog_CPP="$CPP"
3426 echo "$ac_t""$CPP" 1>&6
3429 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3430 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3432 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3433 echo "configure: warning: programs compiled here do run here..." 1>&2
3434 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3436 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3437 echo "configure: warning: programs compiled here do not run here..." 1>&2
3438 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3441 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3442 echo "configure:3443: checking for AIX" >&5
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452 egrep "yes" >/dev/null 2>&1; then
3454 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3455 #define _ALL_SOURCE 1
3460 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3466 echo "configure:3467: checking for POSIXized ISC" >&5
3467 if test -d /etc/conf/kconfig.d &&
3468 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3470 echo "$ac_t""yes" 1>&6
3471 ISC=yes # If later tests want to check for ISC.
3472 cat >> confdefs.h <<\EOF
3473 #define _POSIX_SOURCE 1
3476 if test "$GCC" = yes; then
3482 echo "$ac_t""no" 1>&6
3486 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3487 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3488 echo "configure:3489: checking for minix/config.h" >&5
3489 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 #include <minix/config.h>
3497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3498 { (eval echo configure:3499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3500 if test -z "$ac_err"; then
3502 eval "ac_cv_header_$ac_safe=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_header_$ac_safe=no"
3512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3516 echo "$ac_t""no" 1>&6
3520 if test "$MINIX" = yes; then
3521 cat >> confdefs.h <<\EOF
3522 #define _POSIX_SOURCE 1
3525 cat >> confdefs.h <<\EOF
3526 #define _POSIX_1_SOURCE 2
3529 cat >> confdefs.h <<\EOF
3536 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3537 echo "configure:3538: checking for Cygwin environment" >&5
3538 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3548 #define __CYGWIN__ __CYGWIN32__
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3565 echo "$ac_t""$ac_cv_cygwin" 1>&6
3567 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3568 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3569 echo "configure:3570: checking for mingw32 environment" >&5
3570 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3593 echo "$ac_t""$ac_cv_mingw32" 1>&6
3595 test "$ac_cv_mingw32" = yes && MINGW32=yes
3596 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3597 echo "configure:3598: checking for EMX OS/2 environment" >&5
3598 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3621 echo "$ac_t""$ac_cv_emxos2" 1>&6
3623 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3627 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3628 echo "configure:3629: checking for executable suffix" >&5
3629 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3636 echo 'int main () { return 0; }' > conftest.$ac_ext
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3639 for file in conftest.*; do
3641 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3642 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3646 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3649 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3654 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3655 echo "$ac_t""${ac_cv_exeext}" 1>&6
3658 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3659 echo "configure:3660: checking for object suffix" >&5
3660 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3664 echo 'int i = 1;' > conftest.$ac_ext
3665 if { (eval echo configure:3666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3666 for ac_file in conftest.*; do
3669 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3673 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3678 echo "$ac_t""$ac_cv_objext" 1>&6
3679 OBJEXT=$ac_cv_objext
3680 ac_objext=$ac_cv_objext
3683 cat >> confdefs.h <<EOF
3684 #define EXEEXT "${EXEEXT}"
3688 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3689 echo "configure:3690: checking for be_app in -lbe" >&5
3690 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_save_LIBS="$LIBS"
3695 LIBS="-lbe -lroot -lnet $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_lib_$ac_lib_var=no"
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3723 LIBS="$LIBS -lbe -lroot -lnet"
3725 echo "$ac_t""no" 1>&6
3733 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3734 echo "configure:3735: checking for ${CC-cc} option to accept ANSI C" >&5
3735 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 am_cv_prog_cc_stdc=no
3740 # Don't try gcc -ansi; that turns off useful extensions and
3741 # breaks some systems' header files.
3742 # AIX -qlanglvl=ansi
3743 # Ultrix and OSF/1 -std1
3744 # HP-UX 10.20 and later -Ae
3745 # HP-UX older versions -Aa -D_HPUX_SOURCE
3746 # SVR4 -Xc -D__EXTENSIONS__
3747 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749 CC="$ac_save_CC $ac_arg"
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3755 #include <sys/types.h>
3756 #include <sys/stat.h>
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3771 s = g (p, va_arg (v,int));
3775 int test (int i, double x);
3776 struct s1 {int (*f) (int a);};
3777 struct s2 {int (*f) (double a);};
3778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 if { (eval echo configure:3789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3790 am_cv_prog_cc_stdc="$ac_arg"; break
3792 echo "configure: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3801 if test -z "$am_cv_prog_cc_stdc"; then
3802 echo "$ac_t""none needed" 1>&6
3804 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3806 case "x$am_cv_prog_cc_stdc" in
3808 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3811 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3812 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3815 # test for make depend flag
3818 if test -z "${MKDEP}"; then
3820 if test -z "${MKDEP_FLAGS}"; then
3821 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3822 echo "configure:3823: checking for ${OL_MKDEP} depend flag" >&5
3823 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3828 for flag in "-M" "-xM"; do
3829 cat > conftest.c <<EOF
3832 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3833 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3835 if test ! -f conftest."${ac_object}" ; then
3837 OL_MKDEP_FLAGS="$flag"
3846 echo "$ac_t""$ol_cv_mkdep" 1>&6
3849 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3854 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3859 if test "${ol_cv_mkdep}" = no ; then
3860 # this will soon become an error
3861 echo "configure: warning: do not know how to generate dependencies" 1>&2
3864 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3865 echo "configure:3866: checking for afopen in -ls" >&5
3866 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3901 cat >> confdefs.h <<\EOF
3902 #define HAVE_AIX_SECURITY 1
3907 echo "$ac_t""no" 1>&6
3913 if test $ol_enable_modules != no ; then
3914 for ac_hdr in ltdl.h
3916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3918 echo "configure:3919: checking for $ac_hdr" >&5
3919 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3928 { (eval echo configure:3929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3930 if test -z "$ac_err"; then
3932 eval "ac_cv_header_$ac_safe=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_header_$ac_safe=no"
3942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3945 cat >> confdefs.h <<EOF
3946 #define $ac_tr_hdr 1
3950 echo "$ac_t""no" 1>&6
3955 if test $ac_cv_header_ltdl_h = no ; then
3956 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3959 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3960 echo "configure:3961: checking for lt_dlinit in -lltdl" >&5
3961 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3962 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3996 cat >> confdefs.h <<\EOF
3997 #define HAVE_LIBLTDL 1
4002 echo "$ac_t""no" 1>&6
4006 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4007 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4011 ol_with_dnssrv_module=static
4012 ol_with_ldap_module=static
4013 ol_with_ldbm_module=static
4014 ol_with_passwd_module=static
4015 ol_with_shell_module=static
4016 ol_with_sql_module=static
4020 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4021 echo "configure:4022: checking for EBCDIC" >&5
4022 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4031 #include <__ASCII__/generate_error.h>
4035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4036 { (eval echo configure:4037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4038 if test -z "$ac_err"; then
4040 ol_cv_cpp_ebcdic=yes
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4051 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4052 if test $ol_cv_cpp_ebcdic = yes ; then
4053 cat >> confdefs.h <<\EOF
4054 #define HAVE_EBCDIC 1
4059 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4060 echo "configure:4061: checking for ANSI C header files" >&5
4061 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4073 { (eval echo configure:4074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4075 if test -z "$ac_err"; then
4077 ol_cv_header_stdc=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ol_cv_header_stdc=no
4087 if test $ol_cv_header_stdc = yes; then
4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 egrep "memchr" >/dev/null 2>&1; then
4099 ol_cv_header_stdc=no
4105 if test $ol_cv_header_stdc = yes; then
4106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113 egrep "free" >/dev/null 2>&1; then
4117 ol_cv_header_stdc=no
4123 if test $ol_cv_header_stdc = yes; then
4124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4125 if test "$cross_compiling" = yes; then
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4136 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4137 || ('j' <= (c) && (c) <= 'r') \
4138 || ('s' <= (c) && (c) <= 'z'))
4139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4142 int main () { int i; for (i = 0; i < 256; i++)
4143 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 ol_cv_header_stdc=no
4162 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4163 if test $ol_cv_header_stdc = yes; then
4164 cat >> confdefs.h <<\EOF
4165 #define STDC_HEADERS 1
4169 ac_cv_header_stdc=disable
4172 if test $ol_cv_header_stdc != yes; then
4173 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4177 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4179 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4180 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4181 echo "configure:4182: checking for $ac_hdr that defines DIR" >&5
4182 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 #include <sys/types.h>
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 eval "ac_cv_header_dirent_$ac_safe=yes"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 eval "ac_cv_header_dirent_$ac_safe=no"
4205 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4208 cat >> confdefs.h <<EOF
4209 #define $ac_tr_hdr 1
4211 ac_header_dirent=$ac_hdr; break
4213 echo "$ac_t""no" 1>&6
4216 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4217 if test $ac_header_dirent = dirent.h; then
4218 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4219 echo "configure:4220: checking for opendir in -ldir" >&5
4220 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4221 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 ac_save_LIBS="$LIBS"
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_lib_$ac_lib_var=no"
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4255 echo "$ac_t""no" 1>&6
4259 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4260 echo "configure:4261: checking for opendir in -lx" >&5
4261 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 ac_save_LIBS="$LIBS"
4267 cat > conftest.$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_lib_$ac_lib_var=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_lib_$ac_lib_var=no"
4289 LIBS="$ac_save_LIBS"
4292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4293 echo "$ac_t""yes" 1>&6
4296 echo "$ac_t""no" 1>&6
4301 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4302 echo "configure:4303: checking for sys/wait.h that is POSIX.1 compatible" >&5
4303 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4309 #include <sys/types.h>
4310 #include <sys/wait.h>
4312 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4315 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 ac_cv_header_sys_wait_h=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 ac_cv_header_sys_wait_h=no
4335 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4336 if test $ac_cv_header_sys_wait_h = yes; then
4337 cat >> confdefs.h <<\EOF
4338 #define HAVE_SYS_WAIT_H 1
4343 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4344 echo "configure:4345: checking POSIX termios" >&5
4345 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 #include <sys/types.h>
4353 #include <termios.h>
4355 /* SunOS 4.0.3 has termios.h but not the library calls. */
4359 if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361 am_cv_sys_posix_termios=yes
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 am_cv_sys_posix_termios=no
4371 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4374 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4375 echo "configure:4376: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4376 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4381 gwinsz_in_termios_h=no
4382 if test $am_cv_sys_posix_termios = yes; then
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4386 #include <sys/types.h>
4387 # include <termios.h>
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "yes" >/dev/null 2>&1; then
4396 gwinsz_in_termios_h=yes
4402 if test $gwinsz_in_termios_h = no; then
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 #include <sys/types.h>
4407 # include <sys/ioctl.h>
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 egrep "yes" >/dev/null 2>&1; then
4416 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4424 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4425 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4426 cat >> confdefs.h <<\EOF
4427 #define GWINSZ_IN_SYS_IOCTL 1
4432 if test $am_cv_sys_posix_termios = yes ; then
4433 cat >> confdefs.h <<\EOF
4434 #define HAVE_POSIX_TERMIOS 1
4485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_hdr" >&5
4488 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4497 { (eval echo configure:4498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4499 if test -z "$ac_err"; then
4501 eval "ac_cv_header_$ac_safe=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_header_$ac_safe=no"
4511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4512 echo "$ac_t""yes" 1>&6
4513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_hdr 1
4519 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4527 echo "configure:4528: checking for dlopen" >&5
4528 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 /* System header to define __stub macros and hopefully few prototypes,
4535 which can conflict with char dlopen(); below. */
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 /* We use char because int might match the return type of a gcc2
4539 builtin and then its argument prototype would still apply. */
4545 /* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4558 eval "ac_cv_func_dlopen=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_func_dlopen=no"
4568 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4569 echo "$ac_t""yes" 1>&6
4572 echo "$ac_t""no" 1>&6
4573 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4574 echo "configure:4575: checking for dlopen in -ldl" >&5
4575 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4576 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 ac_save_LIBS="$LIBS"
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 /* We use char because int might match the return type of a gcc2
4586 builtin and then its argument prototype would still apply. */
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_lib_$ac_lib_var=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_lib_$ac_lib_var=no"
4603 LIBS="$ac_save_LIBS"
4606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4610 cat >> confdefs.h <<EOF
4611 #define $ac_tr_lib 1
4617 echo "$ac_t""no" 1>&6
4623 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4624 echo "configure:4625: checking for sigset in -lV3" >&5
4625 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4626 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 ac_save_LIBS="$LIBS"
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4660 cat >> confdefs.h <<EOF
4661 #define $ac_tr_lib 1
4667 echo "$ac_t""no" 1>&6
4671 if test $ac_cv_header_winsock_h = yes; then
4672 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4673 echo "configure:4674: checking for winsock" >&5
4674 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <winsock.h>
4684 select(0,NULL,NULL,NULL,NULL);
4686 gethostname(NULL,0);
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4702 echo "$ac_t""$ol_cv_winsock" 1>&6
4704 if test $ol_cv_winsock = yes ; then
4705 cat >> confdefs.h <<\EOF
4706 #define HAVE_WINSOCK 1
4709 ac_cv_func_socket=yes
4710 ac_cv_func_select=yes
4711 ac_cv_func_closesocket=yes
4712 ac_cv_func_gethostname=yes
4717 echo $ac_n "checking for socket""... $ac_c" 1>&6
4718 echo "configure:4719: checking for socket" >&5
4719 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 /* System header to define __stub macros and hopefully few prototypes,
4726 which can conflict with char socket(); below. */
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_socket) || defined (__stub___socket)
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 eval "ac_cv_func_socket=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_func_socket=no"
4759 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4763 echo "$ac_t""no" 1>&6
4765 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4766 echo "configure:4767: checking for main in -lsocket" >&5
4767 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 ac_save_LIBS="$LIBS"
4772 LIBS="-lsocket $LIBS"
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 eval "ac_cv_lib_$ac_lib_var=yes"
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 eval "ac_cv_lib_$ac_lib_var=no"
4791 LIBS="$ac_save_LIBS"
4794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4798 cat >> confdefs.h <<EOF
4799 #define $ac_tr_lib 1
4802 LIBS="-lsocket $LIBS"
4805 echo "$ac_t""no" 1>&6
4808 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4809 echo "configure:4810: checking for main in -lnet" >&5
4810 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 ac_save_LIBS="$LIBS"
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4824 if { (eval echo configure:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 eval "ac_cv_lib_$ac_lib_var=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4831 eval "ac_cv_lib_$ac_lib_var=no"
4834 LIBS="$ac_save_LIBS"
4837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4840 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_lib 1
4848 echo "$ac_t""no" 1>&6
4851 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4852 echo "configure:4853: checking for main in -lnsl_s" >&5
4853 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 ac_save_LIBS="$LIBS"
4858 LIBS="-lnsl_s $LIBS"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4869 eval "ac_cv_lib_$ac_lib_var=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 eval "ac_cv_lib_$ac_lib_var=no"
4877 LIBS="$ac_save_LIBS"
4880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4883 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4884 cat >> confdefs.h <<EOF
4885 #define $ac_tr_lib 1
4888 LIBS="-lnsl_s $LIBS"
4891 echo "$ac_t""no" 1>&6
4894 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4895 echo "configure:4896: checking for main in -lnsl" >&5
4896 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 ac_save_LIBS="$LIBS"
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 eval "ac_cv_lib_$ac_lib_var=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 eval "ac_cv_lib_$ac_lib_var=no"
4920 LIBS="$ac_save_LIBS"
4923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4927 cat >> confdefs.h <<EOF
4928 #define $ac_tr_lib 1
4934 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4938 echo "configure:4939: checking for socket in -linet" >&5
4939 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_lib_$ac_lib_var=no"
4967 LIBS="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4974 cat >> confdefs.h <<EOF
4975 #define $ac_tr_lib 1
4981 echo "$ac_t""no" 1>&6
4984 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4985 echo "configure:4986: checking for main in -lgen" >&5
4986 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 ac_save_LIBS="$LIBS"
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5010 LIBS="$ac_save_LIBS"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_lib 1
5024 echo "$ac_t""no" 1>&6
5031 echo $ac_n "checking for select""... $ac_c" 1>&6
5032 echo "configure:5033: checking for select" >&5
5033 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char select(); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5050 /* The GNU C library defines this for functions which it implements
5051 to always fail with ENOSYS. Some functions are actually named
5052 something starting with __ and the normal name is an alias. */
5053 #if defined (__stub_select) || defined (__stub___select)
5061 if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5063 eval "ac_cv_func_select=yes"
5065 echo "configure: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5068 eval "ac_cv_func_select=no"
5073 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5077 echo "$ac_t""no" 1>&6
5078 { echo "configure: error: select() required." 1>&2; exit 1; }
5082 if test "${ac_cv_header_winsock_h}" != yes; then
5083 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5084 echo "configure:5085: checking types of arguments for select()" >&5
5085 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5095 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5096 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 #ifdef HAVE_SYS_TYPES_H
5101 #include <sys/types.h>
5103 #ifdef HAVE_SYS_TIME_H
5104 #include <sys/time.h>
5106 #ifdef HAVE_SYS_SELECT_H
5107 #include <sys/select.h>
5109 #ifdef HAVE_SYS_SOCKET_H
5110 #include <sys/socket.h>
5112 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);
5117 if { (eval echo configure:5118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5119 ac_not_found=no ; break 3
5121 echo "configure: failed program was:" >&5
5122 cat conftest.$ac_ext >&5
5136 if test "$ac_not_found" = yes; then
5137 ac_cv_func_select_arg1=int
5138 ac_cv_func_select_arg234='int *'
5139 ac_cv_func_select_arg5='struct timeval *'
5141 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5142 cat >> confdefs.h <<EOF
5143 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5146 cat >> confdefs.h <<EOF
5147 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5150 cat >> confdefs.h <<EOF
5151 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5158 for ac_hdr in regex.h
5160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5162 echo "configure:5163: checking for $ac_hdr" >&5
5163 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5164 echo $ac_n "(cached) $ac_c" 1>&6
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5172 { (eval echo configure:5173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5174 if test -z "$ac_err"; then
5176 eval "ac_cv_header_$ac_safe=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_header_$ac_safe=no"
5186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5187 echo "$ac_t""yes" 1>&6
5188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5189 cat >> confdefs.h <<EOF
5190 #define $ac_tr_hdr 1
5194 echo "$ac_t""no" 1>&6
5198 if test "$ac_cv_header_regex_h" != yes ; then
5199 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5201 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5202 echo "configure:5203: checking for regfree" >&5
5203 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5206 cat > conftest.$ac_ext <<EOF
5207 #line 5208 "configure"
5208 #include "confdefs.h"
5209 /* System header to define __stub macros and hopefully few prototypes,
5210 which can conflict with char regfree(); below. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5220 /* The GNU C library defines this for functions which it implements
5221 to always fail with ENOSYS. Some functions are actually named
5222 something starting with __ and the normal name is an alias. */
5223 #if defined (__stub_regfree) || defined (__stub___regfree)
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 eval "ac_cv_func_regfree=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_func_regfree=no"
5243 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5247 echo "$ac_t""no" 1>&6
5248 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5253 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5254 echo "configure:5255: checking for compatible POSIX regex" >&5
5255 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5256 echo $ac_n "(cached) $ac_c" 1>&6
5259 if test "$cross_compiling" = yes; then
5260 ol_cv_c_posix_regex=cross
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5266 #include <sys/types.h>
5268 static char *pattern, *string;
5276 if(regcomp(&re, pattern, 0)) {
5280 string = "ALL MATCH";
5282 rc = regexec(&re, string, 0, (void*)0, 0);
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5291 ol_cv_c_posix_regex=yes
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5296 ol_cv_c_posix_regex=no
5303 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5305 if test "$ol_cv_c_posix_regex" = no ; then
5306 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5310 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5311 echo "configure:5312: checking for res_query" >&5
5312 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319 which can conflict with char res_query(); below. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_res_query) || defined (__stub___res_query)
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 eval "ac_cv_func_res_query=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 eval "ac_cv_func_res_query=no"
5352 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5356 echo "$ac_t""no" 1>&6
5359 if test $ac_cv_func_res_query = no ; then
5360 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5361 echo "configure:5362: checking for res_query in -lbind" >&5
5362 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5366 ac_save_LIBS="$LIBS"
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 /* Override any gcc2 internal prototype to avoid an error. */
5372 /* We use char because int might match the return type of a gcc2
5373 builtin and then its argument prototype would still apply. */
5380 if { (eval echo configure:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5382 eval "ac_cv_lib_$ac_lib_var=yes"
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 eval "ac_cv_lib_$ac_lib_var=no"
5390 LIBS="$ac_save_LIBS"
5393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5395 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5397 cat >> confdefs.h <<EOF
5398 #define $ac_tr_lib 1
5404 echo "$ac_t""no" 1>&6
5407 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5410 if test $ac_cv_func_res_query = no ; then
5411 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5412 echo "configure:5413: checking for __res_query in -lbind" >&5
5413 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5414 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 ac_save_LIBS="$LIBS"
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* Override any gcc2 internal prototype to avoid an error. */
5423 /* We use char because int might match the return type of a gcc2
5424 builtin and then its argument prototype would still apply. */
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5433 eval "ac_cv_lib_$ac_lib_var=yes"
5435 echo "configure: failed program was:" >&5
5436 cat conftest.$ac_ext >&5
5438 eval "ac_cv_lib_$ac_lib_var=no"
5441 LIBS="$ac_save_LIBS"
5444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5445 echo "$ac_t""yes" 1>&6
5446 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5448 cat >> confdefs.h <<EOF
5449 #define $ac_tr_lib 1
5455 echo "$ac_t""no" 1>&6
5458 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5461 if test $ac_cv_func_res_query = no ; then
5462 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5463 echo "configure:5464: checking for res_query in -lresolv" >&5
5464 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5468 ac_save_LIBS="$LIBS"
5469 LIBS="-lresolv $LIBS"
5470 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5484 eval "ac_cv_lib_$ac_lib_var=yes"
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5489 eval "ac_cv_lib_$ac_lib_var=no"
5492 LIBS="$ac_save_LIBS"
5495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5496 echo "$ac_t""yes" 1>&6
5497 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5498 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5499 cat >> confdefs.h <<EOF
5500 #define $ac_tr_lib 1
5503 LIBS="-lresolv $LIBS"
5506 echo "$ac_t""no" 1>&6
5509 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5512 if test "$ac_cv_func_res_query" = yes ; then
5513 cat >> confdefs.h <<\EOF
5514 #define HAVE_RES_QUERY 1
5518 if test $ol_enable_dnssrv != no ; then
5523 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5524 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5527 for ac_func in getaddrinfo inet_ntop
5529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5530 echo "configure:5531: checking for $ac_func" >&5
5531 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 /* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char $ac_func(); below. */
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5548 /* The GNU C library defines this for functions which it implements
5549 to always fail with ENOSYS. Some functions are actually named
5550 something starting with __ and the normal name is an alias. */
5551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 eval "ac_cv_func_$ac_func=yes"
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5566 eval "ac_cv_func_$ac_func=no"
5571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5572 echo "$ac_t""yes" 1>&6
5573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5574 cat >> confdefs.h <<EOF
5575 #define $ac_tr_func 1
5579 echo "$ac_t""no" 1>&6
5585 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop ; then
5586 if test $ol_enable_ipv6 = yes ; then
5587 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5590 for ac_func in gai_strerror
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_func_$ac_func=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_func_$ac_func=no"
5634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5637 cat >> confdefs.h <<EOF
5638 #define $ac_tr_func 1
5642 echo "$ac_t""no" 1>&6
5647 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5648 echo "configure:5649: checking INET6_ADDRSTRLEN" >&5
5649 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5657 # include <netinet/in.h>
5658 # ifdef INET6_ADDRSTRLEN
5659 __has_inet6_addrstrlen__;
5663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5664 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5666 ol_cv_inet6_addrstrlen=yes
5669 ol_cv_inet6_addrstrlen=no
5675 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5677 if test $ol_cv_inet6_addrstrlen = yes ; then
5679 elif test $ol_enable_ipv6 = yes ; then
5680 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5684 if test $ol_enable_local != no ; then
5685 for ac_hdr in sys/un.h
5687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5689 echo "configure:5690: checking for $ac_hdr" >&5
5690 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5699 { (eval echo configure:5700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5701 if test -z "$ac_err"; then
5703 eval "ac_cv_header_$ac_safe=yes"
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 eval "ac_cv_header_$ac_safe=no"
5713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5714 echo "$ac_t""yes" 1>&6
5715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5716 cat >> confdefs.h <<EOF
5717 #define $ac_tr_hdr 1
5721 echo "$ac_t""no" 1>&6
5726 if test $ol_enable_local = auto ; then
5727 ol_enable_local=$ac_cv_header_sys_un_h
5728 elif test $ac_cv_header_sys_un_h = no ; then
5729 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5738 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5739 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5740 -o $ol_with_kerberos = k425 ; then
5742 for ac_hdr in krb5.h
5744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5746 echo "configure:5747: checking for $ac_hdr" >&5
5747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5756 { (eval echo configure:5757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5758 if test -z "$ac_err"; then
5760 eval "ac_cv_header_$ac_safe=yes"
5763 echo "configure: failed program was:" >&5
5764 cat conftest.$ac_ext >&5
5766 eval "ac_cv_header_$ac_safe=no"
5770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5771 echo "$ac_t""yes" 1>&6
5772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5773 cat >> confdefs.h <<EOF
5774 #define $ac_tr_hdr 1
5778 echo "$ac_t""no" 1>&6
5783 if test $ac_cv_header_krb5_h = yes ; then
5784 for ac_hdr in heim_err.h
5786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_hdr" >&5
5789 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5798 { (eval echo configure:5799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5800 if test -z "$ac_err"; then
5802 eval "ac_cv_header_$ac_safe=yes"
5805 echo "configure: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 eval "ac_cv_header_$ac_safe=no"
5812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_hdr 1
5820 echo "$ac_t""no" 1>&6
5824 if test $ac_cv_header_heim_err_h = yes ; then
5830 if test $krb5_impl = mit; then
5831 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5832 echo "configure:5833: checking for main in -lkrb5" >&5
5833 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 ac_save_LIBS="$LIBS"
5838 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_lib_$ac_lib_var=no"
5857 LIBS="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5863 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5865 echo "$ac_t""no" 1>&6
5870 elif test $krb5_impl = heimdal; then
5871 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5872 echo "configure:5873: checking for main in -lkrb5" >&5
5873 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 ac_save_LIBS="$LIBS"
5878 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure"
5881 #include "confdefs.h"
5887 if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5889 eval "ac_cv_lib_$ac_lib_var=yes"
5891 echo "configure: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5894 eval "ac_cv_lib_$ac_lib_var=no"
5897 LIBS="$ac_save_LIBS"
5900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5903 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5905 echo "$ac_t""no" 1>&6
5910 cat >> confdefs.h <<\EOF
5911 #define HAVE_HEIMDAL_KERBEROS 1
5916 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
5919 if test $have_krb5 = yes ; then
5922 cat >> confdefs.h <<\EOF
5927 if test $ol_enable_kpasswd != no ; then
5928 ol_link_kpasswd=yes;
5931 if test $ol_with_kerberos = k5only ; then
5932 ol_with_kerberos=found
5935 elif test $ol_with_kerberos != auto ; then
5936 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5942 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5943 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5945 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5949 echo "configure:5950: checking for $ac_hdr" >&5
5950 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5951 echo $ac_n "(cached) $ac_c" 1>&6
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5959 { (eval echo configure:5960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5961 if test -z "$ac_err"; then
5963 eval "ac_cv_header_$ac_safe=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_header_$ac_safe=no"
5973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5976 cat >> confdefs.h <<EOF
5977 #define $ac_tr_hdr 1
5981 echo "$ac_t""no" 1>&6
5986 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5987 if test $krb5_impl = mit; then
5988 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5989 echo "configure:5990: checking for main in -lkrb4" >&5
5990 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5991 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 ac_save_LIBS="$LIBS"
5995 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6006 eval "ac_cv_lib_$ac_lib_var=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 eval "ac_cv_lib_$ac_lib_var=no"
6014 LIBS="$ac_save_LIBS"
6017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6020 KRB4_LIBS="-lkrb4 -ldes425"
6022 echo "$ac_t""no" 1>&6
6027 elif test $krb5_impl = heimdal; then
6028 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6029 echo "configure:6030: checking for main in -lkrb4" >&5
6030 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6031 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 ac_save_LIBS="$LIBS"
6035 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6046 eval "ac_cv_lib_$ac_lib_var=yes"
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6051 eval "ac_cv_lib_$ac_lib_var=no"
6054 LIBS="$ac_save_LIBS"
6057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6062 echo "$ac_t""no" 1>&6
6069 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6072 if test $have_k425 = yes ; then
6073 ol_with_kerberos=found
6076 cat >> confdefs.h <<\EOF
6077 #define HAVE_KRB425 1
6080 cat >> confdefs.h <<\EOF
6085 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6086 echo "configure:6087: checking for des_debug in Kerberos libraries" >&5
6087 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6092 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6097 #include <kerberosIV/krb.h>
6098 #include <kerberosIV/des.h>
6099 extern int des_debug;
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6109 ol_cv_var_des_debug=yes
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 ol_cv_var_des_debug=no
6121 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6123 if test $ol_cv_var_des_debug = yes ; then
6124 cat >> confdefs.h <<\EOF
6125 #define HAVE_DES_DEBUG 1
6135 if test $ol_link_krb5 = yes ; then
6136 ol_with_kerberos=found
6139 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6140 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6142 for ac_hdr in krb.h des.h krb-archaeology.h
6144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_hdr" >&5
6147 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6156 { (eval echo configure:6157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6158 if test -z "$ac_err"; then
6160 eval "ac_cv_header_$ac_safe=yes"
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 eval "ac_cv_header_$ac_safe=no"
6170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6173 cat >> confdefs.h <<EOF
6174 #define $ac_tr_hdr 1
6178 echo "$ac_t""no" 1>&6
6183 if test $ac_cv_header_krb_h = yes ; then
6184 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6185 echo "configure:6186: checking for main in -lkrb" >&5
6186 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6187 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6190 ac_save_LIBS="$LIBS"
6191 LIBS="-lkrb -ldes $LIBS"
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6202 eval "ac_cv_lib_$ac_lib_var=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6207 eval "ac_cv_lib_$ac_lib_var=no"
6210 LIBS="$ac_save_LIBS"
6213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6222 if test $have_k4 = yes ; then
6223 ol_with_kerberos=found
6226 cat >> confdefs.h <<\EOF
6231 KRB4_LIBS="-lkrb -ldes"
6233 if test $ac_cv_header_krb_archaeology_h = yes ; then
6234 cat >> confdefs.h <<\EOF
6235 #define HAVE_KTH_KERBEROS 1
6243 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6247 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6250 elif test $ol_enable_kbind = yes ; then
6251 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6254 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6255 cat >> confdefs.h <<\EOF
6256 #define HAVE_KERBEROS 1
6260 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6261 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6265 if test $ol_with_tls != no ; then
6266 for ac_hdr in openssl/ssl.h ssl.h
6268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6270 echo "configure:6271: checking for $ac_hdr" >&5
6271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6272 echo $ac_n "(cached) $ac_c" 1>&6
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6282 if test -z "$ac_err"; then
6284 eval "ac_cv_header_$ac_safe=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 eval "ac_cv_header_$ac_safe=no"
6294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6295 echo "$ac_t""yes" 1>&6
6296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6297 cat >> confdefs.h <<EOF
6298 #define $ac_tr_hdr 1
6302 echo "$ac_t""no" 1>&6
6307 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6308 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6309 echo "configure:6310: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6310 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 ac_save_LIBS="$LIBS"
6315 LIBS="-lssl -lcrypto $LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6322 char SSLeay_add_ssl_algorithms();
6325 SSLeay_add_ssl_algorithms()
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 eval "ac_cv_lib_$ac_lib_var=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_lib_$ac_lib_var=no"
6338 LIBS="$ac_save_LIBS"
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6346 echo "$ac_t""no" 1>&6
6351 if test $have_ssleay = no ; then
6352 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6353 echo "configure:6354: checking for SSL_library_init in -lssl" >&5
6354 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6355 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 ac_save_LIBS="$LIBS"
6359 LIBS="-lssl -lcrypto $LIBS"
6360 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6366 char SSL_library_init();
6372 if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6374 eval "ac_cv_lib_$ac_lib_var=yes"
6376 echo "configure: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6379 eval "ac_cv_lib_$ac_lib_var=no"
6382 LIBS="$ac_save_LIBS"
6385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6390 echo "$ac_t""no" 1>&6
6396 if test $have_ssleay = no ; then
6397 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6398 echo "configure:6399: checking for ssl3_accept in -lssl" >&5
6399 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 ac_save_LIBS="$LIBS"
6404 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6417 if { (eval echo configure:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6419 eval "ac_cv_lib_$ac_lib_var=yes"
6421 echo "configure: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6424 eval "ac_cv_lib_$ac_lib_var=no"
6427 LIBS="$ac_save_LIBS"
6430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6435 echo "$ac_t""no" 1>&6
6441 if test $have_ssleay = yes ; then
6445 cat >> confdefs.h <<\EOF
6446 #define HAVE_SSLEAY 1
6450 if test $need_rsaref = yes; then
6451 cat >> confdefs.h <<\EOF
6452 #define HAVE_RSAREF 1
6456 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6458 TLS_LIBS="-lssl -lcrypto"
6464 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6467 if test $ol_link_tls = yes ; then
6468 cat >> confdefs.h <<\EOF
6473 elif test $ol_with_tls = auto ; then
6474 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6475 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6477 elif test $ol_with_tls != no ; then
6478 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6483 gethostbyname_r gethostbyaddr_r \
6486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6487 echo "configure:6488: checking for $ac_func" >&5
6488 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* System header to define __stub macros and hopefully few prototypes,
6495 which can conflict with char $ac_func(); below. */
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6505 /* The GNU C library defines this for functions which it implements
6506 to always fail with ENOSYS. Some functions are actually named
6507 something starting with __ and the normal name is an alias. */
6508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6516 if { (eval echo configure:6517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6518 eval "ac_cv_func_$ac_func=yes"
6520 echo "configure: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6523 eval "ac_cv_func_$ac_func=no"
6528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6531 cat >> confdefs.h <<EOF
6532 #define $ac_tr_func 1
6536 echo "$ac_t""no" 1>&6
6541 if test "$ac_cv_func_ctime_r" = no ; then
6542 ol_cv_func_ctime_r_nargs=0
6544 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6545 echo "configure:6546: checking number of arguments of ctime_r" >&5
6546 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6554 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6557 if { (eval echo configure:6558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6559 ol_cv_func_ctime_r_nargs3=yes
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 ol_cv_func_ctime_r_nargs3=no
6568 cat > conftest.$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6573 time_t ti; char *buffer; ctime_r(&ti,buffer);
6576 if { (eval echo configure:6577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6578 ol_cv_func_ctime_r_nargs2=yes
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 ol_cv_func_ctime_r_nargs2=no
6587 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6588 $ol_cv_func_ctime_r_nargs2 = no ; then
6590 ol_cv_func_ctime_r_nargs=3
6592 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6593 $ol_cv_func_ctime_r_nargs2 = yes ; then
6595 ol_cv_func_ctime_r_nargs=2
6598 ol_cv_func_ctime_r_nargs=0
6603 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6605 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6606 cat >> confdefs.h <<EOF
6607 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6614 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6615 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6616 echo "configure:6617: checking number of arguments of gethostbyname_r" >&5
6617 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 #include <sys/types.h>
6624 #include <sys/socket.h>
6625 #include <netinet/in.h>
6627 #define BUFSIZE (sizeof(struct hostent)+10)
6629 struct hostent hent; char buffer[BUFSIZE];
6630 int bufsize=BUFSIZE;int h_errno;
6631 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6632 buffer, bufsize, &h_errno);
6635 if { (eval echo configure:6636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6637 ol_cv_func_gethostbyname_r_nargs5=yes
6639 echo "configure: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6642 ol_cv_func_gethostbyname_r_nargs5=no
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 #include <sys/types.h>
6650 #include <sys/socket.h>
6651 #include <netinet/in.h>
6653 #define BUFSIZE (sizeof(struct hostent)+10)
6655 struct hostent hent;struct hostent *rhent;
6656 char buffer[BUFSIZE];
6657 int bufsize=BUFSIZE;int h_errno;
6658 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6662 if { (eval echo configure:6663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6664 ol_cv_func_gethostbyname_r_nargs6=yes
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 ol_cv_func_gethostbyname_r_nargs6=no
6673 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6674 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6676 ol_cv_func_gethostbyname_r_nargs=5
6678 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6679 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6681 ol_cv_func_gethostbyname_r_nargs=6
6684 ol_cv_func_gethostbyname_r_nargs=0
6689 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6690 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6691 cat >> confdefs.h <<EOF
6692 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6698 ol_cv_func_gethostbyname_r_nargs=0
6701 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6702 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6703 echo "configure:6704: checking number of arguments of gethostbyaddr_r" >&5
6704 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 #include <sys/types.h>
6711 #include <sys/socket.h>
6712 #include <netinet/in.h>
6714 #define BUFSIZE (sizeof(struct hostent)+10)
6716 struct hostent hent; char buffer[BUFSIZE];
6718 size_t alen=sizeof(struct in_addr);
6719 int bufsize=BUFSIZE;int h_errno;
6720 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6721 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6724 if { (eval echo configure:6725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6726 ol_cv_func_gethostbyaddr_r_nargs7=yes
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 ol_cv_func_gethostbyaddr_r_nargs7=no
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6738 #include <sys/types.h>
6739 #include <sys/socket.h>
6740 #include <netinet/in.h>
6742 #define BUFSIZE (sizeof(struct hostent)+10)
6744 struct hostent hent;
6745 struct hostent *rhent; char buffer[BUFSIZE];
6747 size_t alen=sizeof(struct in_addr);
6748 int bufsize=BUFSIZE;int h_errno;
6749 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6750 alen, AF_INET, &hent, buffer, bufsize,
6754 if { (eval echo configure:6755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6756 ol_cv_func_gethostbyaddr_r_nargs8=yes
6758 echo "configure: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6761 ol_cv_func_gethostbyaddr_r_nargs8=no
6765 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6766 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6768 ol_cv_func_gethostbyaddr_r_nargs=7
6770 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6771 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6773 ol_cv_func_gethostbyaddr_r_nargs=8
6776 ol_cv_func_gethostbyaddr_r_nargs=0
6781 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6782 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6783 cat >> confdefs.h <<EOF
6784 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6790 ol_cv_func_gethostbyaddr_r_nargs=0
6793 if test "$ac_cv_func_ctime_r" = yes \
6794 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6795 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6796 -a "$ac_cv_func_gethostbyname_r" = yes \
6797 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6798 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6799 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6800 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6801 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6804 cat >> confdefs.h <<\EOF
6805 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6812 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6813 -o $ol_with_threads = nt ; then
6816 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6817 echo "configure:6818: checking for _beginthread" >&5
6818 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char _beginthread(); below. */
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char _beginthread();
6835 /* The GNU C library defines this for functions which it implements
6836 to always fail with ENOSYS. Some functions are actually named
6837 something starting with __ and the normal name is an alias. */
6838 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848 eval "ac_cv_func__beginthread=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 eval "ac_cv_func__beginthread=no"
6858 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6859 echo "$ac_t""yes" 1>&6
6862 echo "$ac_t""no" 1>&6
6866 if test $ac_cv_func__beginthread = yes ; then
6867 cat >> confdefs.h <<\EOF
6868 #define HAVE_NT_THREADS 1
6874 if test "$ol_cv_nt_threads" = yes ; then
6876 ol_with_threads=found
6877 ol_with_yielding_select=yes
6879 cat >> confdefs.h <<\EOF
6880 #define HAVE_NT_SERVICE_MANAGER 1
6883 cat >> confdefs.h <<\EOF
6884 #define HAVE_NT_EVENT_LOG 1
6889 if test $ol_with_threads = nt ; then
6890 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6894 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6895 -o $ol_with_threads = posix ; then
6897 for ac_hdr in pthread.h
6899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6901 echo "configure:6902: checking for $ac_hdr" >&5
6902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6911 { (eval echo configure:6912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6913 if test -z "$ac_err"; then
6915 eval "ac_cv_header_$ac_safe=yes"
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6921 eval "ac_cv_header_$ac_safe=no"
6925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6928 cat >> confdefs.h <<EOF
6929 #define $ac_tr_hdr 1
6933 echo "$ac_t""no" 1>&6
6938 if test $ac_cv_header_pthread_h = yes ; then
6939 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6940 echo "configure:6941: checking POSIX thread version" >&5
6941 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6942 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6949 # include <pthread.h>
6950 /* this check could be improved */
6951 # ifdef PTHREAD_ONCE_INIT
6952 pthread_version_final;
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 egrep "pthread_version_final" >/dev/null 2>&1; then
6959 ol_pthread_final=yes
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6971 # include <pthread.h>
6972 /* this check could be improved */
6973 # ifdef pthread_once_init
6974 pthread_version_draft4;
6978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6981 ol_pthread_draft4=yes
6984 ol_pthread_draft4=no
6989 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6990 ol_cv_pthread_version=final
6991 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6992 ol_cv_pthread_version=draft4
6994 ol_cv_pthread_version=unknown
6999 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7002 if test $ol_cv_pthread_version = final ; then
7003 cat >> confdefs.h <<\EOF
7004 #define HAVE_PTHREADS_FINAL 1
7007 elif test $ol_cv_pthread_version = draft4 ; then
7008 cat >> confdefs.h <<\EOF
7009 #define HAVE_PTHREADS_D4 1
7013 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7016 # consider threads found
7017 ol_with_threads=found
7020 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7021 echo "configure:7022: checking for LinuxThreads pthread.h" >&5
7022 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 #include <pthread.h>
7030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7031 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7033 ol_cv_header_linux_threads=yes
7036 ol_cv_header_linux_threads=no
7043 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7044 if test $ol_cv_header_linux_threads = yes; then
7045 cat >> confdefs.h <<\EOF
7046 #define HAVE_LINUX_THREADS 1
7052 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7053 echo "configure:7054: checking for GNU Pth pthread.h" >&5
7054 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7060 #include <pthread.h>
7061 #ifdef _POSIX_THREAD_IS_GNU_PTH
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 egrep "__gnu_pth__" >/dev/null 2>&1; then
7069 ol_cv_header_gnu_pth_pthread_h=yes
7072 ol_cv_header_gnu_pth_pthread_h=no
7079 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7082 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7083 for ac_hdr in sched.h
7085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7087 echo "configure:7088: checking for $ac_hdr" >&5
7088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7097 { (eval echo configure:7098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7099 if test -z "$ac_err"; then
7101 eval "ac_cv_header_$ac_safe=yes"
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7107 eval "ac_cv_header_$ac_safe=no"
7111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7114 cat >> confdefs.h <<EOF
7115 #define $ac_tr_hdr 1
7119 echo "$ac_t""no" 1>&6
7126 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7127 echo "configure:7128: checking for pthread_create in default libraries" >&5
7128 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7132 if test "$cross_compiling" = yes; then
7133 cat > conftest.$ac_ext <<EOF
7134 #line 7135 "configure"
7135 #include "confdefs.h"
7136 /* pthread test headers */
7137 #include <pthread.h>
7139 #define NULL (void*)0
7142 static void *task(p)
7145 return (void *) (p == NULL);
7150 /* pthread test function */
7153 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7154 /* This system (e.g. AIX) defaults detached; must override */
7155 pthread_attr_t attr;
7157 status = pthread_attr_init(&attr);
7158 if( status ) exit( status );
7160 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7161 if( status ) exit( status );
7164 #elif defined( HAVE_PTHREADS_D4 )
7165 # define ATTR pthread_attr_default
7170 /* make sure pthread_create() isn't just a stub */
7171 status = pthread_create(&t, ATTR, task, NULL);
7172 if( status ) exit( status );
7174 /* give the thread a chance to complete...
7175 * it should remain joinable and hence detachable
7179 /* make sure pthread_detach() isn't just a stub */
7180 #if HAVE_PTHREADS_D4
7181 status = pthread_detach( &t );
7183 status = pthread_detach( t );
7186 #ifdef HAVE_LINUX_THREADS
7187 pthread_kill_other_threads_np();
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 ol_cv_pthread_create=yes
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 ol_cv_pthread_create=no
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* pthread test headers */
7209 #include <pthread.h>
7211 #define NULL (void*)0
7214 static void *task(p)
7217 return (void *) (p == NULL);
7221 int main(argc, argv)
7226 /* pthread test function */
7229 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7230 /* This system (e.g. AIX) defaults detached; must override */
7231 pthread_attr_t attr;
7233 status = pthread_attr_init(&attr);
7234 if( status ) exit( status );
7236 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7237 if( status ) exit( status );
7240 #elif defined( HAVE_PTHREADS_D4 )
7241 # define ATTR pthread_attr_default
7246 /* make sure pthread_create() isn't just a stub */
7247 status = pthread_create(&t, ATTR, task, NULL);
7248 if( status ) exit( status );
7250 /* give the thread a chance to complete...
7251 * it should remain joinable and hence detachable
7255 /* make sure pthread_detach() isn't just a stub */
7256 #if HAVE_PTHREADS_D4
7257 status = pthread_detach( &t );
7259 status = pthread_detach( t );
7262 #ifdef HAVE_LINUX_THREADS
7263 pthread_kill_other_threads_np();
7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7273 ol_cv_pthread_create=yes
7275 echo "configure: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7278 ol_cv_pthread_create=no
7285 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7287 if test $ol_cv_pthread_create != no ; then
7288 ol_link_threads=posix
7292 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7293 if test "$ol_link_threads" = no ; then
7295 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7296 echo "configure:7297: checking for pthread link with -kthread" >&5
7297 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7303 LIBS="-kthread $LIBS"
7305 if test "$cross_compiling" = yes; then
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* pthread test headers */
7310 #include <pthread.h>
7312 #define NULL (void*)0
7315 static void *task(p)
7318 return (void *) (p == NULL);
7323 /* pthread test function */
7326 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7327 /* This system (e.g. AIX) defaults detached; must override */
7328 pthread_attr_t attr;
7330 status = pthread_attr_init(&attr);
7331 if( status ) exit( status );
7333 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7334 if( status ) exit( status );
7337 #elif defined( HAVE_PTHREADS_D4 )
7338 # define ATTR pthread_attr_default
7343 /* make sure pthread_create() isn't just a stub */
7344 status = pthread_create(&t, ATTR, task, NULL);
7345 if( status ) exit( status );
7347 /* give the thread a chance to complete...
7348 * it should remain joinable and hence detachable
7352 /* make sure pthread_detach() isn't just a stub */
7353 #if HAVE_PTHREADS_D4
7354 status = pthread_detach( &t );
7356 status = pthread_detach( t );
7359 #ifdef HAVE_LINUX_THREADS
7360 pthread_kill_other_threads_np();
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7369 ol_cv_pthread_kthread=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ol_cv_pthread_kthread=no
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 /* pthread test headers */
7382 #include <pthread.h>
7384 #define NULL (void*)0
7387 static void *task(p)
7390 return (void *) (p == NULL);
7394 int main(argc, argv)
7399 /* pthread test function */
7402 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7403 /* This system (e.g. AIX) defaults detached; must override */
7404 pthread_attr_t attr;
7406 status = pthread_attr_init(&attr);
7407 if( status ) exit( status );
7409 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7410 if( status ) exit( status );
7413 #elif defined( HAVE_PTHREADS_D4 )
7414 # define ATTR pthread_attr_default
7419 /* make sure pthread_create() isn't just a stub */
7420 status = pthread_create(&t, ATTR, task, NULL);
7421 if( status ) exit( status );
7423 /* give the thread a chance to complete...
7424 * it should remain joinable and hence detachable
7428 /* make sure pthread_detach() isn't just a stub */
7429 #if HAVE_PTHREADS_D4
7430 status = pthread_detach( &t );
7432 status = pthread_detach( t );
7435 #ifdef HAVE_LINUX_THREADS
7436 pthread_kill_other_threads_np();
7444 if { (eval echo configure:7445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7446 ol_cv_pthread_kthread=yes
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7451 ol_cv_pthread_kthread=no
7462 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7464 if test $ol_cv_pthread_kthread = yes ; then
7465 ol_link_pthreads="-kthread"
7466 ol_link_threads=posix
7470 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7471 if test "$ol_link_threads" = no ; then
7473 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7474 echo "configure:7475: checking for pthread link with -pthread" >&5
7475 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7481 LIBS="-pthread $LIBS"
7483 if test "$cross_compiling" = yes; then
7484 cat > conftest.$ac_ext <<EOF
7485 #line 7486 "configure"
7486 #include "confdefs.h"
7487 /* pthread test headers */
7488 #include <pthread.h>
7490 #define NULL (void*)0
7493 static void *task(p)
7496 return (void *) (p == NULL);
7501 /* pthread test function */
7504 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7505 /* This system (e.g. AIX) defaults detached; must override */
7506 pthread_attr_t attr;
7508 status = pthread_attr_init(&attr);
7509 if( status ) exit( status );
7511 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7512 if( status ) exit( status );
7515 #elif defined( HAVE_PTHREADS_D4 )
7516 # define ATTR pthread_attr_default
7521 /* make sure pthread_create() isn't just a stub */
7522 status = pthread_create(&t, ATTR, task, NULL);
7523 if( status ) exit( status );
7525 /* give the thread a chance to complete...
7526 * it should remain joinable and hence detachable
7530 /* make sure pthread_detach() isn't just a stub */
7531 #if HAVE_PTHREADS_D4
7532 status = pthread_detach( &t );
7534 status = pthread_detach( t );
7537 #ifdef HAVE_LINUX_THREADS
7538 pthread_kill_other_threads_np();
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 ol_cv_pthread_pthread=yes
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 ol_cv_pthread_pthread=no
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 /* pthread test headers */
7560 #include <pthread.h>
7562 #define NULL (void*)0
7565 static void *task(p)
7568 return (void *) (p == NULL);
7572 int main(argc, argv)
7577 /* pthread test function */
7580 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7581 /* This system (e.g. AIX) defaults detached; must override */
7582 pthread_attr_t attr;
7584 status = pthread_attr_init(&attr);
7585 if( status ) exit( status );
7587 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7588 if( status ) exit( status );
7591 #elif defined( HAVE_PTHREADS_D4 )
7592 # define ATTR pthread_attr_default
7597 /* make sure pthread_create() isn't just a stub */
7598 status = pthread_create(&t, ATTR, task, NULL);
7599 if( status ) exit( status );
7601 /* give the thread a chance to complete...
7602 * it should remain joinable and hence detachable
7606 /* make sure pthread_detach() isn't just a stub */
7607 #if HAVE_PTHREADS_D4
7608 status = pthread_detach( &t );
7610 status = pthread_detach( t );
7613 #ifdef HAVE_LINUX_THREADS
7614 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} && (./conftest; exit) 2>/dev/null
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
7640 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7642 if test $ol_cv_pthread_pthread = yes ; then
7643 ol_link_pthreads="-pthread"
7644 ol_link_threads=posix
7648 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7649 if test "$ol_link_threads" = no ; then
7651 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7652 echo "configure:7653: checking for pthread link with -pthreads" >&5
7653 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7659 LIBS="-pthreads $LIBS"
7661 if test "$cross_compiling" = yes; then
7662 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure"
7664 #include "confdefs.h"
7665 /* pthread test headers */
7666 #include <pthread.h>
7668 #define NULL (void*)0
7671 static void *task(p)
7674 return (void *) (p == NULL);
7679 /* pthread test function */
7682 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7683 /* This system (e.g. AIX) defaults detached; must override */
7684 pthread_attr_t attr;
7686 status = pthread_attr_init(&attr);
7687 if( status ) exit( status );
7689 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7690 if( status ) exit( status );
7693 #elif defined( HAVE_PTHREADS_D4 )
7694 # define ATTR pthread_attr_default
7699 /* make sure pthread_create() isn't just a stub */
7700 status = pthread_create(&t, ATTR, task, NULL);
7701 if( status ) exit( status );
7703 /* give the thread a chance to complete...
7704 * it should remain joinable and hence detachable
7708 /* make sure pthread_detach() isn't just a stub */
7709 #if HAVE_PTHREADS_D4
7710 status = pthread_detach( &t );
7712 status = pthread_detach( t );
7715 #ifdef HAVE_LINUX_THREADS
7716 pthread_kill_other_threads_np();
7723 if { (eval echo configure:7724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 ol_cv_pthread_pthreads=yes
7727 echo "configure: failed program was:" >&5
7728 cat conftest.$ac_ext >&5
7730 ol_cv_pthread_pthreads=no
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7737 /* pthread test headers */
7738 #include <pthread.h>
7740 #define NULL (void*)0
7743 static void *task(p)
7746 return (void *) (p == NULL);
7750 int main(argc, argv)
7755 /* pthread test function */
7758 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7759 /* This system (e.g. AIX) defaults detached; must override */
7760 pthread_attr_t attr;
7762 status = pthread_attr_init(&attr);
7763 if( status ) exit( status );
7765 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7766 if( status ) exit( status );
7769 #elif defined( HAVE_PTHREADS_D4 )
7770 # define ATTR pthread_attr_default
7775 /* make sure pthread_create() isn't just a stub */
7776 status = pthread_create(&t, ATTR, task, NULL);
7777 if( status ) exit( status );
7779 /* give the thread a chance to complete...
7780 * it should remain joinable and hence detachable
7784 /* make sure pthread_detach() isn't just a stub */
7785 #if HAVE_PTHREADS_D4
7786 status = pthread_detach( &t );
7788 status = pthread_detach( t );
7791 #ifdef HAVE_LINUX_THREADS
7792 pthread_kill_other_threads_np();
7800 if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7802 ol_cv_pthread_pthreads=yes
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7807 ol_cv_pthread_pthreads=no
7818 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7820 if test $ol_cv_pthread_pthreads = yes ; then
7821 ol_link_pthreads="-pthreads"
7822 ol_link_threads=posix
7826 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7827 if test "$ol_link_threads" = no ; then
7829 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7830 echo "configure:7831: checking for pthread link with -mthreads" >&5
7831 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7837 LIBS="-mthreads $LIBS"
7839 if test "$cross_compiling" = yes; then
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* pthread test headers */
7844 #include <pthread.h>
7846 #define NULL (void*)0
7849 static void *task(p)
7852 return (void *) (p == NULL);
7857 /* pthread test function */
7860 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7861 /* This system (e.g. AIX) defaults detached; must override */
7862 pthread_attr_t attr;
7864 status = pthread_attr_init(&attr);
7865 if( status ) exit( status );
7867 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7868 if( status ) exit( status );
7871 #elif defined( HAVE_PTHREADS_D4 )
7872 # define ATTR pthread_attr_default
7877 /* make sure pthread_create() isn't just a stub */
7878 status = pthread_create(&t, ATTR, task, NULL);
7879 if( status ) exit( status );
7881 /* give the thread a chance to complete...
7882 * it should remain joinable and hence detachable
7886 /* make sure pthread_detach() isn't just a stub */
7887 #if HAVE_PTHREADS_D4
7888 status = pthread_detach( &t );
7890 status = pthread_detach( t );
7893 #ifdef HAVE_LINUX_THREADS
7894 pthread_kill_other_threads_np();
7901 if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7903 ol_cv_pthread_mthreads=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 ol_cv_pthread_mthreads=no
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* pthread test headers */
7916 #include <pthread.h>
7918 #define NULL (void*)0
7921 static void *task(p)
7924 return (void *) (p == NULL);
7928 int main(argc, argv)
7933 /* pthread test function */
7936 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7937 /* This system (e.g. AIX) defaults detached; must override */
7938 pthread_attr_t attr;
7940 status = pthread_attr_init(&attr);
7941 if( status ) exit( status );
7943 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7944 if( status ) exit( status );
7947 #elif defined( HAVE_PTHREADS_D4 )
7948 # define ATTR pthread_attr_default
7953 /* make sure pthread_create() isn't just a stub */
7954 status = pthread_create(&t, ATTR, task, NULL);
7955 if( status ) exit( status );
7957 /* give the thread a chance to complete...
7958 * it should remain joinable and hence detachable
7962 /* make sure pthread_detach() isn't just a stub */
7963 #if HAVE_PTHREADS_D4
7964 status = pthread_detach( &t );
7966 status = pthread_detach( t );
7969 #ifdef HAVE_LINUX_THREADS
7970 pthread_kill_other_threads_np();
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7980 ol_cv_pthread_mthreads=yes
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 ol_cv_pthread_mthreads=no
7996 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7998 if test $ol_cv_pthread_mthreads = yes ; then
7999 ol_link_pthreads="-mthreads"
8000 ol_link_threads=posix
8004 # Pthread try link: -thread (ol_cv_pthread_thread)
8005 if test "$ol_link_threads" = no ; then
8007 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8008 echo "configure:8009: checking for pthread link with -thread" >&5
8009 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8015 LIBS="-thread $LIBS"
8017 if test "$cross_compiling" = yes; then
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* pthread test headers */
8022 #include <pthread.h>
8024 #define NULL (void*)0
8027 static void *task(p)
8030 return (void *) (p == NULL);
8035 /* pthread test function */
8038 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8039 /* This system (e.g. AIX) defaults detached; must override */
8040 pthread_attr_t attr;
8042 status = pthread_attr_init(&attr);
8043 if( status ) exit( status );
8045 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8046 if( status ) exit( status );
8049 #elif defined( HAVE_PTHREADS_D4 )
8050 # define ATTR pthread_attr_default
8055 /* make sure pthread_create() isn't just a stub */
8056 status = pthread_create(&t, ATTR, task, NULL);
8057 if( status ) exit( status );
8059 /* give the thread a chance to complete...
8060 * it should remain joinable and hence detachable
8064 /* make sure pthread_detach() isn't just a stub */
8065 #if HAVE_PTHREADS_D4
8066 status = pthread_detach( &t );
8068 status = pthread_detach( t );
8071 #ifdef HAVE_LINUX_THREADS
8072 pthread_kill_other_threads_np();
8079 if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8081 ol_cv_pthread_thread=yes
8083 echo "configure: failed program was:" >&5
8084 cat conftest.$ac_ext >&5
8086 ol_cv_pthread_thread=no
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 /* pthread test headers */
8094 #include <pthread.h>
8096 #define NULL (void*)0
8099 static void *task(p)
8102 return (void *) (p == NULL);
8106 int main(argc, argv)
8111 /* pthread test function */
8114 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8115 /* This system (e.g. AIX) defaults detached; must override */
8116 pthread_attr_t attr;
8118 status = pthread_attr_init(&attr);
8119 if( status ) exit( status );
8121 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8122 if( status ) exit( status );
8125 #elif defined( HAVE_PTHREADS_D4 )
8126 # define ATTR pthread_attr_default
8131 /* make sure pthread_create() isn't just a stub */
8132 status = pthread_create(&t, ATTR, task, NULL);
8133 if( status ) exit( status );
8135 /* give the thread a chance to complete...
8136 * it should remain joinable and hence detachable
8140 /* make sure pthread_detach() isn't just a stub */
8141 #if HAVE_PTHREADS_D4
8142 status = pthread_detach( &t );
8144 status = pthread_detach( t );
8147 #ifdef HAVE_LINUX_THREADS
8148 pthread_kill_other_threads_np();
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8158 ol_cv_pthread_thread=yes
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8163 ol_cv_pthread_thread=no
8174 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8176 if test $ol_cv_pthread_thread = yes ; then
8177 ol_link_pthreads="-thread"
8178 ol_link_threads=posix
8183 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8184 if test "$ol_link_threads" = no ; then
8185 # try -lpthread -lmach -lexc -lc_r
8186 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8187 echo "configure:8188: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8188 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8189 echo $ac_n "(cached) $ac_c" 1>&6
8194 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8196 if test "$cross_compiling" = yes; then
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 /* pthread test headers */
8201 #include <pthread.h>
8203 #define NULL (void*)0
8206 static void *task(p)
8209 return (void *) (p == NULL);
8214 /* pthread test function */
8217 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8218 /* This system (e.g. AIX) defaults detached; must override */
8219 pthread_attr_t attr;
8221 status = pthread_attr_init(&attr);
8222 if( status ) exit( status );
8224 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8225 if( status ) exit( status );
8228 #elif defined( HAVE_PTHREADS_D4 )
8229 # define ATTR pthread_attr_default
8234 /* make sure pthread_create() isn't just a stub */
8235 status = pthread_create(&t, ATTR, task, NULL);
8236 if( status ) exit( status );
8238 /* give the thread a chance to complete...
8239 * it should remain joinable and hence detachable
8243 /* make sure pthread_detach() isn't just a stub */
8244 #if HAVE_PTHREADS_D4
8245 status = pthread_detach( &t );
8247 status = pthread_detach( t );
8250 #ifdef HAVE_LINUX_THREADS
8251 pthread_kill_other_threads_np();
8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8260 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8265 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8269 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure"
8271 #include "confdefs.h"
8272 /* pthread test headers */
8273 #include <pthread.h>
8275 #define NULL (void*)0
8278 static void *task(p)
8281 return (void *) (p == NULL);
8285 int main(argc, argv)
8290 /* pthread test function */
8293 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8294 /* This system (e.g. AIX) defaults detached; must override */
8295 pthread_attr_t attr;
8297 status = pthread_attr_init(&attr);
8298 if( status ) exit( status );
8300 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8301 if( status ) exit( status );
8304 #elif defined( HAVE_PTHREADS_D4 )
8305 # define ATTR pthread_attr_default
8310 /* make sure pthread_create() isn't just a stub */
8311 status = pthread_create(&t, ATTR, task, NULL);
8312 if( status ) exit( status );
8314 /* give the thread a chance to complete...
8315 * it should remain joinable and hence detachable
8319 /* make sure pthread_detach() isn't just a stub */
8320 #if HAVE_PTHREADS_D4
8321 status = pthread_detach( &t );
8323 status = pthread_detach( t );
8326 #ifdef HAVE_LINUX_THREADS
8327 pthread_kill_other_threads_np();
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8337 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8353 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8355 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8356 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8357 ol_link_threads=posix
8361 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8362 if test "$ol_link_threads" = no ; then
8363 # try -lpthread -lmach -lexc
8364 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8365 echo "configure:8366: checking for pthread link with -lpthread -lmach -lexc" >&5
8366 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8372 LIBS="-lpthread -lmach -lexc $LIBS"
8374 if test "$cross_compiling" = yes; then
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 /* pthread test headers */
8379 #include <pthread.h>
8381 #define NULL (void*)0
8384 static void *task(p)
8387 return (void *) (p == NULL);
8392 /* pthread test function */
8395 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8396 /* This system (e.g. AIX) defaults detached; must override */
8397 pthread_attr_t attr;
8399 status = pthread_attr_init(&attr);
8400 if( status ) exit( status );
8402 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8403 if( status ) exit( status );
8406 #elif defined( HAVE_PTHREADS_D4 )
8407 # define ATTR pthread_attr_default
8412 /* make sure pthread_create() isn't just a stub */
8413 status = pthread_create(&t, ATTR, task, NULL);
8414 if( status ) exit( status );
8416 /* give the thread a chance to complete...
8417 * it should remain joinable and hence detachable
8421 /* make sure pthread_detach() isn't just a stub */
8422 #if HAVE_PTHREADS_D4
8423 status = pthread_detach( &t );
8425 status = pthread_detach( t );
8428 #ifdef HAVE_LINUX_THREADS
8429 pthread_kill_other_threads_np();
8436 if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8438 ol_cv_pthread_lpthread_lmach_lexc=yes
8440 echo "configure: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8443 ol_cv_pthread_lpthread_lmach_lexc=no
8447 cat > conftest.$ac_ext <<EOF
8448 #line 8449 "configure"
8449 #include "confdefs.h"
8450 /* pthread test headers */
8451 #include <pthread.h>
8453 #define NULL (void*)0
8456 static void *task(p)
8459 return (void *) (p == NULL);
8463 int main(argc, argv)
8468 /* pthread test function */
8471 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8472 /* This system (e.g. AIX) defaults detached; must override */
8473 pthread_attr_t attr;
8475 status = pthread_attr_init(&attr);
8476 if( status ) exit( status );
8478 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8479 if( status ) exit( status );
8482 #elif defined( HAVE_PTHREADS_D4 )
8483 # define ATTR pthread_attr_default
8488 /* make sure pthread_create() isn't just a stub */
8489 status = pthread_create(&t, ATTR, task, NULL);
8490 if( status ) exit( status );
8492 /* give the thread a chance to complete...
8493 * it should remain joinable and hence detachable
8497 /* make sure pthread_detach() isn't just a stub */
8498 #if HAVE_PTHREADS_D4
8499 status = pthread_detach( &t );
8501 status = pthread_detach( t );
8504 #ifdef HAVE_LINUX_THREADS
8505 pthread_kill_other_threads_np();
8513 if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8515 ol_cv_pthread_lpthread_lmach_lexc=yes
8517 echo "configure: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8520 ol_cv_pthread_lpthread_lmach_lexc=no
8531 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8533 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8534 ol_link_pthreads="-lpthread -lmach -lexc"
8535 ol_link_threads=posix
8540 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8541 if test "$ol_link_threads" = no ; then
8542 # try -lpthread -Wl,-woff,85
8543 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8544 echo "configure:8545: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8545 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8551 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8553 if test "$cross_compiling" = yes; then
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* pthread test headers */
8558 #include <pthread.h>
8560 #define NULL (void*)0
8563 static void *task(p)
8566 return (void *) (p == NULL);
8571 /* pthread test function */
8574 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8575 /* This system (e.g. AIX) defaults detached; must override */
8576 pthread_attr_t attr;
8578 status = pthread_attr_init(&attr);
8579 if( status ) exit( status );
8581 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8582 if( status ) exit( status );
8585 #elif defined( HAVE_PTHREADS_D4 )
8586 # define ATTR pthread_attr_default
8591 /* make sure pthread_create() isn't just a stub */
8592 status = pthread_create(&t, ATTR, task, NULL);
8593 if( status ) exit( status );
8595 /* give the thread a chance to complete...
8596 * it should remain joinable and hence detachable
8600 /* make sure pthread_detach() isn't just a stub */
8601 #if HAVE_PTHREADS_D4
8602 status = pthread_detach( &t );
8604 status = pthread_detach( t );
8607 #ifdef HAVE_LINUX_THREADS
8608 pthread_kill_other_threads_np();
8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8617 ol_cv_pthread_lib_lpthread_woff=yes
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8622 ol_cv_pthread_lib_lpthread_woff=no
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 /* pthread test headers */
8630 #include <pthread.h>
8632 #define NULL (void*)0
8635 static void *task(p)
8638 return (void *) (p == NULL);
8642 int main(argc, argv)
8647 /* pthread test function */
8650 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8651 /* This system (e.g. AIX) defaults detached; must override */
8652 pthread_attr_t attr;
8654 status = pthread_attr_init(&attr);
8655 if( status ) exit( status );
8657 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8658 if( status ) exit( status );
8661 #elif defined( HAVE_PTHREADS_D4 )
8662 # define ATTR pthread_attr_default
8667 /* make sure pthread_create() isn't just a stub */
8668 status = pthread_create(&t, ATTR, task, NULL);
8669 if( status ) exit( status );
8671 /* give the thread a chance to complete...
8672 * it should remain joinable and hence detachable
8676 /* make sure pthread_detach() isn't just a stub */
8677 #if HAVE_PTHREADS_D4
8678 status = pthread_detach( &t );
8680 status = pthread_detach( t );
8683 #ifdef HAVE_LINUX_THREADS
8684 pthread_kill_other_threads_np();
8692 if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8694 ol_cv_pthread_lib_lpthread_woff=yes
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8699 ol_cv_pthread_lib_lpthread_woff=no
8710 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8712 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8713 ol_link_pthreads="-lpthread -Wl,-woff,85"
8714 ol_link_threads=posix
8719 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8720 if test "$ol_link_threads" = no ; then
8722 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8723 echo "configure:8724: checking for pthread link with -lpthread" >&5
8724 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8730 LIBS="-lpthread $LIBS"
8732 if test "$cross_compiling" = yes; then
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8736 /* pthread test headers */
8737 #include <pthread.h>
8739 #define NULL (void*)0
8742 static void *task(p)
8745 return (void *) (p == NULL);
8750 /* pthread test function */
8753 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8754 /* This system (e.g. AIX) defaults detached; must override */
8755 pthread_attr_t attr;
8757 status = pthread_attr_init(&attr);
8758 if( status ) exit( status );
8760 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8761 if( status ) exit( status );
8764 #elif defined( HAVE_PTHREADS_D4 )
8765 # define ATTR pthread_attr_default
8770 /* make sure pthread_create() isn't just a stub */
8771 status = pthread_create(&t, ATTR, task, NULL);
8772 if( status ) exit( status );
8774 /* give the thread a chance to complete...
8775 * it should remain joinable and hence detachable
8779 /* make sure pthread_detach() isn't just a stub */
8780 #if HAVE_PTHREADS_D4
8781 status = pthread_detach( &t );
8783 status = pthread_detach( t );
8786 #ifdef HAVE_LINUX_THREADS
8787 pthread_kill_other_threads_np();
8794 if { (eval echo configure:8795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8796 ol_cv_pthread_lpthread=yes
8798 echo "configure: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8801 ol_cv_pthread_lpthread=no
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8808 /* pthread test headers */
8809 #include <pthread.h>
8811 #define NULL (void*)0
8814 static void *task(p)
8817 return (void *) (p == NULL);
8821 int main(argc, argv)
8826 /* pthread test function */
8829 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8830 /* This system (e.g. AIX) defaults detached; must override */
8831 pthread_attr_t attr;
8833 status = pthread_attr_init(&attr);
8834 if( status ) exit( status );
8836 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8837 if( status ) exit( status );
8840 #elif defined( HAVE_PTHREADS_D4 )
8841 # define ATTR pthread_attr_default
8846 /* make sure pthread_create() isn't just a stub */
8847 status = pthread_create(&t, ATTR, task, NULL);
8848 if( status ) exit( status );
8850 /* give the thread a chance to complete...
8851 * it should remain joinable and hence detachable
8855 /* make sure pthread_detach() isn't just a stub */
8856 #if HAVE_PTHREADS_D4
8857 status = pthread_detach( &t );
8859 status = pthread_detach( t );
8862 #ifdef HAVE_LINUX_THREADS
8863 pthread_kill_other_threads_np();
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8873 ol_cv_pthread_lpthread=yes
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 ol_cv_pthread_lpthread=no
8889 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8891 if test $ol_cv_pthread_lpthread = yes ; then
8892 ol_link_pthreads="-lpthread"
8893 ol_link_threads=posix
8897 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8898 if test "$ol_link_threads" = no ; then
8900 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8901 echo "configure:8902: checking for pthread link with -lc_r" >&5
8902 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8910 if test "$cross_compiling" = yes; then
8911 cat > conftest.$ac_ext <<EOF
8912 #line 8913 "configure"
8913 #include "confdefs.h"
8914 /* pthread test headers */
8915 #include <pthread.h>
8917 #define NULL (void*)0
8920 static void *task(p)
8923 return (void *) (p == NULL);
8928 /* pthread test function */
8931 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8932 /* This system (e.g. AIX) defaults detached; must override */
8933 pthread_attr_t attr;
8935 status = pthread_attr_init(&attr);
8936 if( status ) exit( status );
8938 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8939 if( status ) exit( status );
8942 #elif defined( HAVE_PTHREADS_D4 )
8943 # define ATTR pthread_attr_default
8948 /* make sure pthread_create() isn't just a stub */
8949 status = pthread_create(&t, ATTR, task, NULL);
8950 if( status ) exit( status );
8952 /* give the thread a chance to complete...
8953 * it should remain joinable and hence detachable
8957 /* make sure pthread_detach() isn't just a stub */
8958 #if HAVE_PTHREADS_D4
8959 status = pthread_detach( &t );
8961 status = pthread_detach( t );
8964 #ifdef HAVE_LINUX_THREADS
8965 pthread_kill_other_threads_np();
8972 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8974 ol_cv_pthread_lc_r=yes
8976 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5
8979 ol_cv_pthread_lc_r=no
8983 cat > conftest.$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8986 /* pthread test headers */
8987 #include <pthread.h>
8989 #define NULL (void*)0
8992 static void *task(p)
8995 return (void *) (p == NULL);
8999 int main(argc, argv)
9004 /* pthread test function */
9007 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9008 /* This system (e.g. AIX) defaults detached; must override */
9009 pthread_attr_t attr;
9011 status = pthread_attr_init(&attr);
9012 if( status ) exit( status );
9014 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9015 if( status ) exit( status );
9018 #elif defined( HAVE_PTHREADS_D4 )
9019 # define ATTR pthread_attr_default
9024 /* make sure pthread_create() isn't just a stub */
9025 status = pthread_create(&t, ATTR, task, NULL);
9026 if( status ) exit( status );
9028 /* give the thread a chance to complete...
9029 * it should remain joinable and hence detachable
9033 /* make sure pthread_detach() isn't just a stub */
9034 #if HAVE_PTHREADS_D4
9035 status = pthread_detach( &t );
9037 status = pthread_detach( t );
9040 #ifdef HAVE_LINUX_THREADS
9041 pthread_kill_other_threads_np();
9049 if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9051 ol_cv_pthread_lc_r=yes
9053 echo "configure: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9056 ol_cv_pthread_lc_r=no
9067 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9069 if test $ol_cv_pthread_lc_r = yes ; then
9070 ol_link_pthreads="-lc_r"
9071 ol_link_threads=posix
9076 # Pthread try link: -threads (ol_cv_pthread_threads)
9077 if test "$ol_link_threads" = no ; then
9079 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9080 echo "configure:9081: checking for pthread link with -threads" >&5
9081 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9087 LIBS="-threads $LIBS"
9089 if test "$cross_compiling" = yes; then
9090 cat > conftest.$ac_ext <<EOF
9091 #line 9092 "configure"
9092 #include "confdefs.h"
9093 /* pthread test headers */
9094 #include <pthread.h>
9096 #define NULL (void*)0
9099 static void *task(p)
9102 return (void *) (p == NULL);
9107 /* pthread test function */
9110 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9111 /* This system (e.g. AIX) defaults detached; must override */
9112 pthread_attr_t attr;
9114 status = pthread_attr_init(&attr);
9115 if( status ) exit( status );
9117 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9118 if( status ) exit( status );
9121 #elif defined( HAVE_PTHREADS_D4 )
9122 # define ATTR pthread_attr_default
9127 /* make sure pthread_create() isn't just a stub */
9128 status = pthread_create(&t, ATTR, task, NULL);
9129 if( status ) exit( status );
9131 /* give the thread a chance to complete...
9132 * it should remain joinable and hence detachable
9136 /* make sure pthread_detach() isn't just a stub */
9137 #if HAVE_PTHREADS_D4
9138 status = pthread_detach( &t );
9140 status = pthread_detach( t );
9143 #ifdef HAVE_LINUX_THREADS
9144 pthread_kill_other_threads_np();
9151 if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9153 ol_cv_pthread_threads=yes
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9158 ol_cv_pthread_threads=no
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* pthread test headers */
9166 #include <pthread.h>
9168 #define NULL (void*)0
9171 static void *task(p)
9174 return (void *) (p == NULL);
9178 int main(argc, argv)
9183 /* pthread test function */
9186 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9187 /* This system (e.g. AIX) defaults detached; must override */
9188 pthread_attr_t attr;
9190 status = pthread_attr_init(&attr);
9191 if( status ) exit( status );
9193 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9194 if( status ) exit( status );
9197 #elif defined( HAVE_PTHREADS_D4 )
9198 # define ATTR pthread_attr_default
9203 /* make sure pthread_create() isn't just a stub */
9204 status = pthread_create(&t, ATTR, task, NULL);
9205 if( status ) exit( status );
9207 /* give the thread a chance to complete...
9208 * it should remain joinable and hence detachable
9212 /* make sure pthread_detach() isn't just a stub */
9213 #if HAVE_PTHREADS_D4
9214 status = pthread_detach( &t );
9216 status = pthread_detach( t );
9219 #ifdef HAVE_LINUX_THREADS
9220 pthread_kill_other_threads_np();
9228 if { (eval echo configure:9229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9230 ol_cv_pthread_threads=yes
9232 echo "configure: failed program was:" >&5
9233 cat conftest.$ac_ext >&5
9235 ol_cv_pthread_threads=no
9246 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9248 if test $ol_cv_pthread_threads = yes ; then
9249 ol_link_pthreads="-threads"
9250 ol_link_threads=posix
9255 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9256 if test "$ol_link_threads" = no ; then
9257 # try -lpthreads -lmach -lexc -lc_r
9258 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9259 echo "configure:9260: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9260 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9261 echo $ac_n "(cached) $ac_c" 1>&6
9266 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9268 if test "$cross_compiling" = yes; then
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9272 /* pthread test headers */
9273 #include <pthread.h>
9275 #define NULL (void*)0
9278 static void *task(p)
9281 return (void *) (p == NULL);
9286 /* pthread test function */
9289 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9290 /* This system (e.g. AIX) defaults detached; must override */
9291 pthread_attr_t attr;
9293 status = pthread_attr_init(&attr);
9294 if( status ) exit( status );
9296 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9297 if( status ) exit( status );
9300 #elif defined( HAVE_PTHREADS_D4 )
9301 # define ATTR pthread_attr_default
9306 /* make sure pthread_create() isn't just a stub */
9307 status = pthread_create(&t, ATTR, task, NULL);
9308 if( status ) exit( status );
9310 /* give the thread a chance to complete...
9311 * it should remain joinable and hence detachable
9315 /* make sure pthread_detach() isn't just a stub */
9316 #if HAVE_PTHREADS_D4
9317 status = pthread_detach( &t );
9319 status = pthread_detach( t );
9322 #ifdef HAVE_LINUX_THREADS
9323 pthread_kill_other_threads_np();
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9337 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9341 cat > conftest.$ac_ext <<EOF
9342 #line 9343 "configure"
9343 #include "confdefs.h"
9344 /* pthread test headers */
9345 #include <pthread.h>
9347 #define NULL (void*)0
9350 static void *task(p)
9353 return (void *) (p == NULL);
9357 int main(argc, argv)
9362 /* pthread test function */
9365 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9366 /* This system (e.g. AIX) defaults detached; must override */
9367 pthread_attr_t attr;
9369 status = pthread_attr_init(&attr);
9370 if( status ) exit( status );
9372 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9373 if( status ) exit( status );
9376 #elif defined( HAVE_PTHREADS_D4 )
9377 # define ATTR pthread_attr_default
9382 /* make sure pthread_create() isn't just a stub */
9383 status = pthread_create(&t, ATTR, task, NULL);
9384 if( status ) exit( status );
9386 /* give the thread a chance to complete...
9387 * it should remain joinable and hence detachable
9391 /* make sure pthread_detach() isn't just a stub */
9392 #if HAVE_PTHREADS_D4
9393 status = pthread_detach( &t );
9395 status = pthread_detach( t );
9398 #ifdef HAVE_LINUX_THREADS
9399 pthread_kill_other_threads_np();
9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9409 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9425 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9427 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9428 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9429 ol_link_threads=posix
9433 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9434 if test "$ol_link_threads" = no ; then
9435 # try -lpthreads -lmach -lexc
9436 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9437 echo "configure:9438: checking for pthread link with -lpthreads -lmach -lexc" >&5
9438 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9444 LIBS="-lpthreads -lmach -lexc $LIBS"
9446 if test "$cross_compiling" = yes; then
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 /* pthread test headers */
9451 #include <pthread.h>
9453 #define NULL (void*)0
9456 static void *task(p)
9459 return (void *) (p == NULL);
9464 /* pthread test function */
9467 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9468 /* This system (e.g. AIX) defaults detached; must override */
9469 pthread_attr_t attr;
9471 status = pthread_attr_init(&attr);
9472 if( status ) exit( status );
9474 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9475 if( status ) exit( status );
9478 #elif defined( HAVE_PTHREADS_D4 )
9479 # define ATTR pthread_attr_default
9484 /* make sure pthread_create() isn't just a stub */
9485 status = pthread_create(&t, ATTR, task, NULL);
9486 if( status ) exit( status );
9488 /* give the thread a chance to complete...
9489 * it should remain joinable and hence detachable
9493 /* make sure pthread_detach() isn't just a stub */
9494 #if HAVE_PTHREADS_D4
9495 status = pthread_detach( &t );
9497 status = pthread_detach( t );
9500 #ifdef HAVE_LINUX_THREADS
9501 pthread_kill_other_threads_np();
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9510 ol_cv_pthread_lpthreads_lmach_lexc=yes
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9515 ol_cv_pthread_lpthreads_lmach_lexc=no
9519 cat > conftest.$ac_ext <<EOF
9520 #line 9521 "configure"
9521 #include "confdefs.h"
9522 /* pthread test headers */
9523 #include <pthread.h>
9525 #define NULL (void*)0
9528 static void *task(p)
9531 return (void *) (p == NULL);
9535 int main(argc, argv)
9540 /* pthread test function */
9543 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9544 /* This system (e.g. AIX) defaults detached; must override */
9545 pthread_attr_t attr;
9547 status = pthread_attr_init(&attr);
9548 if( status ) exit( status );
9550 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9551 if( status ) exit( status );
9554 #elif defined( HAVE_PTHREADS_D4 )
9555 # define ATTR pthread_attr_default
9560 /* make sure pthread_create() isn't just a stub */
9561 status = pthread_create(&t, ATTR, task, NULL);
9562 if( status ) exit( status );
9564 /* give the thread a chance to complete...
9565 * it should remain joinable and hence detachable
9569 /* make sure pthread_detach() isn't just a stub */
9570 #if HAVE_PTHREADS_D4
9571 status = pthread_detach( &t );
9573 status = pthread_detach( t );
9576 #ifdef HAVE_LINUX_THREADS
9577 pthread_kill_other_threads_np();
9585 if { (eval echo configure:9586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9587 ol_cv_pthread_lpthreads_lmach_lexc=yes
9589 echo "configure: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9592 ol_cv_pthread_lpthreads_lmach_lexc=no
9603 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9605 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9606 ol_link_pthreads="-lpthreads -lmach -lexc"
9607 ol_link_threads=posix
9611 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9612 if test "$ol_link_threads" = no ; then
9613 # try -lpthreads -lexc
9614 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9615 echo "configure:9616: checking for pthread link with -lpthreads -lexc" >&5
9616 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9622 LIBS="-lpthreads -lexc $LIBS"
9624 if test "$cross_compiling" = yes; then
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 /* pthread test headers */
9629 #include <pthread.h>
9631 #define NULL (void*)0
9634 static void *task(p)
9637 return (void *) (p == NULL);
9642 /* pthread test function */
9645 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9646 /* This system (e.g. AIX) defaults detached; must override */
9647 pthread_attr_t attr;
9649 status = pthread_attr_init(&attr);
9650 if( status ) exit( status );
9652 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9653 if( status ) exit( status );
9656 #elif defined( HAVE_PTHREADS_D4 )
9657 # define ATTR pthread_attr_default
9662 /* make sure pthread_create() isn't just a stub */
9663 status = pthread_create(&t, ATTR, task, NULL);
9664 if( status ) exit( status );
9666 /* give the thread a chance to complete...
9667 * it should remain joinable and hence detachable
9671 /* make sure pthread_detach() isn't just a stub */
9672 #if HAVE_PTHREADS_D4
9673 status = pthread_detach( &t );
9675 status = pthread_detach( t );
9678 #ifdef HAVE_LINUX_THREADS
9679 pthread_kill_other_threads_np();
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9688 ol_cv_pthread_lpthreads_lexc=yes
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9693 ol_cv_pthread_lpthreads_lexc=no
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* pthread test headers */
9701 #include <pthread.h>
9703 #define NULL (void*)0
9706 static void *task(p)
9709 return (void *) (p == NULL);
9713 int main(argc, argv)
9718 /* pthread test function */
9721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9722 /* This system (e.g. AIX) defaults detached; must override */
9723 pthread_attr_t attr;
9725 status = pthread_attr_init(&attr);
9726 if( status ) exit( status );
9728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9729 if( status ) exit( status );
9732 #elif defined( HAVE_PTHREADS_D4 )
9733 # define ATTR pthread_attr_default
9738 /* make sure pthread_create() isn't just a stub */
9739 status = pthread_create(&t, ATTR, task, NULL);
9740 if( status ) exit( status );
9742 /* give the thread a chance to complete...
9743 * it should remain joinable and hence detachable
9747 /* make sure pthread_detach() isn't just a stub */
9748 #if HAVE_PTHREADS_D4
9749 status = pthread_detach( &t );
9751 status = pthread_detach( t );
9754 #ifdef HAVE_LINUX_THREADS
9755 pthread_kill_other_threads_np();
9763 if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9765 ol_cv_pthread_lpthreads_lexc=yes
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9770 ol_cv_pthread_lpthreads_lexc=no
9781 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9783 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9784 ol_link_pthreads="-lpthreads -lexc"
9785 ol_link_threads=posix
9790 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9791 if test "$ol_link_threads" = no ; then
9793 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9794 echo "configure:9795: checking for pthread link with -lpthreads" >&5
9795 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9796 echo $ac_n "(cached) $ac_c" 1>&6
9801 LIBS="-lpthreads $LIBS"
9803 if test "$cross_compiling" = yes; then
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 /* pthread test headers */
9808 #include <pthread.h>
9810 #define NULL (void*)0
9813 static void *task(p)
9816 return (void *) (p == NULL);
9821 /* pthread test function */
9824 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9825 /* This system (e.g. AIX) defaults detached; must override */
9826 pthread_attr_t attr;
9828 status = pthread_attr_init(&attr);
9829 if( status ) exit( status );
9831 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9832 if( status ) exit( status );
9835 #elif defined( HAVE_PTHREADS_D4 )
9836 # define ATTR pthread_attr_default
9841 /* make sure pthread_create() isn't just a stub */
9842 status = pthread_create(&t, ATTR, task, NULL);
9843 if( status ) exit( status );
9845 /* give the thread a chance to complete...
9846 * it should remain joinable and hence detachable
9850 /* make sure pthread_detach() isn't just a stub */
9851 #if HAVE_PTHREADS_D4
9852 status = pthread_detach( &t );
9854 status = pthread_detach( t );
9857 #ifdef HAVE_LINUX_THREADS
9858 pthread_kill_other_threads_np();
9865 if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9867 ol_cv_pthread_lib_lpthreads=yes
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9872 ol_cv_pthread_lib_lpthreads=no
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 /* pthread test headers */
9880 #include <pthread.h>
9882 #define NULL (void*)0
9885 static void *task(p)
9888 return (void *) (p == NULL);
9892 int main(argc, argv)
9897 /* pthread test function */
9900 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9901 /* This system (e.g. AIX) defaults detached; must override */
9902 pthread_attr_t attr;
9904 status = pthread_attr_init(&attr);
9905 if( status ) exit( status );
9907 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9908 if( status ) exit( status );
9911 #elif defined( HAVE_PTHREADS_D4 )
9912 # define ATTR pthread_attr_default
9917 /* make sure pthread_create() isn't just a stub */
9918 status = pthread_create(&t, ATTR, task, NULL);
9919 if( status ) exit( status );
9921 /* give the thread a chance to complete...
9922 * it should remain joinable and hence detachable
9926 /* make sure pthread_detach() isn't just a stub */
9927 #if HAVE_PTHREADS_D4
9928 status = pthread_detach( &t );
9930 status = pthread_detach( t );
9933 #ifdef HAVE_LINUX_THREADS
9934 pthread_kill_other_threads_np();
9942 if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9944 ol_cv_pthread_lib_lpthreads=yes
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 ol_cv_pthread_lib_lpthreads=no
9960 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9962 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9963 ol_link_pthreads="-lpthreads"
9964 ol_link_threads=posix
9969 if test $ol_link_threads != no ; then
9970 cat >> confdefs.h <<\EOF
9971 #define HAVE_PTHREADS 1
9975 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9977 save_CPPFLAGS="$CPPFLAGS"
9979 LIBS="$LTHREAD_LIBS $LIBS"
9981 for ac_func in sched_yield pthread_yield
9983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9984 echo "configure:9985: checking for $ac_func" >&5
9985 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9986 echo $ac_n "(cached) $ac_c" 1>&6
9988 cat > conftest.$ac_ext <<EOF
9989 #line 9990 "configure"
9990 #include "confdefs.h"
9991 /* System header to define __stub macros and hopefully few prototypes,
9992 which can conflict with char $ac_func(); below. */
9994 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
10002 /* The GNU C library defines this for functions which it implements
10003 to always fail with ENOSYS. Some functions are actually named
10004 something starting with __ and the normal name is an alias. */
10005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10015 eval "ac_cv_func_$ac_func=yes"
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10020 eval "ac_cv_func_$ac_func=no"
10025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10028 cat >> confdefs.h <<EOF
10029 #define $ac_tr_func 1
10033 echo "$ac_t""no" 1>&6
10038 if test $ac_cv_func_sched_yield = no -a \
10039 $ac_cv_func_pthread_yield = no ; then
10040 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10041 echo "configure:10042: checking for sched_yield in -lrt" >&5
10042 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10046 ac_save_LIBS="$LIBS"
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10054 char sched_yield();
10060 if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 eval "ac_cv_lib_$ac_lib_var=yes"
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10067 eval "ac_cv_lib_$ac_lib_var=no"
10070 LIBS="$ac_save_LIBS"
10073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10074 echo "$ac_t""yes" 1>&6
10075 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10076 cat >> confdefs.h <<\EOF
10077 #define HAVE_SCHED_YIELD 1
10080 ac_cv_func_sched_yield=yes
10082 echo "$ac_t""no" 1>&6
10083 ac_cv_func_sched_yield=no
10087 if test $ac_cv_func_sched_yield = no -a \
10088 $ac_cv_func_pthread_yield = no ; then
10089 for ac_func in thr_yield
10091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10092 echo "configure:10093: checking for $ac_func" >&5
10093 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char $ac_func(); below. */
10101 #include <assert.h>
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 eval "ac_cv_func_$ac_func=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_func_$ac_func=no"
10133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10136 cat >> confdefs.h <<EOF
10137 #define $ac_tr_func 1
10141 echo "$ac_t""no" 1>&6
10146 if test $ac_cv_func_sched_yield = no -a \
10147 $ac_cv_func_pthread_yield = no -a \
10148 "$ac_cv_func_thr_yield" = no ; then
10149 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10152 for ac_func in pthread_kill pthread_rwlock_destroy
10154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10155 echo "configure:10156: checking for $ac_func" >&5
10156 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
10159 cat > conftest.$ac_ext <<EOF
10160 #line 10161 "configure"
10161 #include "confdefs.h"
10162 /* System header to define __stub macros and hopefully few prototypes,
10163 which can conflict with char $ac_func(); below. */
10164 #include <assert.h>
10165 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10173 /* The GNU C library defines this for functions which it implements
10174 to always fail with ENOSYS. Some functions are actually named
10175 something starting with __ and the normal name is an alias. */
10176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 eval "ac_cv_func_$ac_func=yes"
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 eval "ac_cv_func_$ac_func=no"
10196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10197 echo "$ac_t""yes" 1>&6
10198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10199 cat >> confdefs.h <<EOF
10200 #define $ac_tr_func 1
10204 echo "$ac_t""no" 1>&6
10209 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10210 echo "configure:10211: checking for pthread_detach with <pthread.h>" >&5
10211 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10219 #include <pthread.h>
10221 #define NULL (void*)0
10225 pthread_detach(NULL);
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10230 ol_cv_func_pthread_detach=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 ol_cv_func_pthread_detach=no
10241 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10243 if test $ol_cv_func_pthread_detach = no ; then
10244 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10247 cat >> confdefs.h <<\EOF
10248 #define HAVE_PTHREAD_DETACH 1
10253 pthread_setconcurrency \
10254 pthread_getconcurrency \
10255 thr_setconcurrency \
10256 thr_getconcurrency \
10259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10260 echo "configure:10261: checking for $ac_func" >&5
10261 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10262 echo $ac_n "(cached) $ac_c" 1>&6
10264 cat > conftest.$ac_ext <<EOF
10265 #line 10266 "configure"
10266 #include "confdefs.h"
10267 /* System header to define __stub macros and hopefully few prototypes,
10268 which can conflict with char $ac_func(); below. */
10269 #include <assert.h>
10270 /* Override any gcc2 internal prototype to avoid an error. */
10271 /* We use char because int might match the return type of a gcc2
10272 builtin and then its argument prototype would still apply. */
10278 /* The GNU C library defines this for functions which it implements
10279 to always fail with ENOSYS. Some functions are actually named
10280 something starting with __ and the normal name is an alias. */
10281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10289 if { (eval echo configure:10290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10291 eval "ac_cv_func_$ac_func=yes"
10293 echo "configure: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10296 eval "ac_cv_func_$ac_func=no"
10301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10302 echo "$ac_t""yes" 1>&6
10303 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10304 cat >> confdefs.h <<EOF
10305 #define $ac_tr_func 1
10309 echo "$ac_t""no" 1>&6
10315 for ac_func in pthread_kill_other_threads_np
10317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10318 echo "configure:10319: checking for $ac_func" >&5
10319 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10320 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 /* System header to define __stub macros and hopefully few prototypes,
10326 which can conflict with char $ac_func(); below. */
10327 #include <assert.h>
10328 /* Override any gcc2 internal prototype to avoid an error. */
10329 /* We use char because int might match the return type of a gcc2
10330 builtin and then its argument prototype would still apply. */
10336 /* The GNU C library defines this for functions which it implements
10337 to always fail with ENOSYS. Some functions are actually named
10338 something starting with __ and the normal name is an alias. */
10339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_func_$ac_func=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_func_$ac_func=no"
10359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10362 cat >> confdefs.h <<EOF
10363 #define $ac_tr_func 1
10367 echo "$ac_t""no" 1>&6
10371 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10372 echo "configure:10373: checking for LinuxThreads implementation" >&5
10373 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10374 echo $ac_n "(cached) $ac_c" 1>&6
10376 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10379 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10384 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10385 echo "configure:10386: checking for LinuxThreads consistency" >&5
10386 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10390 if test $ol_cv_header_linux_threads = yes -a \
10391 $ol_cv_sys_linux_threads = yes; then
10392 ol_cv_linux_threads=yes
10393 elif test $ol_cv_header_linux_threads = no -a \
10394 $ol_cv_sys_linux_threads = no; then
10395 ol_cv_linux_threads=no
10397 ol_cv_linux_threads=error
10402 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10405 if test $ol_cv_linux_threads = error; then
10406 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10409 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10410 echo "configure:10411: checking if pthread_create() works" >&5
10411 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10412 echo $ac_n "(cached) $ac_c" 1>&6
10415 if test "$cross_compiling" = yes; then
10416 ol_cv_pthread_create_works=yes
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 /* pthread test headers */
10422 #include <pthread.h>
10424 #define NULL (void*)0
10427 static void *task(p)
10430 return (void *) (p == NULL);
10434 int main(argc, argv)
10439 /* pthread test function */
10442 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10443 /* This system (e.g. AIX) defaults detached; must override */
10444 pthread_attr_t attr;
10446 status = pthread_attr_init(&attr);
10447 if( status ) exit( status );
10449 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10450 if( status ) exit( status );
10452 # define ATTR &attr
10453 #elif defined( HAVE_PTHREADS_D4 )
10454 # define ATTR pthread_attr_default
10459 /* make sure pthread_create() isn't just a stub */
10460 status = pthread_create(&t, ATTR, task, NULL);
10461 if( status ) exit( status );
10463 /* give the thread a chance to complete...
10464 * it should remain joinable and hence detachable
10468 /* make sure pthread_detach() isn't just a stub */
10469 #if HAVE_PTHREADS_D4
10470 status = pthread_detach( &t );
10472 status = pthread_detach( t );
10475 #ifdef HAVE_LINUX_THREADS
10476 pthread_kill_other_threads_np();
10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10486 ol_cv_pthread_create_works=yes
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10491 ol_cv_pthread_create_works=no
10498 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10500 if test $ol_cv_pthread_create_works = no ; then
10501 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10504 if test $ol_with_yielding_select = auto ; then
10505 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10506 echo "configure:10507: checking if select yields when using pthreads" >&5
10507 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10511 if test "$cross_compiling" = yes; then
10512 ol_cv_pthread_select_yields=cross
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 #include <sys/types.h>
10519 #include <sys/time.h>
10520 #include <unistd.h>
10521 #include <pthread.h>
10523 #define NULL (void*) 0
10526 static int fildes[2];
10528 static void *task(p)
10540 FD_SET(fildes[0], &rfds);
10542 /* we're not interested in any fds */
10543 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10550 exit(0); /* if we exit here, the select blocked the whole process */
10553 int main(argc, argv)
10559 /* create a pipe to select */
10560 if(pipe(&fildes[0])) {
10565 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10566 (void) pthread_setconcurrency(2);
10568 #ifdef HAVE_THR_SETCONCURRENCY
10569 /* Set Solaris LWP concurrency to 2 */
10570 thr_setconcurrency(2);
10574 #if HAVE_PTHREADS_D4
10575 pthread_create(&t, pthread_attr_default, task, NULL);
10577 pthread_create(&t, NULL, task, NULL);
10580 #if HAVE_SCHED_YIELD
10581 sched_yield(); /* make sure task runs first */
10583 #ifdef HAVE_PTHREAD_YIELD
10584 pthread_yield(); /* make sure task runs first */
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10593 ol_cv_pthread_select_yields=no
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10598 ol_cv_pthread_select_yields=yes
10605 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10607 if test $ol_cv_pthread_select_yields = cross ; then
10608 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10611 if test $ol_cv_pthread_select_yields = yes ; then
10612 ol_with_yielding_select=yes
10616 CPPFLAGS="$save_CPPFLAGS"
10619 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10623 if test $ol_with_threads = posix ; then
10624 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10628 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10629 -o $ol_with_threads = mach ; then
10631 for ac_hdr in mach/cthreads.h
10633 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10634 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10635 echo "configure:10636: checking for $ac_hdr" >&5
10636 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10639 cat > conftest.$ac_ext <<EOF
10640 #line 10641 "configure"
10641 #include "confdefs.h"
10644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10645 { (eval echo configure:10646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10647 if test -z "$ac_err"; then
10649 eval "ac_cv_header_$ac_safe=yes"
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10655 eval "ac_cv_header_$ac_safe=no"
10659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10660 echo "$ac_t""yes" 1>&6
10661 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10662 cat >> confdefs.h <<EOF
10663 #define $ac_tr_hdr 1
10667 echo "$ac_t""no" 1>&6
10671 if test $ac_cv_header_mach_cthreads_h = yes ; then
10672 ol_with_threads=found
10674 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10675 echo "configure:10676: checking for cthread_fork" >&5
10676 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10682 /* System header to define __stub macros and hopefully few prototypes,
10683 which can conflict with char cthread_fork(); below. */
10684 #include <assert.h>
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char cthread_fork();
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10704 if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10706 eval "ac_cv_func_cthread_fork=yes"
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10711 eval "ac_cv_func_cthread_fork=no"
10716 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10717 echo "$ac_t""yes" 1>&6
10718 ol_link_threads=yes
10720 echo "$ac_t""no" 1>&6
10724 if test $ol_link_threads = no ; then
10725 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10726 echo "configure:10727: checking for cthread_fork with -all_load" >&5
10727 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10728 echo $ac_n "(cached) $ac_c" 1>&6
10732 LIBS="-all_load $LIBS"
10733 cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736 #include <mach/cthreads.h>
10739 cthread_fork((void *)0, (void *)0);
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10745 ol_cv_cthread_all_load=yes
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10750 ol_cv_cthread_all_load=no
10757 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10759 if test $ol_cv_cthread_all_load = yes ; then
10760 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10761 ol_link_threads=mach
10765 if test $ol_link_threads != no ; then
10766 : check for cthread specific functionality here
10767 cat >> confdefs.h <<\EOF
10768 #define HAVE_MACH_CTHREADS 1
10772 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10776 if test $ol_with_threads = mach ; then
10777 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10781 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10782 -o $ol_with_threads = pth ; then
10784 for ac_hdr in pth.h
10786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10788 echo "configure:10789: checking for $ac_hdr" >&5
10789 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10798 { (eval echo configure:10799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10800 if test -z "$ac_err"; then
10802 eval "ac_cv_header_$ac_safe=yes"
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 eval "ac_cv_header_$ac_safe=no"
10812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10813 echo "$ac_t""yes" 1>&6
10814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10815 cat >> confdefs.h <<EOF
10816 #define $ac_tr_hdr 1
10820 echo "$ac_t""no" 1>&6
10825 if test $ac_cv_header_pth_h = yes ; then
10826 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10827 echo "configure:10828: checking for pth_version in -lpth" >&5
10828 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10832 ac_save_LIBS="$LIBS"
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837 /* Override any gcc2 internal prototype to avoid an error. */
10838 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10840 char pth_version();
10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10848 eval "ac_cv_lib_$ac_lib_var=yes"
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 eval "ac_cv_lib_$ac_lib_var=no"
10856 LIBS="$ac_save_LIBS"
10859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10860 echo "$ac_t""yes" 1>&6
10863 echo "$ac_t""no" 1>&6
10868 if test $have_pth = yes ; then
10869 cat >> confdefs.h <<\EOF
10870 #define HAVE_GNU_PTH 1
10873 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10874 ol_link_threads=pth
10876 if test $ol_with_yielding_select = auto ; then
10877 ol_with_yielding_select=yes
10883 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10884 -o $ol_with_threads = lwp ; then
10886 for ac_hdr in thread.h synch.h
10888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10890 echo "configure:10891: checking for $ac_hdr" >&5
10891 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10892 echo $ac_n "(cached) $ac_c" 1>&6
10894 cat > conftest.$ac_ext <<EOF
10895 #line 10896 "configure"
10896 #include "confdefs.h"
10899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10900 { (eval echo configure:10901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10902 if test -z "$ac_err"; then
10904 eval "ac_cv_header_$ac_safe=yes"
10907 echo "configure: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10910 eval "ac_cv_header_$ac_safe=no"
10914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10915 echo "$ac_t""yes" 1>&6
10916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10917 cat >> confdefs.h <<EOF
10918 #define $ac_tr_hdr 1
10922 echo "$ac_t""no" 1>&6
10926 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10927 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10928 echo "configure:10929: checking for thr_create in -lthread" >&5
10929 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10930 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10933 ac_save_LIBS="$LIBS"
10934 LIBS="-lthread $LIBS"
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 eval "ac_cv_lib_$ac_lib_var=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 eval "ac_cv_lib_$ac_lib_var=no"
10957 LIBS="$ac_save_LIBS"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10964 echo "$ac_t""no" 1>&6
10969 if test $have_thr = yes ; then
10970 cat >> confdefs.h <<\EOF
10974 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10975 ol_link_threads=thr
10977 if test $ol_with_yielding_select = auto ; then
10978 ol_with_yielding_select=yes
10982 thr_setconcurrency \
10983 thr_getconcurrency \
10986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10987 echo "configure:10988: checking for $ac_func" >&5
10988 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10994 /* System header to define __stub macros and hopefully few prototypes,
10995 which can conflict with char $ac_func(); below. */
10996 #include <assert.h>
10997 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11005 /* The GNU C library defines this for functions which it implements
11006 to always fail with ENOSYS. Some functions are actually named
11007 something starting with __ and the normal name is an alias. */
11008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11016 if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 eval "ac_cv_func_$ac_func=yes"
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11023 eval "ac_cv_func_$ac_func=no"
11028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11029 echo "$ac_t""yes" 1>&6
11030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11031 cat >> confdefs.h <<EOF
11032 #define $ac_tr_func 1
11036 echo "$ac_t""no" 1>&6
11043 for ac_hdr in lwp/lwp.h
11045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11047 echo "configure:11048: checking for $ac_hdr" >&5
11048 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11049 echo $ac_n "(cached) $ac_c" 1>&6
11051 cat > conftest.$ac_ext <<EOF
11052 #line 11053 "configure"
11053 #include "confdefs.h"
11056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11057 { (eval echo configure:11058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11059 if test -z "$ac_err"; then
11061 eval "ac_cv_header_$ac_safe=yes"
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 eval "ac_cv_header_$ac_safe=no"
11071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11072 echo "$ac_t""yes" 1>&6
11073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11074 cat >> confdefs.h <<EOF
11075 #define $ac_tr_hdr 1
11079 echo "$ac_t""no" 1>&6
11083 if test $ac_cv_header_lwp_lwp_h = yes ; then
11084 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11085 echo "configure:11086: checking for lwp_create in -llwp" >&5
11086 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11090 ac_save_LIBS="$LIBS"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106 eval "ac_cv_lib_$ac_lib_var=yes"
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11111 eval "ac_cv_lib_$ac_lib_var=no"
11114 LIBS="$ac_save_LIBS"
11117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11121 echo "$ac_t""no" 1>&6
11126 if test $have_lwp = yes ; then
11127 cat >> confdefs.h <<\EOF
11131 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11132 ol_link_threads=lwp
11134 if test $ol_with_yielding_select = auto ; then
11135 ol_with_yielding_select=no
11141 if test $ol_with_yielding_select = yes ; then
11142 cat >> confdefs.h <<\EOF
11143 #define HAVE_YIELDING_SELECT 1
11148 if test $ol_with_threads = manual ; then
11149 ol_link_threads=yes
11151 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11153 for ac_hdr in pthread.h sched.h
11155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11157 echo "configure:11158: checking for $ac_hdr" >&5
11158 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11159 echo $ac_n "(cached) $ac_c" 1>&6
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11167 { (eval echo configure:11168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11169 if test -z "$ac_err"; then
11171 eval "ac_cv_header_$ac_safe=yes"
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11177 eval "ac_cv_header_$ac_safe=no"
11181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11182 echo "$ac_t""yes" 1>&6
11183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11184 cat >> confdefs.h <<EOF
11185 #define $ac_tr_hdr 1
11189 echo "$ac_t""no" 1>&6
11193 for ac_func in sched_yield pthread_yield
11195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11196 echo "configure:11197: checking for $ac_func" >&5
11197 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11200 cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 /* System header to define __stub macros and hopefully few prototypes,
11204 which can conflict with char $ac_func(); below. */
11205 #include <assert.h>
11206 /* Override any gcc2 internal prototype to avoid an error. */
11207 /* We use char because int might match the return type of a gcc2
11208 builtin and then its argument prototype would still apply. */
11214 /* The GNU C library defines this for functions which it implements
11215 to always fail with ENOSYS. Some functions are actually named
11216 something starting with __ and the normal name is an alias. */
11217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11227 eval "ac_cv_func_$ac_func=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_func_$ac_func=no"
11237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11240 cat >> confdefs.h <<EOF
11241 #define $ac_tr_func 1
11245 echo "$ac_t""no" 1>&6
11250 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11251 echo "configure:11252: checking for LinuxThreads pthread.h" >&5
11252 if eval "test \"\${ol_cv_header_linux_threads+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"
11258 #include <pthread.h>
11260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11261 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11263 ol_cv_header_linux_threads=yes
11266 ol_cv_header_linux_threads=no
11273 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11274 if test $ol_cv_header_linux_threads = yes; then
11275 cat >> confdefs.h <<\EOF
11276 #define HAVE_LINUX_THREADS 1
11282 for ac_hdr in mach/cthreads.h
11284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11286 echo "configure:11287: checking for $ac_hdr" >&5
11287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11290 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure"
11292 #include "confdefs.h"
11295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11296 { (eval echo configure:11297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11298 if test -z "$ac_err"; then
11300 eval "ac_cv_header_$ac_safe=yes"
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 eval "ac_cv_header_$ac_safe=no"
11310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11311 echo "$ac_t""yes" 1>&6
11312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11313 cat >> confdefs.h <<EOF
11314 #define $ac_tr_hdr 1
11318 echo "$ac_t""no" 1>&6
11322 for ac_hdr in lwp/lwp.h
11324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11326 echo "configure:11327: checking for $ac_hdr" >&5
11327 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11328 echo $ac_n "(cached) $ac_c" 1>&6
11330 cat > conftest.$ac_ext <<EOF
11331 #line 11332 "configure"
11332 #include "confdefs.h"
11335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11336 { (eval echo configure:11337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11338 if test -z "$ac_err"; then
11340 eval "ac_cv_header_$ac_safe=yes"
11343 echo "configure: failed program was:" >&5
11344 cat conftest.$ac_ext >&5
11346 eval "ac_cv_header_$ac_safe=no"
11350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11351 echo "$ac_t""yes" 1>&6
11352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11353 cat >> confdefs.h <<EOF
11354 #define $ac_tr_hdr 1
11358 echo "$ac_t""no" 1>&6
11362 for ac_hdr in thread.h synch.h
11364 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11366 echo "configure:11367: checking for $ac_hdr" >&5
11367 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11376 { (eval echo configure:11377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11378 if test -z "$ac_err"; then
11380 eval "ac_cv_header_$ac_safe=yes"
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11386 eval "ac_cv_header_$ac_safe=no"
11390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11391 echo "$ac_t""yes" 1>&6
11392 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11393 cat >> confdefs.h <<EOF
11394 #define $ac_tr_hdr 1
11398 echo "$ac_t""no" 1>&6
11404 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11405 cat >> confdefs.h <<\EOF
11406 #define REENTRANT 1
11409 cat >> confdefs.h <<\EOF
11410 #define _REENTRANT 1
11413 cat >> confdefs.h <<\EOF
11414 #define THREAD_SAFE 1
11417 cat >> confdefs.h <<\EOF
11418 #define _THREAD_SAFE 1
11421 cat >> confdefs.h <<\EOF
11422 #define THREADSAFE 1
11425 cat >> confdefs.h <<\EOF
11426 #define _THREADSAFE 1
11429 cat >> confdefs.h <<\EOF
11430 #define _SGI_MP_SOURCE 1
11434 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11435 echo "configure:11436: checking for thread specific errno" >&5
11436 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11437 echo $ac_n "(cached) $ac_c" 1>&6
11440 cat > conftest.$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11450 ol_cv_errno_thread_specific=yes
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11455 ol_cv_errno_thread_specific=no
11461 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11463 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11464 echo "configure:11465: checking for thread specific h_errno" >&5
11465 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11477 if { (eval echo configure:11478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11479 ol_cv_h_errno_thread_specific=yes
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11484 ol_cv_h_errno_thread_specific=no
11490 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11492 if test $ol_cv_errno_thread_specific != yes \
11493 -o $ol_cv_h_errno_thread_specific != yes ; then
11494 LIBS="$LTHREAD_LIBS $LIBS"
11500 if test $ol_link_threads = no ; then
11501 if test $ol_with_threads = yes ; then
11502 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11505 if test $ol_with_threads = auto ; then
11506 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11510 cat >> confdefs.h <<\EOF
11511 #define NO_THREADS 1
11517 if test $ol_link_threads != no ; then
11518 cat >> confdefs.h <<\EOF
11519 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11526 if test $ol_with_ldbm_api = auto \
11527 -o $ol_with_ldbm_api = berkeley \
11528 -o $ol_with_ldbm_api = bcompat ; then
11530 if test $ol_with_ldbm_api = bcompat; then \
11531 ol_cv_berkeley_db=no
11532 for ac_hdr in db_185.h db.h
11534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11536 echo "configure:11537: checking for $ac_hdr" >&5
11537 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11546 { (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11548 if test -z "$ac_err"; then
11550 eval "ac_cv_header_$ac_safe=yes"
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11556 eval "ac_cv_header_$ac_safe=no"
11560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11561 echo "$ac_t""yes" 1>&6
11562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11563 cat >> confdefs.h <<EOF
11564 #define $ac_tr_hdr 1
11568 echo "$ac_t""no" 1>&6
11572 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11573 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11574 echo "configure:11575: checking if Berkeley DB header compatibility" >&5
11575 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11584 # include <db_185.h>
11589 /* this check could be improved */
11590 #ifndef DB_VERSION_MAJOR
11591 # define DB_VERSION_MAJOR 1
11594 #if DB_VERSION_MAJOR == 1
11599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11600 egrep "__db_version_1" >/dev/null 2>&1; then
11602 ol_cv_header_db1=yes
11605 ol_cv_header_db1=no
11611 echo "$ac_t""$ol_cv_header_db1" 1>&6
11613 if test ol_cv_header_db1=yes ; then
11615 if test $ol_cv_lib_db = no ; then
11616 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11617 echo "configure:11618: checking for Berkeley DB link (default)" >&5
11618 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11619 echo $ac_n "(cached) $ac_c" 1>&6
11624 LIBS="$ol_DB_LIB $LIBS"
11626 cat > conftest.$ac_ext <<EOF
11627 #line 11628 "configure"
11628 #include "confdefs.h"
11630 #ifdef HAVE_DB_185_H
11631 # include <db_185.h>
11636 #ifndef DB_VERSION_MAJOR
11637 # define DB_VERSION_MAJOR 1
11641 #define NULL ((void*)0)
11646 #if DB_VERSION_MAJOR > 2
11647 db_env_create( NULL, 0 );
11648 #elif DB_VERSION_MAJOR > 1
11649 db_appexit( NULL );
11651 (void) dbopen( NULL, 0, 0, 0, NULL);
11656 if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11671 echo "$ac_t""$ol_cv_db_none" 1>&6
11673 if test $ol_cv_db_none = yes ; then
11678 if test $ol_cv_lib_db = no ; then
11679 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11680 echo "configure:11681: checking for Berkeley DB link (-ldb)" >&5
11681 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11687 LIBS="$ol_DB_LIB $LIBS"
11689 cat > conftest.$ac_ext <<EOF
11690 #line 11691 "configure"
11691 #include "confdefs.h"
11693 #ifdef HAVE_DB_185_H
11694 # include <db_185.h>
11699 #ifndef DB_VERSION_MAJOR
11700 # define DB_VERSION_MAJOR 1
11704 #define NULL ((void*)0)
11709 #if DB_VERSION_MAJOR > 2
11710 db_env_create( NULL, 0 );
11711 #elif DB_VERSION_MAJOR > 1
11712 db_appexit( NULL );
11714 (void) dbopen( NULL, 0, 0, 0, NULL);
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11734 echo "$ac_t""$ol_cv_db_db" 1>&6
11736 if test $ol_cv_db_db = yes ; then
11741 if test $ol_cv_lib_db = no ; then
11742 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11743 echo "configure:11744: checking for Berkeley DB link (-ldb3)" >&5
11744 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11750 LIBS="$ol_DB_LIB $LIBS"
11752 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11756 #ifdef HAVE_DB_185_H
11757 # include <db_185.h>
11762 #ifndef DB_VERSION_MAJOR
11763 # define DB_VERSION_MAJOR 1
11767 #define NULL ((void*)0)
11772 #if DB_VERSION_MAJOR > 2
11773 db_env_create( NULL, 0 );
11774 #elif DB_VERSION_MAJOR > 1
11775 db_appexit( NULL );
11777 (void) dbopen( NULL, 0, 0, 0, NULL);
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 echo "configure: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11797 echo "$ac_t""$ol_cv_db_db3" 1>&6
11799 if test $ol_cv_db_db3 = yes ; then
11804 if test $ol_cv_lib_db = no ; then
11805 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11806 echo "configure:11807: checking for Berkeley DB link (-ldb2)" >&5
11807 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11813 LIBS="$ol_DB_LIB $LIBS"
11815 cat > conftest.$ac_ext <<EOF
11816 #line 11817 "configure"
11817 #include "confdefs.h"
11819 #ifdef HAVE_DB_185_H
11820 # include <db_185.h>
11825 #ifndef DB_VERSION_MAJOR
11826 # define DB_VERSION_MAJOR 1
11830 #define NULL ((void*)0)
11835 #if DB_VERSION_MAJOR > 2
11836 db_env_create( NULL, 0 );
11837 #elif DB_VERSION_MAJOR > 1
11838 db_appexit( NULL );
11840 (void) dbopen( NULL, 0, 0, 0, NULL);
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11860 echo "$ac_t""$ol_cv_db_db2" 1>&6
11862 if test $ol_cv_db_db2 = yes ; then
11867 if test $ol_cv_lib_db = no ; then
11868 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11869 echo "configure:11870: checking for Berkeley DB link (-ldb1)" >&5
11870 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11876 LIBS="$ol_DB_LIB $LIBS"
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11882 #ifdef HAVE_DB_185_H
11883 # include <db_185.h>
11888 #ifndef DB_VERSION_MAJOR
11889 # define DB_VERSION_MAJOR 1
11893 #define NULL ((void*)0)
11898 #if DB_VERSION_MAJOR > 2
11899 db_env_create( NULL, 0 );
11900 #elif DB_VERSION_MAJOR > 1
11901 db_appexit( NULL );
11903 (void) dbopen( NULL, 0, 0, 0, NULL);
11908 if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11923 echo "$ac_t""$ol_cv_db_db1" 1>&6
11925 if test $ol_cv_db_db1 = yes ; then
11931 if test "$ol_cv_lib_db" != no ; then
11932 ol_cv_berkeley_db=yes
11938 ol_cv_berkeley_db=no
11941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11943 echo "configure:11944: checking for $ac_hdr" >&5
11944 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11945 echo $ac_n "(cached) $ac_c" 1>&6
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11953 { (eval echo configure:11954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11955 if test -z "$ac_err"; then
11957 eval "ac_cv_header_$ac_safe=yes"
11960 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5
11963 eval "ac_cv_header_$ac_safe=no"
11967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11968 echo "$ac_t""yes" 1>&6
11969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11970 cat >> confdefs.h <<EOF
11971 #define $ac_tr_hdr 1
11975 echo "$ac_t""no" 1>&6
11979 if test $ac_cv_header_db_h = yes; then
11981 if test $ol_cv_lib_db = no ; then
11982 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11983 echo "configure:11984: checking for Berkeley DB link (default)" >&5
11984 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11985 echo $ac_n "(cached) $ac_c" 1>&6
11990 LIBS="$ol_DB_LIB $LIBS"
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11996 #ifdef HAVE_DB_185_H
11997 # include <db_185.h>
12002 #ifndef DB_VERSION_MAJOR
12003 # define DB_VERSION_MAJOR 1
12007 #define NULL ((void*)0)
12012 #if DB_VERSION_MAJOR > 2
12013 db_env_create( NULL, 0 );
12014 #elif DB_VERSION_MAJOR > 1
12015 db_appexit( NULL );
12017 (void) dbopen( NULL, 0, 0, 0, NULL);
12022 if { (eval echo configure:12023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12026 echo "configure: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12037 echo "$ac_t""$ol_cv_db_none" 1>&6
12039 if test $ol_cv_db_none = yes ; then
12044 if test $ol_cv_lib_db = no ; then
12045 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12046 echo "configure:12047: checking for Berkeley DB link (-ldb)" >&5
12047 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12053 LIBS="$ol_DB_LIB $LIBS"
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12059 #ifdef HAVE_DB_185_H
12060 # include <db_185.h>
12065 #ifndef DB_VERSION_MAJOR
12066 # define DB_VERSION_MAJOR 1
12070 #define NULL ((void*)0)
12075 #if DB_VERSION_MAJOR > 2
12076 db_env_create( NULL, 0 );
12077 #elif DB_VERSION_MAJOR > 1
12078 db_appexit( NULL );
12080 (void) dbopen( NULL, 0, 0, 0, NULL);
12085 if { (eval echo configure:12086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12100 echo "$ac_t""$ol_cv_db_db" 1>&6
12102 if test $ol_cv_db_db = yes ; then
12107 if test $ol_cv_lib_db = no ; then
12108 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12109 echo "configure:12110: checking for Berkeley DB link (-ldb3)" >&5
12110 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12111 echo $ac_n "(cached) $ac_c" 1>&6
12116 LIBS="$ol_DB_LIB $LIBS"
12118 cat > conftest.$ac_ext <<EOF
12119 #line 12120 "configure"
12120 #include "confdefs.h"
12122 #ifdef HAVE_DB_185_H
12123 # include <db_185.h>
12128 #ifndef DB_VERSION_MAJOR
12129 # define DB_VERSION_MAJOR 1
12133 #define NULL ((void*)0)
12138 #if DB_VERSION_MAJOR > 2
12139 db_env_create( NULL, 0 );
12140 #elif DB_VERSION_MAJOR > 1
12141 db_appexit( NULL );
12143 (void) dbopen( NULL, 0, 0, 0, NULL);
12148 if { (eval echo configure:12149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 echo "configure: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12163 echo "$ac_t""$ol_cv_db_db3" 1>&6
12165 if test $ol_cv_db_db3 = yes ; then
12170 if test $ol_cv_lib_db = no ; then
12171 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12172 echo "configure:12173: checking for Berkeley DB link (-ldb2)" >&5
12173 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12179 LIBS="$ol_DB_LIB $LIBS"
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12185 #ifdef HAVE_DB_185_H
12186 # include <db_185.h>
12191 #ifndef DB_VERSION_MAJOR
12192 # define DB_VERSION_MAJOR 1
12196 #define NULL ((void*)0)
12201 #if DB_VERSION_MAJOR > 2
12202 db_env_create( NULL, 0 );
12203 #elif DB_VERSION_MAJOR > 1
12204 db_appexit( NULL );
12206 (void) dbopen( NULL, 0, 0, 0, NULL);
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12226 echo "$ac_t""$ol_cv_db_db2" 1>&6
12228 if test $ol_cv_db_db2 = yes ; then
12233 if test $ol_cv_lib_db = no ; then
12234 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12235 echo "configure:12236: checking for Berkeley DB link (-ldb1)" >&5
12236 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12242 LIBS="$ol_DB_LIB $LIBS"
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12248 #ifdef HAVE_DB_185_H
12249 # include <db_185.h>
12254 #ifndef DB_VERSION_MAJOR
12255 # define DB_VERSION_MAJOR 1
12259 #define NULL ((void*)0)
12264 #if DB_VERSION_MAJOR > 2
12265 db_env_create( NULL, 0 );
12266 #elif DB_VERSION_MAJOR > 1
12267 db_appexit( NULL );
12269 (void) dbopen( NULL, 0, 0, 0, NULL);
12274 if { (eval echo configure:12275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12278 echo "configure: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12289 echo "$ac_t""$ol_cv_db_db1" 1>&6
12291 if test $ol_cv_db_db1 = yes ; then
12297 if test "$ol_cv_lib_db" != no ; then
12298 ol_cv_berkeley_db=yes
12299 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12300 echo "configure:12301: checking for Berkeley DB thread support" >&5
12301 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12302 echo $ac_n "(cached) $ac_c" 1>&6
12306 if test $ol_cv_lib_db != yes ; then
12307 LIBS="$ol_cv_lib_db"
12310 if test "$cross_compiling" = yes; then
12311 ol_cv_berkeley_db_thread=cross
12313 cat > conftest.$ac_ext <<EOF
12314 #line 12315 "configure"
12315 #include "confdefs.h"
12317 #ifdef HAVE_DB_185_H
12323 #define NULL ((void *)0)
12328 u_int32_t flags = DB_CREATE | DB_THREAD;
12330 #if DB_VERSION_MAJOR > 2
12331 DB_ENV *env = NULL;
12333 rc = db_env_create( &env, 0 );
12336 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12337 rc = env->open( env, NULL, flags, 0 );
12339 rc = env->open( env, NULL, NULL, flags, 0 );
12345 memset( &env, '\0', sizeof(env) );
12347 rc = db_appinit( NULL, NULL, &env, flags );
12350 db_appexit( &env );
12353 #if DB_VERSION_MAJOR > 2
12354 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12355 env->remove( env, NULL, DB_FORCE);
12357 env->remove( env, NULL, NULL, DB_FORCE);
12364 if { (eval echo configure:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12366 ol_cv_berkeley_db_thread=yes
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12371 ol_cv_berkeley_db_thread=no
12379 if test $ol_cv_berkeley_db_thread != no ; then
12380 cat >> confdefs.h <<\EOF
12381 #define HAVE_BERKELEY_DB_THREAD 1
12388 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12394 if test $ol_cv_berkeley_db != no ; then
12395 cat >> confdefs.h <<\EOF
12396 #define HAVE_BERKELEY_DB 1
12400 ol_link_ldbm=berkeley
12401 ol_with_ldbm_api=db
12403 if test $ol_with_ldbm_type = hash ; then
12404 cat >> confdefs.h <<\EOF
12405 #define LDBM_USE_DBHASH 1
12409 cat >> confdefs.h <<\EOF
12410 #define LDBM_USE_DBBTREE 1
12415 if test $ol_cv_lib_db != yes ; then
12416 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12421 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12422 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12423 ol_with_ldbm_api=none
12426 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12427 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12428 echo "configure:12429: checking for MDBM library" >&5
12429 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12430 echo $ac_n "(cached) $ac_c" 1>&6
12433 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12434 echo "configure:12435: checking for mdbm_set_chain" >&5
12435 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12436 echo $ac_n "(cached) $ac_c" 1>&6
12438 cat > conftest.$ac_ext <<EOF
12439 #line 12440 "configure"
12440 #include "confdefs.h"
12441 /* System header to define __stub macros and hopefully few prototypes,
12442 which can conflict with char mdbm_set_chain(); below. */
12443 #include <assert.h>
12444 /* Override any gcc2 internal prototype to avoid an error. */
12445 /* We use char because int might match the return type of a gcc2
12446 builtin and then its argument prototype would still apply. */
12447 char mdbm_set_chain();
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12458 f = mdbm_set_chain;
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12465 eval "ac_cv_func_mdbm_set_chain=yes"
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12470 eval "ac_cv_func_mdbm_set_chain=no"
12475 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12476 echo "$ac_t""yes" 1>&6
12479 echo "$ac_t""no" 1>&6
12481 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12482 echo "configure:12483: checking for mdbm_set_chain in -lmdbm" >&5
12483 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12484 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12487 ac_save_LIBS="$LIBS"
12488 LIBS="-lmdbm $LIBS"
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12492 /* Override any gcc2 internal prototype to avoid an error. */
12493 /* We use char because int might match the return type of a gcc2
12494 builtin and then its argument prototype would still apply. */
12495 char mdbm_set_chain();
12501 if { (eval echo configure:12502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12503 eval "ac_cv_lib_$ac_lib_var=yes"
12505 echo "configure: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12508 eval "ac_cv_lib_$ac_lib_var=no"
12511 LIBS="$ac_save_LIBS"
12514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12515 echo "$ac_t""yes" 1>&6
12516 ol_cv_lib_mdbm=-lmdbm
12518 echo "$ac_t""no" 1>&6
12529 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12532 for ac_hdr in mdbm.h
12534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12536 echo "configure:12537: checking for $ac_hdr" >&5
12537 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12540 cat > conftest.$ac_ext <<EOF
12541 #line 12542 "configure"
12542 #include "confdefs.h"
12545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12546 { (eval echo configure:12547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12548 if test -z "$ac_err"; then
12550 eval "ac_cv_header_$ac_safe=yes"
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 eval "ac_cv_header_$ac_safe=no"
12560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12561 echo "$ac_t""yes" 1>&6
12562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12563 cat >> confdefs.h <<EOF
12564 #define $ac_tr_hdr 1
12568 echo "$ac_t""no" 1>&6
12572 echo $ac_n "checking for db""... $ac_c" 1>&6
12573 echo "configure:12574: checking for db" >&5
12574 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12575 echo $ac_n "(cached) $ac_c" 1>&6
12578 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12586 echo "$ac_t""$ol_cv_mdbm" 1>&6
12587 if test $ol_cv_mdbm = yes ; then
12588 cat >> confdefs.h <<\EOF
12589 #define HAVE_MDBM 1
12595 if test $ol_cv_mdbm = yes ; then
12597 ol_with_ldbm_api=mdbm
12598 if test $ol_cv_lib_mdbm != yes ; then
12599 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12604 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12605 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12606 echo "configure:12607: checking for GDBM library" >&5
12607 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12611 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12612 echo "configure:12613: checking for gdbm_open" >&5
12613 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12614 echo $ac_n "(cached) $ac_c" 1>&6
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620 which can conflict with char gdbm_open(); below. */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12630 /* The GNU C library defines this for functions which it implements
12631 to always fail with ENOSYS. Some functions are actually named
12632 something starting with __ and the normal name is an alias. */
12633 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12643 eval "ac_cv_func_gdbm_open=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_func_gdbm_open=no"
12653 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12654 echo "$ac_t""yes" 1>&6
12657 echo "$ac_t""no" 1>&6
12659 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12660 echo "configure:12661: checking for gdbm_open in -lgdbm" >&5
12661 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12665 ac_save_LIBS="$LIBS"
12666 LIBS="-lgdbm $LIBS"
12667 cat > conftest.$ac_ext <<EOF
12668 #line 12669 "configure"
12669 #include "confdefs.h"
12670 /* Override any gcc2 internal prototype to avoid an error. */
12671 /* We use char because int might match the return type of a gcc2
12672 builtin and then its argument prototype would still apply. */
12679 if { (eval echo configure:12680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 eval "ac_cv_lib_$ac_lib_var=yes"
12683 echo "configure: failed program was:" >&5
12684 cat conftest.$ac_ext >&5
12686 eval "ac_cv_lib_$ac_lib_var=no"
12689 LIBS="$ac_save_LIBS"
12692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 ol_cv_lib_gdbm=-lgdbm
12696 echo "$ac_t""no" 1>&6
12707 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12710 for ac_hdr in gdbm.h
12712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12714 echo "configure:12715: checking for $ac_hdr" >&5
12715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12716 echo $ac_n "(cached) $ac_c" 1>&6
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12724 { (eval echo configure:12725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12726 if test -z "$ac_err"; then
12728 eval "ac_cv_header_$ac_safe=yes"
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12734 eval "ac_cv_header_$ac_safe=no"
12738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12739 echo "$ac_t""yes" 1>&6
12740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12741 cat >> confdefs.h <<EOF
12742 #define $ac_tr_hdr 1
12746 echo "$ac_t""no" 1>&6
12750 echo $ac_n "checking for db""... $ac_c" 1>&6
12751 echo "configure:12752: checking for db" >&5
12752 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12753 echo $ac_n "(cached) $ac_c" 1>&6
12756 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12764 echo "$ac_t""$ol_cv_gdbm" 1>&6
12765 if test $ol_cv_gdbm = yes ; then
12766 cat >> confdefs.h <<\EOF
12767 #define HAVE_GDBM 1
12773 if test $ol_cv_gdbm = yes ; then
12775 ol_with_ldbm_api=gdbm
12777 if test $ol_cv_lib_gdbm != yes ; then
12778 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12783 if test $ol_with_ldbm_api = ndbm ; then
12784 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12785 echo "configure:12786: checking for NDBM library" >&5
12786 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12787 echo $ac_n "(cached) $ac_c" 1>&6
12790 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12791 echo "configure:12792: checking for dbm_open" >&5
12792 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12793 echo $ac_n "(cached) $ac_c" 1>&6
12795 cat > conftest.$ac_ext <<EOF
12796 #line 12797 "configure"
12797 #include "confdefs.h"
12798 /* System header to define __stub macros and hopefully few prototypes,
12799 which can conflict with char dbm_open(); below. */
12800 #include <assert.h>
12801 /* Override any gcc2 internal prototype to avoid an error. */
12802 /* We use char because int might match the return type of a gcc2
12803 builtin and then its argument prototype would still apply. */
12809 /* The GNU C library defines this for functions which it implements
12810 to always fail with ENOSYS. Some functions are actually named
12811 something starting with __ and the normal name is an alias. */
12812 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12820 if { (eval echo configure:12821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12822 eval "ac_cv_func_dbm_open=yes"
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12827 eval "ac_cv_func_dbm_open=no"
12832 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12833 echo "$ac_t""yes" 1>&6
12836 echo "$ac_t""no" 1>&6
12838 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12839 echo "configure:12840: checking for dbm_open in -lndbm" >&5
12840 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12841 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12844 ac_save_LIBS="$LIBS"
12845 LIBS="-lndbm $LIBS"
12846 cat > conftest.$ac_ext <<EOF
12847 #line 12848 "configure"
12848 #include "confdefs.h"
12849 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12860 eval "ac_cv_lib_$ac_lib_var=yes"
12862 echo "configure: failed program was:" >&5
12863 cat conftest.$ac_ext >&5
12865 eval "ac_cv_lib_$ac_lib_var=no"
12868 LIBS="$ac_save_LIBS"
12871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12872 echo "$ac_t""yes" 1>&6
12873 ol_cv_lib_ndbm=-lndbm
12875 echo "$ac_t""no" 1>&6
12877 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12878 echo "configure:12879: checking for dbm_open in -ldbm" >&5
12879 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12880 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12881 echo $ac_n "(cached) $ac_c" 1>&6
12883 ac_save_LIBS="$LIBS"
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888 /* Override any gcc2 internal prototype to avoid an error. */
12889 /* We use char because int might match the return type of a gcc2
12890 builtin and then its argument prototype would still apply. */
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 eval "ac_cv_lib_$ac_lib_var=yes"
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12904 eval "ac_cv_lib_$ac_lib_var=no"
12907 LIBS="$ac_save_LIBS"
12910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12911 echo "$ac_t""yes" 1>&6
12912 ol_cv_lib_ndbm=-ldbm
12914 echo "$ac_t""no" 1>&6
12927 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12930 for ac_hdr in ndbm.h
12932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12934 echo "configure:12935: checking for $ac_hdr" >&5
12935 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12936 echo $ac_n "(cached) $ac_c" 1>&6
12938 cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12944 { (eval echo configure:12945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12946 if test -z "$ac_err"; then
12948 eval "ac_cv_header_$ac_safe=yes"
12951 echo "configure: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12954 eval "ac_cv_header_$ac_safe=no"
12958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12959 echo "$ac_t""yes" 1>&6
12960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12961 cat >> confdefs.h <<EOF
12962 #define $ac_tr_hdr 1
12966 echo "$ac_t""no" 1>&6
12970 echo $ac_n "checking for db""... $ac_c" 1>&6
12971 echo "configure:12972: checking for db" >&5
12972 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12976 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12984 echo "$ac_t""$ol_cv_ndbm" 1>&6
12985 if test $ol_cv_ndbm = yes ; then
12986 cat >> confdefs.h <<\EOF
12987 #define HAVE_NDBM 1
12993 if test $ol_cv_ndbm = yes ; then
12995 ol_with_ldbm_api=ndbm
12997 if test $ol_cv_lib_ndbm != yes ; then
12998 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13003 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13004 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13005 if test $ol_enable_ldbm = yes ; then
13006 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13009 echo "configure: warning: disabling LDBM" 1>&2
13013 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13014 LINK_BINS_DYNAMIC="yes"
13016 LINK_BINS_DYNAMIC="no"
13019 if test $ol_enable_wrappers != no ; then
13020 for ac_hdr in tcpd.h
13022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13024 echo "configure:13025: checking for $ac_hdr" >&5
13025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13026 echo $ac_n "(cached) $ac_c" 1>&6
13028 cat > conftest.$ac_ext <<EOF
13029 #line 13030 "configure"
13030 #include "confdefs.h"
13033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13034 { (eval echo configure:13035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13036 if test -z "$ac_err"; then
13038 eval "ac_cv_header_$ac_safe=yes"
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13044 eval "ac_cv_header_$ac_safe=no"
13048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13051 cat >> confdefs.h <<EOF
13052 #define $ac_tr_hdr 1
13056 echo "$ac_t""no" 1>&6
13061 if test $ac_cv_header_tcpd_h != yes ; then
13064 cat > conftest.$ac_ext <<EOF
13065 #line 13066 "configure"
13066 #include "confdefs.h"
13068 int allow_severity = 0;
13069 int deny_severity = 0;
13075 if { (eval echo configure:13076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13079 echo "configure: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13087 if test $have_wrappers = yes ; then
13088 cat >> confdefs.h <<\EOF
13089 #define HAVE_TCPD 1
13094 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13095 echo "configure:13096: checking for main in -lnsl" >&5
13096 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13098 echo $ac_n "(cached) $ac_c" 1>&6
13100 ac_save_LIBS="$LIBS"
13102 cat > conftest.$ac_ext <<EOF
13103 #line 13104 "configure"
13104 #include "confdefs.h"
13110 if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13112 eval "ac_cv_lib_$ac_lib_var=yes"
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13117 eval "ac_cv_lib_$ac_lib_var=no"
13120 LIBS="$ac_save_LIBS"
13123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13124 echo "$ac_t""yes" 1>&6
13125 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13127 cat >> confdefs.h <<EOF
13128 #define $ac_tr_lib 1
13134 echo "$ac_t""no" 1>&6
13138 echo "configure: warning: could not find -lwrap" 1>&2
13139 if test $ol_enable_wrappers = yes ; then
13140 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13143 echo "configure: warning: disabling wrappers support" 1>&2
13144 ol_enable_wrappers=no
13149 if test $ol_enable_syslog != no ; then
13150 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13151 echo "configure:13152: checking for openlog" >&5
13152 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13153 echo $ac_n "(cached) $ac_c" 1>&6
13155 cat > conftest.$ac_ext <<EOF
13156 #line 13157 "configure"
13157 #include "confdefs.h"
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char openlog(); below. */
13160 #include <assert.h>
13161 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13169 /* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172 #if defined (__stub_openlog) || defined (__stub___openlog)
13180 if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 eval "ac_cv_func_openlog=yes"
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13187 eval "ac_cv_func_openlog=no"
13192 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13196 echo "$ac_t""no" 1>&6
13199 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13200 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13202 ol_enable_syslog=$ac_cv_func_openlog
13206 if test $ol_enable_sql != no ; then
13207 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13208 echo "configure:13209: checking for SQLDriverConnect in -liodbc" >&5
13209 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13210 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13211 echo $ac_n "(cached) $ac_c" 1>&6
13213 ac_save_LIBS="$LIBS"
13214 LIBS="-liodbc $LIBS"
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* Override any gcc2 internal prototype to avoid an error. */
13219 /* We use char because int might match the return type of a gcc2
13220 builtin and then its argument prototype would still apply. */
13221 char SQLDriverConnect();
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13229 eval "ac_cv_lib_$ac_lib_var=yes"
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13234 eval "ac_cv_lib_$ac_lib_var=no"
13237 LIBS="$ac_save_LIBS"
13240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13241 echo "$ac_t""yes" 1>&6
13244 echo "$ac_t""no" 1>&6
13248 if test $have_iodbc = yes ; then
13249 ol_link_sql="-liodbc"
13251 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13252 echo "configure:13253: checking for SQLDriverConnect in -lodbc" >&5
13253 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13255 echo $ac_n "(cached) $ac_c" 1>&6
13257 ac_save_LIBS="$LIBS"
13258 LIBS="-lodbc $LIBS"
13259 cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13262 /* Override any gcc2 internal prototype to avoid an error. */
13263 /* We use char because int might match the return type of a gcc2
13264 builtin and then its argument prototype would still apply. */
13265 char SQLDriverConnect();
13271 if { (eval echo configure:13272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13273 eval "ac_cv_lib_$ac_lib_var=yes"
13275 echo "configure: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13278 eval "ac_cv_lib_$ac_lib_var=no"
13281 LIBS="$ac_save_LIBS"
13284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13285 echo "$ac_t""yes" 1>&6
13288 echo "$ac_t""no" 1>&6
13292 if test $have_odbc = yes ; then
13293 ol_link_sql="-lodbc"
13297 if test $ol_link_sql != no ; then
13298 SLAPD_SQL_LIBS="$ol_link_sql"
13300 elif test $ol_enable_sql != auto ; then
13301 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13306 for ac_hdr in termcap.h ncurses.h
13308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13310 echo "configure:13311: checking for $ac_hdr" >&5
13311 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13312 echo $ac_n "(cached) $ac_c" 1>&6
13314 cat > conftest.$ac_ext <<EOF
13315 #line 13316 "configure"
13316 #include "confdefs.h"
13319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13320 { (eval echo configure:13321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13322 if test -z "$ac_err"; then
13324 eval "ac_cv_header_$ac_safe=yes"
13327 echo "configure: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13330 eval "ac_cv_header_$ac_safe=no"
13334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13335 echo "$ac_t""yes" 1>&6
13336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13337 cat >> confdefs.h <<EOF
13338 #define $ac_tr_hdr 1
13342 echo "$ac_t""no" 1>&6
13347 if test $ol_link_termcap = no ; then
13348 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13349 echo "configure:13350: checking for tputs in -ltermcap" >&5
13350 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13352 echo $ac_n "(cached) $ac_c" 1>&6
13354 ac_save_LIBS="$LIBS"
13355 LIBS="-ltermcap $LIBS"
13356 cat > conftest.$ac_ext <<EOF
13357 #line 13358 "configure"
13358 #include "confdefs.h"
13359 /* Override any gcc2 internal prototype to avoid an error. */
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13370 eval "ac_cv_lib_$ac_lib_var=yes"
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13375 eval "ac_cv_lib_$ac_lib_var=no"
13378 LIBS="$ac_save_LIBS"
13381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13382 echo "$ac_t""yes" 1>&6
13385 echo "$ac_t""no" 1>&6
13389 if test $have_termcap = yes ; then
13390 cat >> confdefs.h <<\EOF
13391 #define HAVE_TERMCAP 1
13394 ol_link_termcap=yes
13395 TERMCAP_LIBS=-ltermcap
13399 if test $ol_link_termcap = no ; then
13400 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13401 echo "configure:13402: checking for initscr in -lncurses" >&5
13402 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13403 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13406 ac_save_LIBS="$LIBS"
13407 LIBS="-lncurses $LIBS"
13408 cat > conftest.$ac_ext <<EOF
13409 #line 13410 "configure"
13410 #include "confdefs.h"
13411 /* Override any gcc2 internal prototype to avoid an error. */
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13422 eval "ac_cv_lib_$ac_lib_var=yes"
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13427 eval "ac_cv_lib_$ac_lib_var=no"
13430 LIBS="$ac_save_LIBS"
13433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13434 echo "$ac_t""yes" 1>&6
13437 echo "$ac_t""no" 1>&6
13441 if test $have_ncurses = yes ; then
13442 cat >> confdefs.h <<\EOF
13443 #define HAVE_NCURSES 1
13446 ol_link_termcap=yes
13447 TERMCAP_LIBS=-lncurses
13451 if test $ol_link_termcap = no ; then
13452 cat >> confdefs.h <<\EOF
13453 #define NO_TERMCAP 1
13461 if test $ol_with_cyrus_sasl != no ; then
13462 for ac_hdr in sasl.h
13464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13466 echo "configure:13467: checking for $ac_hdr" >&5
13467 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13468 echo $ac_n "(cached) $ac_c" 1>&6
13470 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure"
13472 #include "confdefs.h"
13475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13476 { (eval echo configure:13477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13478 if test -z "$ac_err"; then
13480 eval "ac_cv_header_$ac_safe=yes"
13483 echo "configure: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13486 eval "ac_cv_header_$ac_safe=no"
13490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13491 echo "$ac_t""yes" 1>&6
13492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13493 cat >> confdefs.h <<EOF
13494 #define $ac_tr_hdr 1
13498 echo "$ac_t""no" 1>&6
13503 if test $ac_cv_header_sasl_h = yes ; then
13504 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13505 echo "configure:13506: checking for sasl_client_init in -lsasl" >&5
13506 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13507 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13508 echo $ac_n "(cached) $ac_c" 1>&6
13510 ac_save_LIBS="$LIBS"
13511 LIBS="-lsasl $LIBS"
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 /* Override any gcc2 internal prototype to avoid an error. */
13516 /* We use char because int might match the return type of a gcc2
13517 builtin and then its argument prototype would still apply. */
13518 char sasl_client_init();
13524 if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13526 eval "ac_cv_lib_$ac_lib_var=yes"
13528 echo "configure: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13531 eval "ac_cv_lib_$ac_lib_var=no"
13534 LIBS="$ac_save_LIBS"
13537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13538 echo "$ac_t""yes" 1>&6
13539 have_cyrus_sasl=yes
13541 echo "$ac_t""no" 1>&6
13546 if test $have_cyrus_sasl != no ; then
13548 cat >> confdefs.h <<\EOF
13549 #define HAVE_CYRUS_SASL 1
13556 if test $ol_link_sasl = no ; then
13557 if test $ol_with_cyrus_sasl != auto ; then
13558 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13560 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13561 echo "configure: warning: SASL authentication not supported!" 1>&2
13562 if test $ol_link_tls = no ; then
13563 echo "configure: warning: Strong authentication not supported!" 1>&2
13567 elif test $ol_enable_spasswd != no ; then
13568 ol_link_spasswd=yes
13572 echo "configure: warning: SASL authentication not supported!" 1>&2
13573 if test $ol_link_tls = no ; then
13574 echo "configure: warning: Strong authentication not supported!" 1>&2
13578 if test $cross_compiling != yes ; then
13580 if test -r /dev/urandom ; then
13581 dev="/dev/urandom";
13582 elif test -r /idev/urandom ; then
13583 dev="/idev/urandom";
13584 elif test -r /dev/srandom ; then
13585 dev="/dev/srandom";
13586 elif test -r /dev/random ; then
13588 elif test -r /idev/random ; then
13589 dev="/idev/random";
13592 if test $dev != no ; then
13593 cat >> confdefs.h <<EOF
13594 #define URANDOM_DEVICE "$dev"
13601 if test $ol_with_fetch != no ; then
13603 LIBS="-lfetch -lcom_err $LIBS"
13604 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13605 echo "configure:13606: checking fetch(3) library" >&5
13606 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13607 echo $ac_n "(cached) $ac_c" 1>&6
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13614 #include <sys/param.h>
13618 struct url *u = fetchParseURL("file:///");
13621 if { (eval echo configure:13622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13623 ol_cv_lib_fetch=yes
13625 echo "configure: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13633 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13635 if test $ol_cv_lib_fetch != no ; then
13636 ol_link_fetch="-lfetch -lcom_err"
13637 cat >> confdefs.h <<\EOF
13638 #define HAVE_FETCH 1
13644 if test $ol_cv_lib_fetch != no ; then
13645 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13646 ol_link_fetch=freebsd
13648 elif test $ol_with_fetch != auto ; then
13649 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13653 ol_link_readline=no
13654 if test $ol_with_readline != no ; then
13655 for ac_hdr in readline/readline.h readline/history.h
13657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13659 echo "configure:13660: checking for $ac_hdr" >&5
13660 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13661 echo $ac_n "(cached) $ac_c" 1>&6
13663 cat > conftest.$ac_ext <<EOF
13664 #line 13665 "configure"
13665 #include "confdefs.h"
13668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13669 { (eval echo configure:13670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13671 if test -z "$ac_err"; then
13673 eval "ac_cv_header_$ac_safe=yes"
13676 echo "configure: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13679 eval "ac_cv_header_$ac_safe=no"
13683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13684 echo "$ac_t""yes" 1>&6
13685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13686 cat >> confdefs.h <<EOF
13687 #define $ac_tr_hdr 1
13691 echo "$ac_t""no" 1>&6
13696 if test $ac_cv_header_readline_readline_h = yes ; then
13698 LIBS="$TERMCAP_LIBS $LIBS"
13699 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13700 echo "configure:13701: checking for readline in -lreadline" >&5
13701 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13702 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13703 echo $ac_n "(cached) $ac_c" 1>&6
13705 ac_save_LIBS="$LIBS"
13706 LIBS="-lreadline $LIBS"
13707 cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710 /* Override any gcc2 internal prototype to avoid an error. */
13711 /* We use char because int might match the return type of a gcc2
13712 builtin and then its argument prototype would still apply. */
13719 if { (eval echo configure:13720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13721 eval "ac_cv_lib_$ac_lib_var=yes"
13723 echo "configure: failed program was:" >&5
13724 cat conftest.$ac_ext >&5
13726 eval "ac_cv_lib_$ac_lib_var=no"
13729 LIBS="$ac_save_LIBS"
13732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13733 echo "$ac_t""yes" 1>&6
13736 echo "$ac_t""no" 1>&6
13742 if test $have_readline = yes ; then
13743 ol_with_readline=found
13744 ol_link_readline=yes
13746 READLINE_LIBS="-lreadline"
13751 if test $ol_link_readline = yes ; then
13752 cat >> confdefs.h <<\EOF
13753 #define HAVE_READLINE 1
13759 if test $ol_enable_crypt != no ; then
13760 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13761 echo "configure:13762: checking for crypt" >&5
13762 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13763 echo $ac_n "(cached) $ac_c" 1>&6
13765 cat > conftest.$ac_ext <<EOF
13766 #line 13767 "configure"
13767 #include "confdefs.h"
13768 /* System header to define __stub macros and hopefully few prototypes,
13769 which can conflict with char crypt(); below. */
13770 #include <assert.h>
13771 /* Override any gcc2 internal prototype to avoid an error. */
13772 /* We use char because int might match the return type of a gcc2
13773 builtin and then its argument prototype would still apply. */
13779 /* The GNU C library defines this for functions which it implements
13780 to always fail with ENOSYS. Some functions are actually named
13781 something starting with __ and the normal name is an alias. */
13782 #if defined (__stub_crypt) || defined (__stub___crypt)
13790 if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13792 eval "ac_cv_func_crypt=yes"
13794 echo "configure: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13797 eval "ac_cv_func_crypt=no"
13802 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13803 echo "$ac_t""yes" 1>&6
13806 echo "$ac_t""no" 1>&6
13808 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13809 echo "configure:13810: checking for crypt in -lcrypt" >&5
13810 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13814 ac_save_LIBS="$LIBS"
13815 LIBS="-lcrypt $LIBS"
13816 cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13828 if { (eval echo configure:13829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830 eval "ac_cv_lib_$ac_lib_var=yes"
13832 echo "configure: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13835 eval "ac_cv_lib_$ac_lib_var=no"
13838 LIBS="$ac_save_LIBS"
13841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13842 echo "$ac_t""yes" 1>&6
13843 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13846 echo "$ac_t""no" 1>&6
13853 if test $have_crypt = yes ; then
13854 cat >> confdefs.h <<\EOF
13855 #define HAVE_CRYPT 1
13859 echo "configure: warning: could not find crypt" 1>&2
13860 if test $ol_enable_crypt = yes ; then
13861 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13864 echo "configure: warning: disabling crypt support" 1>&2
13869 if test $ol_enable_proctitle != no ; then
13870 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13871 echo "configure:13872: checking for setproctitle" >&5
13872 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13878 /* System header to define __stub macros and hopefully few prototypes,
13879 which can conflict with char setproctitle(); below. */
13880 #include <assert.h>
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13884 char setproctitle();
13889 /* The GNU C library defines this for functions which it implements
13890 to always fail with ENOSYS. Some functions are actually named
13891 something starting with __ and the normal name is an alias. */
13892 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13900 if { (eval echo configure:13901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13902 eval "ac_cv_func_setproctitle=yes"
13904 echo "configure: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13907 eval "ac_cv_func_setproctitle=no"
13912 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13913 echo "$ac_t""yes" 1>&6
13914 have_setproctitle=yes
13916 echo "$ac_t""no" 1>&6
13918 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13919 echo "configure:13920: checking for setproctitle in -lutil" >&5
13920 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13921 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13922 echo $ac_n "(cached) $ac_c" 1>&6
13924 ac_save_LIBS="$LIBS"
13925 LIBS="-lutil $LIBS"
13926 cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure"
13928 #include "confdefs.h"
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char setproctitle();
13938 if { (eval echo configure:13939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13940 eval "ac_cv_lib_$ac_lib_var=yes"
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13945 eval "ac_cv_lib_$ac_lib_var=no"
13948 LIBS="$ac_save_LIBS"
13951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13952 echo "$ac_t""yes" 1>&6
13953 have_setproctitle=yes
13954 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13956 echo "$ac_t""no" 1>&6
13957 have_setproctitle=no
13958 LIBOBJS="$LIBOBJS setproctitle.o"
13959 LIBSRCS="$LIBSRCS setproctitle.c"
13965 if test $have_setproctitle = yes ; then
13966 cat >> confdefs.h <<\EOF
13967 #define HAVE_SETPROCTITLE 1
13973 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13974 echo "configure:13975: checking for ANSI C header files" >&5
13975 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13976 echo $ac_n "(cached) $ac_c" 1>&6
13978 cat > conftest.$ac_ext <<EOF
13979 #line 13980 "configure"
13980 #include "confdefs.h"
13981 #include <stdlib.h>
13982 #include <stdarg.h>
13983 #include <string.h>
13986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13987 { (eval echo configure:13988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13989 if test -z "$ac_err"; then
13991 ac_cv_header_stdc=yes
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13997 ac_cv_header_stdc=no
14001 if test $ac_cv_header_stdc = yes; then
14002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <string.h>
14008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14009 egrep "memchr" >/dev/null 2>&1; then
14013 ac_cv_header_stdc=no
14019 if test $ac_cv_header_stdc = yes; then
14020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14021 cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 #include <stdlib.h>
14026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14027 egrep "free" >/dev/null 2>&1; then
14031 ac_cv_header_stdc=no
14037 if test $ac_cv_header_stdc = yes; then
14038 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14039 if test "$cross_compiling" = yes; then
14042 cat > conftest.$ac_ext <<EOF
14043 #line 14044 "configure"
14044 #include "confdefs.h"
14046 #if ((' ' & 0x0FF) == 0x020)
14047 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14048 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14050 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14051 || ('j' <= (c) && (c) <= 'r') \
14052 || ('s' <= (c) && (c) <= 'z'))
14053 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14056 int main () { int i; for (i = 0; i < 256; i++)
14057 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14068 ac_cv_header_stdc=no
14076 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14077 if test $ac_cv_header_stdc = yes; then
14078 cat >> confdefs.h <<\EOF
14079 #define STDC_HEADERS 1
14084 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14085 echo "configure:14086: checking for mode_t" >&5
14086 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14087 echo $ac_n "(cached) $ac_c" 1>&6
14089 cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 #include <sys/types.h>
14094 #include <stdlib.h>
14095 #include <stddef.h>
14099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14100 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14102 eval "ac_cv_type_mode_t=yes"
14105 eval "ac_cv_type_mode_t=no"
14110 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14111 echo "$ac_t""yes" 1>&6
14113 echo "$ac_t""no" 1>&6
14114 cat >> confdefs.h <<EOF
14120 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14121 echo "configure:14122: checking for off_t" >&5
14122 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14123 echo $ac_n "(cached) $ac_c" 1>&6
14125 cat > conftest.$ac_ext <<EOF
14126 #line 14127 "configure"
14127 #include "confdefs.h"
14128 #include <sys/types.h>
14130 #include <stdlib.h>
14131 #include <stddef.h>
14135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14138 eval "ac_cv_type_off_t=yes"
14141 eval "ac_cv_type_off_t=no"
14146 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14147 echo "$ac_t""yes" 1>&6
14149 echo "$ac_t""no" 1>&6
14150 cat >> confdefs.h <<EOF
14156 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14157 echo "configure:14158: checking for pid_t" >&5
14158 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14159 echo $ac_n "(cached) $ac_c" 1>&6
14161 cat > conftest.$ac_ext <<EOF
14162 #line 14163 "configure"
14163 #include "confdefs.h"
14164 #include <sys/types.h>
14166 #include <stdlib.h>
14167 #include <stddef.h>
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14174 eval "ac_cv_type_pid_t=yes"
14177 eval "ac_cv_type_pid_t=no"
14182 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14183 echo "$ac_t""yes" 1>&6
14185 echo "$ac_t""no" 1>&6
14186 cat >> confdefs.h <<EOF
14192 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14193 echo "configure:14194: checking for ptrdiff_t" >&5
14194 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14195 echo $ac_n "(cached) $ac_c" 1>&6
14197 cat > conftest.$ac_ext <<EOF
14198 #line 14199 "configure"
14199 #include "confdefs.h"
14200 #include <stddef.h>
14205 if { (eval echo configure:14206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14207 am_cv_type_ptrdiff_t=yes
14209 echo "configure: failed program was:" >&5
14210 cat conftest.$ac_ext >&5
14212 am_cv_type_ptrdiff_t=no
14217 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14218 if test $am_cv_type_ptrdiff_t = yes; then
14219 cat >> confdefs.h <<\EOF
14220 #define HAVE_PTRDIFF_T 1
14225 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14226 echo "configure:14227: checking return type of signal handlers" >&5
14227 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14230 cat > conftest.$ac_ext <<EOF
14231 #line 14232 "configure"
14232 #include "confdefs.h"
14233 #include <sys/types.h>
14234 #include <signal.h>
14239 extern "C" void (*signal (int, void (*)(int)))(int);
14241 void (*signal ()) ();
14248 if { (eval echo configure:14249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14250 ac_cv_type_signal=void
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14255 ac_cv_type_signal=int
14260 echo "$ac_t""$ac_cv_type_signal" 1>&6
14261 cat >> confdefs.h <<EOF
14262 #define RETSIGTYPE $ac_cv_type_signal
14266 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14267 echo "configure:14268: checking for size_t" >&5
14268 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14269 echo $ac_n "(cached) $ac_c" 1>&6
14271 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure"
14273 #include "confdefs.h"
14274 #include <sys/types.h>
14276 #include <stdlib.h>
14277 #include <stddef.h>
14281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14282 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14284 eval "ac_cv_type_size_t=yes"
14287 eval "ac_cv_type_size_t=no"
14292 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14293 echo "$ac_t""yes" 1>&6
14295 echo "$ac_t""no" 1>&6
14296 cat >> confdefs.h <<EOF
14297 #define size_t unsigned
14303 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14304 echo "configure:14305: checking for ssize_t" >&5
14305 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14306 echo $ac_n "(cached) $ac_c" 1>&6
14308 cat > conftest.$ac_ext <<EOF
14309 #line 14310 "configure"
14310 #include "confdefs.h"
14311 #include <sys/types.h>
14313 #include <stdlib.h>
14314 #include <stddef.h>
14318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14319 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14321 eval "ac_cv_type_ssize_t=yes"
14324 eval "ac_cv_type_ssize_t=no"
14329 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14330 echo "$ac_t""yes" 1>&6
14332 echo "$ac_t""no" 1>&6
14333 cat >> confdefs.h <<EOF
14334 #define ssize_t signed int
14339 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14340 echo "configure:14341: checking for caddr_t" >&5
14341 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
14344 cat > conftest.$ac_ext <<EOF
14345 #line 14346 "configure"
14346 #include "confdefs.h"
14347 #include <sys/types.h>
14349 #include <stdlib.h>
14350 #include <stddef.h>
14354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14355 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14357 eval "ac_cv_type_caddr_t=yes"
14360 eval "ac_cv_type_caddr_t=no"
14365 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14366 echo "$ac_t""yes" 1>&6
14368 echo "$ac_t""no" 1>&6
14369 cat >> confdefs.h <<EOF
14370 #define caddr_t char *
14376 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14377 echo "configure:14378: checking for socklen_t" >&5
14378 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14379 echo $ac_n "(cached) $ac_c" 1>&6
14381 cat > conftest.$ac_ext <<EOF
14382 #line 14383 "configure"
14383 #include "confdefs.h"
14385 #ifdef HAVE_SYS_TYPES_H
14386 #include <sys/types.h>
14388 #ifdef HAVE_SYS_SOCKET_H
14389 #include <sys/socket.h>
14396 if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14398 ol_cv_type_socklen_t=yes
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14403 ol_cv_type_socklen_t=no
14408 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14409 if test $ol_cv_type_socklen_t = no; then
14410 cat >> confdefs.h <<\EOF
14411 #define socklen_t int
14416 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14417 echo "configure:14418: checking for member st_blksize in aggregate type struct stat" >&5
14418 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14419 echo $ac_n "(cached) $ac_c" 1>&6
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 #include <sys/types.h>
14425 #include <sys/stat.h>
14427 struct stat foo; foo.st_blksize;
14430 if { (eval echo configure:14431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14432 ac_cv_c_struct_member_st_blksize=yes
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14437 ac_cv_c_struct_member_st_blksize=no
14442 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14443 st_blksize="$ac_cv_c_struct_member_st_blksize"
14444 if test $ac_cv_c_struct_member_st_blksize = yes; then
14445 cat >> confdefs.h <<\EOF
14446 #define HAVE_ST_BLKSIZE 1
14451 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14452 echo "configure:14453: checking whether time.h and sys/time.h may both be included" >&5
14453 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14454 echo $ac_n "(cached) $ac_c" 1>&6
14456 cat > conftest.$ac_ext <<EOF
14457 #line 14458 "configure"
14458 #include "confdefs.h"
14459 #include <sys/types.h>
14460 #include <sys/time.h>
14466 if { (eval echo configure:14467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14468 ac_cv_header_time=yes
14470 echo "configure: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14473 ac_cv_header_time=no
14478 echo "$ac_t""$ac_cv_header_time" 1>&6
14479 if test $ac_cv_header_time = yes; then
14480 cat >> confdefs.h <<\EOF
14481 #define TIME_WITH_SYS_TIME 1
14486 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14487 echo "configure:14488: checking whether struct tm is in sys/time.h or time.h" >&5
14488 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14489 echo $ac_n "(cached) $ac_c" 1>&6
14491 cat > conftest.$ac_ext <<EOF
14492 #line 14493 "configure"
14493 #include "confdefs.h"
14494 #include <sys/types.h>
14497 struct tm *tp; tp->tm_sec;
14500 if { (eval echo configure:14501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14502 ac_cv_struct_tm=time.h
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14507 ac_cv_struct_tm=sys/time.h
14512 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14513 if test $ac_cv_struct_tm = sys/time.h; then
14514 cat >> confdefs.h <<\EOF
14515 #define TM_IN_SYS_TIME 1
14520 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14521 echo "configure:14522: checking for uid_t in sys/types.h" >&5
14522 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14523 echo $ac_n "(cached) $ac_c" 1>&6
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528 #include <sys/types.h>
14530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14531 egrep "uid_t" >/dev/null 2>&1; then
14533 ac_cv_type_uid_t=yes
14536 ac_cv_type_uid_t=no
14542 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14543 if test $ac_cv_type_uid_t = no; then
14544 cat >> confdefs.h <<\EOF
14548 cat >> confdefs.h <<\EOF
14554 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14555 echo "configure:14556: checking for sig_atomic_t" >&5
14556 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14557 echo $ac_n "(cached) $ac_c" 1>&6
14559 cat > conftest.$ac_ext <<EOF
14560 #line 14561 "configure"
14561 #include "confdefs.h"
14562 #include <signal.h>
14564 sig_atomic_t atomic;
14567 if { (eval echo configure:14568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14569 ol_cv_type_sig_atomic_t=yes
14571 echo "configure: failed program was:" >&5
14572 cat conftest.$ac_ext >&5
14574 ol_cv_type_sig_atomic_t=no
14579 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14580 if test $ol_cv_type_sig_atomic_t = no; then
14581 cat >> confdefs.h <<\EOF
14582 #define sig_atomic_t int
14589 # test for pw_gecos in struct passwd
14590 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14591 echo "configure:14592: checking struct passwd for pw_gecos" >&5
14592 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14603 pwd.pw_gecos = pwd.pw_name;
14607 if { (eval echo configure:14608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14609 ol_cv_struct_passwd_pw_gecos=yes
14611 echo "configure: failed program was:" >&5
14612 cat conftest.$ac_ext >&5
14614 ol_cv_struct_passwd_pw_gecos=no
14619 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14620 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14621 cat >> confdefs.h <<\EOF
14622 #define HAVE_PW_GECOS 1
14627 # test for pw_passwd in struct passwd
14628 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14629 echo "configure:14630: checking struct passwd for pw_passwd" >&5
14630 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14631 echo $ac_n "(cached) $ac_c" 1>&6
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14641 pwd.pw_passwd = pwd.pw_name;
14645 if { (eval echo configure:14646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14647 ol_cv_struct_passwd_pw_passwd=yes
14649 echo "configure: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14652 ol_cv_struct_passwd_pw_passwd=no
14657 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14658 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14659 cat >> confdefs.h <<\EOF
14660 #define HAVE_PW_PASSWD 1
14666 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14667 echo "configure:14668: checking if toupper() requires islower()" >&5
14668 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14669 echo $ac_n "(cached) $ac_c" 1>&6
14672 if test "$cross_compiling" = yes; then
14673 ol_cv_c_upper_lower=safe
14675 cat > conftest.$ac_ext <<EOF
14676 #line 14677 "configure"
14677 #include "confdefs.h"
14682 if ('C' == toupper('C'))
14688 if { (eval echo configure:14689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14690 ol_cv_c_upper_lower=no
14692 echo "configure: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14695 ol_cv_c_upper_lower=yes
14702 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14703 if test $ol_cv_c_upper_lower != no ; then
14704 cat >> confdefs.h <<\EOF
14705 #define C_UPPER_LOWER 1
14710 echo $ac_n "checking for working const""... $ac_c" 1>&6
14711 echo "configure:14712: checking for working const" >&5
14712 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14713 echo $ac_n "(cached) $ac_c" 1>&6
14715 cat > conftest.$ac_ext <<EOF
14716 #line 14717 "configure"
14717 #include "confdefs.h"
14721 /* Ultrix mips cc rejects this. */
14722 typedef int charset[2]; const charset x;
14723 /* SunOS 4.1.1 cc rejects this. */
14724 char const *const *ccp;
14726 /* NEC SVR4.0.2 mips cc rejects this. */
14727 struct point {int x, y;};
14728 static struct point const zero = {0,0};
14729 /* AIX XL C 1.02.0.0 rejects this.
14730 It does not let you subtract one const X* pointer from another in an arm
14731 of an if-expression whose if-part is not a constant expression */
14732 const char *g = "string";
14733 ccp = &g + (g ? g-g : 0);
14734 /* HPUX 7.0 cc rejects these. */
14737 ccp = (char const *const *) p;
14738 { /* SCO 3.2v4 cc rejects this. */
14740 char const *s = 0 ? (char *) 0 : (char const *) 0;
14744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14745 int x[] = {25, 17};
14746 const int *foo = &x[0];
14749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14750 typedef const int *iptr;
14754 { /* AIX XL C 1.02.0.0 rejects this saying
14755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14756 struct s { int j; const int *ap[3]; };
14757 struct s *b; b->j = 5;
14759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14760 const int foo = 10;
14765 if { (eval echo configure:14766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14769 echo "configure: failed program was:" >&5
14770 cat conftest.$ac_ext >&5
14777 echo "$ac_t""$ac_cv_c_const" 1>&6
14778 if test $ac_cv_c_const = no; then
14779 cat >> confdefs.h <<\EOF
14785 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14786 echo "configure:14787: checking if compiler understands volatile" >&5
14787 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14790 cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14795 volatile int a; int * volatile b = x ? &y : &z;
14796 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14800 if { (eval echo configure:14801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14802 ol_cv_c_volatile=yes
14804 echo "configure: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14807 ol_cv_c_volatile=no
14812 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14813 if test $ol_cv_c_volatile = yes; then
14816 cat >> confdefs.h <<\EOF
14823 if test $cross_compiling = yes ; then
14824 cat >> confdefs.h <<\EOF
14825 #define CROSS_COMPILING 1
14829 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14830 echo "configure:14831: checking whether byte ordering is bigendian" >&5
14831 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14834 ac_cv_c_bigendian=unknown
14835 # See if sys/param.h defines the BYTE_ORDER macro.
14836 cat > conftest.$ac_ext <<EOF
14837 #line 14838 "configure"
14838 #include "confdefs.h"
14839 #include <sys/types.h>
14840 #include <sys/param.h>
14843 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14844 bogus endian macros
14848 if { (eval echo configure:14849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14850 # It does; now see whether it defined to BIG_ENDIAN or not.
14851 cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14854 #include <sys/types.h>
14855 #include <sys/param.h>
14858 #if BYTE_ORDER != BIG_ENDIAN
14863 if { (eval echo configure:14864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14865 ac_cv_c_bigendian=yes
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14870 ac_cv_c_bigendian=no
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14878 if test $ac_cv_c_bigendian = unknown; then
14879 if test "$cross_compiling" = yes; then
14880 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14882 cat > conftest.$ac_ext <<EOF
14883 #line 14884 "configure"
14884 #include "confdefs.h"
14886 /* Are we little or big endian? From Harbison&Steele. */
14890 char c[sizeof (long)];
14893 exit (u.c[sizeof (long) - 1] == 1);
14896 if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14898 ac_cv_c_bigendian=no
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14903 ac_cv_c_bigendian=yes
14911 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14912 if test $ac_cv_c_bigendian = yes; then
14913 cat >> confdefs.h <<\EOF
14914 #define WORDS_BIGENDIAN 1
14921 echo $ac_n "checking size of short""... $ac_c" 1>&6
14922 echo "configure:14923: checking size of short" >&5
14923 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14924 echo $ac_n "(cached) $ac_c" 1>&6
14926 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14927 cat > conftest.$ac_ext <<EOF
14928 #line 14929 "configure"
14929 #include "confdefs.h"
14930 #include "confdefs.h"
14931 #include <sys/types.h>
14935 switch (0) case 0: case (sizeof (short) == $ac_size):;
14938 if { (eval echo configure:14939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14940 ac_cv_sizeof_short=$ac_size
14942 echo "configure: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14946 if test x$ac_cv_sizeof_short != x ; then break; fi
14951 if test x$ac_cv_sizeof_short = x ; then
14952 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14954 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14955 cat >> confdefs.h <<EOF
14956 #define SIZEOF_SHORT $ac_cv_sizeof_short
14960 echo $ac_n "checking size of int""... $ac_c" 1>&6
14961 echo "configure:14962: checking size of int" >&5
14962 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14963 echo $ac_n "(cached) $ac_c" 1>&6
14965 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14966 cat > conftest.$ac_ext <<EOF
14967 #line 14968 "configure"
14968 #include "confdefs.h"
14969 #include "confdefs.h"
14970 #include <sys/types.h>
14974 switch (0) case 0: case (sizeof (int) == $ac_size):;
14977 if { (eval echo configure:14978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14979 ac_cv_sizeof_int=$ac_size
14981 echo "configure: failed program was:" >&5
14982 cat conftest.$ac_ext >&5
14985 if test x$ac_cv_sizeof_int != x ; then break; fi
14990 if test x$ac_cv_sizeof_int = x ; then
14991 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14993 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14994 cat >> confdefs.h <<EOF
14995 #define SIZEOF_INT $ac_cv_sizeof_int
14999 echo $ac_n "checking size of long""... $ac_c" 1>&6
15000 echo "configure:15001: checking size of long" >&5
15001 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15002 echo $ac_n "(cached) $ac_c" 1>&6
15004 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15005 cat > conftest.$ac_ext <<EOF
15006 #line 15007 "configure"
15007 #include "confdefs.h"
15008 #include "confdefs.h"
15009 #include <sys/types.h>
15013 switch (0) case 0: case (sizeof (long) == $ac_size):;
15016 if { (eval echo configure:15017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15018 ac_cv_sizeof_long=$ac_size
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15024 if test x$ac_cv_sizeof_long != x ; then break; fi
15029 if test x$ac_cv_sizeof_long = x ; then
15030 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15032 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15033 cat >> confdefs.h <<EOF
15034 #define SIZEOF_LONG $ac_cv_sizeof_long
15039 if test "$ac_cv_sizeof_int" -lt 4 ; then
15040 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15042 cat >> confdefs.h <<\EOF
15043 #define LBER_INT_T long
15047 cat >> confdefs.h <<\EOF
15048 #define LBER_INT_T int
15053 cat >> confdefs.h <<\EOF
15054 #define LBER_LEN_T long
15057 cat >> confdefs.h <<\EOF
15058 #define LBER_SOCKET_T int
15061 cat >> confdefs.h <<\EOF
15062 #define LBER_TAG_T long
15066 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15067 echo "configure:15068: checking for 8-bit clean memcmp" >&5
15068 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15069 echo $ac_n "(cached) $ac_c" 1>&6
15071 if test "$cross_compiling" = yes; then
15072 ac_cv_func_memcmp_clean=no
15074 cat > conftest.$ac_ext <<EOF
15075 #line 15076 "configure"
15076 #include "confdefs.h"
15080 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15081 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15085 if { (eval echo configure:15086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15087 ac_cv_func_memcmp_clean=yes
15089 echo "configure: failed program was:" >&5
15090 cat conftest.$ac_ext >&5
15092 ac_cv_func_memcmp_clean=no
15099 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15100 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15102 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15103 echo "configure:15104: checking for strftime" >&5
15104 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15105 echo $ac_n "(cached) $ac_c" 1>&6
15107 cat > conftest.$ac_ext <<EOF
15108 #line 15109 "configure"
15109 #include "confdefs.h"
15110 /* System header to define __stub macros and hopefully few prototypes,
15111 which can conflict with char strftime(); below. */
15112 #include <assert.h>
15113 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15121 /* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124 #if defined (__stub_strftime) || defined (__stub___strftime)
15132 if { (eval echo configure:15133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15134 eval "ac_cv_func_strftime=yes"
15136 echo "configure: failed program was:" >&5
15137 cat conftest.$ac_ext >&5
15139 eval "ac_cv_func_strftime=no"
15144 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15145 echo "$ac_t""yes" 1>&6
15146 cat >> confdefs.h <<\EOF
15147 #define HAVE_STRFTIME 1
15151 echo "$ac_t""no" 1>&6
15152 # strftime is in -lintl on SCO UNIX.
15153 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15154 echo "configure:15155: checking for strftime in -lintl" >&5
15155 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15156 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15157 echo $ac_n "(cached) $ac_c" 1>&6
15159 ac_save_LIBS="$LIBS"
15160 LIBS="-lintl $LIBS"
15161 cat > conftest.$ac_ext <<EOF
15162 #line 15163 "configure"
15163 #include "confdefs.h"
15164 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15173 if { (eval echo configure:15174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15175 eval "ac_cv_lib_$ac_lib_var=yes"
15177 echo "configure: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15180 eval "ac_cv_lib_$ac_lib_var=no"
15183 LIBS="$ac_save_LIBS"
15186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15187 echo "$ac_t""yes" 1>&6
15188 cat >> confdefs.h <<\EOF
15189 #define HAVE_STRFTIME 1
15192 LIBS="-lintl $LIBS"
15194 echo "$ac_t""no" 1>&6
15200 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15201 echo "configure:15202: checking for inet_aton()" >&5
15202 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15203 echo $ac_n "(cached) $ac_c" 1>&6
15205 cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15209 #ifdef HAVE_SYS_TYPES_H
15210 # include <sys/types.h>
15212 #ifdef HAVE_SYS_SOCKET_H
15213 # include <sys/socket.h>
15214 # ifdef HAVE_SYS_SELECT_H
15215 # include <sys/select.h>
15217 # include <netinet/in.h>
15218 # ifdef HAVE_ARPA_INET_H
15219 # include <arpa/inet.h>
15225 int rc = inet_aton( "255.255.255.255", &in );
15228 if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 ol_cv_func_inet_aton=yes
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 ol_cv_func_inet_aton=no
15240 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15241 if test $ol_cv_func_inet_aton != no; then
15242 cat >> confdefs.h <<\EOF
15243 #define HAVE_INET_ATON 1
15249 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15250 echo "configure:15251: checking for _spawnlp" >&5
15251 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15252 echo $ac_n "(cached) $ac_c" 1>&6
15254 cat > conftest.$ac_ext <<EOF
15255 #line 15256 "configure"
15256 #include "confdefs.h"
15257 /* System header to define __stub macros and hopefully few prototypes,
15258 which can conflict with char _spawnlp(); below. */
15259 #include <assert.h>
15260 /* Override any gcc2 internal prototype to avoid an error. */
15261 /* We use char because int might match the return type of a gcc2
15262 builtin and then its argument prototype would still apply. */
15268 /* The GNU C library defines this for functions which it implements
15269 to always fail with ENOSYS. Some functions are actually named
15270 something starting with __ and the normal name is an alias. */
15271 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15279 if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15281 eval "ac_cv_func__spawnlp=yes"
15283 echo "configure: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15286 eval "ac_cv_func__spawnlp=no"
15291 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15292 echo "$ac_t""yes" 1>&6
15293 cat >> confdefs.h <<\EOF
15294 #define HAVE_SPAWNLP 1
15298 echo "$ac_t""no" 1>&6
15302 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15303 echo "configure:15304: checking for _snprintf" >&5
15304 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15305 echo $ac_n "(cached) $ac_c" 1>&6
15307 cat > conftest.$ac_ext <<EOF
15308 #line 15309 "configure"
15309 #include "confdefs.h"
15310 /* System header to define __stub macros and hopefully few prototypes,
15311 which can conflict with char _snprintf(); below. */
15312 #include <assert.h>
15313 /* Override any gcc2 internal prototype to avoid an error. */
15314 /* We use char because int might match the return type of a gcc2
15315 builtin and then its argument prototype would still apply. */
15321 /* The GNU C library defines this for functions which it implements
15322 to always fail with ENOSYS. Some functions are actually named
15323 something starting with __ and the normal name is an alias. */
15324 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15332 if { (eval echo configure:15333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15334 eval "ac_cv_func__snprintf=yes"
15336 echo "configure: failed program was:" >&5
15337 cat conftest.$ac_ext >&5
15339 eval "ac_cv_func__snprintf=no"
15344 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15345 echo "$ac_t""yes" 1>&6
15346 ac_cv_func_snprintf=yes
15347 cat >> confdefs.h <<\EOF
15348 #define snprintf _snprintf
15353 echo "$ac_t""no" 1>&6
15357 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15358 echo "configure:15359: checking for _vsnprintf" >&5
15359 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15360 echo $ac_n "(cached) $ac_c" 1>&6
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 /* System header to define __stub macros and hopefully few prototypes,
15366 which can conflict with char _vsnprintf(); below. */
15367 #include <assert.h>
15368 /* Override any gcc2 internal prototype to avoid an error. */
15369 /* We use char because int might match the return type of a gcc2
15370 builtin and then its argument prototype would still apply. */
15376 /* The GNU C library defines this for functions which it implements
15377 to always fail with ENOSYS. Some functions are actually named
15378 something starting with __ and the normal name is an alias. */
15379 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15387 if { (eval echo configure:15388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15389 eval "ac_cv_func__vsnprintf=yes"
15391 echo "configure: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15394 eval "ac_cv_func__vsnprintf=no"
15399 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15400 echo "$ac_t""yes" 1>&6
15401 ac_cv_func_vsnprintf=yes
15402 cat >> confdefs.h <<\EOF
15403 #define vsnprintf _vsnprintf
15408 echo "$ac_t""no" 1>&6
15412 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15413 echo "configure:15414: checking for vprintf" >&5
15414 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15415 echo $ac_n "(cached) $ac_c" 1>&6
15417 cat > conftest.$ac_ext <<EOF
15418 #line 15419 "configure"
15419 #include "confdefs.h"
15420 /* System header to define __stub macros and hopefully few prototypes,
15421 which can conflict with char vprintf(); below. */
15422 #include <assert.h>
15423 /* Override any gcc2 internal prototype to avoid an error. */
15424 /* We use char because int might match the return type of a gcc2
15425 builtin and then its argument prototype would still apply. */
15431 /* The GNU C library defines this for functions which it implements
15432 to always fail with ENOSYS. Some functions are actually named
15433 something starting with __ and the normal name is an alias. */
15434 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15442 if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15444 eval "ac_cv_func_vprintf=yes"
15446 echo "configure: failed program was:" >&5
15447 cat conftest.$ac_ext >&5
15449 eval "ac_cv_func_vprintf=no"
15454 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15455 echo "$ac_t""yes" 1>&6
15456 cat >> confdefs.h <<\EOF
15457 #define HAVE_VPRINTF 1
15461 echo "$ac_t""no" 1>&6
15464 if test "$ac_cv_func_vprintf" != yes; then
15465 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15466 echo "configure:15467: checking for _doprnt" >&5
15467 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15468 echo $ac_n "(cached) $ac_c" 1>&6
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473 /* System header to define __stub macros and hopefully few prototypes,
15474 which can conflict with char _doprnt(); below. */
15475 #include <assert.h>
15476 /* Override any gcc2 internal prototype to avoid an error. */
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15484 /* The GNU C library defines this for functions which it implements
15485 to always fail with ENOSYS. Some functions are actually named
15486 something starting with __ and the normal name is an alias. */
15487 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15495 if { (eval echo configure:15496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15497 eval "ac_cv_func__doprnt=yes"
15499 echo "configure: failed program was:" >&5
15500 cat conftest.$ac_ext >&5
15502 eval "ac_cv_func__doprnt=no"
15507 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15508 echo "$ac_t""yes" 1>&6
15509 cat >> confdefs.h <<\EOF
15510 #define HAVE_DOPRNT 1
15514 echo "$ac_t""no" 1>&6
15520 if test $ac_cv_func_vprintf = yes ; then
15521 for ac_func in vsnprintf vsprintf
15523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15524 echo "configure:15525: checking for $ac_func" >&5
15525 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15526 echo $ac_n "(cached) $ac_c" 1>&6
15528 cat > conftest.$ac_ext <<EOF
15529 #line 15530 "configure"
15530 #include "confdefs.h"
15531 /* System header to define __stub macros and hopefully few prototypes,
15532 which can conflict with char $ac_func(); below. */
15533 #include <assert.h>
15534 /* Override any gcc2 internal prototype to avoid an error. */
15535 /* We use char because int might match the return type of a gcc2
15536 builtin and then its argument prototype would still apply. */
15542 /* The GNU C library defines this for functions which it implements
15543 to always fail with ENOSYS. Some functions are actually named
15544 something starting with __ and the normal name is an alias. */
15545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15553 if { (eval echo configure:15554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15555 eval "ac_cv_func_$ac_func=yes"
15557 echo "configure: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15560 eval "ac_cv_func_$ac_func=no"
15565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15566 echo "$ac_t""yes" 1>&6
15567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15568 cat >> confdefs.h <<EOF
15569 #define $ac_tr_func 1
15573 echo "$ac_t""no" 1>&6
15632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15633 echo "configure:15634: checking for $ac_func" >&5
15634 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15635 echo $ac_n "(cached) $ac_c" 1>&6
15637 cat > conftest.$ac_ext <<EOF
15638 #line 15639 "configure"
15639 #include "confdefs.h"
15640 /* System header to define __stub macros and hopefully few prototypes,
15641 which can conflict with char $ac_func(); below. */
15642 #include <assert.h>
15643 /* Override any gcc2 internal prototype to avoid an error. */
15644 /* We use char because int might match the return type of a gcc2
15645 builtin and then its argument prototype would still apply. */
15651 /* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15662 if { (eval echo configure:15663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15664 eval "ac_cv_func_$ac_func=yes"
15666 echo "configure: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15669 eval "ac_cv_func_$ac_func=no"
15674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15675 echo "$ac_t""yes" 1>&6
15676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15677 cat >> confdefs.h <<EOF
15678 #define $ac_tr_func 1
15682 echo "$ac_t""no" 1>&6
15687 for ac_func in getopt tempnam
15689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15690 echo "configure:15691: checking for $ac_func" >&5
15691 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15692 echo $ac_n "(cached) $ac_c" 1>&6
15694 cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* System header to define __stub macros and hopefully few prototypes,
15698 which can conflict with char $ac_func(); below. */
15699 #include <assert.h>
15700 /* Override any gcc2 internal prototype to avoid an error. */
15701 /* We use char because int might match the return type of a gcc2
15702 builtin and then its argument prototype would still apply. */
15708 /* The GNU C library defines this for functions which it implements
15709 to always fail with ENOSYS. Some functions are actually named
15710 something starting with __ and the normal name is an alias. */
15711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15719 if { (eval echo configure:15720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15721 eval "ac_cv_func_$ac_func=yes"
15723 echo "configure: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15726 eval "ac_cv_func_$ac_func=no"
15731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15732 echo "$ac_t""yes" 1>&6
15733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15734 cat >> confdefs.h <<EOF
15735 #define $ac_tr_func 1
15739 echo "$ac_t""no" 1>&6
15740 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15746 if test "$ac_cv_func_getopt" != yes; then
15747 LIBSRCS="$LIBSRCS getopt.c"
15750 if test "$ac_cv_func_tempnam" != yes; then
15751 LIBSRCS="$LIBSRCS tempnam.c"
15754 # Check Configuration
15755 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15756 echo "configure:15757: checking declaration of sys_errlist" >&5
15757 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15758 echo $ac_n "(cached) $ac_c" 1>&6
15761 cat > conftest.$ac_ext <<EOF
15762 #line 15763 "configure"
15763 #include "confdefs.h"
15766 #include <sys/types.h>
15769 #include <stdlib.h>
15772 char *c = (char *) *sys_errlist
15775 if { (eval echo configure:15776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15777 ol_cv_dcl_sys_errlist=yes
15778 ol_cv_have_sys_errlist=yes
15780 echo "configure: failed program was:" >&5
15781 cat conftest.$ac_ext >&5
15783 ol_cv_dcl_sys_errlist=no
15788 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15790 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15791 if test $ol_cv_dcl_sys_errlist = no ; then
15792 cat >> confdefs.h <<\EOF
15793 #define DECL_SYS_ERRLIST 1
15797 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15798 echo "configure:15799: checking existence of sys_errlist" >&5
15799 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15800 echo $ac_n "(cached) $ac_c" 1>&6
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15808 char *c = (char *) *sys_errlist
15811 if { (eval echo configure:15812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15813 ol_cv_have_sys_errlist=yes
15815 echo "configure: failed program was:" >&5
15816 cat conftest.$ac_ext >&5
15818 ol_cv_have_sys_errlist=no
15823 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15825 if test $ol_cv_have_sys_errlist = yes ; then
15826 cat >> confdefs.h <<\EOF
15827 #define HAVE_SYS_ERRLIST 1
15834 if test "$ol_enable_debug" != no ; then
15835 cat >> confdefs.h <<\EOF
15836 #define LDAP_DEBUG 1
15840 if test "$ol_enable_syslog" = yes ; then
15841 cat >> confdefs.h <<\EOF
15842 #define LDAP_SYSLOG 1
15846 if test "$ol_enable_cache" = no ; then
15847 cat >> confdefs.h <<\EOF
15848 #define LDAP_NOCACHE 1
15852 if test "$ol_link_kbind" != no ; then
15853 cat >> confdefs.h <<\EOF
15854 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15858 if test "$ol_enable_proctitle" != no ; then
15859 cat >> confdefs.h <<\EOF
15860 #define LDAP_PROCTITLE 1
15864 if test "$ol_enable_referrals" != no ; then
15865 cat >> confdefs.h <<\EOF
15866 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15870 if test "$ol_enable_local" != no; then
15871 cat >> confdefs.h <<\EOF
15872 #define LDAP_PF_LOCAL 1
15876 if test "$ol_link_ipv6" != no; then
15877 cat >> confdefs.h <<\EOF
15878 #define LDAP_PF_INET6 1
15882 if test "$ol_enable_cleartext" != no ; then
15883 cat >> confdefs.h <<\EOF
15884 #define SLAPD_CLEARTEXT 1
15888 if test "$ol_enable_crypt" != no ; then
15889 cat >> confdefs.h <<\EOF
15890 #define SLAPD_CRYPT 1
15894 if test "$ol_link_kpasswd" != no ; then
15895 cat >> confdefs.h <<\EOF
15896 #define SLAPD_KPASSWD 1
15900 if test "$ol_link_spasswd" != no ; then
15901 cat >> confdefs.h <<\EOF
15902 #define SLAPD_SPASSWD 1
15906 if test "$ol_enable_phonetic" != no ; then
15907 cat >> confdefs.h <<\EOF
15908 #define SLAPD_PHONETIC 1
15912 if test "$ol_enable_rlookups" != no ; then
15913 cat >> confdefs.h <<\EOF
15914 #define SLAPD_RLOOKUPS 1
15918 if test "$ol_enable_aci" != no ; then
15919 cat >> confdefs.h <<\EOF
15920 #define SLAPD_ACI_ENABLED 1
15925 if test "$ol_link_modules" != no ; then
15926 cat >> confdefs.h <<\EOF
15927 #define SLAPD_MODULES 1
15931 SLAPD_MODULES_LDFLAGS="-dlopen self"
15934 if test "$ol_link_dnssrv" != no ; then
15935 cat >> confdefs.h <<\EOF
15936 #define SLAPD_DNSSRV 1
15941 if test "$ol_with_dnssrv_module" != static ; then
15942 cat >> confdefs.h <<\EOF
15943 #define SLAPD_DNSSRV_DYNAMIC 1
15947 BUILD_DNSSRV_DYNAMIC=shared
15948 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15952 if test "$ol_enable_ldap" != no ; then
15953 cat >> confdefs.h <<\EOF
15954 #define SLAPD_LDAP 1
15959 if test "$ol_with_ldap_module" != static ; then
15960 cat >> confdefs.h <<\EOF
15961 #define SLAPD_LDAP_DYNAMIC 1
15965 BUILD_LDAP_DYNAMIC=shared
15966 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15970 if test "$ol_link_ldbm" != no ; then
15971 cat >> confdefs.h <<\EOF
15972 #define SLAPD_LDBM 1
15977 if test "$ol_with_ldbm_module" != static ; then
15978 cat >> confdefs.h <<\EOF
15979 #define SLAPD_LDBM_DYNAMIC 1
15983 BUILD_LDBM_DYNAMIC=shared
15984 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15988 if test "$ol_enable_passwd" != no ; then
15989 cat >> confdefs.h <<\EOF
15990 #define SLAPD_PASSWD 1
15995 if test "$ol_with_passwd_module" != static ; then
15996 cat >> confdefs.h <<\EOF
15997 #define SLAPD_PASSWD_DYNAMIC 1
16001 BUILD_PASSWD_DYNAMIC=shared
16002 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16006 if test "$ol_enable_shell" != no ; then
16007 cat >> confdefs.h <<\EOF
16008 #define SLAPD_SHELL 1
16013 if test "$ol_with_shell_module" != static ; then
16014 cat >> confdefs.h <<\EOF
16015 #define SLAPD_SHELL_DYNAMIC 1
16019 BUILD_SHELL_DYNAMIC=shared
16020 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16024 if test "$ol_enable_sql" != no ; then
16025 cat >> confdefs.h <<\EOF
16026 #define SLAPD_SQL 1
16031 if test "$ol_with_sql_module" != static; then
16032 cat >> confdefs.h <<\EOF
16033 #define SLAPD_SQL_DYNAMIC 1
16037 BUILD_SQL_DYNAMIC=shared
16038 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16042 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16043 $BUILD_SLAPD = yes ; then
16048 if test "$LINK_BINS_DYNAMIC" = yes; then
16050 LT_LIB_LINKAGE=shared
16053 LT_LIB_LINKAGE=static
16056 if test "$ac_cv_mingw32" = yes ; then
16116 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16119 # Let make expand exec_prefix.
16120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16122 # Any assignment to VPATH causes Sun make to only execute
16123 # the first set of double-colon rules, so remove it if not needed.
16124 # If there is a colon in the path, we need to keep it.
16125 if test "x$srcdir" = x.; then
16126 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16129 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16131 DEFS=-DHAVE_CONFIG_H
16133 # Without the "./", some shells look in PATH for config.status.
16134 : ${CONFIG_STATUS=./config.status}
16136 echo creating $CONFIG_STATUS
16137 rm -f $CONFIG_STATUS
16138 cat > $CONFIG_STATUS <<EOF
16140 # Generated automatically by configure.
16141 # Run this file to recreate the current configuration.
16142 # This directory was configured as follows,
16143 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16145 # $0 $ac_configure_args
16147 # Compiler output produced by configure, useful for debugging
16148 # configure, is in ./config.log if it exists.
16150 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16153 case "\$ac_option" in
16154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16155 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16156 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16157 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16158 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16160 -help | --help | --hel | --he | --h)
16161 echo "\$ac_cs_usage"; exit 0 ;;
16162 *) echo "\$ac_cs_usage"; exit 1 ;;
16166 ac_given_srcdir=$srcdir
16167 ac_given_INSTALL="$INSTALL"
16169 trap 'rm -fr `echo "\
16170 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16171 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16172 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16173 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16174 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16175 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16176 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16177 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16178 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16179 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16180 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16181 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16182 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16183 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16184 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16185 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16186 include/Makefile:build/top.mk:include/Makefile.in \
16187 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16188 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16189 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16190 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16191 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16192 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16193 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16194 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16195 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16196 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16197 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16198 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16199 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16200 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16201 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16202 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16203 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16204 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16205 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16206 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16207 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16208 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16209 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16210 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16211 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16213 cat >> $CONFIG_STATUS <<EOF
16215 # Protect against being on the right side of a sed subst in config.status.
16216 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16217 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16221 s%@CFLAGS@%$CFLAGS%g
16222 s%@CPPFLAGS@%$CPPFLAGS%g
16223 s%@CXXFLAGS@%$CXXFLAGS%g
16224 s%@FFLAGS@%$FFLAGS%g
16226 s%@LDFLAGS@%$LDFLAGS%g
16228 s%@exec_prefix@%$exec_prefix%g
16229 s%@prefix@%$prefix%g
16230 s%@program_transform_name@%$program_transform_name%g
16231 s%@bindir@%$bindir%g
16232 s%@sbindir@%$sbindir%g
16233 s%@libexecdir@%$libexecdir%g
16234 s%@datadir@%$datadir%g
16235 s%@sysconfdir@%$sysconfdir%g
16236 s%@sharedstatedir@%$sharedstatedir%g
16237 s%@localstatedir@%$localstatedir%g
16238 s%@libdir@%$libdir%g
16239 s%@includedir@%$includedir%g
16240 s%@oldincludedir@%$oldincludedir%g
16241 s%@infodir@%$infodir%g
16242 s%@mandir@%$mandir%g
16244 s%@host_alias@%$host_alias%g
16245 s%@host_cpu@%$host_cpu%g
16246 s%@host_vendor@%$host_vendor%g
16247 s%@host_os@%$host_os%g
16248 s%@target@%$target%g
16249 s%@target_alias@%$target_alias%g
16250 s%@target_cpu@%$target_cpu%g
16251 s%@target_vendor@%$target_vendor%g
16252 s%@target_os@%$target_os%g
16254 s%@build_alias@%$build_alias%g
16255 s%@build_cpu@%$build_cpu%g
16256 s%@build_vendor@%$build_vendor%g
16257 s%@build_os@%$build_os%g
16258 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16259 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16260 s%@INSTALL_DATA@%$INSTALL_DATA%g
16261 s%@PACKAGE@%$PACKAGE%g
16262 s%@VERSION@%$VERSION%g
16263 s%@ACLOCAL@%$ACLOCAL%g
16264 s%@AUTOCONF@%$AUTOCONF%g
16265 s%@AUTOMAKE@%$AUTOMAKE%g
16266 s%@AUTOHEADER@%$AUTOHEADER%g
16267 s%@MAKEINFO@%$MAKEINFO%g
16268 s%@install_sh@%$install_sh%g
16271 s%@AMTARFLAGS@%$AMTARFLAGS%g
16272 s%@SET_MAKE@%$SET_MAKE%g
16273 s%@top_builddir@%$top_builddir%g
16274 s%@ldap_subdir@%$ldap_subdir%g
16276 s%@RANLIB@%$RANLIB%g
16278 s%@DLLTOOL@%$DLLTOOL%g
16280 s%@OBJDUMP@%$OBJDUMP%g
16281 s%@LIBTOOL@%$LIBTOOL%g
16283 s%@SENDMAIL@%$SENDMAIL%g
16284 s%@EDITOR@%$EDITOR%g
16285 s%@FINGER@%$FINGER%g
16287 s%@EXEEXT@%$EXEEXT%g
16288 s%@OBJEXT@%$OBJEXT%g
16289 s%@OL_MKDEP@%$OL_MKDEP%g
16290 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16291 s%@LIBOBJS@%$LIBOBJS%g
16292 s%@LIBSRCS@%$LIBSRCS%g
16294 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16295 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16296 s%@DYN_EXT@%$DYN_EXT%g
16297 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16298 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16299 s%@BUILD_LDAP@%$BUILD_LDAP%g
16300 s%@BUILD_LDBM@%$BUILD_LDBM%g
16301 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16302 s%@BUILD_SHELL@%$BUILD_SHELL%g
16303 s%@BUILD_SQL@%$BUILD_SQL%g
16304 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16305 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16306 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16307 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16308 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16309 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16310 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16311 s%@LDAP_LIBS@%$LDAP_LIBS%g
16312 s%@LDIF_LIBS@%$LDIF_LIBS%g
16313 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16314 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16315 s%@LDBM_LIBS@%$LDBM_LIBS%g
16316 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16317 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16318 s%@WRAP_LIBS@%$WRAP_LIBS%g
16319 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16320 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16321 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16322 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16323 s%@KRB4_LIBS@%$KRB4_LIBS%g
16324 s%@KRB5_LIBS@%$KRB5_LIBS%g
16325 s%@READLINE_LIBS@%$READLINE_LIBS%g
16326 s%@SASL_LIBS@%$SASL_LIBS%g
16327 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16328 s%@TLS_LIBS@%$TLS_LIBS%g
16329 s%@MODULES_LIBS@%$MODULES_LIBS%g
16330 s%@AUTH_LIBS@%$AUTH_LIBS%g
16331 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16332 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16333 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16338 cat >> $CONFIG_STATUS <<\EOF
16340 # Split the substitutions into bite-sized pieces for seds with
16341 # small command number limits, like on Digital OSF/1 and HP-UX.
16342 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16343 ac_file=1 # Number of current file.
16344 ac_beg=1 # First line for current file.
16345 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16348 while $ac_more_lines; do
16349 if test $ac_beg -gt 1; then
16350 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16352 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16354 if test ! -s conftest.s$ac_file; then
16355 ac_more_lines=false
16356 rm -f conftest.s$ac_file
16358 if test -z "$ac_sed_cmds"; then
16359 ac_sed_cmds="sed -f conftest.s$ac_file"
16361 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16363 ac_file=`expr $ac_file + 1`
16365 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16368 if test -z "$ac_sed_cmds"; then
16373 cat >> $CONFIG_STATUS <<EOF
16375 CONFIG_FILES=\${CONFIG_FILES-"\
16376 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16377 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16378 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16379 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16380 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16381 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16382 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16383 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16384 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16385 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16386 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16387 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16388 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16389 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16390 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16391 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16392 include/Makefile:build/top.mk:include/Makefile.in \
16393 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16394 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16395 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16396 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16397 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16398 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16399 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16400 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16401 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16402 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16403 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16404 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16405 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16406 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16407 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16408 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16409 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16410 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16411 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16412 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16413 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16414 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16415 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16416 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16419 cat >> $CONFIG_STATUS <<\EOF
16420 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16421 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16423 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16424 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16425 *) ac_file_in="${ac_file}.in" ;;
16428 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16430 # Remove last slash and all that follows it. Not all systems have dirname.
16431 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16432 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16433 # The file is in a subdirectory.
16434 test ! -d "$ac_dir" && mkdir "$ac_dir"
16435 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16436 # A "../" for each directory in $ac_dir_suffix.
16437 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16439 ac_dir_suffix= ac_dots=
16442 case "$ac_given_srcdir" in
16444 if test -z "$ac_dots"; then top_srcdir=.
16445 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16446 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16447 *) # Relative path.
16448 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16449 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16452 case "$ac_given_INSTALL" in
16453 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16454 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16457 echo creating "$ac_file"
16459 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16461 *[Mm]akefile*) ac_comsub="1i\\
16462 # $configure_input" ;;
16466 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16468 s%@configure_input@%$configure_input%g
16469 s%@srcdir@%$srcdir%g
16470 s%@top_srcdir@%$top_srcdir%g
16471 s%@INSTALL@%$INSTALL%g
16472 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16479 # ac_d sets the value in "#define NAME VALUE" lines.
16480 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16481 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16484 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16485 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16486 ac_uB='\([ ]\)%\1#\2define\3'
16489 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16490 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16491 ac_eB='$%\1#\2define\3'
16495 if test "${CONFIG_HEADERS+set}" != set; then
16497 cat >> $CONFIG_STATUS <<EOF
16498 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16500 cat >> $CONFIG_STATUS <<\EOF
16502 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16503 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16505 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16506 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16507 *) ac_file_in="${ac_file}.in" ;;
16510 echo creating $ac_file
16512 rm -f conftest.frag conftest.in conftest.out
16513 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16514 cat $ac_file_inputs > conftest.in
16518 # Transform confdefs.h into a sed script conftest.vals that substitutes
16519 # the proper values into config.h.in to produce config.h. And first:
16520 # Protect against being on the right side of a sed subst in config.status.
16521 # Protect against being in an unquoted here document in config.status.
16522 rm -f conftest.vals
16523 cat > conftest.hdr <<\EOF
16526 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16530 sed -n -f conftest.hdr confdefs.h > conftest.vals
16533 # This sed command replaces #undef with comments. This is necessary, for
16534 # example, in the case of _POSIX_SOURCE, which is predefined and required
16535 # on some systems where configure will not decide to define it.
16536 cat >> conftest.vals <<\EOF
16537 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16540 # Break up conftest.vals because some shells have a limit on
16541 # the size of here documents, and old seds have small limits too.
16543 rm -f conftest.tail
16546 ac_lines=`grep -c . conftest.vals`
16547 # grep -c gives empty output for an empty file on some AIX systems.
16548 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16549 # Write a limited-size here document to conftest.frag.
16550 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16551 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16553 sed -f conftest.frag conftest.in > conftest.out
16555 mv conftest.out conftest.in
16556 ' >> $CONFIG_STATUS
16557 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16558 rm -f conftest.vals
16559 mv conftest.tail conftest.vals
16561 rm -f conftest.vals
16563 cat >> $CONFIG_STATUS <<\EOF
16564 rm -f conftest.frag conftest.h
16565 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16566 cat conftest.in >> conftest.h
16568 if cmp -s $ac_file conftest.h 2>/dev/null; then
16569 echo "$ac_file is unchanged"
16572 # Remove last slash and all that follows it. Not all systems have dirname.
16573 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16574 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16575 # The file is in a subdirectory.
16576 test ! -d "$ac_dir" && mkdir "$ac_dir"
16579 mv conftest.h $ac_file
16584 cat >> $CONFIG_STATUS <<EOF
16587 cat >> $CONFIG_STATUS <<\EOF
16590 echo Please \"make depend\" to build dependencies
16594 chmod +x $CONFIG_STATUS
16595 rm -fr confdefs* $ac_clean_files
16596 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1